I was wondering what some of the biggest programming mistakes people have made involving mass mailing, spamming, testing or email coding in general were.
(I've posted mine below...)
...
What is your worst WTF moment, and what can we learn from that mistake?
...
I've spent the past day or so designing a set of classes to parse in some events from a telephony system and then log them to a database. Having created 5 of the dozen classes I figured I'd need to parse the event parameters into a hashtable figure out what the event was and create an insert statement. (A base class and interface for the...
I have done a few silly things in my time as a developer and have therefore learnt the hard way in some respects. Here are a few examples:
Missing out the WHERE clause in a DELETE tableName sql statement.
No error handling in an application that was using files & db connections.
Releasing an application without testing (a...
More specifically, what types of mistakes do you most commonly see in code from really green (inexperienced, not the Al Gore kind) programmers?
...
What would you say are the most significant mistakes made by a typical project manager?
By "most significant", I mean with a large negative impact on the project. And the context is line-of-business projects, where software isn't the main product of the organization.
For each mistake you discuss, it would be great if you could note the...
I am an intermediate C programmer. If you have made any coding mistake that you came to know later that it was the most hazardous / harmful to the total application please share that code or description. I want to know this because in future I may come across such situations and I want to have your advice to avoid such mistakes.
...
On occasion I've heard people discuss the benefits of keeping track of programming mistakes, if for no other reason than it increases awareness of common errors. I've started to keep a list of bugs that I find in my code, along with what could have led to them. The main question I have is this:
What information related to my mistakes...
There are the obvious wtfs that make the headlines such as SQL injection, authentication in JavaScript but are there other more fundamental and common errors programmmers tend to make when writing applications without considering security?
...
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?)
...
There is a similar question about Ruby in general but I am soon to be starting out using Ruby on Rails to develop a website or two.
What are the common pitfalls/gotchas that are specific to Rails.
...
Report released today on the "top 25" most dangerous programming mistakes. I'm interested to see if any here agree or can spot any glaring omissions (or outdated inclusions).
Also, in your opinion which modern dev tools/frameworks are improving (or worsening) these flaws for things like authorization, SQL injection, or code injection?
...
What are the common misuse of using STL containers with iterators?
...
Why didn't the designers of SQL require a keyword (e.g. "All") for any Update or Delete statements that don't have a Where clause? Was it just an oversight on their part? They would have saved so much grief (not to mention jobs!) if they had done that!
...
Duplicate: What is the most frequent concurrency problem you’ve encountered in Java?
I've been thinking of list of common programming mistakes/pitfalls that causes the code in Java is not thread safe. Here are the common ones that I encountered in the code through the recent years of Java development.
Using non-static fields within ...
Not to name names, but for example, every pageview on all of Woot's forum pages (across four subdomains) returns a hidden __VIEWSTATE value that is about 54KB big.
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIxMDUyNjY3MjAPZBYCZg9kFgJmD2QWAmYPZBYEAgEPZBYCAgEPFQERLi4vQmxvZy9GZWVkLmFzaHh
kAgMPFgIeBWNsYXNzBQljb...
consider the following file (db-com.php):
If you wish You may skip to the question below it directly while reading it in parallel.
echo "entered db-com.php";
class DBCom {
/**
* @var string Holds the query string.
* If the blank constructor is used, make sure to use the parametrized functions.
*/
var $queryStrin...
I'm trying to store the user's ID in the session using django.contrib.auth.login . But it is not working not as expected.
I'm getting error login() takes exactly 1 argument (2 given)
With login(user) I'm getting AttributeError at /login/ User' object has no attribute 'method'
I'm using slightly modifyed example form http://docs.django...