News for hackers. Stuff that matters.

forrest92

Then don't do that.

Write a method to get the list id.

And FWIW I honestly think JSX is misstep.

Re:Show HN: PowerPoint slide builder with handwriting on Thursday November 22, 2018 @02:34PM (#18512018)
The back button worked just fine for me on Chrome.
Re:Brain.fm: Music to improve focus, meditation and sleep on Wednesday November 21, 2018 @09:52AM (#18503067)
Tried it based on all the positive reviews here and really didn't like it. A lot of their modes had some heavy noise distortion that distracted me more than it calmed me. I am really not sure why people would choose something like this over just scouring youtube and spotify.
Re:Prac­ti­cal Ty­pog­ra­phy on Sunday November 18, 2018 @03:25PM (#18482348)
For a website about visual subject matter, the website is quite ugly.

I absolutely hate that the author decided on devoting an entire column to just the menu resulting in the body text being off-centered. There's just this giant uneven gap on the left and it's horrible.

Re:Microsoft Is Putting Ads on the Mail App in Windows 10 on Friday November 16, 2018 @01:01PM (#18470520)
> As a vocal critic of the Linux Desktop

well, go on then, elaborate...

Re:What does Stack Overflow want to be when it grows up? on Monday October 22, 2018 @10:42AM (#18275026)
> Stack Overflow is a wiki first

This is such an out of touch statement it's hilarious. Stackoverflow is a wiki in the same way my dog is a heater.

Re:HTML is done on Saturday June 06, 2015 @09:07PM (#9672990)
What frustrates me about these kind of articles is that they ignore things other than technical perfection. Yes, the web platform isn't the ideal work environment, but at least its got mass adoption and has some kind of standard. Its much easier to program a web front end than it is to program and distribute a gui application using qt. Yes, the web development area needs improvement. JS, CSS, etc. aren't perfect, but improvements are being made, the technology is being pushed forward with every new version number.
Re:How to name things in programming on Monday May 25, 2015 @08:21AM (#9599748)
This seems like its trying to force advice for one domain to another when its not appropriate.

I disagree strongly with one or two of the rules. But an even bigger problem is that some (or even most) of the advice either has little value or doesn't really apply to programming. In english, shorter is better, but I'd much rather a longer class name that I can understand than one that's abbreviated to the point where I am forced to look up what its doing. A good rule of thumb that I try to follow is that for the most part, your code should be self explanatory (comments should cover the rest). We have these rules in programming for how to write variable names, and they're better than the ones in that slide. Another rule, that trumps any other is consistency. If you're working on a project that uses the passive voice (which I think works better for some cases) then use that. The nature of programming is different than natural language writing, and so it makes more sense that these rules that are trying to be transferred over are ill equipped to do so.

I mentioned that some of the things just don't make sense As an example, this was one of the slides, "when writing a novel a writer should create living people; people not characters. A character is a caricature." What does this mean? Its ironic that the slide preaches being short and to the point, and yet is bloated with abstract fluff.