timmy-turner | 10 months ago | on: Vibe coding a drone simulator [video]
timmy-turner's comments
timmy-turner | 1 year ago | on: A bear case: My predictions regarding AI progress
Ask it how to deploy an app to the cloud and it will insist you need to deploy it to Azure.
These ads would be easily visible though. You can probably sell far more malicious things.
timmy-turner | 1 year ago | on: Crossing the uncanny valley of conversational voice
timmy-turner | 3 years ago | on: A 1968 massacre in Vietnam
Lots of Dresdeners were supporters of faschism before the war and after the war. A quite vocal minority still supports neofaschism up to this day. In the 90ies they installed the myth of the "holocaust bombing" as an allied war crime, trying to turn themselves into the victims of war.
timmy-turner | 5 years ago | on: It's Never a Bicycle Accident
It sucks to read this, but its completely sound and logical for those who only drive cars. As more people start using bicycles these days, its slowing shifting though.
timmy-turner | 5 years ago | on: CDC website built by Deloitte at a cost of $44M is abandoned due to bugs
Seeing orgs as people with characters, oh my, my eyes are opened now. Sounds weird but it makes sense the few times that I have worked on contracted projects.
For me, an added complexity in gauging the other side of the contract is that their personality changes depending on the actual people that are involved. When some higher-ups join the project it in later stages, the personality may turns even more mental than it already is.
timmy-turner | 5 years ago | on: Neural Geometric Level of Detail: Real-Time Rendering with Implicit 3D Surfaces
timmy-turner | 5 years ago | on: Clickhouse DB Migration Framework
I was looking for one some months ago and kind of settled with Typeorm migrations but I don't like them that much. It feels clunky and doesn't seem to provide tooling for saving the schema. Little things that annoy me are the timestamp names for the migrations and the needless "extend this base class for your migration" Java cargo-culting which feels so weird in JS/TS.
timmy-turner | 5 years ago | on: Show HN: ORM for TypeScript with no query-builder, supporting full SQL queries
Raw SQL query strings also do not compose well and I miss auto completion when writing them (yes, I'm a spoiled kid after so much Typescript usage).
As with everybody else, I didn't like existing ORM/builder approaches, so I built and use my own with type-inference: https://github.com/hoeck/typesafe-query-builder. Any feedback would be great because I have the gut feeling that this one has gone way too far on the type astronaut side of things.
timmy-turner | 5 years ago | on: Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres
The few times I tried it (mostly in tests to check that the ORM is working properly) the #1 thing I was missing is a prettier-plugin that automatically formats SQL in the same way it currently works for `html` tagged templates.
I completely agree to the 'constrained by ORM' and 'useless features' part though. Postgres `json_agg` is a godsend and I love to be able to reason over simple joins and queries.
BTW, my own approach to use `json_agg`, `json_build_object` and json columns within a typesafe query-building DSL is this: https://github.com/hoeck/typesafe-query-builder
But its mostly for replacing simple ORM fetches, it wont do complex analytical queries. For that I'd like to write SQL directly as query-DSLs tend to quickly stop being usable in that situation.
timmy-turner | 5 years ago | on: Making Emacs Popular Again
At work, I actually try to get ppl away from Jetbrains IDEs because they are slow and their typescript and prettier support seems pretty buggy to me.
Unfortunately, most developers I meet these times are not the kind of hacker types that want to understand and optimize their tools but rather just to get stuff done on the surface (which is totally fine). So emacs isn't just a good fit for them.
timmy-turner | 5 years ago | on: Making Emacs Popular Again
And the upside that everything is accessible in the scratch buffer is really worth it.
And for me, Elisp has been a kind of constant during my career. I wouldn't bet that in ten years, I'm still doing Typescript or Javascript. But if I'm still into programming computers via keyboards I will definitively use Emacs for that.
timmy-turner | 5 years ago | on: Making Emacs Popular Again
For instance, the global namespace is great to play with and learn commands in the scratch buffer. Also the custom datastructures and generally the emacs lisp abstractions around editing are a joy to use.
I agree though that the rendering is too old fashioned. I'd love for Emacs to get smooth, animated scrolling instead of that tty-esque line-by-line movement of the text. That really makes it hard to keep track when scrolling throught large documents.
timmy-turner | 6 years ago | on: PostgreSQL is the worlds’ best database
PG sure seems to have better foundations and generally a more engineered approach to everything. This leads to some noteworthy outcomes in the tooling or the developer UX, for example: PG won't allow a union type (like String or Integer) in query arguments. PGs query argument handling is rather simple (at least the stuff provided with libpq), it only allows positional arguments.
Sometimes, MySQL by extending or bending SQL here and there allows for some queries to be written terser, like an update+join over multiple tables. Also I did actually enjoy that MySQL had less advanced features, so it seemed to be easier to reason about performance and overall behaviour.
timmy-turner | 6 years ago | on: Prisma 2.0 Beta: Type-safe Database Access
I'm in the avoid code generation camp as well as typically my build processes are complex enough and don't need another step.
But I am not quite satisfied by the existing query generators. Also after having read https://github.com/jawj/mostly-ormless/blob/master/README.md I wanted to put Postgres' `json_agg` function into use as it looks like it is simplifying a lot of the nested objects stuff one serves over REST APIs.
So I designed my own https://github.com/hoeck/typesafe-query-builder - with special support for `json_agg` and `json_build_object`. Its working already in production and for me, the dev UX is unprecedented in working with database code. Typechecks and autocompletions really boost it. But to be honest, I'm a bit worried about Typescript compiler bugs and compilation times when the project grows.
timmy-turner | 6 years ago | on: Prisma 2.0 Beta: Type-safe Database Access
My own take of interfacing with an SQL database with Typescript: a query generator that uses mapped types a lot to infer result set types from queries and a schema file.
https://github.com/hoeck/typesafe-query-builder
Not sure if thats a good idea and if the Typescript inference even scales that well when using lots of tables.
Any feedback and criticism would be welcome.
timmy-turner | 6 years ago | on: We 30x'd our Node parallelism
timmy-turner | 6 years ago | on: What ORMs have taught me: just learn SQL (2014)
Your second case, if I recall this correctly (ActiveRecord made my SQL skills fade away), this plain JOIN would just return a row with the same book but a different author. `to_jsonb(authors.*)` is just operating on a single row. But what you want is possible (aggregating rows into a JSON object) by using `jsonb_agg`. Whether the lib supports inferring the correct typings for that is another question though.
timmy-turner | 6 years ago | on: What ORMs have taught me: just learn SQL (2014)
What just blew me away is the thing with the `JOIN` and the `to_jsonb(authors)`, all with complete typing support for the nested author object. I was actually looking to use a classical, attribute driven query generator (with the sort of chaining API everyone is used to: `tableName.select(...coumns)` etc.) for my next project involving to maybe replace/wrap/rewrite a Rails app and its ORM with Typescript and Node. Maybe I'm trying this instead I'm already half sold. Just worried about forcing colleagues having to learn SQL instead of using a fancy wrapper.
timmy-turner | 7 years ago | on: EU Copyright: Block Everything, Never Make Mistakes, but Don't Use Upload Filter