mistakes

Common programming mistakes for JavaScript developers to avoid?

In the spirit of Common programming mistakes for .NET developers to avoid?, Common programming mistakes for PHP developers to avoid? what are common mistakes we should avoid for JavaScript? ...

Query strange behaviour. Google App Engine datastore.

I have a model like this: class Group(db.Model): name = db.StringProperty() description = db.TextProperty() Sometimes when executing queries like: groups = Group.all().order("name").fetch(20) or groups = Group.all() I'm getting error massages like this: Traceback (most recent call last): File "/opt/google_appengine/google/a...

Common programming mistakes for Scala developers to avoid

In the spirit of Common programming mistakes for Java developers to avoid? Common programming mistakes for JavaScript developers to avoid? Common programming mistakes for .NET developers to avoid? Common programming mistakes for Haskell developers to avoid? Common programming mistakes for Python developers to avoid? Common Programm...

How do you correct repetitive typing mistakes?

I find myself making repetitive mistakes typing keywords and sentences in my code comments. I notice its getting worse since my fingers just keep "practicing" incorrect words. Is there any solution to this? Like a typing tutor designed to help correct repetitive mistakes? ...

How can I delete Perforce changelist items erroneously marked as in conflict?

I have a couple of .refresh files that have somehow found their way into my perforce default pending changelist and from there somehow started showing as being in conflict with their depot counterparts. They are un diffable, unresolvable, I have excluded the files from being compared using the instructions on the perforce website and ye...

Most regrettable design or programming decision you made?

I would like to hear what kind of design decisions you took and how did they backfire. Because of a bad design decision, I ended up having to support that bad decision forever (I also had a part in it). This made me realize that one single design mistake can haunt you forever. I want to learn from the more experienced people what kind of...

Common programming mistakes for Clojure developers to avoid

Following a masterful trend: Common programming mistakes for Scala developers to avoid? Common programming mistakes for Java developers to avoid? Common programming mistakes for JavaScript developers to avoid? Common programming mistakes for .NET developers to avoid? Common programming mistakes for Haskell developers to avoid? Common p...

Common mistakes with Boost

I'm already experienced with C++ (C, OOP, the STL, et al.), and I'm looking to start delving into the Boost libraries. What are some common mishaps you've seen? Pitfalls you've been snagged by? Things you wish someone would have told you or pointed out? ...

Worst practices in Django you have ever seen

What are the worst mistakes made using Django framework, that you have noticed? Have you seen some real misuses, that maybe should go as warnings to the Django docs? ...

What is the most painful development related mistake you have done and what you have learned?

What is the most painful programming mistake you have done and what lesson you have learn after? I guess mine was making a release to production on the development code which was not tested yet. The lesson-learned: Delete any projects that can trigger a release on the live application from CCTray. I only add them when a relea...

What to do when you've really screwed up the design of a distributed system?

Related question: What is the most efficient way to break up a centralised database? I'm going to try and make this question fairly general so it will benefit others. About 3 years ago, I implemented an integrated CRM and website. Because I wanted to impress the customer, I implemented the cheapest architecture I could think of, wh...

Most common or vicious mistakes in C# development for experienced C++ programmers

What are the most common or vicious mistakes when experienced C++ programmers develop in C#? ...

how to validate html code

i want to check the mistake of our html code. are you suggest me some method in firefox to improve mark up code and solve old code mistake. How to edit the html. who give me error list node by node like a ul is missing etc. ...

What are the most common causes of errors in javascript and how to fix them?

Possible Duplicate: Common programming mistakes for JavaScript developers to avoid? This is kind of a subjective question, but I am hoping the well-tenured programmers might know of solutions. I have noticed now predominately in javascript, or any .js file that causes an error can halt further js from running. This could be a...

Helping new or inexperienced programmers overcome common mistakes

Possible Duplicate: How to help a struggling newbie do a better job? What is the best way you have found for helping a new or inexperienced programmers overcome common mistakes? ...

Whats wrong with these beginner style codes?

I'm a beginner and I was reading http://stackoverflow.com/questions/237241/what-coding-mistakes-are-a-telltale-giveaway-of-an-inexperienced-programmer. I didn't get few things. 1.Why writing something like this is frowned up on? if (IsAManMan == true) { Console.WriteLine("It's a MAN, man!"); } 2.what about this? if (test) { r...

UML/RUP and non OO applications

At my current job, we are currently implementing UML and RUP for the day by day coding and designing... The current structure have 2% of all code (100000+ lines) object oriented... So they have this issue, when a developer have this new "case" (ir, requirement, etc) they must complete all the documentation and analysis to that old thing...

What is the biggest mistake you have made as a programmer and what did you learn from it?

We all make mistakes, but some have bigger consequences than others. I'm interested in hearing about the biggest doozies all the smart programmers here have made in the past and how what they learned from it helped them to become a better programmer. Mine: I was developing a website which allowed users to post comments (that were mode...

MySQL syntax error in SELECT query

My code: $fileid = $_GET['imgid']; $fileid = (int)$fileid; //id is int type in photos table require 'database.php'; //get the image sourc name $q = "SELECT src form photos WHERE id='$fileid'"; $result = $mysqli->query($q) or die(mysqli_error($mysqli)); if ($result) { $row = $result->fetch_object(); $filename = $row->src; ...

Why isn't this compiling?

I'v created this class here: //Integer rectangle class class AguiRectangle { int x; int y; int width; int height; public: bool isEmpty { return x == 0 && y == 0 && width == 0 && height == 0; } int getTop() { return x; } int getLeft() { return y; } int ge...