What is an ideal variable naming convention for loop variables?
If you are writing a simple little loop, what should you name the counter? Provide example loops! ...
If you are writing a simple little loop, what should you name the counter? Provide example loops! ...
In a not-so-small program, when you have not-so-few entities, in order to maintain code readability, common terms, and otherwise improve mutual understanding between team members, one have to define and maintain program vocabulary. How do you (or your company) deal with this task, what discipline do you have, what arrangements do you in...
Software engineering shares many of the same traits with other engineering disciplines (attention to detail, complexity to mastery). What do you think differentiates it? Please be specific and substantiate your answer. ...
Is it just me or is there an almost perfect correlation between the level of bondage-and-discipline a language inflicts and the verbosity of the language? Ada, Java, and Pascal are horribly verbose, and have the reputation as extreme bondage-and-discipline languages. On the other hand, Perl and to a lesser extent C are pretty terse and...
Hi, I just started using Git and I want to know if this is the right way of using it. I started a Rails app with: rails newapp Then I did: cd newapp git init git add . git commit -a So is it "right" to init my git inside my working directory? ...
This is slightly different question to What do Team Leaders do? I have worked on many different projects, working with a varying different team leaders/managers. Some were good and some were not so good. When not so good, I would always think, what would I do different? In my opinion a good team leader has the following traits :- ...
I have noticed that my self-discipline is very bad when it comes to getting up in the morning, eating regularly and working on fixed hours. When you have a job to go to, it is very different since you have fixed hours. You have a everyday routine. But when you start freelancing and you do it at home, you have so much more freedom. I fin...
Was: Design by contract: predict methods needed, discipline yourself and deal with code that comes to mind I like the idea of designing by contract a lot (at least, as far as I understand the principal). I believe it means you define intefaces first before you start implementing actual code, right? However, from my limited expe...
While reading a long series of really, really interesting threads, I've come to a realization: I don't think I really know C++. I know C, I know classes, I know inheritance, I know templates (& the STL) and I know exceptions. Not C++. To clarify, I've been writing "C++" for more than 5 years now. I know C, and I know that C and C++ s...