real-world

MVC - How does it work in the real world?

I've read a lot of trivial MVC examples of calculators and thermometers but I can't seem to map the pattern to real world applications. Suppose you have a more complicated scenario. Say you have a website shopping cart which requires users to login before adding to the cart. First, the user sees the product page (/product/detail) and cl...

IT concepts that help/helped you in the "real" world.

Which IT concept (e.g. programming) you implement successfully outside the IT world? For example, normalizing databases are relevant to organizing my items. Understanding the real scale of information and search engine forces my to stop accumulating data (books, articles, pictures) and improve the method by which I find relevant info...

How can I model this Jagged data?

I am in charge of modeling a 3 floor warehouse, where boxes of documents will be stored. There are rows, columns and shelves in the equation. in addition: some floor/row/column/shelf combinations store 2 boxes, some 3. some rows don't have the normal amount of columns. They want my application to auto-increment to print labels (20 ...

What are the popular, contemporary uses for Perl?

What are the popular, contemporary uses for Perl? Edit I should have been more specific. I was wondering more on the large scale (popular) what people are using Perl for rather than what it could be used for on the individual level. ...

How could you improve this code design?

Lately, I've been making use a lot of the Strategy Pattern along with the Factory Pattern. And I really mean a lot. I have a lot of "algorithms" for everything and factories that retrieve algorithms based on parameters. Even though the code seems very extensible, and it is, having N factories seems a bit of an abuse. I know this is pre...

Singleton example

Gang of four uses a load balancer example to demonstrate the singleton pattern. I'm just wondering why a singleton needs to be used in that example? Are there any other real examples that specifically demonstrate using a singleton pattern? I just want to know more specific reasons why I would want to prevent the creation of more than o...

What's a real-world example of ACID?

I'm looking for a real-world example for the various ACID properties of a database. ...

When to mix languages?

Hi SO-Followers, What are some situations where languages should be mixed? I'm not talking about using ASP.NET with C# and HTML or an application written in C accessing a SQL database through SQL queries. I'm talking about things like mixing C++ with Fortran or Ada with Haskell etc. for example. [EDIT] First of all: thank you for all...

Real world examples of @optional protocol methods

I'm learning Objective-C at the moment and have come across optional methods in Protocols. My background is C# and can see a Protocol as something similar to a C# Interface. Where a C# Interface represents a contract, by advertising an Interface you are saying that you will implement the methods defined. With this in mind I'm confused ...

Will using a transaction eliminate the need to use secondary dataContexts to attempt sql insert/update/deletes?

So I have a list of IT/developer tickets stored in a database via Linq-To-Sql. Save attempts are only done at the user request, or if they say save on close. My concern was that a user makes a change to 2 or more tickets without saving in-between. For some reason if the database rejects the change to one, doesn't give me very much info...

Success stories for JavaFX

Did anyone here a real company using JavaFX for real life applications? I did a shallow search about JavaFX usage, and found almost no heavy usage case. Anyone knows companies which actually using JavaFX? I'm really afraid that JavaFX (which is being currently the only somewhat opensource RIA platform) will not survive. Update this que...

What are the real-world problems with Ruby?

Ruby is a great language. It's fast and flexible, and reminds me a lot of Python of which I'm also quite fond. Ruby is also very popular, and has been for a few years now. Now that there are some "real world" projects and "rails-app businesses" out there, my question is this: What are the problems with Ruby? What are the things that ...

CouchDB a real world example

Hello stackoverflow gurus, Tonight in my daily tech googling I came across couchDB, after seeing tons of presentations about how it perform ten to hundred times better then any RDBM, how it would save us from SQL languages, tables, primary keys and so much more. I decided myself to try it myself.Only problem it seems I am unable to figu...

What is a very practical C++ book?

While I agree reading books is always a learning experience, sometimes you'd like to skip the theory and just jump till you reach the practical aspects. For example, I'd like to see a book that tells me that by writing: char* a = "a string"; the value of a will (usually) get stored in the readonly portion of an executable, and explain...

Uses of non-ground facts in Prolog?

In Prolog you can write a ground fact as: lost(jen). You can also write a non-ground fact as: lost(X). Does this makes any sense? Could you show me a practical/real example where non ground facts are used? Thanks, ...

Are there any good resources on real world practical uses of programming theory?

Can anyone recommend any good material that seeks to provide a real world perspective on programming theories? I'm speaking from my perspective as a long time professional software engineer slash ex-cs student. When I say real world, I mean stuff like "Why should I use interfaces? Doesn't that go against DRY principles? It just seems l...

What are the individual tests SunSpider JavaScript benchmark runs?

Can someone explain to me what each SunSpider subtest actually checks and give a real-life equivalent of their importance and use? Which outcomes (ie times) are considered acceptable for a modern system? The only information I have found so far was generic for each subsection, at Coding Horror. 3d Pure JavaScript computations of ...

What does it take to be ready for the real world?

I read about a lot of programming related topics, but I'm never confident enough to find work doing programming. I'm confused, and just want to know what I need to to be hired. ...

How did you practically use recursion?

How did you practically use recursion? I mean practical problems you had to solve in day to day programming, be that for work or for pleasure. Not school tasks/homeworks but something you did for yourself or others. The ones where I used it myself are: drawing some fractals traversing directory tree to search for a file traversing the ...

Real world use cases of bitwise operators

What are some real world use cases of the following bitwise operators? AND XOR NOT OR ...