Everything is a String!
I need to figure out a way to add a new line of questioning to my candidate interview process.
Programmers that make everything a String (in a typed language) really are missing something fundamental and are just going to be an overall waste of time.
Here is sort of a double whammy example:
if( val.equals("1") ) {
}else {
}
Not only are we using a String, where an int would be better, but we are using an int where a boolean would be better.
In some cases I can tolerate using an int (perhaps we are creating a model and everything needs to be a number), but Strings man.. Fucking Strings Everywhere!
Programmers that make everything a String (in a typed language) really are missing something fundamental and are just going to be an overall waste of time.
Here is sort of a double whammy example:
if( val.equals("1") ) {
}else {
}
Not only are we using a String, where an int would be better, but we are using an int where a boolean would be better.
In some cases I can tolerate using an int (perhaps we are creating a model and everything needs to be a number), but Strings man.. Fucking Strings Everywhere!
0 Comments:
Post a Comment
<< Home