HNHacker News
TopNewBestAskShowJobs

cehrlich

1,220 karma · joined September 7, 2018

c-ehrlich.dev github.com/c-ehrlich
submissionscomments
cehrlich··on TypeScript is now officially 10 years old
If you're comfortable with JS, you don't need a book to learn TS.

There are two main resources I would recommend:

- for those who prefer written content, the TypeScript Handbook [1]

- for those who prefer video content, the first couple videos of Jack Herrington's No BS TS series [2]

Other than that, just start using it. My main advice would be that your TS code should look as much like JS code as possible, ie don't explicitly type everything, just rely on inference where possible. Basic generics can be useful occasionally, but most of the "Type Challenge" type stuff is only really useful to library developers.

[1] https://www.typescriptlang.org/docs/handbook/intro.html

[2] https://www.youtube.com/watch?v=LKVHFHJsiO0&list=PLNqp92_EXZ...

cehrlich··on Ten Years of TypeScript
There are a lot of other great languages, but none of them run in the browser. Once you know that your frontend is in TS, there are a lot of advantages to writing the BE in it also. Like I said, there are exceptions, but it has become my default.
cehrlich··on Telefunc: Remote Functions instead of API
v10 is in beta and will go into RC fairly soon. I'd put my money on a 2022 final release. I'm already using it in production and it's rock solid. Only complaint is still having to restart the TS server in your editor occasionally due to all the inference magic it does.
cehrlich··on Ten Years of TypeScript
TypeScript is the best thing to happen to web dev, and it keeps getting better. My only gripe is that sometimes in a codebase that is heavy on inferred types I need to restart the TS server occasionally. Nonetheless, unless there is a specific requirement that TS isn't the right choice for, it's the language I reach to for everything.
cehrlich··on Why read Dostoevsky? A programmer's perspective
Great question. I always recommend Anna Karenina as the one book everyone should read, but maybe it's actually a terrible thing to recommend to someone who Doesn't Like Reading.

I don't have an answer for you, but you got me thinking :)

cehrlich··on Ask HN: A job interview you enjoyed?
DynaTrace, in Vienna.

No leetcode, no whiteboarding, no nonsense. Just a 5 minute recruiter screen, and then two nice ~90 minutes each conversations about the technologies I've used, projects I've contributed to, opinions/approaches, asking me to explain how the stuff I use actually works, etc.

Ended up not working out due to a hiring freeze, but their interviews were refreshing, and I think they got all the information they needed without having to do any of the usual annoying stuff.

cehrlich··on Why Apple Will Switch to ARM-Based Macs (2014)
Same. It certainly had its flaws, but it was ahead of its time in many ways. At the time I was traveling a lot and didn't need much power so it was perfect for me. It seems I got extremely lucky as I never had keyboard issues with mine.

Nowadays you could stick a (maybe throttled or fewer cores to get even more battery life) M1/M2 in there, add a second USB-C port, and it would be an excellent device without any of the downsides that the original version had.

cehrlich··on Spaced repetition can allow for infinite recall
I've been using Anki for language learning and it's a superpower. After just over two years I passed an exam that requires a passive vocabulary of about 10,000 words. Other people who grinded harder than me have managed it even faster, some in under a year.

However one big mistake people make is to think an SRS helps you learn. That's not true. It helps you not forget things you've already learned. You still need some real world interaction with the material.

