GrandmasterB
  • Member for 11 years, 4 months
  • Last seen this week
How to avoid comments about one line of code for cleanliness
190 votes

and read that comments are almost always a bad idea for future maintainability And now you are reading that the above is total and absolute BULL____. Use comments. Put in as many as you think are ...

View answer
Why isn't software as reliable as a car?
182 votes

The premise of your question is simply incorrect: Software isn't "less reliable" than a car. There are billions upon billions of devices out there that run embedded software 24x7, for years on end, ...

View answer
Is it good practice to always have an autoincrement integer primary key?
Accepted answer
150 votes

It's never a bad idea to have a guaranteed unique row identifier. I guess I shouldn't say never – but let's go with the overwhelming majority of the time it's a good idea. Theoretical ...

View answer
Advice on designing web application with a 40+ year lifetime
Accepted answer
133 votes

Data is King I think its a bit unreasonable to expect a web application circa 2013 to be still up and runnable in 2053. Technologies are going to change. Platforms are going to come and go. HTML ...

View answer
Am I a bad programmer, or does everyone have this feeling?
78 votes

You will never, ever, ever, ever, ever, in the entirety of your career, be in a position where you immediately understand every programming technology simply by looking at it. There's just too much ...

View answer
How to manage a Closed Source High-Risk Project?
74 votes

If these programmers can write the software in the first place, then... THEY DON'T NEED TO STEAL IT. They can just simply rewrite it in a fraction of the time it took to originally develop it. Yes, ...

View answer
Is it reasonable to expect that a senior developer knows what OOP design patterns are?
73 votes

Chances are they do know them. They just may not know them as 'design patterns'; ie, they may not be familiar with the academic terminology for such things. What you view as a 'state machine' might ...

View answer
What are the steps in beginning a large project, when all I have is a big idea?
66 votes

Forget coding and setting up a development environment for a moment. If you want to embark on a big project, the first thing you need to do is get a handle on the purpose and scope of the project. ...

View answer
What to do when a client has unrealistic expectations?
Accepted answer
65 votes

This is a failure of your manager. You, as a contractor, should not have been placed into a situation with such a tight deadline by your company without a firm set of requirements up front, in ...

View answer
How do you stay motivated for hobby projects?
Accepted answer
58 votes

One tip - make sure your hobby project has nothing to do whatsoever with your day job. If you use C++ at work, use something else in your hobby projects. This will help you avoid some of the burnout ...

View answer
Is it a common practice to minimize JavaScript usage when building a website?
51 votes

It's the instinct of most programmers to reduce all sorts of code. The less code, the fewer complexities, and the fewer points of possible error in said code. This rule applies to Javascript just as ...

View answer
Why do programmers still use mailing lists?
46 votes

The Real Edge (tm) that mailing lists have is with less busy projects. In order for a web based forum to be successful, it needs a core of people constantly present who can respond to questions, ...

View answer
Make a big deal out of == true?
44 votes

I think that, if something so trivial is your biggest problem with your co-workers, you should consider yourself pretty lucky.

View answer
Do we still have a case against the goto statement?
38 votes

Gotos are not the problem. They never were. The problem is programmers who use gotos in such a way that it makes code extremely difficult to follow, and possibly places code into an indeterminate ...

View answer
How essential is it to make a service layer?
37 votes

Adding a service layer because you have evaluated the idea and concluded its the best approach: good Adding a service layer because that's what all the cool kids are doing: bad If your gut says you ...

View answer
Is it ever okay to use lists in a relational database?
35 votes

You're asking two questions here. First, you ask if its ok to store lists serialized in a column. Yes, its fine. If your project calls for it. An example might be product ingredients for a catalog ...

View answer
Do You Still Need Indexing After Database Normalization
Accepted answer
35 votes

Yes. In fact, you very well may need to pay more attention to your indexes. Normalization is about optimal storage. That's often at odds with retrieval speed, as more complex queries with ...

View answer
When is it okay to ship a product with a known bug?
33 votes

Its a judgement call. Remember, a bug can be many things. If its a major piece of functionality thats flat out not working, then you fix it first. If its something minor that has minimal or no real ...

View answer
My father is a doctor. He is insisting on writing a database to store non-critical patient information, with no programming background
32 votes

A hacked together solution isn't always bad. If it's solving his problem, I wouldn't make too much of a stink over it. There's probably 10 working hacked together solutions in File Maker and Access ...

View answer
Hiring programmers for small companies?
31 votes

You need to think outside the cubicle. Take advantage of your flexibility. If you want to hire a top talent programmer, but can't pay a full salary... hire a part-time, top talent programmer. You'd ...

View answer
Which things instantly ring alarm bells when looking at code?
30 votes

The one I notice immediately is the frequency of deeply nested code blocks (if's, while's, etc). If code is frequently going more than two or three levels deep, thats a sign of a design/logic problem....

View answer
How to protect software from being deleted by antivirus?
29 votes

There's no magic cure unfortunately. False positives by anti-virus software have been a problem for commercial publishers for a long time. It is very common, especially for smaller publishers. The ...

View answer
How is"cloud computing"different from "client-server"?
Accepted answer
29 votes

Strictly speaking, there is no 'Cloud'. Not in the sense of what that CEO was spouting. There's an Internet, of course. There's hosted services. There's VPS's. There's content delivery systems. ...

View answer
Is programming as a profession in a race to the bottom?
29 votes

You summarize the situation correctly, but completely misinterpret the meaning. As software becomes more powerful, the tasks it takes on scale with it. So sure, it may not be necessary nowadays to ...

View answer
Earning extra cash as a programmer
29 votes

Try creating a simple commercial product. Whats good about doing this is that if you can generate some sales for it, you can end up with a product that generates continuous (if small) revenue, ...

View answer
Is it reasonable to insist on reproducing every defect before diagnosing and fixing it?
28 votes

Ideally, you want to be able to reproduce each bug so that, at the very least, you can test that it's been fixed. But... That may not always be feasible or even physically possible. Especially with '...

View answer
How do I manage a very large set of rules and magic numbers in my program?
Accepted answer
26 votes

Based on what you describe, you're probably going to want to explore the wonderful world of databases. It sounds like many of the magic numbers you describe - particularly if they are part dependent -...

View answer
Is it a bad practice to give two very different files with the same general purpose the same name?
22 votes

Just as a practical matter, if your IDE shows file names in tabs, if you use the same name for each file, you'll end up with tabs that all show the same name. That can be very annoying. One project I ...

View answer
What is the best "bucket-fill" algorithm?
Accepted answer
21 votes

It sounds like you're actually looking for whats called a Flood Fill algorithm. That may be why you havent found tons of examples for it. There's several Flood Fill methods listed on the Wikipedia ...

View answer
Is it appropriate in a developer's job description to have "error free" as a key output?
Accepted answer
21 votes

"Error Free" is far too subjective. One man's "Unfufilled feature request" is another man's "Error". Something like "Should substantially meet design specs" would be more appropriate. I've never ...

View answer
1
2 3 4 5
17