I find myself repeating some mistakes over and over again. Some language-dependent, some not. Here are some of mine I could think of right away.
PHP:
Inside a class method, forgetting that I have to say "$self->some_method()" or "$self->some_attribute" instead of "some_method()" or "$some_attribute" to refer to my instance.
Having a d...
What are some common mistakes made by .NET developers, and how can we avoid them?
For example, trying to open a file without checking whether or not it exists, or catching an error unnecessarily.
Please look in to the list before posting new
Please justify your answer as well, if applicable and give examples.
...
Possible Duplicate:
What are the Ruby Gotchas a newbie should be warned about?
What are some common programming mistakes made by Ruby developers, and how can they be avoided?
For example, requiring a gem and forgetting to require 'rubygems'.
(Inspired by Common programming mistakes for .NET developers to avoid?)
...
Possible Duplicate:
Python 2.x gotchas and landmines
Today I was bitten again by mutable default arguments after many years. I usually don't use mutable default arguments unless needed, but I think with time I forgot about that. Today in the application I added tocElements=[] in a PDF generation function's argument list and n...
In the spirit of Common programming mistakes for .NET developers to avoid?, what are common mistakes PHP developers make?
Using == when === should be used is a common one. What are some others (preferably from your own experience)?
Community wiki'ed for complete satisfaction.
...
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?
...
In the spirit of
javascript
.net
What are the common mistakes we should avoid when programming in SQL?
...
What are some of the most common mistakes made by CSS-Designers?
...
In the spirit of my other questions regarding "common programming mistakes ... to avoid"
What are some common programming mistakes for a ColdFusion programmer to avoid?
...
In the spirit of
Common programming mistakes for .NET developers to avoid?
Common programming mistakes for PHP developers to avoid?
Common programming mistakes for JavaScript developers to avoid?
Common programming mistakes for Scala developers to avoid
what are common mistakes we should avoid for Java?
Example: use the == operator...
In the spirit of the other common mistakes in questions, what are the most common mistakes that Haskell programmers make? I've been teaching myself Haskell for a little while and I am starting to feel comfortable enough with the language to start applying it in the real world.
...
I am starting a project with jQuery.
What pitfalls/errors/misconceptions/abuses/misuses did you have in your jQuery project?
...
I'm thinking of learning Haskell, so I was wondering what issues are often ran into by Haskell newbies (especially ones which haven't had much experience with functional programming).
Any other kind of advice for a programmer new to Haskell would be very much appreciated as well.
...
In your experience, what do you see (or hear) as common misunderstandings about how things work in .Net?
I'm not thinking of common programming mistakes, such as
throw ex
to rethrow an exception, but rather common misconceptions about how the framework works such as:
the [Serializable] attribute is required for xml serialization, or...
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...
Our static analysis tool complains about a "useless type qualifier on return type" when we have prototypes in header files such as:
const int foo();
We defined it this way because the function is returning a constant that will never change, thinking that the API seemed clearer with const in place.
I feel like this is similar to expli...
Hi, i was wondering what the main things were to avoid when creating an webapplication that relies on heavy reads and writes every second.
Think of online gaming where money is involved.
For example you have an javascript that constantly updates the browser(1), There is a cronjob running that updates the db(2), There is user input subm...
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...
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?
...
In the spirit of
Common programming mistakes for Scala developers to avoid
and family.
What are the best practices and common mistakes to avoid when developing for the lift / liftweb framework?
More specifically, what are the issues that affect Lift development, as distinct from generic Scala development?
...