cehrlich··on Ask HN: What HN post made you money?
I posted in "who wants to be hired?" and got interest from several companies. One of them is now my employer.
cehrlich··on America's new favorite pastime: The lottery
EV decreases as sales increase though
cehrlich··on Am I an idiot for wanting a dumber phone?
If it wasn't for 1. maps/transit directions (Google Maps is the only service that is useful for this where I live) 2. video calls with family, I would probably be OK with an early 2000s Nokia. But I want both of those things, so I keep reluctantly using an iPhone.
cehrlich··on Ask HN: I love programming but hate the industry. Can anyone relate?
Testing people's ability to learn irrelevant stuff in their free time mostly tests how much free time they have and whether or not they're willing to sacrifice it to learn irrelevant stuff.
cehrlich··on Ask HN: I love programming but hate the industry. Can anyone relate?
It's not though, it's a test of how hard you've studied for algo problems. Relevant for some programming jobs, but not for most.
cehrlich··on Sitting and standing at work (2015)
I take basically all calls and remote meetings while walking when possible (ie I don't need to refer to stuff on the computer). Sometimes it's outside, others I'm just pacing back and forth in my apartment. I find my performance is much better this way, and also I just feel better.

I've taken this so far now that I bought a lavalier mic + wind guard to use with my phone, so that others don't have to suffer the audio quality of the AirPods mic. If I need to take notes, I type them into the iPhone Notes app. Transferring them to the 'source of truth' on the computer (Workflowy for me, probably Notion etc for many others) also has the benefit of reviewing everything.

cehrlich··on The case for bad coffee (2015)
Austrian here. Completely agree that Austrian coffee is mostly terrible (and expensive!). I still like going to the traditional coffee houses, but it's certainly not for the coffee.

And yes, the first time I had coffee in America (I think it was from Dunkin Donuts) I couldn't believe how much worse it was than anything I'd ever tasted in my life.

cehrlich··on The 13-Inch MacBook Air
It seems like a fantastic laptop, but for people who are just buying one for themselves (vs 100+ for a corporate fleet) I don't think it's a great value proposition right now.

A base model M1 MacBook Air can be bought refurb from Apple for $850, a much more palatable price than the $1200 for the base M2 model.

On the other hand, if you add 16GB RAM to the high end M2 Air, it's only $300 less than the 14" MacBook Pro, which is a much nicer computer in pretty much every aspect except weight.

cehrlich··on Nothing Phone (1)
I actually like the look a lot, although I don't see it as a big selling point because the first think I'd do is put it in a case.

Other than that it seems like a well balanced midrange device (depending on whether or not the cameras end up being good).

The real problem is at the current price point it's competing with some pretty good phones such as Galaxy S21 FE and Pixel 6, and then you can get a OnePlus Nord 2, which is still pretty good, for nearly half the price.

I don't know who this is for.

cehrlich··on Publishing your work increases your luck
Same, I can't remember where I heard it first but it changed my life. Would be curious if someone knows the origin of it.
cehrlich··on CS101: Introduction to Computing Principles
Harvard's CS50 is specifically described as a programming course for non-programmers.
cehrlich··on LG 28-inch 16:18 DualUp Monitor
You can run it as two 16:9 monitors or one 16:18 monitor
cehrlich··on ‘Your Map Is Wrong’
He's not saying that new stuff will always not be zero sum, just that the space of potential non zero sum new things is bigger than the space of things that already exist.
cehrlich··on SpaceVim 2.0
Yeah, I also use VIM bindings in VS Code and love it. When I'm at my desk, in the zone, writing code, my hands pretty much don't leave the keyboard. But when I'm leaning back, browsing through files, etc. I just need to press 'i' once and I have a "normal" IDE.

I couldn't imagine not being able to hover my cursor over something to read its type definitions, cmd+click to go into whatever I'm clicking on, etc.

Sometimes I see one of those videos of a fully tricked out NeoVIM and it looks tempting, but I know I wouldn't actually like it.

cehrlich··on ‘Your Map Is Wrong’
Zuckerberg is fundamentally right [1], and I think it's a good observation that many people fail to make.

But I think it's companies other than Facebook/Meta that are creating the new value.

[1] https://clickhole.com/heartbreaking-the-worst-person-you-kno...

cehrlich··on New MacBook Air with M2
The base model seems fine, but I'm amazed by how expensive the higher spec models are.

MacBook Air M2, 8/8 cores, 16GB, 1TB: 2189 Euro

MacBook Pro 14, 8/14 cores, 16GB, 1TB: 2479 Euro

That's too small of a difference for how much nicer the Pro is.

cehrlich··on Ask HN: Is it a strength that HN's UI has not changed over many years?
It's a bit annoying to use on phones but I think that might actually be a (completely unintentional) advantage.
cehrlich··on The crypto crisis has created an advertising vacuum
I'm also bearish on crypto, but by that logic it will be at -10k three months from now.
cehrlich··on The new wave of React state management
For anything even slightly complex you need to either use multiple providers or be very careful about rerenders
cehrlich··on The new wave of React state management
Agree completely, React Query has made it so much easier to build any kind of app that deals with server state, stuff that would have been extremely challenging to write in the past is now just a couple of lines and works better than before.

I personally like using Jotai (if I just want a better version of React Context) or Zustand (if I need a bit more than that) for “client state” alongside React Query, but I’ve also built projects where I didn’t need a client state management solution at all.

cehrlich··on Ask HN: Who wants to be hired? (July 2022)
I am looking for a Junior Frontend or Full-Stack (with Node) role.

  Location: Vienna, Austria
  Remote: Either is fine.
  Willing to relocate: Would be interested in relocating to London (need visa), or Japan (spouse is Japanese). Anywhere else, probably not.
  Technologies: TypeScript, React/Next.js, CSS, React Query, Express, Postgres, MongoDB, REST, GraphQL, tRPC, Jest, Cypress, Docker, GitHub Actions, AWS (EC2/S3/RDS), Git, Linux
Self taught programmer with a background in design, currently working as a University lecturer while building out projects and contributing to OSS, looking for my first full time dev job. I’m a full stack developer with a particular strength in front end design/styling but can contribute anywhere in the stack.

My long term goal is a role where I can make use of my experience as a teacher, but for the time being I would also be happy just being an IC.

Portfolio: https://c-ehrlich.dev

Github: https://github.com/c-ehrlich

Email: on portfolio/github

CV: on request

cehrlich··on Ask HN: How is the remote vs in-person trend looking?
I'm currently looking for a job, and in my experience everything is at least hybrid, and a lot of places are full remote. I've not interviewed with a single full on-site company so far. Remote-first companies, if they have a good process in place, can have a huge advantage in terms of access to talent.

Personally I enjoy being in the office 2-3 days a week as long as the commute isn't too bad, but I'm seriously considering going full remote as it opens up a lot of life possibilities.

← PreviousPage 2 of 10Next →