Daniel's Avatar

Daniel

@webcloud.se

Software Engineer from Sweden working at carla.se with things like TypeScript, ReScript, React, Next.js, GraphQL, Relay, Node.js, Go & PostgreSQL. Currently experimenting with OCaml! Personal website & blog: webcloud.se GitHub: github.com/danielstocks

87
Followers
28
Following
156
Posts
02.09.2024
Joined
Posts Following

Latest posts by Daniel @webcloud.se

No disrespect to its creator and maintainer! it's probably a fantastic library and undoubtedly took a lot of effort to build! I suspect it's a race to the bottom as the project reputation and traffic will ultimately suffer. Who said there's no money in open source? (/sarcasm)

10.02.2026 09:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
date-fns - Open Collective Modern JavaScript date utility library

Here's what interesting: the project has collected $385,082 to date in contributions. And continues to collect about $10k / month. The project itself hasn't had any updates since September last year, a single maintainer. That's quite passive income!

opencollective.com/date-fns#cat...

10.02.2026 09:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
date-fns - Open Collective Modern JavaScript date utility library

This piqued my curiosity... so I looked up the project and found the sponsor page on Open Collective. Nothing unusual for an OSS project, you can buy a bronze sponsorship for $50/month and that will earn you a "spot" on their website.

opencollective.com/date-fns

10.02.2026 09:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

A colleague of mine noticed something strange: date-fns (date-fns.org ) which is a fairly popular Open Source JavaScript library has an unusual amount of, dare I say "shady" sponsors on their website. My first thought was that the website/project had been exploited somehow?

10.02.2026 09:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Not for me. Probably due to project size / complexity in types. How long does it take to run tsc β€”noEmit in terminal?

01.10.2025 09:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
1997 FΓΆr 15 Γ₯r sen SV
1997 FΓΆr 15 Γ₯r sen SV YouTube video by HΓ€stens Beds

This Swedish TV Commercial from 1997 has been stuck in my head since childhood, it even hits harder today in the age of planned obsolescence. I still occasionally think about buying a "HΓ€stens" bed to this day :D
www.youtube.com/watch?v=UjVA...

08.09.2025 06:13 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Remember folks: Stay calm and git commit

01.09.2025 10:08 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Robin Weser - Inline Styles on Steroids
Robin Weser - Inline Styles on Steroids YouTube video by React Karlsruhe

Nice talk on inline-styles w/ CSS Hooks by @robinweser.com and why it might someday replace the need for Tailwind et. al :)

www.youtube.com/watch?v=6dS5...

07.08.2025 12:48 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
The new Gutenberg editing experience A new editing experience for WordPress is in the works, code name Gutenberg. Read more about it and test it!

After further research I ran across wordpress.org/gutenberg/ which IMHO solves this pretty neatly with all sorts of inline formatting. They toggle a background color as a visual cue to show whether you're inside or outside the block.

26.07.2025 20:41 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
editor/packages/prosemirror-codemark at main Β· curvenote/editor An interactive scientific editor built with ProseMirror, React and Redux - by Curvenote. - curvenote/editor

@row1.ca github.com/curvenote/ed...

This is an amazing write-up (and solution) on something that has bugged me A LOT over the years πŸ˜…

Just wondering whether the same concept could be applied to bold, italic, links etc and not just inline code blocks?

26.07.2025 20:28 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
Preview
Leap - AI developer agent that builds and deploys apps to your cloud Leap is a full-stack AI that works with you, not instead of you. Build full-stack applications and deploy them to your cloud on AWS or GCP.

Another interesting contender in this space is leap.new

Seems like the ”.new” domains is a common theme already.

23.06.2025 19:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Well done! I only had the stamina to complete 10 days this year :D

But it was my first time using OCaml so pretty happy about it!

23.06.2025 08:22 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Found it, so I guess it's called Code Lens :)

23.06.2025 08:12 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
advent-of-code/2024/ocaml at main Β· danielstocks/advent-of-code :santa:πŸŽ„Yeehaaaaaa. Contribute to danielstocks/advent-of-code development by creating an account on GitHub.

It is indeed!

github.com/danielstocks...

23.06.2025 08:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Ah! What is it called?

23.06.2025 08:02 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
OCaml vscode plugin

OCaml vscode plugin

Just gave the OCaml VSCode plugin a try (I've been using NeoVim + LSP integration previously) and one cool detail I haven't seen elsewhere is making the inferred types visible w/o having to hover or place your cursor to reveal the type. Pretty neat!

23.06.2025 07:34 πŸ‘ 12 πŸ” 1 πŸ’¬ 5 πŸ“Œ 0

I always imagined ”Digg” built on aproto could be a thing. Maybe someone made it already? A simple bookmark feed with categorization and upvotes.

18.06.2025 11:19 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Getting a lot of errors for Claude Sonnet 4 (Cursor) and Gemini Pro.
Nooooo I'm going to have to use my brain again and write 100% of my code like a caveman from December 2024.

Getting a lot of errors for Claude Sonnet 4 (Cursor) and Gemini Pro. Nooooo I'm going to have to use my brain again and write 100% of my code like a caveman from December 2024.

Best #hackernews comment from #GCP outage yesterday (also affecting various AI services)!

It's kind of scary to think how quickly we become dependent on these tools... although one could argue it's been a very long time since anyone was truly self-sufficient in this day and age.

13.06.2025 07:17 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I don't know if I dreamt this or if it's actually a thing but I cant find any references to it now: I saw a proposal for a new DOM API that can set innerHTML but do diffing like virtual DOM so that I can naively update an entire document but only re-painting the stuff that actually changed?

05.06.2025 06:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

When the pendulum swings back.. it swings back hard πŸ˜‚

05.06.2025 06:01 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I still love Virtual DOM. I’ve been using the Preact ”no build tools route” for a few client-side heavy side-projects lately.

30.05.2025 12:40 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image
16.05.2025 16:36 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I've been a bit silent here recently mostly due to being on parental leave! But now I'm back, and with a brand new 2025 profile pic! yeah!

11.05.2025 18:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
CSS Hooks Hooks add CSS features to native inline styles, with no build steps and minimal runtime.

Are you like me? "kind of" like lots of things about Tailwind CSS: No build step, co-locating style with markup etc, but absolutely hate the idea of having to write utility class names instead of writing actual CSS, check out css-hooks.com if you haven't already. A very novel and clever idea!

20.03.2025 19:10 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yeehaa!

06.02.2025 17:06 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Nice! Amazing, thank you ❀️

31.01.2025 08:45 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Me finding some time to do OCaml during the day.

28.01.2025 11:28 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Yep! which generally makes type inference much more powerful in OCaml, I rarely need to type annotate anything.

17.01.2025 06:35 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Tbh after a while I’m getting used to it so no big issue just something that threw me off as a beginner trying to figure out compiler errors :)

16.01.2025 11:32 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Giving the function a type signature just moves the error to the topmost level of that function, so not same as TS?

16.01.2025 11:23 πŸ‘ 3 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0