Martin

271 posts

Martin

Martin

@martiinii_dev

Currently building https://t.co/N5RlpKe5zv and @prinpo_dev, an open source customer support platform | In love with Space and Universe 🌌

Poland Katılım Kasım 2019
320 Takip Edilen22 Takipçiler
Ankita Kulkarni
Ankita Kulkarni@kulkarniankita9·
Stop calling "redirect()" inside a try/catch block in Next.js 💡 Here's Why When you add a "redirect()" from "next/navigation" in a try/catch block The redirect() throws a special internal error on purpose and that's how Next.js knows to redirect the user However, if you add redirect in a try block, your catch block will catch it and the user won't redirect 🧠 The Fix → Move redirect() outside the try/catch block
Ankita Kulkarni tweet media
English
6
7
53
6.4K
Martin retweetledi
Dane Knecht 🦭
Dane Knecht 🦭@dok2001·
It’s Next.js Liberation Day. The #1 request we kept hearing: help us run Next fast and secure, without the lock-in and the costs. So we did it. We kept the amazing DX of @nextjs, without the bespoke tooling, built on @vite. We’re working with other providers to make deployment a first-class experience everywhere. Next.js belongs to everyone. blog.cloudflare.com/vinext/
English
249
406
3.9K
1.7M
Martin
Martin@martiinii_dev·
@heyandras I’m really excited but have been wondering if & how you’ll be able to handle Coolify, Jean and MaxIO at the same time. Don’t get me wrong, I’m really excited, the quality of your work is top notch, just don’t want you to burn out too quickly
English
0
0
0
166
Andras Bacsai
Andras Bacsai@heyandras·
we have versioning
Andras Bacsai tweet media
English
5
0
65
4.2K
Martin
Martin@martiinii_dev·
@riotgames customer service is the worst I've come across lately by a mile. I bought a Jinx figure as a birthday gift for my girlfriend. It arrived early but with a broken part. Stuff happens, so I opened a ticket, and we agreed on a full replacement. You received the figure back on December 30th. Then, dead silent for two full weeks. No updates, no emails. What's the status? Are we even proceeding? I followed up on January 14th and got: "Sorry, this ticket is closed." I opened a new ticket and waited patiently. Again, it took you two full weeks to respond. Meanwhile, I initiated a chargeback through my bank because I'd been out the money and the figure for two months. Now you refuse to handle my complaint because of the chargeback. Fine, keep the figure, I'll keep my money. But why the hell are you contesting the dispute? Absolutely atrocious customer service. Never buying from you again @RiotSupport @RiotSupportPL
English
0
0
0
24
Martin
Martin@martiinii_dev·
@theo Hey, I haven’t seen any button to view wrapped since Saturday. Is it available for EU users?
English
0
0
0
146
Theo - t3.gg
Theo - t3.gg@theo·
T3 Chat Wrapped is now rolled out to all users! I spent the last 36 hours making optimizations to how we query the data. Knocked generation times down from over 15 minutes to under 10 seconds :)
Theo - t3.gg@theo

It's been a wild year. We launched T3 Chat on January 10th. I could never have fathomed how far things would go. We spent the last few days putting together our "Wrapped". Really proud of the team for grinding this one out. Rolling out now!

