Readit News logoReadit News
ianleeclark commented on How I Program in 2024   akkartik.name/post/progra... · Posted by u/surprisetalk
behnamoh · a year ago
> My experience with types is TypeScript, Elixir and a bit of Scala.

Dude, Elixir only recently introduced some sort of a type system...

ianleeclark · a year ago
Elixir has had dialyzer + type hints for years

Deleted Comment

Deleted Comment

Deleted Comment

Deleted Comment

ianleeclark commented on jq 1.7   github.com/jqlang/jq/rele... · Posted by u/wwader
p-e-w · 2 years ago
> That's exaxtly why jq is so nice. Nice alternatives just don't exist

Write a simple Python script, parse JSON into native objects, manipulate those objects as desired with standard Python code, then serialize back into JSON if necessary. Voila, you have a readable, maintainable, straightforward solution, and the only dependency (the Python interpreter) is already preinstalled on almost every modern system.

Sure, you may need a few more lines of code than what would be possible with a tailor-made DSL like jq, but this isn't code golf. Good code targets humans, not "least possible number of bytes, arranged in the cleverest possible way".

ianleeclark · 2 years ago
The point in my career at which I used jq the most was when I was doing a lot of work with Elasticsearch doing exploratory work on indexed data and search results. Doing things such as trying to figure out what sort of values `key` might have, grabbing ids returned, etc.

Second to this, I've mostly used jq to look at OpenAPI/swagger files, again just doing one-off tasks, such as listing all api routes, listing similarly named schemas, etc.

From what I've seen in the companies I've worked for, this is fairly consistent, but naturally I can't speak for everyone's use-cases. At the end of the day, I don't think most people use jq in places where readable or maintainable would be most appropriate.

Deleted Comment

ianleeclark commented on Mastering Emacs   masteringemacs.org/... · Posted by u/User23
yawpitch · 2 years ago
^ with the caveat that a well-configured emacs requires a well-configured emacs, often leading to an infinite loop.
ianleeclark · 2 years ago
I installed spacemacs 5ish years ago and have added maybe 20 lines to my configuration since then. None in the past 4 years. It's really overstated the amount of maintenance that Emacs requires.

Deleted Comment

Deleted Comment

u/ianleeclark

KarmaCake day1582March 21, 2016View Original