News for hackers. Stuff that matters.

ViktorasM

Re:API Security Checklist for developers on Sunday July 09, 2017 @03:04AM (#14728712)
Not a security topic, but POST is not necessarily "create" and PUT is not necessarily "update".
What a clickbait title. I'd welcome "free speech restriction" that forbids misleading titlea.
Re:Show HN: Generate a quiz from a Wikipedia page on Sunday February 19, 2017 @07:02AM (#13679306)
Neat and simple implementation. Consider docstrings for describing methods, this tends to integrate with IDEs a lot better than comments.
Re:Making Humans a Multiplanetary Species [video] on Tuesday September 27, 2016 @04:40PM (#12592971)
That might be true in this context, but otherwise a rather flawed generalization:)
Re:A bite of Python on Thursday September 08, 2016 @10:51AM (#12453519)
Not readable on a phone. How can any tech company afford this in 2016...
Re:Ask HN: What's your favorite way to save money? on Wednesday July 13, 2016 @08:07AM (#12085469)
congratulations to the only comment in the whole comments section that mentions kids or children.

like always, there's an XKCD for that: http://xkcd.com/946/

..and like someone mentioned their 200$ food budget, try spending twice that amount on kindergarden a month that your kid is not attending for now because he's home sick and you're spending extra on treatment.

When you've exhausted your saving options, making more is still the best option for saving money:) Simple math, if you spend 3000/month of your favourite currency, then you'll have twice more money by earning 4000 vs 3500.

so frustrating when the answer is obvious but where to click is not.

e.g. in "if a.length != a.length" the "correct" token is the first "a". Should really be anything in the whole expression.

Re:Guide to modern Object Pascal for programmers on Monday July 04, 2016 @02:02AM (#12029090)
Ah, the days when I typed "begin" and "end" at the speed of puting a curly brace.

Don't actually feeling the need to go back though. It's not about language properties anymore, but the library ecosystem. I hated when anything useful in Delphi was a C dll port. You're never a first class citizen.

Re:Simple Ways of Reducing the Cognitive Load in Code on Tuesday June 28, 2016 @09:55AM (#11993791)
Stopped reading at "Place models, views and controllers in their own folders". No worse way to organize your code than classify by behavior type. "Here are all the daos", "here is all business logic", "here are all the controllers". You add a feature as small as resource CRUD and scatter it's pieces across the whole code base.

No.

Re:Proposal: Go should have generics on Thursday April 14, 2016 @01:58AM (#11494581)
but having all those things go would become another C++ with a different syntax.

I like the direction Go is going of "there are no options to choose", like unconfigurable fmt, or the fact that there is no way to create "exotic" implementations.

However, generics would be my number #1 on the list of "maybe let's add that". Would be nice to have less "interface {}" in reusable libraries.

Exceptions would be probably second, but that would come with some sort of runtime cost. With them Go would start to drift towards "generic programming language".