English
55
8
680
180.1K
Martin
Martin@martiinii_dev·
@hollylawly I’ve heard about you for quite some time, I’m still wondering if (and how) you can be faster than database living on the same server, no additional internet trips. I’m really trying to convince myself to use PlanetScale for my next project
English
0
0
0
435
Martin
Martin@martiinii_dev·
@saltyAom Didn’t know you can pass `app` directly to treaty, clever
English
0
0
0
61
SaltyAom
SaltyAom@saltyAom·
We have included an isomorphic approach for using Elysia with Nextjs This allows you: - Call Elysia directly w/o going through the network - Works with ISR without having a server start - Works with a remote URL on the client
SaltyAom tweet media
English
9
5
120
7.6K
Martin
Martin@martiinii_dev·
I agree and disagree. Sure, if everything was planned ahead no one would go for those hacky solutions but: - we add new mission - new game modes - new vehicle type And we need to use something in a way it wasn’t previously designed (autonomous cars with no drivers, dynamic cameras, etc.) Deadline is right around the corner, we need to push update. We won’t waste hundreds of dev hours just to have clean solution. Sure, we can add it later, cleanup, test, etc. But in most cases (in game dev especially) the engine you’re building upon is flexible enough to let you quickly add those things and forget iirc in some game they introduced a mechanic that lets you spawn flames that were dealing area damage over time. They didn’t have something like that planned ahead nor implemented before. Solution? Spawn invisible and invulnerable entities in places of flames and for each game tick check their area. Any players inside? Deal damage to them. Simple, quick and working solution. They later replaced it with a properly implemented system
English
0
0
0
22
Martin
Martin@martiinii_dev·
@GrimUndim @flyingf1nn @delmoi @noinconsistency @flyingf1nn Same way there are invisible trucks mounted with cameras in few cutscenes (boat chase for example). Coding an entire system for dynamic cams for one scene was more time consuming than simple “hack”.
English
1
0
1
130
Martin retweetledi
shadcn
shadcn@shadcn·
Introducing shadcn/create – Build your own shadcn/ui Customize Everything. Pick your component library, icons, base color, theme, fonts and build something that doesn’t look like everything else. Now available for Next.js, Vite, TanStack Start and v0.
English
473
1K
9.3K
1.1M
Martin retweetledi
shadcn
shadcn@shadcn·
Launch day. It's a special one.
English
171
32
1.7K
170.5K
Martin
Martin@martiinii_dev·
@jaredpalmer Still waiting for tsgo full support of emit declarations, will cut our typecheck times so much! Also, why oxlint and not biome linter? I’ve been using it for a while and I’ve been happy with it ever since
English
0
0
1
1.8K
Jared Palmer
Jared Palmer@jaredpalmer·
I've moved new projects to bun, next+turbopack, typescript go, oxlint, oxlint-tsgolint, and biome. Everything feels soooo fast.
English
56
25
1K
86.8K
NVIDIA GeForce
NVIDIA GeForce@NVIDIAGeForce·
Only 200 Cyberpunk 2077 GPUs were ever created. Five years later, one returns. This original Cyberpunk 2077 GeForce RTX 2080 Ti now signed by Jensen Huang is back to celebrate five years in Night City🌆 Comment “GeForce Season” to enter.
English
14.4K
1.1K
12K
1.4M
NVIDIA GeForce
NVIDIA GeForce@NVIDIAGeForce·
Five years in Night City. Endless memories. One legendary GPU. To celebrate the anniversary, we’re giving away a custom Cyberpunk 2077 GeForce RTX 2080 Ti signed by Jensen Huang. Comment "GeForce Season" to enter 🌆
English
27.8K
2.6K
26.5K
5.9M
Martin retweetledi
Zed
Zed@zeddotdev·
Zed's most requested feature (rainbow brackets 🌈 ) has been merged into stable! The issue had over *1,000* upvotes on GitHub and we're excited for you to try it. zed.dev/blog/rainbow-b…
English
41
64
1.5K
227.1K
Martin retweetledi
IT Unprofessional
IT Unprofessional@it_unprofession·
Last month my intern asked for help with a Kubernetes error. He was stuck on a YAML file. He looked desperate. I make $275,000 a year. I haven't written a line of code since 2017. I don't even know what a "pod" is. But I didn't tell him that. I leaned back in my Herman Miller chair. I said, "Stop trying to code. Start prompting." I told him to paste the error into ChatGPT. He did. The AI told him to delete the cluster. He did. Production went down instantly. The CEO called me screaming. I didn't panic. I told the CEO we were "testing our disaster recovery protocols." He was impressed by my foresight. I got a bonus. The intern got fired. Innovation requires sacrifice. Just not mine.
English
752
4.1K
59.5K
2.8M
Martin retweetledi
TypeScript
TypeScript@typescript·
We've got some updates on TypeScript 7! The new native port - can type-check any project - supports --build and --incremental - has rich editor features implemented - is still 10x faster and is ready for you to try today! devblogs.microsoft.com/typescript/pro…
English
46
310
2.4K
287.9K
Martin
Martin@martiinii_dev·
@electroheadfx @melvynx What the fuck you yapping about, it’s only 22 loc Also shadcn/ui is not a tech but collection of UI elements + code distribution platform so YOU own the code Learn before posting bullshit online
English
0
0
0
36
Laurent Marques
Laurent Marques@electroheadfx·
@melvynx I hate shadcn ui, its bullshit, 10K line codes for just a input :p its again a hype tech
English
2
0
1
457
Melvyn • Builder
Melvyn • Builder@melvynx·
I just discovered a gem: pure.kam-ui.com, a component library based on Base UI that offers an incredible experience. Dialogs with Nested Dialogs that look really impressive. Menu with a blur effect. Popover with finely-tuned animation. So don't lose this link: pure.kam-ui.com You can comment on this post to keep it in your history.
English
2
10
151
20.6K
Martin
Martin@martiinii_dev·
@saltyAom yesterday I was testing this exact scenario to see if Elysia OpenAPI generator from types supports Prisma enums (I used Prisma v6.19.0 with config and output to src/generated/prisma) and JsonValue | JsonObject | JsonArray And it didn’t work. In the declaration file in tmp directory everything looks good, but every Prisma enum is typed as: import(“@/generated/prisma/enums”).MemberRole, and every Json* points to @prisma/client/… I don’t think this is easily fixable from your side, but maybe adding some kind of plugin system to “from types” generator for advanced and rare cases like this one could be a valid solution? In my project I fixed it like this: - after reading declaration and regexing to get 5th generic: - Regex replace Json* to Record or unknown[] - Check if declaration file for Prisma enums exists - if yes, read file and transform every const enum into union type, save in Map - regex find and replace every enum import to corresponding union type
English
0
0
0
86
SaltyAom
SaltyAom@saltyAom·
Isn't it cool that all Prisma queries are available in API documentation automatically in 1 line This is Elysia's unique ability
SaltyAom tweet media
English
27
12
428
22.2K