Are type and scope prefixes worthwhile naming conventions?

Recently starting my first job as a software developer, I was a little thrown to be told that I did not have to follow any naming conventions in my code. Code written by groups working on other, larger projects followed naming conventions, but since I was brought in to write a new, stand-alone, application, the…

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 an “@” present, which is dead simply but of course not that reliable. a more complex regex test for standard e-mail formats a full…

How do you create a software process for a project?

As I’ve written about in other questions here, the project that I’m working on now has no software process. That means no documentation (including hard copy requirements or specification), no source control, no bug database, bugs are “fixed” (hopefully) and new code is added at the same time, and no formal testers – we would…

How to estimate the length of a programming task [closed]

4 Answers 4 This is an interesting question, one that I would definately like to follow due to my level of experience (or lack of!) For me, as a relative n00b, I tend to think about my task and break it down into the series of smallest tasks possible. This then allows me to get…

What is inversion of control, and when should I use it?

I am designing a new system and I want to know what inversion of control (IOC) is, and more importantly, when to use it. Does it have to be implemented with interfaces or can be done with classes? 4 Answers 4 IoC (see Inversion of Control on Wikipedia) is applicable in cases where a component…

Define “production-ready”

I have been curious about this for a while. What exactly is meant by “production-ready” or its variants? Most recently I was looking for information about sqlite and found this thread, where many people suggest sqlite isn’t ready for production. I know the difference between development/testing and production; my definition of production is anything that…

Is premature optimization really the root of all evil?

A colleague of mine today committed a class called ThreadLocalFormat, which basically moved instances of Java Format classes into a thread local, since they are not thread safe and “relatively expensive” to create. I wrote a quick test and calculated that I could create 200,000 instances a second, asked him was he creating that many,…