News for hackers. Stuff that matters.

jabbrwcky

Re:Tell HN: Wear a Helmet on Tuesday November 25, 2014 @03:37AM (#8656876)
A concussion perhaps? Normally not too serious, sometimes just monitored overnight in hospital or at home.
Re:Matz at RubyConf 2014: Will Ruby 3.0 Be Statically Typed? on Tuesday November 18, 2014 @10:51AM (#8624378)
In Go you define the methods in interfaces but implementors do not have to specify that they implement a given interface.

Instead any object (though Go has no real objects) is considered to be an implementation of an interface iff it implements all define methods.

Code may explain what your code is doing, not necessarily why it is doing what it does in the way it does.

Comments may be a code smell when it is necessary to explain what your code is doing.

Anywhere where you have some freedom to solve a problem one way or the other it may clarify why the implemented approach was chosen.

Re:But why can't I send people their passwords? on Wednesday June 25, 2014 @09:54AM (#7943839)
As the password should be stored as a hash anyway the actual length of the password does not matter as the hash length will be constant.

In the old days, if you stored the unencrypted password, it had to have a maximum length because somebody decided to make the db column 16 chars....

Same goes for charset limitations (e.g. try storing unicode characters in a database set to US-ASCII charset...) - with a hash your input does not matter - it is just a sequence of bytes that are hashed.

Lastly, the source of disallowing certain characters is the laziness of the implementers that couldn't be bothered to implement proper input encoding in their frontend

Re:We Should Ditch Nginx on Tuesday November 26, 2013 @04:32AM (#6800134)
If nginx has no features that set it off feom other servers you could simply switch to Apache which has the syslog feature. But for some reason you do not seem to do this, or am I mistaken?