News for hackers. Stuff that matters.

frigo_1337

Re:The Art of Code Comments on Friday November 03, 2017 @08:35PM (#15623183)
One thing from Clean Code that fundamentally changed the way I write code was the bit about how “Comments Lie”.

I hadn’t really thought about it much before. But since then, I see lying comments absolutely everywhere. Many of which I have written myself. The author is right, comments are really hard to maintain.

Nowadays I try my absolute hardest to avoid writing comments. 9 out of 10 times, it can be solved with some refactoring.

Re:Vue HN 2.0 on Sunday May 07, 2017 @03:48PM (#14287227)
I'm not a huge fan of the UI (images are nice, but only for about half of the usual HN content), but I am very impressed by the performance of the app.

The speed at which images and content are loaded (esp. during paging) makes it feel very snappy to use. I don't know why, but it "feels" even faster than the standard client.

Re:How it feels to learn JavaScript in 2016 on Tuesday October 04, 2016 @01:04PM (#12637073)
As far as beginners are concerned, that shouldn't really matter.

Hide all that complexity in a `./build.sh` or `make` and hand them a config and a README. The author of the article is a web designer with a slightly technical problem to solve. He didn't even need to know about gulp, or grunt, or webpack or babel. Those tools are (should be) as relevant to his domain as the tools used to manufacture the circuits that run them.

Re:How it feels to learn JavaScript in 2016 on Tuesday October 04, 2016 @09:35AM (#12635357)
I'm getting tired of these pointless non-specific rants. You could write an article about "How it feels to learn C++ in 2016" and make it all about the complexities of operating systems, linking, compilation, text editors and the QWERTY keyboard layout, and you'd still be as accurate.

All you need to "JavaScript in 2016" (as a beginner) is a config file and one or two commands. That's it. If that's too information or too hipstery for your taste, then follow the footsteps of other programming languages and use an IDE with a button that can hide that complexity for you.

Re:How We Replaced React with Phoenix on Sunday July 17, 2016 @04:18AM (#12109454)
When "sprinkling Javascript" turns into "making sauce for the spaghetti you've been cooking", it's probably time to consider React or something similar.
What do you mean?

Somebody wanted to write code in a particular way and extended the language with a couple of utilities for doing so, then decided to publish it for others to use.

I don't see the problem. Could you elaborate?

Honest question: Why?

I don't understand why people inherently dislike Javascript (aside from, y'know, creepy ad networks).

Re:Rails 5.0: Action Cable, API mode, and more on Friday July 01, 2016 @04:18AM (#12014584)
...but why do you want to access it by index?

Since you refuse to be more specific, it sounds like you're just not willing to learn the language and the way problems are solved with it.

Expecting mutable C-type arrays in elixir/erlang is like expecting classes and lambdas in an assembly language. It's just not a good fit for what the language was designed to do.

I really like the ideas behind Matrix. Sure, the existing (open) clients aren't all that sexy, and synapse can be a bit slow sometimes. But implementing your own client is a breeze and bridging other networks through application services makes it incredibly powerful.

My experience with the matrix.org community has been very pleasant so far. Keep up the good work, folks!

Re:Add Reactions to Pull Requests, Issues, and Comments on Friday March 11, 2016 @05:16AM (#11265737)
The "positive" things about the issue/pull request etc. is presumably already explained by the author.

"Issue 1234: We need this feature because reasons A, B and C."

If you don't think that A, B and C justifies the change, send a downvote and/or explain why A, B and C aren't good enough reasons.

An upvote is sufficient to say that "Yes, I agree with A, B and C. Do it."

Of course, if you agree with the change but for reasons other than A, B or C, you can leave a comment to start a discussion. It has nothing to do with culture. It's just a way to minimize the redundant "Yes, I agree with what you just said".

Re:Raspberry Pi Zero: the $5 computer on Thursday November 26, 2015 @04:43AM (#10632168)
Yeah I guess.

Still, I for one would be more than willing to pay a few extra bucks for a stripped-down version of the Pi with wireless included.

Actually, all I'm looking for in this type of machine is Linux, Wi-Fi and GPIO, in a reasonably compact format. Maybe the Pi isn't a good fit, since it is more about "teaching computing" than "building your IoT stuff".

Re:Raspberry Pi Zero: the $5 computer on Thursday November 26, 2015 @03:08AM (#10631860)
I don't see anything about Ethernet/Wi-Fi. Am I missing something?

I understand they had to cut some features to reduce the prize. But networking is such a fundamental requirement for these types of systems, you'd think that it would be the last feature to be excluded.