HNHacker News
TopNewBestAskShowJobs

jsf01

705 karma · joined February 17, 2019

submissionscomments
jsf01··on Massive Southwest Airlines disruption leaves customers stranded
Understandable but on the flip side, the backlash from this may result in them being one of the best airlines to fly in the near future.
jsf01··on All I want for Christmas is these seven TypeScript improvements
I’ve got many TypeScript Christmas wishlist items, too, but I have to admit I disagree with a few of these!

A new syntax for tuples is overkill. TS is already getting quite syntax heavy and I feel that the current methods for defining tuples are more than adequate—either with “as const” as described in this post or like “const foo: [number, boolean] = [5, true]” as the TS docs recommend for tuples.

Runtime type evaluation—please no! This is the perfect domain for libraries to exist in. When you import a library, it’s explicit what’s going to happen at runtime. Libraries are easy to debug, forkable, and swappable. Baking this behavior into the compiler not only foregoes those benefits, but also makes the output less easy to predict and will of course add overhead to the compile.

My own wishlist top 3:

1. Better following of type narrowing through branches and functions. After I filter out all nulls in an array or prove that some optional variable is definitely not undefined, there are still times when ts can’t tell that that’s the case. I can force it to with workarounds, but wish I didn’t have to.

2. Compiler perf improvements. Hard to disagree with you there! Esbuild locally and tsc in ci is okay-ish, but not an ideal state for the ecosystem to stay in for the long term.

3. Consolidation of tooling. For node do you go with tsc and run the output? Or ts-node? Esbuild locally and tsc in prod? Deno? Browser-side, similar questions but throw in Vite and all the other options, too, and even for someone working in this environment regularly, setting up a new project with all the proper tooling is far too much effort.

jsf01··on Rewind: The Search Engine for Your Life
The problem I have with this is that meetings and discussions—exactly the kind of thing you would want to recall—involve more parties than just yourself. But rewind appears designed to record everything in the background and be left on, not enabled manually when you want it. That means in every conversation you have you’re either going to need to get consent to record (which is super weird for 90% of quick chats) or just do it without consent which is creepy and probably illegal in a lot of places.
jsf01··on Deno vs. Bun performance is rigged
>use bun

>segfault at runtime

Bun is far from better in every way

jsf01··on Neovim 0.8 Released
Even the FTC struggles to define spyware. But I think you’re right that a disagreement on the definition is at the heart of all of this. I wouldn’t be so overconfident in asserting that spyware is defined in your particular way here, though. There isn’t exactly a consensus! VSCode is certainly not to be lumped in with password stealing keyloggers, but because they continue collecting telemetry data even after you explicitly disable it, VSCode does fall under the “collecting data without a user’s knowledge” category of spyware.
jsf01··on Film: Frame Interpolation for Large Motion
I personally use ML stuff in a productive context almost every day. Topaz labs software for denoising and upscaling images, Star Xterminator and Starnet for astrophotography edits. Don’t know if this counts as productive but the tools I use to analyze my chess games are also all utilizing neural nets. So if you’re not seeing useful ML applications in your day to day life it could just be that the things they’re good at don’t align well with your job or hobbies just yet.
jsf01··on Godot 3.5
Not my field of work either but my understanding is that Unity, as a public company, should have no trouble competing with Unreal where cost is the limiting factor. They’ve got plenty of resources. Godot on the other hand has a totally different audience. So while they have far fewer resources/staff to throw at their product, they don’t need to try to achieve feature parity with Unity and Unreal. Part of why hobbyists and small studios enjoy working in Godot is its simplicity.
jsf01··on Million: less than 1kb virtual DOM that is fast
Plenty of libraries have functional components and a react-like experience without the need for a virtual dom. Lack of vdom does not necessitate imperative dom usage.
jsf01··on Lichess: The free and open source chess server
Yes! The front-end code for Lichess is what got me to learn Mithril years ago. Really clean code for such a complex application. Here’s a great example:

https://github.com/lichess-org/lichobile/blob/master/src/ui/...

