Hacker Newsnew | past | comments | ask | show | jobs | submit | rlp's commentslogin

9am to 9pm 6 days a week


This is my exact experience. TypeScript seemed to hit a complexity sweet spot about 5 years ago, then they just kept adding more obscure stuff to the type system. I find that understanding TypeScript compiler errors can be almost as difficult as understanding C++ template errors at times.


Hint, 9 times out of 10 you only need to read the last part of the error.

Also, there are many ways to make types opaque (not show their entire verbose structure).


Which begs the question of why they don't rearrange that part to the first in the error message. Like you said, 9/10 times I scroll down without thinking which is silly.


I have no clue, but I guess there were (and are), good discussions around it.


This. Haxe is a more sane TS alternative in 2024.


Haxe is amazing, has macros etc. A force multiplier if you are a solo developer for sure. But damn, you feel kinda alone if you are using it. Not everything is an npm install away which negates your velocity gains from using a saner language.


I RARELY/NEVER have to build an app so fast that i just fart out whatever broken code as fast as my fingers can type. IF i get a project like this with a deadline of "yesterday" i politely just refuse. I will be wasting my personal time, and the clients time. And the result will be a broken mess that will eventually take more time to fix, than it would have if i in fact did it "correct" from the get go.

That said Haxe has externs, enabling you to target JS/PHP and use the rich ecosystem both langauges have. The best part of externs is that IF i only use 4 things from given package, i statically KNOW i only use these 4 things, and can refactor more easily, or even build the thing i need myself.


When I'm talking about velocity, I'm not talking about coding fast, but being able to write DRY, flexible yet easily maintainable code that can weather future requirements / refactorings easily. Personally, I'm also talking in the context of my own projects so nobody is breathing down my neck or pressuring me with time. I just want to write good code that is a joy to maintain for years to come.


Ironically Haxe was inspired by ActionScript 3 which was the basis for the EcmaScript 4 proposal which was abandoned back in 2008 or so.


It's Haxe still been actively developed? I loved it back in the day. The blog hasn't had an update in years.


It is. And only getting better SLOWLY by each iteration. The thing i love about Haxe that once you use it, your installed version is not legacy in a month (unlike npm/typescipt ecosystem). Haxe is fully working, and does not need a lot of "new" features.

More news about Haxe can be found here: https://haxe.io/ (the old blog is not updated AFAIK)


This is no longer remotely true. Most .NET teams I know now deploy on Linux and develop on Windows/Mac/Linux.


Wow. I just had it write a song about being sad about losing my keys in r&b/soul style, I'm totally blown away:

https://www.udio.com/songs/bDY5CYdJZP93AdpgpfBJNX


I'm not seeing a major problem here, you just need to install MSVC++ alongside it.


Its an extra requirement, thats not imposed by many other languages.


Rust and Go (for cgo) require it as well.

As do Python, Ruby, Tcl, node and Java if you want to write native extensions.


I've always been a big proponent of TypeScript, but does anyone else feel like the type system has gotten a bit too flexible? I recently had to fix some errors when upgrading packages on an old project, and it was not at all clear what was wrong by just reading the compiler output. For some errors, there were like 5-10 lines of confusing info/context, it felt like trying to understand the errors reported in template-heavy C++.


It’s always been too flexible. That’s its raison d’être.


Maybe libuv? It's used by node and julia. It's not a full standard library by any means, but it would give you the event loop with async/networking/io/threading.


Sarno's work comes up periodically on HN, and I always have to chime in to say that it cured my RSI. Everything is still completely, 100% cured at 15+ years. As a developer, I have no idea what I would have done without it, my career would have been over. Here are my previous comments:

From 2016: https://news.ycombinator.com/item?id=12990976

From 2021: https://news.ycombinator.com/item?id=26120633


Yes same here. For me Sarno gave me my life back and reading my comments it seems it has helped a lot other people here too, so I always chime in too. Here is my comment from 4 years ago and that was the the start of the end of my struggle with pain. (1)

Nowadays I've started doing the wim hof method and it's unbelievable my body can endure 7°c bath and I don't feel that cold or fall sick taking an ice cold baths everyday even during winters. The reason I'm mentioning this is because it really seems our minds are much more capable of things for which common sense goes against.

I think like the way germs were discovered which changed our understanding of medicine, within a few decades it will also become a norm to assess patient's mental condition before checking for physical and hopefully using the mind to cure a lot of disease. I feel like a hippie saying these things but after sarno and wim hof I've become more open to the power of human mind.

(1) https://news.ycombinator.com/item?id=17982355


It's about training your mind's executive control/function. You learn to focus on one thing and allow others to pass through your awareness without them being overly distracting/disturbing.

Think of your focus like a spotlight. Most people have very little control over their spotlight and it gets aimed at whatever is the latest thing to enter their awareness: a thought, a sound, another thought, a visual, etc. It's bouncing all around, all the time. A proficient meditator can more effectively control where the spotlight points. Over time, as the mind slowly learns to do this better, the stuff outside the spotlight fades and become less intrusive. This leads to increasing states of calm and peacefulness which extend even after the meditation session ends.


interesting take . the spotlight meshes well with achieving "bliss", which many describe as an blinding light - in effect the spotlight being pointed to your face!


So you described concentration training. No need for meditation myth for that to, no?


No need for a meditation myth at all, absolutely. It's brain hacking as far as I'm concerned.

As for concentration training vs mindfulness meditation, I do think there's a difference. Concentration is a tight single-pointed focus, while mindfulness is a broad focus on the present moment. I found mindfulness meditation basically impossible without practicing concentration meditation extensively first, my mind was too overactive to settle in the present without an anchor to focus on.


Beautiful Racket is quite nice: https://beautifulracket.com/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: