News for hackers. Stuff that matters.

tristanstcyr

Re:Apple Silicon M1 Chips and Docker on Monday November 16, 2020 @11:42PM (#25120322)
I don't think that doing so across architectures is a major goal.
Re:Announcing TypeScript 3.9 on Wednesday May 13, 2020 @10:25AM (#23167179)
Language servers could still do this by reusing AST manipulation libraries behind the scenes.
Re:We are not mostly empty space on Friday May 08, 2020 @07:14PM (#23120554)
From what I understand, the idea of "empty" no longer makes sense at that level. All you have are fields. There, everything is made out of fields and fields are everywhere. There is therefore no "empty" really anywhere, including inside yourself.
Re:Ride down into JavaScript dependency hell on Saturday April 11, 2020 @10:43AM (#22841913)
I agree that this isn't totally specific to JavaScript. It's just that the ecosystem is very extensive and so there are a lot of packages, because you don't need to write your own code for a lot of existing problems.

There is perhaps a something about the JavaScript audience tending to attract less advanced implementers. So you end up with a lot of otherwise considered trivial and low-quality utilities being published and pulled down from the registry.

Rust and Go tend to be for more advanced scenarios where things like performance, security and support matters tremendously.

Re:Ride down into JavaScript dependency hell on Saturday April 11, 2020 @10:34AM (#22841871)
React would normally be a peerDependency and so you shouldn't run into this problem if dependencies are specified properly.

If not, NPM module flattening should take care of it.

Then worst case, you can also tell webpack to bundle a specific installation.

There are some ways to solve these problems...

Re:How porting to TypeScript solved our API woes on Wednesday April 08, 2020 @09:28PM (#22819000)
If you properly do validation at runtime this can be true, but it's a manual process that's not verified by Typescript.
Re:How porting to TypeScript solved our API woes on Wednesday April 08, 2020 @09:13PM (#22818916)
It does not.
Re:Java 14 Feature Spotlight: Records on Wednesday February 05, 2020 @01:00AM (#22244380)
I think that this ship has sailed quite some time ago. For example, inner classes which were introduced in Java 4 (if my memory serves right).
Re:The real world is mutable – consequences for system design on Saturday February 01, 2020 @03:51PM (#22213143)
That's an idealistic argument. Sometimes you just need to delete things and there's no negotiation possible.

Whether that makes sense to you or not as an engineer or scientist doesn't matter much. There are tons of things that humans want that "don't make sense" but that you need to conform to regardless. A great example of this is typically the law.

Re:Writing Safe Shell Scripts (2019) on Saturday February 01, 2020 @03:38PM (#22213081)
Is this because both languages are from different eras? When did you last see a consumer ad about scripting?
Try working with a large 5 year old JS codebase that's been hammered on by dozens of devs. The problems are no longer just pin point bugs but a systemic lack of modeling.

Static typing is not that much about preventing bugs but more about forcing the code to operate over a well defined model.

Can you write good code without static typing? Yes. Can you scale and maintain it in a large organization, probably not.

Re:Just Build the Product on Friday January 03, 2020 @12:02PM (#21947750)
Rather facile advice.

As a software engineer, it's your responsibility to build the product according to the requirements. Sometimes that means it needs to be built it quick because it's likely to have a short life, or it needs to land quickly to market. Sometimes, you need to get things right, otherwise you end with an insurmountable amount of technical debt and a business that grinds to a halt.

Given this, you should make the analysis to understand the tools that you need. If that means learning, then so be it. Maybe you can keep going with superficial knowledge. Or, perhaps you need to find an expert, that's fine too.

As for growing in your technical knowledge, that should be agreed upon with your employer or whoever is paying for the work. If you find that you work somewhere that doesn't allow you to learn then perhaps it's not the right place to be.

Think like a professional.

Re:Why Child Care Is So Expensive on Monday December 09, 2019 @05:44PM (#21747467)
The reality is that the atomic family model is antiquated. In our society, the individual is the unit We must therefore make the individual strong, meaning that we need to support both parents independent all the while having children.

We can observe that the old model was better in terms of a certain metric, but that's not going to help. We need to invest in making child rearing effective in today's world.

Re:Why Child Care Is So Expensive on Monday December 09, 2019 @05:32PM (#21747379)
It's not that it's a failure, it's that being taken out of the workforce for many years is damaging to careers. It's more than a matter of perception. Public school starts when kids are 5. If you have several kids, it could then take someone out of the workforce for a decade. While it's not impossible to recover from that, it's extremely difficult, especially at a point where you're past your prime years such as your 20 or 30s.
Re:Former Twitter Employees Charged with Spying for Saudi Arabia on Wednesday November 06, 2019 @07:18PM (#21469103)
Sure, but it comes at a cost. Companies rarely push the limits of these kinds of policies because customers are not willing to pay for them.
Re:American Emergency Rooms Confront a Crisis of Violence on Sunday September 22, 2019 @04:45PM (#21043829)
What solution do you propose?
Why does this cause more stuff to be consumed?
Re:How much free time do you have? on Friday July 05, 2019 @09:52PM (#20367231)
I don't know if that's how free time works once you have kids. "Parental duties" takes the free time. You get some time when the kids sleep.
I find that engineering vs management is not a very useful discussion point. Management is composed of engineers too and engineers are responsible for the output of their work. Production of something that doesn't work is an engineering failure.

It's depressing that everyone went along with this. Clearly there's a lack of impartial checks and balances in the process.

Re:Future JavaScript: what is still missing? on Sunday January 27, 2019 @12:44PM (#19012761)
Syntactic sugar I not a bad thing. In any sufficiently complex language, most features can be simulated with other primitives. If we didn't want that, we'd all be writing lisp.

In this specific case, the IIF is harder to read. You have to go all the way to the end of the expression in order to realize intent. With 'do', you see it right away.

Like anything in engineering, it's a question of trade-offs. Do the benefits of better readability outweigh the downside of making the language more complex?

Re:Apple scientists disclose self-driving car research on Wednesday November 22, 2017 @11:02AM (#15757795)
Or you could do both. The right tool for the job.