HNHacker News
TopNewBestAskShowJobs

trias

123 karma · joined May 16, 2014

submissionscomments
trias··on Germany Arrests 25 Suspected of Planning to Overthrow Government
That is what elections are for.
trias··on Hooks are the best thing to happen to React
To me React hooks look like they want to be a different programming language while still using js-syntax. It would be great if "useState", "useMemo" and the like would be first class citizens in a PL.

Hooks as they are have some non-obvious rules which can make them hard to understand / learn. Also debugging is not great (but that's true for react in general, imo)

trias··on MacBook Pro 14-inch and MacBook Pro 16-inch
what happened in 2013?
trias··on Exploring Clang/LLVM optimization on programming horror
is complexity theory constrained to binary representations? Why should it?
trias··on Java JDK 1.0 (1996)
https://github.com/ufuu/JDK10/blob/main/src/src/java/util/Da...

> private int tm_year; /* years since 1900 */

when you have 4.3 billion years to choose from but decide for 1900.

trias··on Efficiency Is the Enemy
I agree totally. It matches my learnings in my career as well. But how much slack is the right amount? What do you think?
trias··on Thanks for the Bonus, I Quit
I've made the opposite experience (in germany). No company will ever fire anyone. If they really need to, they give you a generous leaving package. The only exception is if the company going bankrupt, in which case the state might help (Kurzarbeit or bail out).
trias··on On navigating a large codebase
sounds like we are working at the same company ;)

Good to see that this approach seems to be working for you, i wish you the best.

trias··on On navigating a large codebase
sounds like an ideology lock-in. Let's hope you never get a problem which does not fit your current architecture well, or else you'll end up spending weeks or even months solving an otherwise trivial problem.

I've worked with "configuration-based implementations" and in my experience they are hard to work with (no debugging, incomplete documentation and implementation, little flexibility), require an staggering amount of infrastructure, are hard to test and will approach a programming language over time.

trias··on Evil Unit Testing (2019)
not just warranted, the (2019) is very misleading.
trias··on No Hello (2013)
no, just communicating with my coworkers.
trias··on No Hello (2013)
that's an unusual style of communication. You are coworkers. If you don't know the answer immediately, say it.

Consider too, that i might be blocked as long as i don't have an answer.

trias··on No Hello (2013)
I dont expect an immediate reply, just within reasonable time. I i've made the experience that a question you ask upfront simply gets ignored and then forgotten.
trias··on No Hello (2013)
if you write "hello" and they answer "hello", they are under some social obligation to answer rather promptly, whereas if you write your question first, it may simply get ignored. So I tend to write a short hello first.

possibly some other social factors at play here, but still, my experience.

trias··on Wirecard files for insolvency after financial hole laid bare
At some point you start believing your own lies so he probably thought everything would be fine and the markets would be calmed with another auditor confirming the results.
trias··on Deno: JavaScript Runtime for V8 Written in Rust
- no file system access - no internet access - no environment access

also loads code from the internet and runs it no questions asked.

trias··on 94k Bitcoin (1B USD) transferred from unknown wallet to unknown wallet
Bitcoin is inflationary, as there is new money created every 10 minutes or so. Wether it increases or decreases in value relative to the USD is subject to speculation regarding the expectations of the "demand" of bitcoins, which are certainly not stable. USD on the other hand is much more stable regarding inflation or deflation.
trias··on JavaScript: The Modern Parts
> majority of js developers that take surveys

i like that qualification :)

most likely typescript is still a very small minority given how large the javascript world is

trias··on Yield curve is blaring loudest recession warning since 2007
Well in the case of stacks, the expected dividend (price of the eggs) also dropped by half. So yes, you really are poorer when you bought those expensive hens compared to someone who buys them at the reduced price.
trias··on Better Portable Graphics
They are developed in switzerland
trias··on Why Continuations Are Coming to Java
i know, but why doesn't the OS do this too? Most programmers don't care if their "thread" is an actual thread on the machine or just a "fiber". If the benefits are this large, it should be provided by the OS in my opinion.
trias··on Why Continuations Are Coming to Java
Honest question, maybe obvious: Why is the java-scheduler/ thread model so much better than the OS-level one? What does the java one do, or better what does it not do? And why can't the principles which make java-scheduling fast be applied to OS-threads?
trias··on What's next for SemVer
Is there something like "test-driven versioning"?

It would be rather simple: "Here is the testsuite for our (public) api. We support the use cases tested, but no more.

If you want your use case covered, please submit a testcase.

If we change an existing test, we increase the major version.

If we add tests, we increase the minor level.

If the test suite remains the same and we only change the code, it's a patch-level increase."

This could be verified automatically, increasing trust.

trias··on Paris Will Make Public Transportation Free for Kids
the ride fare is necessary to scare people off public transit, otherwise the service would be overused.
trias··on Node.js setInterval callback function unexpected halt
doesn't this fix mean it crashes after 2^32 milliseconds now?
trias··on My favorite principle for code quality
I agree. Using the class approach usually leads to complex class hierarchies and a lot of made up concepts for simple things which would be better solved if you could pass functions around easily (lambdas) and had generic data types (like javascript objects). But java does not have these easily available.

I think the OPs problems are mainly coming from the culture/design of Java.

trias··on Ask HN: Best introductory video courses on ML and Deep Learning?
this talk really enlightened me: https://www.infoq.com/presentations/neural-networks-introduc...

it is not a full course, but more an introduction.

trias··on Concrete-free washing machines are lighter to transport, just as good in a spin
what about sand? comes close to concrete but is easily (re)fillable.
trias··on Want to Be Happy? Buy More Takeout and Hire a Maid, Study Suggests
Sounds interesting! Could you share some of your recipes / dishes? Maybe books you recommend?
trias··on Naughty Strings: A list of strings likely to cause issues as user-input data
i actually tweeted an zero width space some time ago and it worked. The tweet contained no text though.
Page 1 of 2Next →