Would it be better to have extra checks, or would it be a waste of time? [duplicate]
This question already has answers here: Check First vs Exception Handling? (9 answers) Closed 9 years ago. In your opinion, do you think it is a waste of time to make checks that you know there is no possible way of it being there/not being there, or would you just put it there just in […]
Custom error handling
I’m trying to figure out the best way to handle custom errors in my application.
How to create view models – Constructor, Factory Method, …?
I’m trying to lead a charge for re factoring our rather bloated controllers.
We currently have a BaseModel from which all our other models inherit. The BaseModel contains things common to all pages, such as the page title, css files needed, current user.
What are the differences between algorithms using data structures and algorithms using databases?
The General Question What are the differences between algorithms using data structures and algorithms using databases? Some Context This is a question that has been bugging me for some time, and I have not been able to come up with a convincing answer for it. Currently, I am working on strengthening my understanding of algorithms […]
Should the methods of a class call its own getters and setters?
Where I work I see lots of classes that do things like this:
Is every number in the code considered a “magic number”?
So every number in the code that we are sending to a method as an argument is considered as a Magic Number?
To me, it shouldn’t. I think if some number is let’s say it is for minimum length of user name and we start using “6” in the code…then yeah we have a maintenance problem and here “6” is a magic number….but if we are calling a method that one of its arguments accept an integer for example as the ith member of a collection and then we pass “0” to that method call, in this case I don’t see that “0” as a magic number.
What do you think?
Does the use of personas in Agile have any value during implementation?
This is about the use of personas, primarily in the agile development realm.
How to handle the input file provided in programming contests?
In programming contests like Google CodeJam, Facebook Hacker Cup, each question is provided with an input file for testing one’s code for that program. I get struck at this point only.
Can I ask the job interviewer to show me their code before joining the company? [duplicate]
Possible Duplicate:
Asking for a code sample of the company at an interview
serving static or dynamic web-content based on user group
I need help understanding a problem I have, and that others surely have had as well.