News for hackers. Stuff that matters.

pillbug88

Re:Why the NFL bans iPads (and other technology) on Sunday February 19, 2012 @11:37PM (#3611318)
It's to lessen the potential impact of a breach. a) you have a chance to recover from a hack in that two hours, b) it can reduce the speed with which leaked data gets to the opposition, and c) it reduces the likelihood of a hack getting valuable data.

And these are just a few reasons I can think of. There's nothing but benefits to this policy and very small negatives.

It's analogous to filling the moat before a battle. It's just a defense intended to slow an enemy. Try to remember that these guys are some seriously strategic thinkers, they're not morons and they're not technophobes.

Re:Never create Ruby strings longer than 23 characters on Wednesday January 04, 2012 @07:20PM (#3426648)
isn't that the definition of the small string optimization?

This is how the dinkumware implementation of std::string has behaved for years. The basic form of the structure is a buffer and a pointer. If the pointer is filled in, it points to a heap string and follows cow semantics. Otherwise, the buffer is used, accomplishing the small string optimization.

I suppose I should have elaborated more. It just feels like the OP is "discovering" the wheel.

Re:Never create Ruby strings longer than 23 characters on Wednesday January 04, 2012 @03:43PM (#3425821)
Isn't this just the small string optimization with copy on write?
It's funny cos before Obama was elected I told my friends that under this administration the internet would become regulated.

This is in stark contrast to the laissez-faire approach the Bush administration took towards the internet.

You can argue whatever else you want about him, but it is undeniable that more legislation regarding the internet has passed under the current administration than under Bush -- he even fought off the UN's (read: china/russia) attempt at taking over ICANN.

Re: Understanding lvalues and rvalues in C and C++ on Thursday December 15, 2011 @02:35PM (#3357556)
I find the standard to be very clear and concise regarding lvalue/xvalue/prvalue [2011 3.10.1].

I wonder if teaching from the standard is a better way of approaching this, ie: start with the standard, then just explain what it means.

Re:Vim: revisited on Monday December 12, 2011 @05:24AM (#3343066)
"vim has two main modes, normal mode ... and the insert mode"

i stopped reading here because i knew what was coming next. the omen was fulfilled by the next line:

"in insert mode, now you type text as your normally would. Pressing <Esc> exits back to normal mode."

its command mode vs insert mode. any vi user should know that.. it's the very first thing vi bludgeons you with.