Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jeremiep
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
jeremiep
11y ago
To me the article was more about the anti-pattern of having self-validating objects than trying to show where it can end badly. I now use only plain data (scalars, sequences and mappings) to represent data. The validation can be implemented
332.
▲
by
jeremiep
11y ago
I had the same reaction, "why didn't he abstract away the dependencies in a third library?"
333.
▲
by
jeremiep
11y ago
I wasn't aware of the distinction between templates and macros in Nim, it does indeed sound powerful. I'm also glad to see Nim having purity, its incredibly hard to go back once you've tasted it! The Emacs macros I mentioned
334.
▲
by
jeremiep
11y ago
I would probably do it like this in D (disclaimer: I haven't tested this code!) import std.typecons; import std.socket; import std.variant; struct Disconnected {} struct Connecting {} alias Connected = Typedef!(TcpSocke
335.
▲
by
jeremiep
11y ago
I haven't looked at Nim in a while actually (it was still called Nimrod back then). But I want to say right away that Nim is a great language! I prefer meta-programming in D as I don't get to think at the AST level; its practical
336.
▲
by
jeremiep
11y ago
Out of all the modern systems level languages (D, Nim, Rust, Go), D is by far my favorite. I recently came upon this post and couldn't agree more with it: https://www.quora.com/Which-language-has-the-brightest-futur...
337.
▲
by
jeremiep
11y ago
There's std.variant in D which provides type-safe sum types. alias MyLanguage = VariantN!(<insert types here>);
338.
▲
There is no skills-gap
(blogs.lse.ac.uk)
2 points
by
jeremiep
11y ago
|
0 comments
339.
▲
by
jeremiep
11y ago
I've recently found this gem: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ I haven't laughed this much in a long while. PHP was my first language and indeed I got far away as
340.
▲
by
jeremiep
11y ago
I've once tried to look at the source code of Eclipse many years ago. It was by far the most over-engineered thing I've seen in my entire life. I've since found out about Emacs and the contrast is striking; Emacs being a shin
341.
▲
by
jeremiep
11y ago
Reminds me of this number on Pride by George Carlin: https://www.youtube.com/watch?v=-OnWnwwxNPA Where he says "Pride should be reserved for something you achieve or obtain on your own, not something that happens by ac
342.
▲
by
jeremiep
11y ago
There's the dub package manager for D. http://code.dlang.org/ I don't think I'd want web and mail servers straight into the standard library out of the box. Those are way too specific. For example, there'
343.
▲
by
jeremiep
11y ago
Concerning exceptions, I personally hate how Go implemented their error handling. This Quora answer explains it perfectly: https://www.quora.com/Do-you-feel-that-golang-is-ugly Not that I'm a huge fan of exceptions eit
344.
▲
by
jeremiep
11y ago
I rather like the implicit conversions. Especially in D where they only happen where its safe. There's the 'to' function to perform checked conversions and the standard cast operator to perform unchecked conversions. int foo
345.
▲
by
jeremiep
11y ago
And usually different people will automate different parts of the pipeline and then share scripts. For larger productions you've got an entire department dedicated to this stuff leaving the artists free to create.
346.
▲
by
jeremiep
11y ago
Using D for most of my personal projects, which are almost all pet game engines. Its a real joy to use. I get to write lighting fast code with the productivity I'm used to with high-level languages. Its really the best of both worlds.
347.
▲
by
jeremiep
11y ago
"About the Author" "Deirdre Saoirse Moen is a science fiction and fantasy writer, photographer, and graphic designer from Menlo Park, California." What? I thought this was a programmer quitting his job..
348.
▲
by
jeremiep
11y ago
That's not the issue. Whether its being pushed or pulled isn't relevant at all either. The issue is when your views start pushing changes to the models and you then jump into a recursive cascade of updates. This is the control-flo
349.
▲
by
jeremiep
11y ago
I've used both and I could completely replace Angular with React and some scaffolding code. I used Angular on medium to large web apps in the past and while its easy to get started you always get tons of problems at scale. Staying at s
350.
▲
by
jeremiep
11y ago
True, but to reach that level you need to practice a lot. You gain that comprehension through practice first and then you polish it by trying to explain it to someone else. I know I'll write tons of toy programs to teach myself a conce
351.
▲
by
jeremiep
11y ago
I can't upvote this enough. Its the same as learning to read or write or play a musical instrument. You can try to memorize the syntax but that won't give you much understanding on why things are that way leading to brittle knowle
352.
▲
by
jeremiep
11y ago
I had the same impression. The constant "we built this internet" and "we run the show now" displays so much ignorance and insecurity about our field its not even funny anymore. These people usually can't explain the
353.
▲
by
jeremiep
11y ago
And lets not forget the great quote “The Internet was so well done, but the web was by amateurs”. I can't take developers like this guy seriously, he definitely falls in the amateurs camp Alan Kay talks about.
354.
▲
by
jeremiep
11y ago
While I agree with the general idea in theory, I haven't seen it happen that often in practice. More often than not tests will constrain the architecture of the actual system and result in code that is much more complex than what is re
355.
▲
by
jeremiep
11y ago
My rule is: tests only check the presence of bugs, not their absence. And is usually little more than wishful thinking to delude people into believing their code to be bug-free. Understanding the code is worth WAY more than having good test
356.
▲
by
jeremiep
11y ago
While I agree with you I think D's design avoid a lot of the pitfalls of C++. When I think about all the different variable initialization rules in C++ I know I'll get it wrong in crunch time and most likely get it wrong when all
357.
▲
by
jeremiep
11y ago
I meant things such as extern(C#) and extern(Java) to work the same way extern(C) and extern(C++) do now. I don't see the point of compiling D to JVM or CLR byte-code for all the efforts it would involve, but rather the CLR or JVM load
358.
▲
by
jeremiep
11y ago
I'm pretty sure there's a market for D on consoles and mobile gaming. This is the first thing I get asked every time I suggest using D at work (we mainly do casual games while also porting AAA titles with a few internal engines).
359.
▲
by
jeremiep
11y ago
Also, while on the subject of status updates, what's the status of std.reflection? Any chance UDAs could be included in there? :) It would be great if the reflection info could be outputted to a separate file for those cases where its
360.
▲
by
jeremiep
11y ago
I haven't tried Rust yet, but they all easily translate into D! I've lost count of the number of times I've thought to myself "I wish C++ has this D feature." A lot of them are being added now but the interesting on
More ›