Better HN
topnewbestaskshowjobs
Log inSign up

gcmeplz

325 karma · joined Oct 5, 2018 (8y ago) · 65 submissions

personal site: https://will-keleher.com/
Submissions

1.

Amber Eye: a Slay the Spire engine approaching top-level play(8e9f.github.io ↗)

1 points · by gcmeplz · 1w ago · discuss

comment 4mo ago · link · parent

Agreed that it (used to be) less common. AP style (like the article mentioned) uses spaced em dashes, and I think that style of spaced em dashes are more common in writing today because that's what Claude (particularly Sonnet) likes to use (based on some half-baked investigation I did a bit ago [^1]). OpenAI models generally uses the American-style unspaced em dashes, which is why that particular style looks LLM-y to people now.

edit: Another comment recommended https://www.pbjstories.com/blog/spaces-around-em-dash which does an awesome job of diving into dash usage by style guide

[^1]: https://will-keleher.com/posts/your-dashes-suggest-which-mod...

comment 6mo ago · link · parent

yeah, I immediately came to the comment section to look for inlay hints, and your comment is the only one that mentions them. I guess many people might not be aware that they're a standard editor option?

fwiw, while inlay hints are great, they don't work in either git-delta or github, so they're not availabe in a good chunk of the places that I'm looking at code, so for TypeScript, I do lean towards object arguments with keys the way the article suggests.

comment 6mo ago · link · parent

Nice! It's great to confirm that it can in fact do it, and it's interesting that even with the clear guidance from an expert it took a few tries.

https://genai-showdown.specr.net/ is fascinating btw!

comment 6mo ago · link · parent

Your example doesn’t quite work btw! It removes two legs rather than just one.

It’s possible for sure, but it really doesn’t match most people’s intuitions for what these models should be able to do

comment 8mo ago · link · parent

Non-consumer printers are also pretty good! I used to teach 120 students, so printing out materials for all of them for a week would sometimes be 1,000+ pages. 500 pages? I can't picture that causing problems for any org that needed to print things regularly.

And toner? I'd wager that the printer is going to use a print drum. That does have toner inside, but you'd talk about replacing the drum–not running out of toner.

Even consumer drum printers are pretty good nowadays. I have a Brother drum printer, and I wouldn't worry about sending a 500 page job to it if I needed to.

https://help.brother-usa.com/app/answers/detail/a_id/183926/...

7.

Nano Banana 2 Partially Passes the Seven-Legged Spider Test(will-keleher.com ↗)

2 points · by gcmeplz · 9mo ago · discuss

comment 1y ago · link · parent

The types look great on remeda, but one thing that looks intriguing about SuperUtilsPlus is the focus on being tree-shakeable. Lodash's lack of tree-shake-ability is a drawback to using lodash on the frontend.

edit: the types on remeda look great though! If I were doing a backend-only NodeJS project, I'd be super tempted to test it out.

9.

Xkcd's "Is It Worth the Time?" Considered Harmful(will-keleher.com ↗)

27 points · by gcmeplz · 1y ago · 18 comments

comment 1y ago · link · parent

State-based ACT scores are also highly influenced by who takes the ACT. If more students choose to take the ACT, the scores might go down even it's because your education system is doing a better job because more kids are trying for college.

For the same reason, you'll see some surprising state scores for SAT/ACT. If you're in a state that prioritizes the ACT, the main students taking the SAT are the strongest students who are looking at out-of-state schools.

Aside from the time lag, I don't think you can look at voluntary test scores and draw many useful conclusions from it.

comment 1y ago · link · parent

