Marko retweeted
Everyone should know how WALs work.
Not sure where to start?
Write-ahead logs 101:
Marko retweeted
Acadia is out today! Bringing the benefits of @elmlang to SQLite and PostgreSQL:
- Friendly error messages
- Custom types for precise column data
- Simple module system for easy reuse
Check it out! acadia.engineering/blog/reth…
Marko retweeted
I like to think of these as forming 3 sides of a triangle. This is the same principle viewed from slightly different perspectives
1. Write functions at a single level of abstraction
2. Push conditionals up the decision tree
3. Separate decision code from "doing" code
Marko retweeted
Hello?
Do you use #CSS grid? Ever wanted to have separators in between grid areas?
Have you resorted to weird background gradient, box-shadow & more hackarounds to solve this?
Then check out this gap decorations proposal blogs.windows.com/msedgedev/…
Marko retweeted
Gleam v1.0.0 is here! 🎉
gleam.run/news/gleam-version…
Marko retweeted
I'm a little annoyed at React rn
blog.cassidoo.co/post/annoye…
Marko retweeted
link to Codepen codepen.io/argyleink/pen/ExM…
Marko retweeted
Here’s a more complex variant of this #ViewTransitions demo that also allows the deletion of cards.
🔗 codepen.io/bramus/pen/mdabWz…
Replying to @Una
Here's a simple example:
1. Give each card a unique `view-transition-name`
2. Wrap your DOM mutation with startViewTransition()
document.startViewTransition(() => {
cardElement.remove();
});
3. Enjoy 🥂
codepen.io/web-dot-dev/pen/J…
Marko retweeted
Of course - I try to write code with zero dependencies - code I wrote 25 years ago with zero dependencies still works today. Code I wrote 5 years ago with external dependencies often fails.
It’s my contribution to the war on entropy.
Marko retweeted
Why do some interactions just feel great?
To find out, I wrote a 3000-word essay on deconstructing the craft of interaction design through metaphors and examples.
rauno.me/craft/interaction-d…
Marko retweeted
Understand the problem.
Explore all possible solutions.
Pick one.
Simplicity is not just for beginners.
It's better to do it _right_ than to do it _right now_.
It's not done until the docs are great.
Marko retweeted
Yes, yes, yes! This article is incredible. Local databases are criminally underused in web apps. They have benefits for offline, performance, debugging, etc. and the idea of persisting not just data but all UI state is really interesting.
riffle.systems/essays/prelud…
Marko retweeted
My video with @TkDodo is out! We refactor react hooks to use react-query in a more conventional and maintainable way.
youtu.be/PtHRZqh3LHI
Marko retweeted
Becoming great what you do is about collecting experience. Each project, even small ones, is a chance to add new techniques and tools to your toolbox.
Marko retweeted
2nd Pen for this week's #CodePenChallenge codepen.io/thebabydino/pen/q…
Uses an input[type=range] for the slider + an output & datalist tied to this input for the current value display & ruler.
No SVG, no images in general save for #CSS gradients.
Inspiration dribbble.com/shots/18436713-…
Marko retweeted
TypeScript misconception: “If I need to rename a union type, the usages won’t get updated.”
Reality: All usages of the union type can be safely updated. Just hit F2 to rename any union type's value. TypeScript knows where the union type is used, and updates them.
#typescript
Marko retweeted
The Tomorrow Corporation has built its own game programming stack with live reload, time travel debugging, and even the ability to serialise the entire game state and replay it between testers! youtube.com/watch?v=72y2EC5f…
























