Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nercury
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
151.
▲
by
nercury
12y ago
For someone who knows C#, I would explain them as abstract extension methods that can be overriden for specific types.
152.
▲
by
nercury
12y ago
To be fair, there were _some_ languages and frameworks which did not have generics on the 1.0 release. It is a bit strange to assert that a new language should.
153.
▲
by
nercury
12y ago
You can read up here: http://doc.rust-lang.org/book/generics.html , as well about "output" generics here: https://github.com/rust-lang/rfcs/blob/master/text/0195-asso..
154.
▲
by
nercury
12y ago
If you want to see real delight in your work, do it for someone who needs it! They are usually not your co-workers :)
155.
▲
by
nercury
12y ago
DRM is a placebo against technology.
156.
▲
by
nercury
12y ago
For some reason, I immediately pictured a product rewrite gone wrong and causing two versions of the same product appear, because the new one can never catch up to the legacy quirks of first.
157.
▲
by
nercury
12y ago
It can also be described as two different story-tellers in your brain: one is concerned about present, but the other one sees the long-term story. Invoking a long-term storyteller shifts motivational focus away from "I am not in the ri
158.
▲
by
nercury
12y ago
In imperative programming, your code can execute in two states, valid and not-valid. You start in valid state, then any validation failure returns you to non-valid state and you remain there. Pretty much the core of any validation technique
159.
▲
by
nercury
12y ago
"The purpose of class is to minimize complexity" "The purpose of class is to organize code" "A class should have one, and only one, reason to change" What? What about: "The purpose of class is to encapsul
160.
▲
by
nercury
13y ago
Turing-complete config files do not sound like proper config files :)
161.
▲
by
nercury
13y ago
Putin's last name is Vladimir which means literally "rule the world". His fear of any kind of opposition.
162.
▲
by
nercury
13y ago
I don't usually swear, but fuck this shit. I was following Oculus VR development and now it goes to my ignore list. It is no longer cool. Yes, just because it has "Facebook" name attached to it. It is now Facebook VR, which s
163.
▲
by
nercury
13y ago
Some ORMs do a decent job generating a correct sequence of DB queries for quite complex schema changes, including relationship changes. However, the process is a bit more manual than you might think. For example, to change from 1-n to n-n y
164.
▲
by
nercury
13y ago
Solved by Doctrine2 project way ago. Using a much better timestamp versioning. I actually miss its schema diff and migration tools when I go back to such languages like C# or C++...
165.
▲
by
nercury
13y ago
It is a SEO booster for that company, but don't tell anyone.
166.
▲
by
nercury
13y ago
While other sensible language interpreters have a feature like byte-code caching built-in in them, PHP for quite a while did not, because someone was monetizing a proprietary cache add-on named ZendOptimizerPlus! They released it as part of
167.
▲
by
nercury
13y ago
Entertaining one. Should not be downvoted. :D
168.
▲
by
nercury
13y ago
Are we speculating? They are going to announce their floating things another Nation. Think about it: no taxes, no patent laws, no NSA crap.
169.
▲
by
nercury
13y ago
It would make a good data sample for comparing user ID photos with actual tagged photos.
170.
▲
by
nercury
13y ago
Simple, do rely only on Facebook, be ready to ditch it at any moment.
171.
▲
by
nercury
13y ago
I am sorry to be negative, but have the author heard about tools such as composer..? Or Symfony?
172.
▲
by
nercury
13y ago
Ok, good info, I might try it. What I know for sure, CMake is not very adequate for separating work into different small, independant parts (somewhat "declarative" attept in CMake here: https://github.com/key-tools
173.
▲
by
nercury
13y ago
How hard it would be to add Windows support? EDIT: Just a question, not a request.
174.
▲
by
nercury
13y ago
To expand on that, I was thinking about some standartization of sources (BUILD file in this case), standartize the way build tools could be plugged in, and also standartize the build outputs, so that they can be correctly included AND linke
175.
▲
by
nercury
13y ago
This looks great! May be a reason for me to ditch CMake, but I kind of need Windows support :/. Is it much work to add? I wish someone made a similar way to share libraries like we can do in PHP ( https://packagist.org ) or R
176.
▲
by
nercury
13y ago
I have started working on a library to simplify exposing C++ classes to various languages that can be "embeded". A link to the second attempt [1], my current attempt is to expose things to V8 Javascript [2] It is cool because in
177.
▲
by
nercury
13y ago
I am a big supporter of building applications in consistent way, and the big part of that is being able to code components which do not know anything about the presentation layer. Building these components on hypertext preprocessor is exa
178.
▲
by
nercury
13y ago
"Slap a script on a server and have it run". And then watch it grow over the years into unmaintainable mess :)
179.
▲
by
nercury
13y ago
I am PHP developer, but that first "Overview" example looks all sorts of wrong to me. I know this is just an example, but programming without view/controller separation, view models, writing queries inside views, mixing busin
180.
▲
by
nercury
13y ago
I liked F#. Even build a web request handler using it :) However I kind of don't trust Microsoft to keep supporting this side project... Remember FoxPro?
More ›