I've been programming since college, was a hobbyist programmer as a kid, but never got serious until I was a freshman. That was almost a decade and a half ago. One thing I've noticed is that when people reach a certain point in their skills they never really move beyond that. That is if they suck as a developer when you hire them, they w...
What are some of the best reference material for secure coding in the ASP.NET and classic ASP environments? I'm sure there are a ton of books out there but which ones are the best for this? If anyone has pointers to online resources also, that would be appreciated.
...
Here's a coding problem for those that like this kind of thing. Let's see your implementations (in your language of choice, of course) of a function which returns a human readable String representation of a specified Integer. For example:
humanReadable(1) returns "one".
humanReadable(53) returns "fifty-three".
humanReadable(723603) ret...
I am running a series of workshops for colleagues cross training to C#. The theory content is fine, but I am finding it hard to come up with interesting exercises for them to do.
Anyone have an ideas or links to exercies that are simple enough for noobs, but interesting enough to keep their interest?
...
I usually comment "ifs" and write in "human language" what it means, like "checks if it's A or B".
I find it's better for junior programmers that read the code to read what it means first and then analyse the statement (also for me when I'm checking old code)
What do you do? What about other scenarios? Pros? Cons?
...
Where can I go to get a good Drupal + SugerCRN developer?
...
Sometimes one hour is like one minute. It scares me.
How do I remind myself to take breaks while coding?
...
I think mine would be the "Getting Real" concept by 37Signals.com
Basically this is based largely on the same-old-same-old KISS principle, but that simply proves how valid this principle is in many working environments and certainly in IT. I still benefit from this basic principle in my day-to-day programming.
What was your "eye opener...
I usually find that after a couple of hours "in the zone", I need to take a break, get some fresh air and get a new perspective. Often, these breaks allow me to generate a solution to some stumbling block that was preventing progress. If, instead, I continue to pound at the code, I start to get sloppy, make mistakes and get more and mo...
When retrieving a lookup code value from a table, some folks do this...
Dim dtLookupCode As New LookupCodeDataTable()
Dim taLookupCode AS New LookupCodeTableAdapter()
Dim strDescription As String
dtLookupCode = taLookupCode.GetDataByCodeAndValue("EmpStatus", "FULL")
strDescription = dtLookupCode.Item(0).Meaning
...however, I've also ...
Do you use a code profiler? if so, Why? What's your favorite? If not, is there a particular reason you don't?
...
Do you like to code using an IDE (like Eclipse or Visual Studio), or you prefer simply a text editor (like Vim) ?
I heard strong arguments against IDE's (specially from dynamic language programmers) but I really love Eclipse.
Which type do you prefer? Why? If it depends on the language please say so.
Thanks
...
What are your preferred size-coding (competitions for the smallest program that does something, or for the smallest source code) oriented sites?
There was a really nice python site, I can't remember where it is.
Hugi size-coding compo comes to my mind and it's also nice.
...
Either due to lack of knowledge, fear, or first-hand experience (getting burned) and saying "You know what, just because it's in the language, you don't have to use it."
Quoting Chris Rock: "You can drive a car with your feet, but that doesn't mean it's to be done!"
What's the C++ equivalent of driving a car with your feet?
...
I recently found this article about how some guy managed to write a super mario game in just 14k of javascript code. Ok, it's not a full game, it's not even a full level, but still - 14k of javascript, without any external graphics files... I, for one, congratulate the person that managed to do that..
Then I found this article about Wolf...
I have a WinForms app with an input textbox, button, and a multiline output textbox.
A root path is entered in the textbox. Button click calls a function to recursively check all subdirectories for some proper directory naming validation check.
The results are output into the multiline textbox.
If the recursive work is done in a separ...
I'm a web developer with no formal computing background behind me, I've been writing code now some years now, but every time I need to create a new class / function / variable, I spend about two minutes just deciding on a name and then how to type it.
For instance, if I write a function to sum up a bunch of numbers. Should I call it
Su...
As best-behaved as I try to be about keeping my unit tests disconnected from the database, etc. etc, it still seems inevitable that my day will be interrupted by small regular enforced breaks while I wait for my machine to do something boring.
I personally find swordfighting makes me lose my train of thought. I'm often 'in the zone' w...
Most programming houses / managers i know of can only define quality in terms of the no of bugs made / resolved in retrospect.
However most good programmers can innately sense quality once they start meddling with the code.(right?)
Has any programming houses that you know of, successfully translated this information into metrics that...
At work, I'm frequently working on projects where numerous properties of certain objects have to be set during their construction or early during their lifetime. For the sake of convenience and readability, I often use the With statement to set these properties. I find that
With Me.Elements
.PropertyA = True
.PropertyB = "Inacti...