@joe_bruin said:
seems that MSDN is currently in its own WTF state at this moment
That's a design feature.
@joe_bruin said:
seems that MSDN is currently in its own WTF state at this moment
That's a design feature.
You're right progguy
current = ToInteger(new_pin.substring(index, index));
is just going to return the charAt(index) and then turn it into an int.
I guess if the original scope was the algorithm handled pins of larger num of digits, then maybe I can understand why you would do it with the for-loop....but not if the constraint was always going to be 4 digit.
Just because I'm wondering now, how would the rest of you done it?
Personally, I would have just had a lookup table or a local hash and pulled a:
[code]if (badPins.contains(newPin)) {
//dont use this pin
}[/code]
@ammoQ said:
To be fair, some really stupid database systems require column names to be unique over all tables.
Oh I know, but it still give me pain.
@Pap said:
We have a "temporary" database at work where all the tables are prefixed by "tbl_". Drives me friggin nuts.
I feel your pain.
I also hate when each column name begins with the table name. Ex: Table name is "people". Columns are people_lastname, people_firstname, people_dob, people_ssn, etc.
If its a static svg, you could always screen shot it.
@Lothy said:
he likes being able to use one variable for multiple things and that creating multiple variables of correct types just takes up too much memory... WTF.
I think my eyes are bleeding.
I know what you mean about the identifier names, but you have no room to complain until you've seen files worth of:
[code]void doProc(param1, param2, param3, param4, param5, param6, param7, param8)[/code]
[code]void handleMsg(param1, param2, param3, param4, param5, param6, param7, param8)[/code]
do you have any idea what kind of torture trying to debug functions with all the variables in it "paramX"?
I feel your pain though. I was once told (on a c++ proj I was on) that I should use for-loops over while-loops because they're way faster. I just nodded my head and used while-loops where I wanted to used whiles and for-loops where I wanted fors.
Short answer, if you just started, let him do it his way, but still do what you think is right. That place is paying you to do the job best you can, so don't compromise.
I agree with masklinn that using a custom container shouldn't be needed unless you're trying to use a data structure that isn't already provided in java (like maybe a B-Tree for example).
The problem I see is that your container.wait is inside your synchronized block. Is this just supposed to be like a Thread.sleep? Where the producer is just waiting until the consumer is done? If so, you don't want to do it that way. If the producer is synced on the container while is waiting, then the consumer cant sync on it.
The cheap and easy way (maybe not the best) would be to just put a if (container.isEmpty()) before the sync block. That way it never locks on the container if its already full.
I guess I need to figure out these tags things on here.
@iAmNotACantalope said:
@Hellz99 said:@tster said:Really smart people tend to behave differently and strangely at times. Startups tend to get a lot of really smart people.
There's this old strange crazy guy that bags my groceries....i don't think he's really all that smart.
I'm wondering where you're getting the basis for your thesis.
Gah! I've read this comment a lot lately. Some people really need to learn the difference between an implies (=>) statement and an if and only if statement (<==>).
(smart => strange at times) is not the same as (strange at times => smart)
Now, (smart <==> strange at times) would imply both of the above statements, but nobody said that!
Example: ( You are reading this site on your computer => your display is on ) however, ( your display is on =!=> you are reading this site ).
It's the basis of all math, logic, computer science, and common sense!
* here's hoping the angle brackets show up....
The key here is the word "tends". tends != implies
You're meager assumption could hold water (a few drops) if a different choice of words would have been used.
So boys and girls, the lesson here really is: You can have the all the logic/math/sense in the world, but if you fail in reading/understanding the definition....all is lost.
Good post though. I got a chuckle for a few seconds.
@tster said:
Really smart people tend to behave differently and strangely at times. Startups tend to get a lot of really smart people.
There's this old strange crazy guy that bags my groceries....i don't think he's really all that smart.
I'm wondering where you're getting the basis for your thesis.