jsf01··on Play with TailwindCSS in the Browser
If your projects are small enough that relying on the cascade is a reliable option, you probably don’t need tailwindcss. If you’re working with 50+ devs on the same code base with many moving parts and shared components, you can’t afford to verify whether the cascade breaks something on every single change. So imo there’s nothing inherently wrong with your post, it’s just that tailwindcss doesn’t really excel until you’re working with a bunch of people authoring css in a shared codebase. (That said, now that I’ve drunk the kool aid I use tailwind or windi css even on my own projects. It’s pretty great once you know it.)
jsf01··on Hexwords: Hex colors that are similar to words
5EABED (a blue) and B00B00 (blood red) were the best matches I found
jsf01··on Should I Use a Carousel?
Hahaha this reminds me of a client that wanted to put his entire portfolio (120+ images including blueprints with text) into a carousel despite my suggestion that he use a gallery. And because he wanted viewers to look at every image he asked me to remove all controls, including pause and previous. So it was essentially a 10 minute JavaScript powered video slideshow. The whole site became so bad on his requests that I could no longer use it toward my portfolio.
jsf01··on Ask HN: Have you created programs for only your personal use?
I was about to make something just like your light bulb system for my own home (minus the vacuum part anyway). Any chance that code is open source? Very interested in any other details you’d be willing to share.
jsf01··on My First 80 Days of VR for Exercise
I’d throw in pistol whip as a cardio recommendation to anyone that enjoys superhot. A few back to back rounds at a higher difficulty will get you moving and squatting a lot
jsf01··on Adobe tricks users into a 12 month contract
How do you do that?
jsf01··on Tricks I wish I knew when I learned TypeScript
That one as well as the noUncheckedIndexedAccess ought to be defaults when in strict mode.
jsf01··on Tricks I wish I knew when I learned TypeScript
The type guard may be useful when transferring that array server->client or vice versa, or for an array from any other untrusted source, but I don’t think that was the purpose of the demo in the article. When the array in question is coming from the same code base that kind of runtime type check is redundant.
jsf01··on SpaceX becomes the second-ever unicorn company to reach a $100B valuation
>middle of the ocean

Is this true? It’s been my dream to use it on a boat and be able to work from there, but my understanding was that you had to have the satellite dish in a permanent fixed location on land.

jsf01··on Gmail password first character is case insensitive on mobile device
Hopefully the bank stores a separate hash for each mask, generated at the time of password creation. Otherwise, it’s hard for me to imagine how this would be possible without saving the password in clear text.
jsf01··on Atlassian fired me while I was taking care of my wife who is fighting cancer
On anonymous review sites like Glassdoor. Companies care about their reputation on there yet employees who post are fairly protected by anonymity.
jsf01··on MicroAcquire: Sell Your Startup
The website is completely unusable to anyone who doesn’t have a LinkedIn account. And it requires you to sign up before showing any content whatsoever. But the worst thing is how it strings you along. When you click “View Listings” you don’t expect to be forced to sign up with an email address first. I did that, then in order to continue I had to fill out another form with “all fields required” where one of those fields is to point to a LinkedIn account. And based on other comments here, apparently to get any value you need premium anyway. I can’t stand sites that use these dark patterns.
jsf01··on Why are hyperlinks blue?
Why would Apple have made white on green the default for so many years prior to introducing blue?
jsf01··on Breaking down a ripple animation in JavaScript
Absolutely. setInterval with a very tight interval runs the risk that your code execution time eventually catches up with the interval duration itself. Using setTimeout and raf recursively avoid this problem, but they do add a bit of baggage themselves by growing the call stack via many many recursive calls.

Edit: looking into this some more, it seems like the recursive methods might not actually grow the call stack due to being asynchronous. Their only added baggage is the extra closure which would be negligible. Anyone know if this is actually the case?

jsf01··on Show HN: Imba – I have spent 7 years creating a programming language for the web
It is useful for code readability. When you’re skimming and trying to understand a large chunk of code, if almost all the variables are declared with “const” and then you come across a “let”, you immediately know to look for where it will be mutated elsewhere.
jsf01··on Show HN: Imba – I have spent 7 years creating a programming language for the web
Really interesting project! I will definitely be trying it out today. One question—although you criticize some of the more common vdom benchmarks, I think it is still valuable to see where the dom updating strengths and weaknesses are in various approaches. Have you run any of the more standard frontend benchmarks on this and compared? I think it would be cool to see an entry for imba in the js-framework-benchmark table, especially considering your claim of low memory footprint.

https://github.com/krausest/js-framework-benchmark

Great work so far, I’m excited to give imba a spin.

jsf01··on How to boost your popularity on OkCupid using CSRF and a JSON type confusion
Or after initial token use, set to expire after n seconds rather than immediately
jsf01··on Brave, the false sensation of privacy
Third party untrusted binaries last I checked
jsf01··on Sublime Text 4
NeoVintageous is the one I landed on after trying...

- vintage mode

- sublimesix

- actualvim

jsf01··on An analysis of Bitcoin's throughput bottlenecks
This is a great way to put it. If you look at settlement times 3tps is great. If you’re actively transacting as a consumer then that won’t cut it.
jsf01··on What Happens to Stocks and Cryptocurrencies When the Fed Stops Raining Money?
How do you propose the SEC protect investors from this “malicious bubble”? Would you make it illegal for me to buy into a joke cryptocurrency or any other sort of bubble? And who ultimately gets to decide what’s a bubble that we dumb money need to be protected from vs something that is just in its infancy or whose potential despite risks is greater than its current value? People use this sort of “protect the retail investor” rhetoric so often to reduce the capabilities of retail investors to participate in markets. This sounds like more of that.
← PreviousPage 3 of 7Next →