Annotated Posts

1
vote
1answer
120 views
+50

Why is mixing plural with singular and camel case with underscores in cake php naming convention better than a simpler convention?

I have been using cake php for over a year and generally I like it but I struggle to understand the advantages of the complex naming conventions over something simpler. Cake uses plural here and ...
11
votes
8answers
10k views

Which online/hosted bug tracking tool do you use for your own work and projects? [closed]

I've accumulated a lot of side projects over the years, which I slowly improve on over time. Whenever I return to one, I take some time reading over text files that include design, recent bugs, next ...
29
votes
29answers
5k views

Does over-reliance on tools imply that you are lazy? [on hold]

I started programming in C++ at uni and loved it. In the next term we changed to VB6 and I hated it. I could not tell what was going on, you drag a button to a form and the ide writes the code for ...
10
votes
12answers
25k views

How to explain OOP concepts to a non technical person?

I often try to avoid telling people I'm a programmer because most of the time I end up explaining to them what that really means. When I tell them I'm programming in Java they often ask general ...
27
votes
2answers
1k views
+100

First ATMs programming language

First ATMs performed tasks like a cash dispenser, they were offline machines which worked with punch cards impregnated with Carbon and a 6-digit PIN code. Maximum withdrawal with a card was 10 pounds ...
5
votes
4answers
429 views
+50

Scripts to run Java programs - e.g. Ant

My team currently use an Ant script to execute various Java programs. Note that I am not asking about managing the build/deployment cycle for which we are already using Maven (quite happily). For ...
16
votes
14answers
3k views

How many mistakes does a good software developer make? [closed]

I am currently in a situation where a lot of people criticized me for making bugs (on my first local try - the first time I run the code for the first locally done test - , not on a committed repo ...
70
votes
10answers
13k views

Why do most of us use 'i' as a loop counter variable?

Has anyone thought about why so many of us repeat this same pattern using the same variable names? for (int i = 0; i < foo; i++) { // ... } It seems most code I've ever looked at uses i, j, ...
41
votes
2answers
26k views

How to become a Kernel/Systems/Device driver programmer? [closed]

I currently work in a professional capacity as a software engineer working with the Android OS. We work at integrating our platform as a native daemon among other facets of the project. I primarily ...
38
votes
17answers
2k views

Software Design: Build it fast or build it well?

When building a non-trivial application, is it best to focus on getting things working quickly, and taking shortcuts in the code like mixing model logic with your views, breaking encapsulation - ...
66
votes
26answers
64k views

Small C Projects [closed]

I am a professional developer who generally uses high level, memory managed languages. However, I am growing more and more ashamed at my incompetence at low level languages like C, which I haven't ...
28
votes
17answers
33k views

What is the best C++ interview question? [closed]

If you could ask a C++ programmer one question to measure their C++ skills, what would it be? The question I think is best is: Can you call "delete this;" inside a member function? (I put this as a ...
14
votes
1answer
18k views

Summary of differences between Java versions?

What are the major differences in between Java version in terms of software development? Where can one find a summary of the most important changes related to programming? The Release Notes such as ...
66
votes
4answers
15k views

How can Swift be so much faster than Objective-C in these comparisons?

Apple launched its new programming language Swift at WWDC14. In the presentation, they made some performance comparisons between Objective-C and Python. The following is a picture of one of their ...
73
votes
25answers
13k views

How far should one take e-mail address validation?

I'm wondering how far people should take the validation of e-mail address. My field is primarily web-development, but this applies anywhere. I've seen a few approaches: simply checking if there is ...
31
votes
29answers
12k views

How do you use blank lines in your code?

There has been a few remarks about white space already in discussion about curly braces placements. I myself tend to sprinkle my code with blank lines in an attempt to segregate things that go ...
44
votes
30answers
18k views

“Do you have any questions for us?” In an interview [closed]

You know the prospective company fairly well but are asked "Do you have any questions for us?". To show interest, what are some of your favorite questions to reply?
10
votes
2answers
23k views

Learning Django by example [closed]

When I first started learning Android, I found a fantastic series of YouTube videos by Marakana that stepped through building a Twitter clone. It walked me through all the steps and thus explained to ...
37
votes
12answers
5k views

Has test driven development (TDD) actually benefited a real world project?

I am not new to coding. I have been coding (seriously) for over 15 years now. I have always had some testing for my code. However, over the last few months I have been learning test driven ...
204
votes
9answers
27k views

Why is Mercurial considered to be easier than Git?

When looking at comparisons, it seems to me that there could be a 1:1 mapping between their feature sets. Yet, an often cited statement is that "Mercurial is easier". What is the basis of this ...
53
votes
28answers
23k views

What is your favorite whiteboard interview problem? [closed]

Just as the title says, what is your favorite whiteboard interview problem, and why has it proven effective for you? Junior, senior, Java, C, Javascript, PHP, SQL, pseudo-code, etc.
86
votes
19answers
17k views

Why isn't OCaml more popular?

I've always heard that C is the language of choice to use for embedded systems, or anything that needs to run at maximum speed. I never developed a fondness for C, mostly because I don't like pointer ...
43
votes
19answers
4k views

Form screenshot for legal proof of clicking one of the checkboxes?

We got a request from one of our customers, and since I've never encountered such a request before, I don't even know where to start looking. Our customer is a network of colleges, and we're building ...
14
votes
4answers
6k views

What's your favorite bit-wise technique? [closed]

A few days ago, StackExchange member Anto inquired about valid uses for bit-wise operators. I stated that shifting was faster than multiplying and dividing integers by powers of two. StackExchange ...
121
votes
29answers
14k views

Software Engineer VS “Harder” Jobs [closed]

This should probably be in a Dear Abby column, nevertheless... I am the only engineer in my entire family (including extended family). Occasionally I hear family members say that being a Software ...
472
votes
19answers
91k views

I've inherited 200K lines of spaghetti code — what now?

I hope this isn't too general of a question; I could really use some seasoned advice. I am newly employed as the sole "SW Engineer" in a fairly small shop of scientists who have spent the last 10-20 ...
394
votes
29answers
63k views

I don't program in my spare time. Does that make me a bad developer?

A lot of blogs and advice on the web seem to suggest that in order to become a great developer, doing just your day job is not enough. For example, you should contribute to open source projects in ...
21
votes
16answers
2k views

Are programmers who read programming-related books still rare? [closed]

Both in Code Complete by Steve McConnell and The Pragmatic Programmer by Andrew Hunt & David Thomas, they allege that most programmers don't read programming-related books as a habit, or at least ...
200
votes
40answers
14k views

My Dad is impatient with the pace of my learning to program. What do I do? [closed]

So my Dad bought me 5 books on programming (C++, Java, PHP, Javascript, Android) about a month ago. He's an architect and he knows NOTHING about programming. He bought me them because I told him ...
21
votes
19answers
3k views

How would you explain multi threading to a seven year old kid?

If you have to explain the concept of multi-threading to a seven year old kid how would you do it? I recently got this question in an interview. I came up with a story using jobs (the task to be done) ...
66
votes
31answers
14k views

Why isn't software as reliable as a car? [closed]

I had a user ask me this question. We know that cars break down, but that's because of something physical (unless software is involved!). I tried to answer that software is a much younger industry, ...
80
votes
20answers
20k views

How do you handle your Project Manager

I currently work for a company that has recently downsized. I do all in-house work, client installs, builds, QA, and, well, basically all the in-house work. My direct boss is VERY nontechnical and ...
80
votes
20answers
20k views

How do you handle your Project Manager

I currently work for a company that has recently downsized. I do all in-house work, client installs, builds, QA, and, well, basically all the in-house work. My direct boss is VERY nontechnical and ...
36
votes
14answers
11k views

If you need more than 3 levels of indentation, you're screwed? [closed]

Per the Linux kernel coding style document: The answer to that is that if you need more than 3 levels of indentation, you're screwed anyway, and should fix your program. What can I deduce ...
11
votes
4answers
6k views

Which functional language is good for a beginner? [duplicate]

Possible Duplicate: Choosing a functional programming language I am a C++ programmer looking to learn a functional language as a hobby and out of sheer curiosity. I am not looking to be an ...
42
votes
3answers
27k views

What is the role of C++ today?

Currently I'm an IT student and I'm wondering what is still important in C++ today, what for is it used? I completed basic C++ course in my university but I can't imagine where can I use my knowledge ...
240
votes
17answers
75k views

Torvalds' quote about good programmer [closed]

Accidentally I've stumbled upon the following quote by Linus Torvalds: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." I've ...
16
votes
9answers
2k views

Teaching kids to program - how to teach syntax? [closed]

I've been spending this week teaching kids (11-18) to program. Teaching them the core concepts and the logic has been going fine, but I've noticed one snagging point for them all: syntax. I feel like ...
2
votes
0answers
163 views

What are the practical applications of nashorn [closed]

Oracle is putting a lot of effort into supporting Javascript on JVM. Rhino was quite capable as a JS engine, yet Oracle saw the need to create Nashorn and optimize it extensively to match V8's ...
78
votes
19answers
68k views

Is Perl still a useful, viable language? [closed]

I know it may have been asked before, but here goes nothing... Is Perl still something that would be considered useful? If someone was a new programmer (either completely new to programming or just a ...
-1
votes
1answer
66 views

What are arguments against using articles in method name? [closed]

I want to use articles in method names sometimes. Like some service method 'getStudentsOfATeacher()'. What are arguments against that?
51
votes
26answers
31k views

How can I improve my problem-solving ability?

Everyone says the same thing: "a real programmer knows how to handle real problems." But they forget how they learned this ability or where: it's not taught in schools. What can I do to improve my ...
39
votes
5answers
5k views

Why is CPU cache memory so fast?

What makes CPU cache memory so much faster than main memory? I can see some benefit in a tiered cache system. It makes sense that a smaller cache is faster to search. But there must be more to it.
62
votes
18answers
27k views

Why do people still say Java is slow? [closed]

For a long time in SO and in other places Java has the reputation of being slow. From jokes to many comments in questions and answers, people still believe Java is slow based solely on experience with ...
14
votes
5answers
889 views

Why isn't java used as a build language?

If Java is a general purpose language, and building a program is something that can be described using the Java language, why isn't this the best way to write build files and instead we use tools like ...
101
votes
64answers
13k views

What is the (craziest, stupidest, silliest) thing a client/boss asked you to do? [closed]

See title, but I am asking from a technical perspective, not Take my 40 year old virgin niece on a date or you're fired.
12
votes
7answers
4k views

Coming from QA, how can one land that first development job? [closed]

I have been in QA for 10 years, trying to get into development for about 5 of them. I have taken classes in C++, Java and C#. I was able to write some tools and unit tests in C# at my current job and ...
211
votes
16answers
34k views

Best Java book you have read so far [closed]

Which Java book do you think is the must-have one for all Java developers? Keep in mind: One book per answer Check for duplicates before adding new answers
74
votes
9answers
5k views

“Overtime is part of the job” true but a bad attitude? [closed]

My manager told me that working overtime is just part of the job and that I'm expected to work overtime. We're not paid overtime like most companies. I'm aware that most programmers put in 50-60+ ...