As far as understand it is a well-established opinion within the C++ community that
C is an obsolete language that was useful 20 years ago but cannot support many modern good programming practices, or even encourages bad practices;
certain features that were typical of C++ (C with classes) during the nineties are also obsolete and considered bad…
If we look at the major programming languages in use today it is pretty noticeable that the vast majority of them are, in fact, interpreted.
Looking at the largest piece of the pie we have Java and C# which are both enterprise-ready, heavy-duty, serious programming languages which are basically compiled to byte-code only to be interpreted by…
I wanted to ask you people, in which cases it makes sense to unit test statically typed functional code, as written in haskell, scala, ocaml, nemerle, f# or haXe (the last is what I am really interested in, but I wanted to tap into the knowledge of the bigger communities).
I ask this because from my understanding:
One aspect of unit tests…
My first programming language was PHP (gasp). After that I started working with JavaScript. I've recently done work in C#.
I've never once looked at low or mid level languages like C.
The general consensus in the programming-community-at-large is that "a programmer who hasn't learned something like C, frankly, just can't handle…
When facing new programming jargon words, I first try to reason about them from an semantic and etymological standpoint when possible (that is, when they aren't obscure acronyms). For instance, you can get the beginning of a hint of what things like Polymorphism or even Monad are about with the help of a little Greek/Latin. At the…
My first programming language was PHP (gasp). After that I started working with JavaScript. I've recently done work in C#.
I've never once looked at low or mid level languages like C.
The general consensus in the programming-community-at-large is that "a programmer who hasn't learned something like C, frankly, just can't…
Sometimes you need to write a constructor which can fail. For instance, say I want to instantiate an object with a file path, something like
obj = new Object("/home/user/foo_file")
As long as the path points to an appropriate file everything's fine. But if the string is not a valid path things should break. But how? You…
I often encounter the following statements / arguments:
Pure functional programming languages do not allow side effects (and are therefore of little use in practice because any useful program does have side effects, e.g. when it interacts with the external world).
Pure functional programming languages do not allow to…
The purpose of this question is not to assemble a laundry list of programming language features that you can't live without, or wish was in your main language of choice. The purpose of this question is to bring to light corners of languge design most language designers might not think about. So, instead of thinking…
According to this article, in object-oriented programming / design dependency injection involves
a dependent consumer,
a declaration of a component's dependencies, defined as interface contracts,
an injector that creates instances of classes that implement a given dependency interface on request.
Let us now…
I got into hobbyist Python programming some years ago on a whim, having never programmed before other than BASIC way back when, and little by little have cobbled together a, in my opinion, nice little desktop application that I might try to get out there in some fashion someday. It's roughly 15,000 logical…
I am writing a program, or starting at the very beginning of it, and I am thinking of purchase verification systems as a final step. I will be catering to Macs, PCs, and possibly Linux if all is said and done. I will also be programming this for smartphones as well using C++ and Objective-C. (I am writing a…
So I've been out of school for a year and a half now. In school, of course we covered all the fundamentals: OS, databases, programming languages (i.e. syntax, binding rules, exception handling, recursion, etc), and fundamental algorithms. the rest were more in-depth topics on things like NLP, data mining,…
I've had some experience with programming in the past (2-3 years of C++ self-teaching), so I'm no stranger to the programming process, but there are so many languages out there that I'm lost when thinking about this project idea that's been floating around my head:
I would like to create a webapp that…
My younger brother is looking to start programming. He's 14, and technically-inclined, but no real experience programming. He's looking to me for guidance, and I don't feel as if my experience is enough, so I figured I'd ask here.
He's more interested in web programming, but also has an interest in…
In the show LOST, the Swan Station had a button that “had to be pushed” every 100 minutes to avoid disaster. Several characters in the show took it upon themselves to have faith and religiously push the button, resetting the clock and averting the unknown “disaster”. There are striking…
It took me a while to work through the 800+ pages of this title. And yes, I really mean working not reading...
Since the release of Windows 8 it should be obvious to any Windows software developer that there are new ways to develop, deploy and market applications for a broader audience.…
Could spending time (and actively participating) on Programmers.SE and Stack Overflow help me improve my programming skills any close to what spending time on reading a book like Code Complete 2 (which would otherwise be next in my reading list) will help.
Ok, may be the answer to this…
The longer I work on a project, the less clear it becomes. It's like I cannot seperate various classes/objects anymore in my head. Everything starts mixing up, and it's extremely hard to take it all apart again. I start putting functions in classes where they really don't belong, and…
The reason I ask this question is because I am not sure my troubles come from a lack of confidence, or something much deeper like lack of passion. I'm hoping experienced programmers and developers can help identify the cause of my troubles.
To be brief my undergraduate major was in…
Last week, I was just viewing this amazing interview by Kevin Rose of Phillip Rosedale, of Second Life.
And they had an amazing discussion about how to find, hire and identify good programmer's, and how hard it is to find good ones.
Which has lead me to really think about the way…
I've since just started coding for an android game using eclipse. I've read Beginning Android Game Programming and various other e-books. Recently, I've encountered a problem with collision between sprites. I've used this code template for my program.
package com.project.CAI_test;
…
I just took a programming competition question and I absolutely bombed it. I had trouble right at the beginning itself from reading the input set. The question was basically a variant of this puzzle http://codercharts.com/puzzle/evacuation-plan but also had an hour component in the…