News for hackers. Stuff that matters.

autoreleasepool

Re:Arenas in Rust on Saturday October 04, 2025 @04:29PM (#45476414)
Beautifully put, poetic even. The only problem is that, in (*actual).reality, unsafe Rust is difficult to read, difficult to write, difficult to maintain, difficult to learn, has zero features for ergonomics, and has poorly defined rules.

C and Zig have a big advantage for writing maintainable, easy to read unsafe code over unsafe Rust.

Re:Reading OpenBSD source code daily on Friday June 09, 2017 @11:11AM (#14521942)
For a good base, I recommend the book "The Design and Implementation of the FreeBSD Operating System" by Marshall Kirk McKusick. It's really in depth and I was able to follow it without previously taking an OS course.
Sorry, I accidentally commented on the wrong post somehow. Unfortunately, I can't delete the comment.
[deleted]
Re:Coroutines are now in Clang trunk, libc++ on Friday May 26, 2017 @08:04PM (#14428079)
Don't forget about Objective-C++! That's where the true powers of the dark side are.

Side Note: Objective-C is such a criminally underrated language. I often see people complaining about the syntax, but it's just syntax. Once you get over it, I find that the language makes the OOP paradigm a joy to work with.

Re:Swift is like Kotlin on Thursday May 18, 2017 @01:17AM (#14364983)
Yes, agreed. IMO, curly braces would have made much more sense. It's not even bikesheding, really. It's just a fact that curly braces are less used in most written languages. I would also argue that curly braces are a better signal to the programmer that "something programmatic is happening here", due to their prevalence as scope delimiters in most popular languages.

Swift's string interpolation doesn't catch my eye like, say, Ruby's does: `#{my_var}`. It's very easy to gloss over `\(something_like_this)`. I suspect they were going for a more "elegant" syntax at the cost of pragmatism.

Check again. On the homepage scroll down to:

> An Application

" Using props and state, we can put together a small Todo application. This example uses state to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation. "

The example in the article was lifted from the front page of the official React website [0].

[0] https://facebook.github.io/react/

> write a bunch of code to deal for various browsers

jQuery helps here

I don't see where the parent suggested no framework. It's likely he or she prefers working a different framework or library, like vue.js or even jQuery.

For me, jQuery is the bare minimum requirement. I would never attempt to write a large app in pure JS, even with babel. You would definitely run into some of the problems you mentioned.

EDIT: I see now where he mentioned no-framework JS

Regardless of these complaints, the job market for React is just too damn good to ignore. I bit the bullet and began learning. As a newbie, I understand the sentiment of this article. However, it's really not as bad as the author makes it out to be.

Also, className instead of class took all of 3 seconds to learn.

If you're interested in iOS/Cocoa development, Swift is a top-notch statically typed language with lots of paradigm flexibility. Unfortunately, it isn't used as much outside of that domain.
Re:Autism's drug problem on Wednesday April 19, 2017 @01:30PM (#14149714)
When I'm not on medication I'm prone to manic/psychotic episodes and usually begin to hear voices. Maybe drugging isn't the best solution, but for me it's the only one that lets me live a normal life.

Ask HN: Previously employed; no CS degree. Should I enroll in a bootcamp?

Hi HN,I feel so stuck. I'm 25 and live with my parents. I do not have a CS degree (I have a BA in Economics). A year ago, I quit my full-time job as maintainer of a legacy C++ code base due to mental health issues (manic episodes). Before that, I worked as an iOS developer.Thanks to therapy, I am now back on my feet mentally, but I'm struggling with the job market. I've been unemployed for an...

( Read More... | 4 comments | 3 points | on HN )

Ask HN: What is the best JavaScript framework for a multipage application?

Disclaimer: I am not a professional web developer. I have never seriously done front-end work.I am writing an web application in Elixir/Phoenix. It is an app with many categories that does not fit the single-page application model.That being said, I want it to look and feel like a modern web application by 2017's standards. Ideally, I could use a lean JavaScript framework for interactive UI...

( Read More... | 1 comment | on HN )
Re:Phoenix 1.3 is pure love for API development on Saturday March 04, 2017 @01:39AM (#13789664)
I can't wait until May[0] for the new 'Programming Phoenix' book. I found the first edition to be a great learning experience.

[0] http://shop.oreilly.com/product/9781680502268.do

Re:Nintendo Switch review: pure potential on Wednesday March 01, 2017 @06:19PM (#13769606)
There's an observable soft spot for Nintendo consoles in a lot of "PC master race" types. I'm definitely not a part of that community, but I agree a higher powered PC plus whatever Nintendo's newest console is brings something very special to the table. It also helps when my little cousins come over and I have games like Overwatch on the PC and Super Mario 3D World on the Wii U for them to enjoy
Re:Ruby+OMR JIT Compiler: What’s Next? on Wednesday March 01, 2017 @04:09PM (#13768371)
Eclim is already fairly useful for Ruby developers. I use it for the "stellar omnifuncs" it provides YouCompleteMe as described in the official docs [0].

[0] https://github.com/Valloric/YouCompleteMe#semantic-completio...

Re:Writing an Interpreter in Go: The Paperback Edition on Wednesday February 22, 2017 @12:21PM (#13707157)
Really? I find ebooks side by side a terminal a much more efficient way of going through a text like this
Re:List of falsehoods programmers believe in on Monday February 13, 2017 @02:41PM (#13638062)
Interesting. I'm curious, what's her usual workaround for this problem?
Re:Using tmux properly on Saturday February 04, 2017 @03:00PM (#13568729)
What's the advantage of tmux over something like terminator with pane splitting?
Re:The trouble with FreeBSD on Friday February 03, 2017 @12:07PM (#13561278)
I couldn't get it to compile :(
Re:The trouble with FreeBSD on Friday February 03, 2017 @10:44AM (#13560544)
Agreed. I use FreeBSD every single day for development. It fucking rocks.

My only gripe is we're still waiting for KDE Plasma 5...

Re:Android permissions and hypocrisy on Monday January 23, 2017 @12:25PM (#13463845)
Agreed. It's there so I feel informed but at the same time I feel I need to allow practically everything in order to not break the app.
Re:Why I switched from OS X to Linux on Wednesday January 11, 2017 @08:55PM (#13379269)
I actually reard in an HN comment that OS X's case-insensitivity by default was a choice that revolved solely around compatibility with Microsoft Office, so I think you're on to something.

Older »