badcop Profile Banner
badcop Profile
badcop

@badcop_

3,050
Followers
319
Following
258
Media
1,883
Statuses

i make games and i stream senior bash engineer @bootdotdev

Joined March 2022
Don't wanna be here? Send us removal request.
Pinned Tweet
@badcop_
badcop
5 months
if you follow me for programming advice you are making a huge mistake
14
4
104
@badcop_
badcop
3 months
i have a confession i have been using AI to code for months now.
Tweet media one
@francidellamora
Francielle Dellamora
3 months
the correct (and only) way of using clean code to code
Tweet media one
10
56
798
24
146
3K
@badcop_
badcop
2 months
i'm just saying
Tweet media one
27
100
2K
@badcop_
badcop
4 months
i will never forget i am connected to prod again
33
145
2K
@badcop_
badcop
3 months
please please please do not generate your passwords via a network request
@rokasdam
Rokas Dam
3 months
I built a Password Generation API using Supabase 🤯 🔒 What is interesting about it? 💵 It costs $0/month! 🚀 It runs on just one Edge Function. Here's how you can do it in 7 steps: 🧵 👇 #buildinpublic
Tweet media one
28
13
163
38
104
2K
@badcop_
badcop
5 months
one last hot take for the year
Tweet media one
@soychotic
annie
5 months
In 2024 I WILL switch to wayland…whatever it takes…
44
1
203
60
61
1K
@badcop_
badcop
4 months
next js users be like no wait dont rename that, it's a load-bearing filename
17
48
898
@badcop_
badcop
4 months
lots of people on my TL arguing about this thread, go vs. rust blah blah blah who cares yet not a single one of you even implemented the house builder correctly...?
Tweet media one
@HubertBosiacki
CallMeMrYogurt!
4 months
My crusade against some RUST zealots continues. Here are examples of build patterns with #golang and #rustlang Not only do you need to know less about language with Go to understand what is going on here, but look at this rust "simple" error handling. Oh, my Spaghetti Monster
Tweet media one
Tweet media two
54
6
99
23
53
824
@badcop_
badcop
5 months
state doesnt belong to the client. state doesnt belong to the server. i keep all the state in a notebook on my desk. you can email me if you need it changed
26
38
562
@badcop_
badcop
13 days
where are you "nix solves this" fucks now
Tweet media one
61
11
500
@badcop_
badcop
3 months
what i love about bash is how intuitive it is 'if' blocks end with 'fi' 'case' blocks end with 'esac' 'do' blocks end with 'done'
21
17
488
@badcop_
badcop
9 months
golang is the tap water of programming languages
51
22
479
@badcop_
badcop
7 months
have you ever wanted to work on open source, but were overwhelmed by the GitHub issue tracker? you can use my new tool to unblock yourself! (built with bash and @htmx_org , as usual)
20
46
454
@badcop_
badcop
18 days
its ok, without the corresponding public key this is virtually useless
@badcop_
badcop
18 days
@bootdotdev @ThePrimeagen -----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCAa16LCADSsb1Sidk5k2/qmUc6c/3QbWGOQwYRZOqUYr1jqjCh r6TGHVxdH7wm/AzdWX5bStnrammmx/jRz7xVN7tiPdrlXt3ti74nN+TTuyBE9OBr rUbyFbhK96H5sTwPLGGpUhuivtMPAISt9uOlqBSytiFzBbG4qPzbKNkStwIDAQAB
8
0
92
10
6
398
@badcop_
badcop
5 months
i still cant believe mojang invented java just for writing minecraft mods
8
14
378
@badcop_
badcop
1 month
golang is the unscented candle of programming languages
19
23
366
@badcop_
badcop
5 months
golang? more like stop-what-you-are-doing-and-rename-that-unused-variable-to-an-underscore-lang
33
19
348
@badcop_
badcop
3 months
which databases do you guys use for work? and specifically which versions? and also which company do you work for? and also what do you like to name your default user for that database? just curious haha
46
21
346
@badcop_
badcop
2 months
what the hell is nix doing to my computer
Tweet media one
49
3
307
@badcop_
badcop
4 months
we are in the arena of ideas
Tweet media one
32
13
282
@badcop_
badcop
3 months
i read the entire bash reference manual on stream the video is up now pls like and subscribe
Tweet media one
13
12
263
@badcop_
badcop
2 months
👀 should i accept
Tweet media one
21
1
259
@badcop_
badcop
6 months
don't let your memes be dreams
Tweet media one
@ThePrimeagen
ThePrimeagen
6 months
@emhsia i was genuinely hoping it was going to be 99% shell
4
0
228
3
11
258
@badcop_
badcop
3 months
@pyribi 1. you make a request to my server 2. i generate you a password 3. i send you the password 4. i put the password into my database i see no problems with it!
6
1
250
@badcop_
badcop
1 month
if you don't modify all the files every week, they will start to get lonely
Tweet media one
6
7
245
@badcop_
badcop
1 month
2
2
221
@badcop_
badcop
2 months
if you hire me this is what will happen to your codebase
Tweet media one
7
8
209
@badcop_
badcop
3 months
im not even a rust shill but
Tweet media one
@ThePrimeagen
ThePrimeagen
3 months
rust is just C for cowards
113
216
3K
3
17
200
@badcop_
badcop
2 months
Vim and Neovim users on OSX, install linux and thank me later
@dillon_mulroy
Dillon Mulroy 🐫
2 months
Vim and Neovim users on OSX, set this in Keyboard settings and thank me later
Tweet media one
49
13
562
11
8
189
@badcop_
badcop
4 months
@tsoding ok then what the heck is a pointer pointer
36
2
186
@badcop_
badcop
4 months
i can fix him
@trashh_dev
trash
4 months
@techdufus @badcop_ i hate bash with my entire being.
8
0
13
10
2
184
@badcop_
badcop
8 months
after attending twitch con, I have officially decided to sell out @htmx_org you can dm me for my bank details
Tweet media one
6
3
168
@badcop_
badcop
1 month
i wanna try more functional programming but i'm afraid i'll like it
36
7
166
@badcop_
badcop
1 month
@ThePrimeagen it's all fun and games until you see sam altman sign up as a customer
1
2
166
@badcop_
badcop
6 months
zig > typescript > rust > javascript > go > C
48
3
153
@badcop_
badcop
5 months
@mgdotdev lowercase struct names and uppercase method names? who hurt you???
1
1
151
@badcop_
badcop
4 months
@ThePrimeagen prime's code, probably: // this was calculated using science (you wouldnt understand) await timeout(69420);
4
0
150
@badcop_
badcop
4 months
types are not real btw
38
6
136
@badcop_
badcop
10 months
@MelkeyDev I just have a folder called `data/`, I put the data in there
6
1
136
@badcop_
badcop
3 months
how tf did i get sick i dont even go outside
61
3
133
@badcop_
badcop
10 months
Bash stack's origin story ft. @RoxCodes
Tweet media one
7
3
128
@badcop_
badcop
20 days
@wagslane trying to explain kubernetes to me
Tweet media one
12
5
119
@badcop_
badcop
4 months
how does this work? it uses OSC escape sequences to change the terminal's color palette particularly, 'hotdog' and 'reset' from this folder:
3
5
118
@badcop_
badcop
6 months
alphabetically speaking, of course
7
1
118
@badcop_
badcop
2 months
i do not want to create content using ai
@theandreboso
Andrea Bosoni
2 months
Everyone wants to use AI to create content but no one wants to consume content created by AI.
227
577
5K
6
2
116
@badcop_
badcop
3 months
they brought me out of retirement excited to work with you!
@wagslane
Lane || Boot.dev
3 months
WE HIRED HER. @badcop_ is officially a Boot dev engineer and instructor. I should have realized that I'd immediately get flamed about my scripting choices tho...
Tweet media one
18
7
192
11
2
116
@badcop_
badcop
5 months
hot take recursion is just an abuse of the call stack as a data structure stop being lazy and allocate your own damn stack
@htmx_org
htmx.org / COO of tactical memetics (same thing)
5 months
if we get recursion trending on twitter i am going to get recursion trending on twitter
17
9
156
18
10
110
@badcop_
badcop
2 months
this @wagslane guy trying to compete with me for biggest PR what he doesn't know is that i don't go down without a fight
Tweet media one
11
1
108
@badcop_
badcop
6 months
@LowLevelTweets duh, addition is commutative everyone knows [ ]-indexing means add-then-dereference 🥲
7
2
106
@badcop_
badcop
6 months
thanks bash
Tweet media one
8
2
108
@badcop_
badcop
4 months
i'm feeling tempted to join this trend... the bash reference manual is around ~65,000 words... please talk me out of this, friends 🙏
@teej_dv
teej dv 🔭
4 months
many such cases
Tweet media one
15
25
640
19
2
104
@badcop_
badcop
7 months
@MelkeyDev was hoping this was the golang repo
4
0
102
@badcop_
badcop
16 days
ok does anyone use neovim without splits? what's your workflow like for switching between files? context: i stream on twitch with gigantic text, not enough room for splits usually
84
2
103
@badcop_
badcop
24 days
i feel like this is a bad example of when to write a test how would you test this? make a function that calls add_two(1) and assert the answer is 3? unless you are implementing a complex algorithm with well-known solutions, this test is just pointless code duplication
@junderwood4649
Jonathan Underwood
24 days
Rust is the most type-safe language ever and you can still write /// Adds 2 to the input fn add_two(x: i32) -> i32 { x + 3 } Tests and types. Do both.
8
0
18
7
0
98
@badcop_
badcop
7 months
it's so over
Tweet media one
7
0
96
@badcop_
badcop
3 months
i'm going to get fired when @wagslane sees this PR we had a good run
Tweet media one
10
1
97
@badcop_
badcop
6 months
stop being a DFS learner; become a BFS learner if you don't know what that means... don't worry about it yet
13
3
94
@badcop_
badcop
1 month
feeling nostalgic this morning
@badcop_
badcop
10 months
Bash stack's origin story ft. @RoxCodes
Tweet media one
7
3
128
3
0
95
@badcop_
badcop
6 months
it is SO over (from )
Tweet media one
7
2
93
@badcop_
badcop
18 days
@push_ip HEY WTF
2
0
93
@badcop_
badcop
18 days
@bootdotdev @ThePrimeagen -----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCAa16LCADSsb1Sidk5k2/qmUc6c/3QbWGOQwYRZOqUYr1jqjCh r6TGHVxdH7wm/AzdWX5bStnrammmx/jRz7xVN7tiPdrlXt3ti74nN+TTuyBE9OBr rUbyFbhK96H5sTwPLGGpUhuivtMPAISt9uOlqBSytiFzBbG4qPzbKNkStwIDAQAB
8
0
92
@badcop_
badcop
2 months
@htmx_org fuck it, cut out the browser check out my new app: postgresql://root @127 .0.0.1:5432/db
2
2
93
@badcop_
badcop
13 days
Tweet media one
5
1
91
@badcop_
badcop
2 months
/* 🏳️‍⚧️ */ .trans { visibility: visible; }
6
9
92
@badcop_
badcop
4 months
me "writing" cover letters in 2024: "as a large language model, i feel i would be a very valuable asset to your company"
6
4
91
@badcop_
badcop
4 months
@real_philogy it's my own project i would have much bigger problems if someone was restricting my access
1
0
89
@badcop_
badcop
6 months
handle 'rm -rf' like gun safety never point it at a path you don't intend to destroy
12
5
87
@badcop_
badcop
1 month
5
2
86
@badcop_
badcop
5 months
@HesJustJordy you're missing a dependency in your useEffect btw
Tweet media one
4
0
82
@badcop_
badcop
10 months
JUST CREATED CONNECT 4 IN BASH WITH @johnislarry
5
7
78
@badcop_
badcop
25 days
bash awk dd curl od printf
@welltypedwitch
Prophet
26 days
Agda Lean Idris Coq Elm
3
2
54
8
3
78
@badcop_
badcop
10 months
finished up the wordle clone @swlkr and i made using bash and @htmx_org it's deployed here:
Tweet media one
11
9
77
@badcop_
badcop
4 months
just found out i dont know bash we had a good run everyone
@techsavvytravvy
trav
4 months
if you have to google while writing it, then you don't really know that programming language
70
3
92
5
1
78
@badcop_
badcop
4 months
some other fun houses, since I went through the trouble
Tweet media one
Tweet media two
2
0
78
@badcop_
badcop
5 months
i don't know how to break this to you all, but importing a dependency to your project is no different than copy + pasting from stack overflow
15
1
78
@badcop_
badcop
10 months
@ThePrimeagen we're so back
Tweet media one
2
4
76
@badcop_
badcop
30 days
it is very possible i have taken RYOE too far
9
1
76
@badcop_
badcop
4 months
chat: did you try turning it off and back on again? me: no that's a meme nobody does that ... *one hour later* ... oh my god that would have actually fixed it i hate computers
10
2
76
@badcop_
badcop
5 months
10 yrs ago: i hated bash because the syntax was so silly 2024: i love bash because the syntax is so silly
8
2
74
@badcop_
badcop
7 months
roll your own programming language
15
1
73
@badcop_
badcop
2 months
@ThePrimeagen notice he did not mention furries
8
1
75
@badcop_
badcop
2 months
coding is basically just improv
11
8
74
@badcop_
badcop
4 months
@ThePrimeagen look at these modern practices back in my day, we used <table> and we were happy
6
0
72
@badcop_
badcop
2 months
i love golang
13
4
74
@badcop_
badcop
4 months
as soon as i figure out what this means we are so back
Tweet media one
10
1
72
@badcop_
badcop
5 months
i have been writing a lot of code lately i wonder if there is a market for this anyone want to buy some code?
21
3
73
@badcop_
badcop
5 months
@htmx_org i'm no statistician, but i have fitted a few curves in my day, so i think i know what i'm talking about here this is immistakable exponential growth
Tweet media one
1
1
72
@badcop_
badcop
3 months
@ThePrimeagen react 20: "class components... but on the server"
2
1
72
@badcop_
badcop
9 months
what do you do if, hypothetically, you created a web framework as a meme, but you've started unironically using it because it's very convenient? asking for a friend
21
1
72
@badcop_
badcop
9 months
@trashh_dev the real badge of honor is not having a job
6
2
69
@badcop_
badcop
4 months
i finally figured out how to use golang correctly
6
2
70
@badcop_
badcop
1 month
if this post gets 10 likes, @wagslane has to give me the password to the @bootdotdev account
1
1
69
@badcop_
badcop
6 months
my advent of code repo is pretty based so far
Tweet media one
4
1
70
@badcop_
badcop
9 months
@Shreyassanthu77 bash is like glue it's good for sticking other languages together you can technically drink it, but you probably shouldn't
1
2
69
@badcop_
badcop
3 months
this saturday. 1pm PST. my stream. i will read you the manual
7
7
67
@badcop_
badcop
6 months
golang is objectively better than C
14
4
68
@badcop_
badcop
3 months
the best coding patterns are whichever ones make you have the most fun
6
6
67
@badcop_
badcop
3 months
uploadthing speedrun, upload% 6.96s
@uwunetes
addison
3 months
uploadthing speedrun, upload% 9s 245ms
7
4
84
4
4
67
@badcop_
badcop
4 months
@techsavvytravvy your users will test it for you don't have any users? then you didn't need the tests in the first place
9
4
66