Merlin Profile Banner
Merlin Profile
Merlin

@merlindru

398
Followers
58
Following
496
Media
2,947
Statuses

dude

Germany
Joined October 2022
Don't wanna be here? Send us removal request.
@merlindru
Merlin
7 months
Tweet media one
11
11
898
@merlindru
Merlin
7 months
@ThePrimeagen TheLimeagen
Tweet media one
5
6
285
@merlindru
Merlin
10 months
Rust for CRUD web backend. Yay or nay?
134
1
233
@merlindru
Merlin
7 months
@ThePrimeagen done boss
Tweet media one
3
0
155
@merlindru
Merlin
11 months
@bengold @Gavmn Right, but they're not animated in e.g. After Effects. The mouse pointer suggests they're using screen capture!
1
0
124
@merlindru
Merlin
11 months
@shuding_ Saw this on another website recently and was absolutely stunned. Speaking of awesome CSS-based blur effects, have you seen this from motion one?
3
2
119
@merlindru
Merlin
11 months
@JLarky You can do this: <div ref={foo} /> But not this: <MyComponent ref={foo} /> Because React doesn't pass the ref prop to components. Instead, you have to use forwardRef which passes it to your component (as the second arg, next to props)
5
0
105
@merlindru
Merlin
8 months
@richardiii i'm sorry but it's just you
1
0
101
@merlindru
Merlin
1 year
@tomdoes_tech That's not a problem. It's just nine cents. It's not worth the effort. Your hourly rate is more than this. - AWS, probably
0
0
81
@merlindru
Merlin
1 year
It's crazy how productive I am with @remix_run . Tried a bunch of frameworks, but I keep coming back to Remix Biased, though, as I'm building a lib that works with Web Fetch API-based frameworks like Remix and Astro:
Tweet media one
3
1
76
@merlindru
Merlin
10 months
let-else is the best thing since diced bread makes Rust as easy to read as Go
Tweet media one
5
3
76
@merlindru
Merlin
6 months
@ThePrimeagen I love doing these too!
Tweet media one
0
2
73
@merlindru
Merlin
1 year
I have become convinced @remix_run is the only sane full-stack react framework
11
2
68
@merlindru
Merlin
10 months
@csanyi_andras @ThePrimeagen actually it's "cript", since u would never just use one type
4
0
64
@merlindru
Merlin
8 months
@htmx_org nah there's a difference "bruh" ← fast "bruh".to_string() ← bruh
0
1
62
@merlindru
Merlin
1 year
@ormanclark There you go
10
3
64
@merlindru
Merlin
1 year
@aheze0 You should sell "emergency turn off" or "skip mission" packages as an in-app-purchase for $1 per skip
1
0
60
@merlindru
Merlin
10 months
I tried doing this and fried my brain in the process. I think I'll become a Golang maximalist after all. Rust is perfect but "perfect" only exists on paper
@merlindru
Merlin
10 months
Rust for CRUD web backend. Yay or nay?
134
1
233
19
0
60
@merlindru
Merlin
8 months
Rate my programming setup
Tweet media one
2
0
9
@merlindru
Merlin
11 months
I'm gonna use @astrodotbuild for an app-style website. Sue me. The dev experience is just too good.
7
1
53
@merlindru
Merlin
11 months
@Gavmn @XeZrunner @bengold They're not screen recording a playing video I'm guessing. They built out the animation in code (like animations on a website!) and then screen-captured that
2
0
47
@merlindru
Merlin
11 months
wait what the fuck
Tweet media one
3
5
46
@merlindru
Merlin
6 months
Preact is definitely so, so underrated bro It has things I haven't been able to find in any other frontend library/framework before, and is designed really really well
4
5
44
@merlindru
Merlin
11 months
@andrii_sherman you cannot tell me what to do
4
1
39
@merlindru
Merlin
1 year
@pagebakers With Remix, you can have them flat as well, but that's proving too unwieldy for me now as well... I think defining routes programatically might be the best option
3
0
39
@merlindru
Merlin
8 months
@AstraKernel @ThePrimeagen I just really want this in Go: enum MyEnum { Foo { bar: u16 } Baz(u8) Bruh } x := MyEnum.Baz(1234) match x { Foo { bar: 1..=3 } => bar is 1-3 Foo { bar } => bar is 4+ Baz(n: 8) => n is 8 Baz(n) => n is everything except 8 Bruh => bruh }
6
0
38
@merlindru
Merlin
10 months
Using Rust is job safety because AI is never gonna figure this out
3
4
35
@merlindru
Merlin
7 months
If you're not coding with comic sans, you're missing out
Tweet media one
6
0
34
@merlindru
Merlin
8 months
@ThePrimeagen never subbed ✅ never donated ✅ adblock on ✅ scrap computer ✅ neighbours wifi ✅ mommas house ✅ stolen solar panels ✅ stolen sun ✅ solar energy stolen ✅ water wheel ✅ neighbours river ✅ stolen hydroelectric plant ✅ charging phone with work electricity ✅ shower in
1
1
31
@merlindru
Merlin
8 months
@bunjavascript JavaScript is all over the place with this "JSON" (all caps abbreviation) but that doesn't apply to other abbreviations such as "Id" (getElementById, frameId, ...) but then it uses "UUID" instead of "Uuid" "URL" (new URL) but sometimes "Url" (history.deleteUrl)
5
0
26
@merlindru
Merlin
1 year
tldraw's cursor has 360 degrees of smile c:
1
2
28
@merlindru
Merlin
10 months
Tweet media one
3
4
24
@merlindru
Merlin
10 months
@anze3db It's more about robustness, error handling, and ecosystem for me
4
0
25
@merlindru
Merlin
11 months
@Gavmn @XeZrunner @bengold Like this screen recording:
0
0
25
@merlindru
Merlin
11 months
@JLarky Follow for more tweet-size explanations for us armchair wannabes
2
0
23
@merlindru
Merlin
8 months
You have to be kidding
Tweet media one
5
1
22
@merlindru
Merlin
11 months
Tweet media one
1
2
23
@merlindru
Merlin
1 year
@aheze0 Just go full-on minigame app. Watch an ad to skip this alarm. That's guaranteed to get me awake, making the ad itself an alarm. (And you get some change as well) Buy 5 alarm skips for $5.79 see previous tweet Add a leaderboard. The top 100 people get free skips each week
2
0
21
@merlindru
Merlin
11 months
@norabunoraibu @djco what about variable names with spaces
5
0
20
@merlindru
Merlin
10 months
Dude I just asked if @ThePrimeagen 's wife was on stream and people started donating like 20 subs at a time what is wrong with this unhinged platform
1
0
21
@merlindru
Merlin
10 months
@RideDontSlide95 @ThePrimeagen Adobe bought Figma for $20 billi if you weren't aware
1
0
19
@merlindru
Merlin
10 months
@jayair "I'm trying to use serverless"
Tweet media one
1
0
21
@merlindru
Merlin
11 months
productivity tip: golang
4
2
18
@merlindru
Merlin
1 year
Okay @remix_run is cool, but what if it could do this? Coming soon: a library that lets you compose remix actions and loaders. Add auth, input parsing, input validation, logging, and more. All with first-class TypeScript support.
Tweet media one
7
1
20
@merlindru
Merlin
8 months
@itsfoss2 shutdown
0
0
19
@merlindru
Merlin
10 months
IMO you should almost always use match instead of if let .. else if let without else is fine, but when you have an else, just compare:
Tweet media one
Tweet media two
4
0
18
@merlindru
Merlin
1 year
@aleksandrasays Literally released yesterday: From the people who make the excellent Astro CLI
@n_moore
Nate Moore
1 year
Build beautiful command-line apps in minutes with `@‍clack/prompts` 🪄 🤏 Only 4 kB gzip (80% smaller than `prompts`) 💎 Beautiful, minimal UI ✅ Simple API 🧱 Comes with text, confirm, select, and spinner
51
386
3K
3
0
17
@merlindru
Merlin
8 months
@brendonovichdev I recently wrote a very interactive page in SolidJS, all in one file 600 lines i love it
3
0
17
@merlindru
Merlin
8 months
had to fix a bug with a legacy JavaScript codebase at work
Tweet media one
2
2
16
@merlindru
Merlin
1 year
There is nothing like @wundergraphcom out there. It lets you build an entire API gateway right next to your code. You can query your DB and other GraphQL APIs through it. Then add auth, realtime, and caching in front of that. The best thing? It's configured right in your code.
Tweet media one
2
5
15
@merlindru
Merlin
8 months
@bunjavascript That said, why not add an "ip" thingy to `Bun` itself? Working with IPs is difficult in JS Bun.ip.fromRequest(Request)
1
0
13
@merlindru
Merlin
8 months
You should roll your own auth
7
0
13
@merlindru
Merlin
7 months
Just got that Warren Buffering follow
Tweet media one
1
0
14
@merlindru
Merlin
8 months
I want to apologize for putting Go down and I'm sorry if I hurt anyone talking about Go or Rust recently My tweet was polarizing. I don't want to put anyone down, so I'm genuinely sorry if I did I love Go and Rust and I appreciate what everyone conttibuting to lamguages and OSS
8
0
13
@merlindru
Merlin
7 months
If you feel like Rust is too hard, either - try Swift - let me know why it's too hard & i'll give grug style explanation
3
1
13
@merlindru
Merlin
1 year
@merlindru
Merlin
1 year
what?? gpt-4 is wild
Tweet media one
2
0
7
0
0
12
@merlindru
Merlin
8 months
@merlindru
Merlin
8 months
had to fix a bug with a legacy JavaScript codebase at work
Tweet media one
2
2
16
1
1
12
@merlindru
Merlin
7 months
@fkasummer @braidbrowser wow this is awesome. i had a similar idea a while back — how do you solve different screen resolutions and responsive webpages? e.g. youtube has a different layout at 800px than 1000px (the sidebar collapses for example) even when treating the whole page as an infinite canvas,
0
0
12
@merlindru
Merlin
1 year
@mrbenjaminhoppe I think you are mistaken
Tweet media one
0
0
11
@merlindru
Merlin
7 months
YouTube's new sub button animation is sick
1
0
11
@merlindru
Merlin
1 year
"I need a logo!" If you're a designer or dev looking for work, check out these lesser-known, commission-free sites: 👉 0% (also has a sick portfolio builder) 👉 0% 👉 0% 👉 0-10%
11
1
10
@merlindru
Merlin
1 year
There is no icon library like @tabler_io 's Tabler Icons More than 4,000 icons, for free, with React/Vue/Solid.js... support. I've been using them ever since, and I don't plan on stopping. They're just too good
1
2
12
@merlindru
Merlin
8 months
@jarredsumner @bunjavascript IPAddress or IpAddress?
Tweet media one
0
0
11
@merlindru
Merlin
7 months
just got that warren buffering follow
Tweet media one
1
0
11
@merlindru
Merlin
1 year
@kdy1dev Dude please look after yourself. Stop burning yourself out. stc's progress will become slower the more you work on it after a certain point
1
0
11
@merlindru
Merlin
11 months
EXPLAIN THE MILK THING
4
0
11
@merlindru
Merlin
10 months
@ThePrimeagen you got moved to accounting?!
0
0
11
@merlindru
Merlin
11 months
I challenge you @hiro_codes to make a positive blog post about Go and it's strengths over Rust
4
1
9
@merlindru
Merlin
11 months
Okay, I've decided I'm gonna become a Rust maximalist. For reals now. If I'm too unproductive with it, I'll probably switch back to Go/JS But if I can get good in terms of productivity, I don't see a reason to use another language (told you I'm going maximalist)
2
2
10
@merlindru
Merlin
10 months
@joshmo_dev How hard is it to onboard other devs, though? Especially those coming from JS/TS or Go I read the recent google study, but that was concerning Rust enthusiasts. I wonder if their "it doesn't affect productivity" findings hold up with people who are indifferent to Rust
9
0
11
@merlindru
Merlin
7 months
@ThePrimeagen state belongs in the user's head, let them figure it out. why should i manage something for them if they are perfectly capable of doing it themselves
1
1
10
@merlindru
Merlin
7 months
people really be working on AdBlock blocker blockers now
1
0
10
@merlindru
Merlin
7 months
So... nesting just landed in CSS (Chrome 118)
Tweet media one
3
0
10
@merlindru
Merlin
8 months
I've made a tiny tRPC-style library that supports go-to-definition, typesafe requests/responses, and typesafe contexts/middleware. It works with anything supported by the Web Fetch API. Bun, Node.js, Deno, Astro, Next.js v13, Remix, ... Should I open source it?
Tweet media one
5
1
11
@merlindru
Merlin
11 months
I'm so torn between becoming a Rust maxi and a Go maxi
3
0
9
@merlindru
Merlin
10 months
Tweet media one
2
1
10
@merlindru
Merlin
10 months
Allocations in Rust are slower than in JavaScript, Go, ...
Tweet media one
7
1
10
@merlindru
Merlin
10 months
@asher_gunsay > I find scripting enhances the signal - more noise w/ low level languages. That's exactly my concern, but I want Go or Rust style error handling. JS error handling is constantly getting me into trouble in prod right now
5
0
10
@merlindru
Merlin
8 months
help
Tweet media one
2
0
9
@merlindru
Merlin
10 months
Rust is a cool language because: • You can move some logic to types • In another language, the same logic has to be code • If types break, you know at compile time. If code breaks, you know when users complain.
1
0
9
@merlindru
Merlin
10 months
to be clear:: rust is cool, but after looking at the code for a while, i can't make sense of it anymore. the mental overhead is insane
4
0
10
@merlindru
Merlin
6 months
Prime: There will now be 22 instead of 10 Rust jobs total (on earth) Chat:
Tweet media one
1
0
9
@merlindru
Merlin
8 months
Rust's Result type is the best thing since sliced bread
1
0
9
@merlindru
Merlin
11 months
@26yobeard @shuding_ It's a div with a bg-blur. Then there's a repeating pattern of dots on top! How you do the dots is up to you -- it uses a repeating `background-image`
1
0
8
@merlindru
Merlin
1 year
1
0
9
@merlindru
Merlin
1 year
@pie6k IMO, the motion blur is too prominent for small movements right now. This is counter-intuitive but I think it should not only be based on velocity, but how long the movement is (in terms of duration)
2
0
9
@merlindru
Merlin
8 months
@bunjavascript To clarify, I'd love a "semi standard" IP interface in bun Bun.ip.v4("127.0.0.1") -> BunIPv4 Bun.ip.v6("::1234") -> BunIPv6 Bun.ip.fromRequest(Request) -> BunIPv4 | BunIPv6 Common interface BunIP that has isv4() -> asserts this is BunIPv4 and isv6 -> asserts this is BunIPv6
1
0
9
@merlindru
Merlin
8 months
@YuvarajMadineni then you go back to Go and mess up with nil pointers, slices, and crave those oh so sweet sum types
0
0
9
@merlindru
Merlin
7 months
guys im popular
Tweet media one
0
0
9
@merlindru
Merlin
8 months
I think Preact is SUPER underappreciated. Does anyone here use Preact, but not as a drop-in React replacement? Does anyone use Preact just because it's awesome?
5
0
9
@merlindru
Merlin
6 months
@StefanTMD @sofiarivero_15 this is literally ikea
2
0
9
@merlindru
Merlin
6 months
Just got a free code width guide 😎
Tweet media one
1
0
9
@merlindru
Merlin
1 year
@denicmarko There also is , , , and job threads on programming language-specific subreddits like
3
2
9
@merlindru
Merlin
10 months
@AdhamDannaway @kindlaar I'm not sure I agree with the contrast thing -- low contrast isn't necessarily bad, IMO browsers/devices should have a high-contrast option or you should use prefers-contrast: more to add high-contrast styles
3
0
8
@merlindru
Merlin
1 year
@davidfowl Repository pattern reminds me so much of convoluted OOP projects. It definitely is useful, but there's a lot of boilerplate. Stuff like Prisma/GraphJin/Wundergraph/Grafbase essentially is the same thing, but the repositories are code-generated for you. That said, why not go
0
0
8
@merlindru
Merlin
7 months
@bashiryousufy11 @ThePrimeagen this was not script this was dedication
1
0
8
@merlindru
Merlin
10 months
@jayair @thdxr @thdxr both of these responses are great as well, definitely add them to the list
1
0
7
@merlindru
Merlin
7 months
Tweet media one
0
1
7