HNHacker News
TopNewBestAskShowJobs

lediur

5 karma · joined September 13, 2014

[ my public key: https://keybase.io/derrickliu; my proof: https://keybase.io/derrickliu/sigs/0emC9Kp1lX7SuKKlDW6kTVeq1WjTc0uihhbZciTztvE ]
submissionscomments
lediur··on Learn how to unleash the full potential of the type system of TypeScript
Linters for TypeScript recommend using `Record<string, any>` instead of `object`, since using the `object` type is misleading and can make it harder to use as intended.

See:

- https://typescript-eslint.io/rules/ban-types/

- https://github.com/typescript-eslint/typescript-eslint/issue...

- https://github.com/microsoft/TypeScript/issues/21732

- https://github.com/microsoft/TypeScript/pull/50666

lediur··on Why You Should Build a Hackintosh
You can do that in WSL already - the Windows drives are mounted and writable through the Linux file system as /mnt/c, /mnt/d, and so on. You can use Linux executables to create, delete, and modify files just as you'd expect with any file system mount (without some Linux-specific concepts like permissions).

With WSL, I've been able to run Linux-based dev and build tools and Windows IDEs at the same time on source stored in the Windows world with no issues.

On the other hand, it's true that you can't / shouldn't modify files on the Linux file system (i.e. Files outside of /mnt/...) in Windows itself since the Linux-specific concepts would get mangled. With the mounts though, there shouldn't be any need to do this.

lediur··on Show HN: Nighthawk: A stealthy, simple, unobtrusive music player
For me I think it's because music is a hobby I care a lot about, and I'd like the "option but not the obligation" to easily improve my experience. I've tried a bunch of other music players over the years (on the go, Plexamp seems the most promising in the "access and play all the weird formats in my music collection anywhere in the world, look nice, and get out of my way" category) but I keep coming back to foobar2000 for the sheer capability and flexibility to tweak how I manage and interact with my music every day.
lediur··on Show HN: Nighthawk: A stealthy, simple, unobtrusive music player
Having used foobar2000 for many many years, I've loved its power and customizability, but I do wish that there was a modern way to customize its UI.

The basics are simple, but if you want to do styling tweaks or anything approaching a "custom" UI, you need to start hacking away at an obscure C++ SDK or an even weirder mishmash of GDI+ and old JavaScript.

If there was a modern and easily customizable frontend to foobar2000's core audio and media library engine, I'd be in love. Something like Zeit's Hyper, but for music. I'd be willing to trade off Electron resource usage if it meant I could set up the UI just how I like it.