News for hackers. Stuff that matters.

monssoen

Re:Show HN: Localize React apps without rewriting code on Tuesday June 03, 2025 @04:16PM (#44174219)
I just remembered I built a tool to list all hardcoded strings from a React project in a similar way by parsing the AST.

https://github.com/benmerckx/find-jsx-strings

I really wonder when javascript frameworks will get over file system routing. It didn't take PHP too long to move to better solutions.
Re:Taking the Drizzle Challenge on Sunday August 11, 2024 @07:35AM (#41215493)
I tried Kysely while evaluating libraries before writing my own. Its heavy reliance on strings for everything was a turn-off because it stops you from using any of the refactoring options Typescript offers. You cannot rename a column for example and have it applied automatically.
Re:Taking the Drizzle Challenge on Sunday August 11, 2024 @07:33AM (#41215479)
This library tries to get as close to sql as possible. Basically write sql through function calls. Your IDE will autocomplete which method to call. What you gain is type safety. Change the name or type of a column and it propagates through your codebase.
Re:Taking the Drizzle Challenge on Sunday August 11, 2024 @07:31AM (#41215471)
Rado can be described as sql behind function calls that achieves type safety in Typescript. It does not include any of the ORM abstractions that Drizzle has.
Re:Ask HN: Is it time for a new Storybook? on Sunday November 20, 2022 @03:15AM (#33679265)
There are some alternatives being built, of which I find ladle.dev the most useful.
Re:Show HN: Alinea – open-source headless CMS on Thursday September 29, 2022 @11:03AM (#33021691)
We're launching an alpha version of Alinea to the public today. What's Alinea? Our take on content management: build a schema, boot up the dashboard, create content and query data with your favorite JavaScript framework. We focus on:

- Fully typed content - type-safe experience for TypeScript users

- Storing content in Git - but making it fully queryable

- Minimal setup - `yarn add alinea && yarn alinea init`

- Self-host - or let our cloud handle it

- Rich set of fields - easily added to with custom fields

- Hierarchical content - make it easy for editors to find content

- Zero latency - embedded SQLite to query data without network overhead

- Collaborative - fields are built on Y.js allowing conflict-free multiplayer editing

- Easy hosting - works fine in a serverless function

It's still quite early in development but we feel our alpha version has enough structure that we can get to a stable version in the short term, without breaking the foundations that we find work well.

Re:Library of Database Schemas on Monday September 05, 2022 @05:00PM (#32729416)
Another great collection of database schemas can be found here: https://drawsql.app/templates
Re:TypeScript as fast as Rust: TypeScript++ on Saturday April 09, 2022 @02:27AM (#30965686)
A feature that Haxe offers could help here. Abstracts are compile time only types of which the implementation is fully inlined. Meaning we could define an abstract over ArrayBuffer which has an iterator of abstracts over Float64Array which define the x and y property getters. Once compiled the code will look very similar to the example given. It's one of the things I miss the most in TypeScript, coming from haxe.

https://haxe.org/manual/types-abstract.html https://code.haxe.org/category/abstract-types/color.html

Re:FrontPage: The Good, The Bad, and The Ugly on Thursday November 26, 2020 @09:46AM (#25220410)
I remember asking my dad "can you get me Frontpage, I'd like to create a webpage". He gave me a book on html/css instead and it defined my career.
Re:Where to start coding up a drawing app? on Tuesday December 03, 2019 @08:05AM (#21691937)
If you're going the Javascript way, you could have a look at how Wick editor was built. It's a Flash like animation editor whith simple drawing tools and is open source.

https://github.com/Wicklets/wick-editor

Have a look at Haxe. It transpiles to C++, Java, Javascript and Python.

https://haxe.org

Re:Compulab Airtop – Natural Airflow Desktop on Wednesday November 16, 2016 @01:58AM (#12965060)
Streacom has fanless cases that look way better. They're not as small though.