I write a lot of JS/TS for my day job, so zx (https://github.com/google/zx) has been a nice tool for bash scripts that start getting a little too complex.

12.

I avoid easy things I haven't tried(will-keleher.com ↗)

1 points · by gcmeplz · 1y ago · discuss

comment 1y ago · link · parent

Should probably say "most engineers I've worked with," but I think that's mostly a testament to the git workflows where I've worked (lots of small commits and short-lived branches).

Plus, once you pair with one person with snazzy aliases, it might make you want to make your own

comment 1y ago · link · parent

> Nowadays I instead just clone a repo to a ramdisk, purge the .git folder and then rsync it to my hoarded stash of git repos.

You're probably already doing this, but if you do a shallow clone (git clone --depth=1 ..) you'll limit the amount that ends up in .git that you need to purge.

Even with shallow clones, I'm still surprised that it ends up with a .git that's a decent percentage of the total. I just tried it on a repo and ended up with 16% of the total size being .git. I would have guessed that it'd be much smaller than that.

15.

Most engineers have Git aliases; what are yours?(will-keleher.com ↗)

3 points · by gcmeplz · 1y ago · 7 comments

comment 1y ago · link · parent

locate is nice, but I think that on most distros its index is only updated once/day (unless you adjust the cron job that updates it more often). Most of the times I'm trying to find something, I haven't modified it recently, but it can definitely lead you astray.

comment 1y ago · link · parent

I love the look of `just` and have been meaning to try it out, but this feels like one of those examples where Make's dependency management shines—it lets you specify that many of these commands only need to run when particular files change:

    node_modules: package.json yarn.lock
         yarn install --pure-lockfile

    prettier: $(shell find src -type f -iname "\*.ts")
         prettier --check src

    ...

    ci: node_modules prettier eslint vitest

And as time goes on, I always end up wanting to parallelize the commands that can be parallelized (citest, lint, eslint), so I'll turn `make ci` (or `just ci`) into its own little script.

18.

Indexes are sorted arrays (sort of)(will-keleher.com ↗)

1 points · by gcmeplz · 3y ago · discuss

comment 3y ago · link · parent

I think sometimes "clever" is just a term for bad code that you don't like. The clever-code react example doesn't seem like a good example of clever code to me—it just seems awful! If you were do something clever for that function, it could look like this:

  function extractDataFromResponse ([Component, props]) {
    return _.pickBy({Component, props}, Boolean);
  }
I'm cheating by using lodash, but I think this code is a fairer comparison to the unclever example that's given in the article.

comment 3y ago · link · parent

Could you link to some examples of your cards? Your usage sounds cool, but I have a hard time picturing what cards I'd actually want to make.

21.

So, what can you do with a process ID?(will-keleher.com ↗)

90 points · by gcmeplz · 3y ago · 25 comments

comment 3y ago · link · parent

Absolutely bonkers. It can even ^C its way out of loops.

> while true; sleep 1; echo "yay"; done

> yay > yay > yay > yay > yay > ^C

comment 3y ago · link · parent

I feel like that also describes 99% of the thinking that I do.

24.

Slack Is the Worst Info-Radiator(will-keleher.com ↗)

3 points · by gcmeplz · 4y ago · discuss

25.

Culling Containers with a Leaky Bucket(will-keleher.com ↗)

1 points · by gcmeplz · 4y ago · discuss

26.

Writing FizzBuzz in MySQL 5.7 for no good reason(will-keleher.com ↗)

1 points · by gcmeplz · 4y ago · discuss

27.

Considered Harmful(en.wikipedia.org ↗)

1 points · by gcmeplz · 4y ago · discuss

28.

Large Analytics SQL Queries Are Bad(will-keleher.com ↗)

1 points · by gcmeplz · 4y ago · discuss

comment 4y ago · link · parent

ClassDojo | Senior Engineer (Backend, Fullstack, Data) | Fully REMOTE (Americas timezones) | competitive compensation & equity | https://www.classdojo.com/jobs/

ClassDojo is a widely loved K-8 communication tool for teachers, children, and families on a mission to give every child on earth an education they love. The engineering team is great: good people, fun problems, and a product that users love.

- fully & permanently remote. we work in small cross-functional fully autonomous teams

- stable: well funded YC company that's been around for 10 years. good work-life balance: we want people to stick around!

- engineering team FAQ: https://www.notion.so/classdojo/ClassDojo-FAQ-for-Engineerin...

- tech: TypeScript, React, Flutter, MySQL, MongoDB (delenda est), Redis, Terraform, HAProxy, AWS

https://www.classdojo.com/jobs/#open-roles

30.

Shell patterns for easy automated code migrations(will-keleher.com ↗)

2 points · by gcmeplz · 4y ago · 1 comment

123