badcop Profile Banner
badcop Profile
badcop

@badcop_

Followers
3,740
Following
359
Media
324
Statuses
2,330

i make games and i stream senior bash engineer @bootdotdev

Joined March 2022
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@badcop_
badcop
1 month
i re-made skyrim in 10 days it's short and you should play it (link in reply)
9
5
69
@badcop_
badcop
24 days
does anyone know how to prevent this from happening?? help
207
271
5K
@badcop_
badcop
2 months
idk what this means. here is my one-size-fits-all guide to git 1. git commit 2. git pull 3. git push 4. if any of the previous steps error, delete the repo and re-clone it
@WarrenInTheBuff
WarrenBuffering
2 months
if you have to rebase your team isn't communicating enough
41
1
104
33
257
3K
@badcop_
badcop
6 months
i have a confession i have been using AI to code for months now.
Tweet media one
@francidellamora
Francielle Dellamora
6 months
the correct (and only) way of using clean code to code
Tweet media one
10
55
778
24
145
3K
@badcop_
badcop
2 months
golang is like if they turned macOS into a language
79
87
2K
@badcop_
badcop
5 months
i'm just saying
Tweet media one
26
99
2K
@badcop_
badcop
7 months
i will never forget i am connected to prod again
32
147
2K
@badcop_
badcop
6 months
please please please do not generate your passwords via a network request
@rokasdam
Rokas Dam
6 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
27
12
161
37
104
2K
@badcop_
badcop
2 months
<em>what the <em>fuck</em></em>
Tweet media one
21
74
2K
@badcop_
badcop
8 months
one last hot take for the year
Tweet media one
@soychotic
annie
8 months
In 2024 I WILL switch to wayland…whatever it takes…
44
1
202
58
61
1K
@badcop_
badcop
8 months
next js users be like no wait dont rename that, it's a load-bearing filename
17
48
887
@badcop_
badcop
7 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!
7 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
53
7
99
23
53
814
@badcop_
badcop
1 month
stop the madness its ok you can actually just use bash sometimes it wont hurt you!!!
Tweet media one
@mattpocockuk
Matt Pocock
1 month
Ever heard of 'pipeline' in Node? It's a beautiful API for linking together streams and transforms that can handle any size of file.
32
79
952
20
18
654
@badcop_
badcop
2 months
since when is @MelkeyDev so based
Tweet media one
15
20
642
@badcop_
badcop
8 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
556
@badcop_
badcop
4 months
where are you "nix solves this" fucks now
Tweet media one
59
10
492
@badcop_
badcop
6 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'
20
17
484
@badcop_
badcop
1 year
golang is the tap water of programming languages
51
22
475
@badcop_
badcop
10 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
47
453
@badcop_
badcop
21 days
imagine needing a script when you could just use a one liner lmao ngmi
Tweet media one
@htmx_org
htmx.org / CEO of Isometric Projection(same thing)
21 days
here's what i needed: iterate over some dirs determine the current version of the package get the source of the main file from unpkg diff it w/the current main file if there's a diff print that a new version needs to be released & check if the version # needs to be bumped
Tweet media one
19
2
81
15
7
452
@badcop_
badcop
4 months
its ok, without the corresponding public key this is virtually useless
@badcop_
badcop
4 months
@bootdotdev @ThePrimeagen -----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCAa16LCADSsb1Sidk5k2/qmUc6c/3QbWGOQwYRZOqUYr1jqjCh r6TGHVxdH7wm/AzdWX5bStnrammmx/jRz7xVN7tiPdrlXt3ti74nN+TTuyBE9OBr rUbyFbhK96H5sTwPLGGpUhuivtMPAISt9uOlqBSytiFzBbG4qPzbKNkStwIDAQAB
8
0
92
10
6
389
@badcop_
badcop
2 months
i'm worried that some of you are going to interpret this as a good thing
18
6
381
@badcop_
badcop
2 months
Tweet media one
5
4
381
@badcop_
badcop
8 months
i still cant believe mojang invented java just for writing minecraft mods
8
14
370
@badcop_
badcop
4 months
golang is the unscented candle of programming languages
19
22
361
@badcop_
badcop
8 months
golang? more like stop-what-you-are-doing-and-rename-that-unused-variable-to-an-underscore-lang
33
19
341
@badcop_
badcop
6 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
20
342
@badcop_
badcop
1 month
im not like the other devs
Tweet media one
this is true but i've marked the important part with a star
Tweet media one
158
104
4K
5
13
316
@badcop_
badcop
5 months
what the hell is nix doing to my computer
Tweet media one
49
3
303
@badcop_
badcop
2 months
me whenever i see x86 assembly instructions
Tweet media one
8
21
305
@badcop_
badcop
1 month
@yacineMTB i've had enough. you're not a 10x dev. i'm sorry i love you. i love you! but i really don't think working at x is good for you. i don't!
3
7
309
@badcop_
badcop
7 months
we are in the arena of ideas
Tweet media one
32
13
274
@badcop_
badcop
6 months
i read the entire bash reference manual on stream the video is up now pls like and subscribe
Tweet media one
13
12
256
@badcop_
badcop
5 months
👀 should i accept
Tweet media one
21
1
258
@badcop_
badcop
9 months
don't let your memes be dreams
Tweet media one
@ThePrimeagen
ThePrimeagen
9 months
@emhsia i was genuinely hoping it was going to be 99% shell
4
0
225
3
11
255
@badcop_
badcop
6 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
246
@badcop_
badcop
4 months
if you don't modify all the files every week, they will start to get lonely
Tweet media one
6
7
243
@badcop_
badcop
3 months
writing getter and setter functions should be a felony
29
20
223
@badcop_
badcop
4 months
2
2
219
@badcop_
badcop
2 months
@physbuzz2 git is just short for github follow me for more linux tips!
4
7
219
@badcop_
badcop
5 months
if you hire me this is what will happen to your codebase
Tweet media one
7
8
208
@badcop_
badcop
6 months
im not even a rust shill but
Tweet media one
@ThePrimeagen
ThePrimeagen
6 months
rust is just C for cowards
112
213
2K
3
17
195
@badcop_
badcop
15 days
it is possible to write code without ai
63
7
198
@badcop_
badcop
3 months
big milestone! 420 stars i'd like to thank @htmx_org for all his contributions
Tweet media one
2
2
188
@badcop_
badcop
5 months
Vim and Neovim users on OSX, install linux and thank me later
@dillon_mulroy
Dillon Mulroy λ
5 months
Vim and Neovim users on OSX, set this in Keyboard settings and thank me later
Tweet media one
48
13
559
11
8
187
@badcop_
badcop
7 months
@tsoding ok then what the heck is a pointer pointer
36
2
184
@badcop_
badcop
7 months
i can fix him
@trashh_dev
trash
7 months
@techdufus @badcop_ i hate bash with my entire being.
8
0
13
8
2
180
@badcop_
badcop
11 days
guys i hurt my wrist as a software engineer, how screwed am i
97
1
180
@badcop_
badcop
11 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
166
@badcop_
badcop
4 months
i wanna try more functional programming but i'm afraid i'll like it
36
7
163
@badcop_
badcop
5 months
@ThePrimeagen it's all fun and games until you see sam altman sign up as a customer
1
2
166
@badcop_
badcop
21 days
i made a fancy animation to show how this actually works
@badcop_
badcop
24 days
does anyone know how to prevent this from happening?? help
207
271
5K
6
7
161
@badcop_
badcop
24 days
guys seriously it's really hard to get work done HELP
2
0
161
@badcop_
badcop
23 days
@ThePrimeagen well now you're just being hurtful
Tweet media one
11
1
160
@badcop_
badcop
9 months
zig > typescript > rust > javascript > go > C
47
3
151
@badcop_
badcop
24 days
EVEN MY NEOVIM WTF
7
5
157
@badcop_
badcop
8 months
@mgdotdev lowercase struct names and uppercase method names? who hurt you???
1
1
149
@badcop_
badcop
7 months
@ThePrimeagen prime's code, probably: // this was calculated using science (you wouldnt understand) await timeout(69420);
4
0
148
@badcop_
badcop
3 months
"cracked" is just the new "rockstar" developer i must urge you to stop this immediately
24
3
139
@badcop_
badcop
1 month
powershell is a psyop
30
9
137
@badcop_
badcop
1 month
do not cite the deep magic to me i was there when it was written
Tweet media one
@IanLiu88
Ian Liu Rodrigues
1 month
@badcop_ What you are calling bash is actually bash + coreutils.
4
0
25
3
5
143
@badcop_
badcop
3 months
few people know that before @ThePrimeagen was a streamer, he was famous for his parkour videos
Tweet media one
@ryanrwinchester
Ryan Winchester
3 months
greenscreen. internet, you know what to do.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
84
44
2K
0
2
138
@badcop_
badcop
1 year
@MelkeyDev I just have a folder called `data/`, I put the data in there
6
1
136
@badcop_
badcop
7 months
types are not real btw
37
6
134
@badcop_
badcop
6 months
how tf did i get sick i dont even go outside
58
3
129
@badcop_
badcop
1 year
Bash stack's origin story ft. @RoxCodes
Tweet media one
7
3
128
@badcop_
badcop
3 months
PHP is a good language Java is a language C++ is a good language Go is a board game
8
6
119
@badcop_
badcop
8 months
if you follow me for programming advice you are making a huge mistake
15
3
117
@badcop_
badcop
7 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
9 months
alphabetically speaking, of course
7
1
117
@badcop_
badcop
26 days
being a "senior engineer" is just resisting the urge to look at the git blame
16
5
117
@badcop_
badcop
1 month
that's it, enough is enough i am challenging @ahmadaccino to a 1v1 duel bash vs. powershell
@ahmadaccino
ahmadaccino
1 month
powershell >> every other language change my mind
Tweet media one
14
1
35
16
4
118
@badcop_
badcop
4 months
@wagslane trying to explain kubernetes to me
Tweet media one
12
5
116
@badcop_
badcop
5 months
i do not want to create content using ai
@theandreboso
Andrea Bosoni
6 months
Everyone wants to use AI to create content but no one wants to consume content created by AI.
222
566
5K
6
2
114
@badcop_
badcop
6 months
they brought me out of retirement excited to work with you!
@wagslane
Lane || Boot.dev
6 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
189
10
2
113
@badcop_
badcop
8 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 / CEO of Isometric Projection(same thing)
8 months
if we get recursion trending on twitter i am going to get recursion trending on twitter
17
8
150
18
10
110
@badcop_
badcop
5 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
109
@badcop_
badcop
9 months
thanks bash
Tweet media one
8
2
107
@badcop_
badcop
9 months
@LowLevelTweets duh, addition is commutative everyone knows [ ]-indexing means add-then-dereference 🥲
7
2
105
@badcop_
badcop
25 days
ok but i liked bash before it was cool to like bash
@MelkeyDev
Melkey
25 days
bash is an awesome language
22
1
116
14
1
106
@badcop_
badcop
2 months
alternatively, you can edit the files directly on github! 🥰
2
1
106
@badcop_
badcop
10 months
@MelkeyDev was hoping this was the golang repo
4
0
101
@badcop_
badcop
7 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 🔭
7 months
many such cases
Tweet media one
14
24
626
19
2
103
@badcop_
badcop
4 months
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
81
2
99
@badcop_
badcop
1 month
gonna name my firstborn 'chat'
18
5
97
@badcop_
badcop
10 months
it's so over
Tweet media one
7
0
97
@badcop_
badcop
4 months
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
4 months
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
97
@badcop_
badcop
6 months
i'm going to get fired when @wagslane sees this PR we had a good run
Tweet media one
10
1
96
@badcop_
badcop
4 months
feeling nostalgic this morning
@badcop_
badcop
1 year
Bash stack's origin story ft. @RoxCodes
Tweet media one
7
3
128
3
0
92
@badcop_
badcop
7 months
@ThePrimeagen idk if it's unhinged, but this is one of my favorites
2
2
95
@badcop_
badcop
9 months
it is SO over (from )
Tweet media one
7
2
93
@badcop_
badcop
2 months
void functions considered harmful
28
2
93
@badcop_
badcop
9 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
92
@badcop_
badcop
5 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
4 months
@push_ip HEY WTF
2
0
93
@badcop_
badcop
4 months
@bootdotdev @ThePrimeagen -----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCAa16LCADSsb1Sidk5k2/qmUc6c/3QbWGOQwYRZOqUYr1jqjCh r6TGHVxdH7wm/AzdWX5bStnrammmx/jRz7xVN7tiPdrlXt3ti74nN+TTuyBE9OBr rUbyFbhK96H5sTwPLGGpUhuivtMPAISt9uOlqBSytiFzBbG4qPzbKNkStwIDAQAB
8
0
92
@badcop_
badcop
5 months
/* 🏳️‍⚧️ */ .trans { visibility: visible; }
6
9
91
@badcop_
badcop
4 months
Tweet media one
5
1
90
@badcop_
badcop
27 days
its ok to use `.clone()` sometimes, btw
16
2
90
@badcop_
badcop
7 months
@real_philogy it's my own project i would have much bigger problems if someone was restricting my access
1
0
89