Holding mutable data in a single place
Given a mutable property, it generally makes sense to only hold/store that property in a single place. When the data needs to change you only need to update a single field, and you can completely avoid bugs where the different fields get out of sync.
Is initializing a char[] with a string literal bad practice?
I was reading a thread titled “strlen vs sizeof” on CodeGuru, and one of the replies states that “it’s anyways [sic] bad practice to initialie [sic] a char
array with a string literal.”
Unit testing markup building logic
I’m currently writing a library of helper functions to produce some repetitive markup. I have a reference to the markup the functions should produce, but I’m curious about how I should go about unit testing this?
Descriptive naming vs. 80 character lines [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Replacement for instanceof Java?
So I’m fairly new to programming in the real world (outside of academic projects) and have come across lots of posts saying that using instanceof
is a bad thing to use to determine what class a specific object is.
What *are* the programming concepts I should master to have a deep understanding of my craft (programming)? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
POST/Redirect/GET with invalid form submission?
In the field of web development, is it good practice to do a POST/Redirect/GET when fields in a form submission are invalid, as well?
Why should we use externalized property files for an application?
I am currently working on a rails project and have a requirement where I want to be able to map a country name’s initial letters to its ISD code. eg: IND => 91, USA => 1, etc.
Renaming long named method in C# [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Need some advice and feedback on my code’s design
I am looking for feedback on the design of my program.