Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:The rise of Javascript. (Score 1) 250

It uses the same symbol for addition and string concatenation, leading to the necessity of ugly hacks like parseInt() that could just as easily be done transparently if the two (conceptually dissimilar) operations had separate symbols.

IMHO, using the same symbol for string concatenation and addition is actually a fairly logical choice that many modern languages implement. The problem is that it allows you to concatenate a string and a number by just converting the number to a string. So 'blah' + 11 gives you 'blah11'. The problem, of course is that if you have input that you expect to be a number but is actually a string representation of a number you may not get what you are expecting ('1' + 1 = '11').

It forces you to pay attention to your data. I hate that. :)

Comment Re:Did your congressman do his duty? (Score 3, Informative) 422

Here is the official roll call, btw:

http://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=112&session=1&vote=00084

As noted, the name of the bill is completely unrelated because they took the unrelated bill and completely replaced it with the patriot act renewal. This is the type of practice that happens all the time. Running the congress app on my android has opened my eyes to the shenanigans that are pulled daily. Our government is a sham, folks.

Slashdot Top Deals

The question of whether computers can think is just like the question of whether submarines can swim. -- Edsger W. Dijkstra

Working...