Why I Fire Programmers | Prime Reacts

  Рет қаралды 204,527

ThePrimeTime

ThePrimeTime

5 ай бұрын

Recorded live on twitch, GET IN
/ theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewed LinkedIn Post: / tykelewis_ive-never-fi...
By: Tyke Lewis
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-Kinesis
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/deeznuts

Пікірлер: 445
@Trekiros
@Trekiros 5 ай бұрын
Every single time Prime highlights a sentence on his screen but leaves out the first and last letter, a kitten dies
@keco185
@keco185 5 ай бұрын
I can’t unsee this now. It’s literally EVERY TIME
@XDarkGreyX
@XDarkGreyX 5 ай бұрын
Yeah, it kills me. I got skill issues and fail not to do that, but I feel like he does it on purpose
@weeb3277
@weeb3277 5 ай бұрын
maybe he never got a proper feedback or he did but is unwilling to grow and change...
@rawallon
@rawallon 5 ай бұрын
No they don't, source: I'm a kitten
@bobanmilisavljevic7857
@bobanmilisavljevic7857 5 ай бұрын
Oh no, not a kitten 🙄
@MC_Kun
@MC_Kun 5 ай бұрын
20% linked in post review. 80% bubble sort tutorial
@ThePrimeTimeagen
@ThePrimeTimeagen 5 ай бұрын
gotem
@adammurai1955
@adammurai1955 5 ай бұрын
goetm goemt geomt gemot emgot
@almicc
@almicc 3 ай бұрын
@@adammurai1955excellent joke but please can you fix the last line the result should be "egmot"
@adammurai1955
@adammurai1955 3 ай бұрын
@@almicc damn, I was off by one
@gamebuster800
@gamebuster800 2 ай бұрын
the guy: "Write a bubble sort from memory, right now" me, with 13 years of professional experience: "what is a bubble sort again?"
@vonpitlord1783
@vonpitlord1783 2 ай бұрын
exactly my thought lmao. Just tell me what it does and I'll put it into code, please don't tell me buzzwords. My brain has no space for them.
@redjoker365
@redjoker365 2 ай бұрын
@@vonpitlord1783 Bubble sort is usually the very first sorting algorithm you get taught in CS classes when you learn about sorting
@flarebear5346
@flarebear5346 2 ай бұрын
That's the point. After a while you kind of forget what the names mean.
@redjoker365
@redjoker365 2 ай бұрын
@@flarebear5346 To be fair, bubble sort is really only taught as an intro to sorting and algorithm efficiency analysis and the lesson ends with explaining that we don't use bubble sort in production because it's so inefficient. So you might encounter it a couple times in CS classes and then never again afterwards unless you're teaching programming
@BearMan-li6be
@BearMan-li6be 2 ай бұрын
Bubble sort is default sorting algorithm you do when you don’t know how to do any sorting algorithms When I was in uni in initial data structures class we had to code our own sorting algo and bubblesort was what I accidentally created
@TheBswan
@TheBswan 5 ай бұрын
Lmao at chat "this is not pythonic enough" at Prime's bubble sort
@ThePrimeTimeagen
@ThePrimeTimeagen 5 ай бұрын
they will always get you
@Luclecool123
@Luclecool123 5 ай бұрын
​@@ThePrimeTimeagenbest way to measure the size of that dict
@NostraDavid2
@NostraDavid2 5 ай бұрын
Well, chat wasn't wrong.
@loogabarooga2812
@loogabarooga2812 5 ай бұрын
It was the swap part numbers[j], numbers[j+1] = numbers[j+1], numbers[j] Very pythonic Also, lol at this dude doing the xor trick
@EnjoyCocaColaLight
@EnjoyCocaColaLight 4 ай бұрын
@@loogabarooga2812 show!
@Psychobellic
@Psychobellic 5 ай бұрын
ahhh linkedin and its ideology juice
@adamhenriksson6007
@adamhenriksson6007 5 ай бұрын
Soulless HR speak and CEO "this is why i'm a good person" pandering distilled, bottled and served to perfection.
@gustavomezzovilla7248
@gustavomezzovilla7248 5 ай бұрын
The corporative obligatory courses with souless music about beeing communicative kkkkkkk
@SandraWantsCoke
@SandraWantsCoke 3 ай бұрын
why bring juice into this you anti semite!
@thechadbuddha
@thechadbuddha 5 ай бұрын
"i love youuuu" *door slam*
@mauricio14junior
@mauricio14junior Ай бұрын
ahahahha came for this comment. Thought exactly the same 😂
@logank.70
@logank.70 5 ай бұрын
There was a developer at the company I work for now made such a mess of a project during his time and then left. The quality of the product has become so bad, and customer outrage has become so vocal, that they are threatening to just shut it down. It boggles my mind how somebody who can do so much damage can stick around for so long.
@fdg-rt2rk
@fdg-rt2rk 5 ай бұрын
How was he even allowed to do such a mess in the first place?
@lucaslopes1260
@lucaslopes1260 5 ай бұрын
Management tends to trust older hires more than new hires. Add in a culture that doesn't value good practices and you get a recipe for disaster.
@keco185
@keco185 5 ай бұрын
And the money the company lost because of it ultimately comes out of your salary
@razorswc
@razorswc 5 ай бұрын
​@@fdg-rt2rk there are many companies that do not have quality as a focus during development. They just want the feature done and shipped.
@logank.70
@logank.70 5 ай бұрын
@@fdg-rt2rk They had all the confidence in the world but zero competence along with the director of engineering thinking they were good. They had no PR process or gated check-ins in place. There were many times he would write code, not compile, and push. When I started on the team branch policies were put in place which is how I knew he had been doing that the whole time. Multiple times the code review would be "this code doesn't compile" and he would resolve it without doing anything. I just don't understand why we live in an age where firing somebody is a year(s) long process.
@tc2241
@tc2241 5 ай бұрын
I think what OP is getting at is that being bad isn’t the issue, it’s being unable to improve. I’ve hired many under developed workers as I saw their potential to grow. I’ve also fired talented individuals because they’re combative and constantly go off on their own. I think the OP just wrote it too “inspirational-ly”, like it’s going to be on a slide during a TED talk
@googleforcedhandle
@googleforcedhandle 5 ай бұрын
yeah lol, he literally says in his 2nd point that not growing is something worth firing someone off.
@tc2241
@tc2241 5 ай бұрын
@@googleforcedhandleyeah, not sure why Prime didn’t get that. Think he was too hung up regarding the skills part.
@briankarcher8338
@briankarcher8338 5 ай бұрын
He was just giving himself fellatio.
@shazam314
@shazam314 5 ай бұрын
@@googleforcedhandle OP contradicted himself.
@YT-dr8qi
@YT-dr8qi 17 күн бұрын
You know, growth cannot be infinite. At early steps - yes, you constantly grow. But the knowledge and experience expires. Expectations ate also tend to grow. And the more experience you have and in more areas, the more efforts it takes to just keep it up-to-date. So at some point you can get close to the saturation when a speed of skills expiration almost equals the speed of learning new. In reality such people still continue the developing themselves but the pace of improvement doesn't meet the expectations of others. Especially when someone looks at a novice who progresses at a certain speed in a single area and expects, that a senior with experience in 7 fields will progress at the same speed at each of these 7 fields. Learning never stops. But amount of up-to-date knowledge doesn't grow linearly. At the beginning the growth pace may even increase with years as previous experience helps learning new faster. But on later stages the growth pace slows down and most of the learning efforts can be spent just on keeping at the same level where you was without degrading
@luccaflower751
@luccaflower751 5 ай бұрын
bubblesort is literally the educational example of "this is the intuitive way most new programmers think up a sorting algorithm. now let's move on to actually good algorithms"
@and_I_am_Life_the_fixer_of_all
@and_I_am_Life_the_fixer_of_all 5 ай бұрын
Ive nerver had to use a search or sort algorithm in my life in a real world program, someone has already a library for it that you can just import.. same for data structures - the only time I had to use them was in interviews or promotion exams in big companies..
@luccaflower751
@luccaflower751 5 ай бұрын
@@and_I_am_Life_the_fixer_of_all i feel like that's kind of missing the point of why you might want to learn these things. learning the implementation of certain data structures and algorithms helps gain an understanding of their characteristics and what they might be good for. a lot of people don't even know of these things in the first place, and don't even think to reach into the standard library for a particular data structure, because they never learned that this particular problem maps really well to that particular data structure.
@DudeWatIsThis
@DudeWatIsThis 4 ай бұрын
@@luccaflower751 The interview: Implement quicksort. Implement djikstra/A*. Spin 4-dimensional matrixes atop each other. Answer "use a hash map instead" when asked how you would optimize something - ANYTHING. The job: Writing "FreeJsonLibraryYouGotFromGitHub.Serialize()" once a week, and knowing when something needs a Visitor instead of regular polymorphism.
@slayerxyz0
@slayerxyz0 2 ай бұрын
Bubble sort has some nice properties that can make it faster for small datasets and partially sorted data. Its also generally more cache friendly than other sorting algorithms and better suited to vectorization.
@EpsilonAJS
@EpsilonAJS 5 ай бұрын
The problem with feedback like "you communicate poorly" or "this code is bad" is that they are totally inactionable - they don't teach the person how to improve. And if you have specific, actionable feedback, just give that by itself. Adding the inactionable stuff is plain harmful - it's just offensive venting at that point.
@JellyMyst
@JellyMyst 5 ай бұрын
Wrong.
@DudeWatIsThis
@DudeWatIsThis 4 ай бұрын
But sometimes it can be _very_ hard to tell when someone "communicates poorly" until a huge mess has been made. Communicating poorly doesn't only mean messing up the repo or being an asshole in meetings. I'm in a small team and had a REALLY good programmer who, when the team grew a little, I promoted to handle 2 junior programmers. After that, he just took in all of their work and burned himself to the ground. If they went "Hey boss, can you help me with this?" he would sigh and just say "I'll have a look at it later", and then he'd do it all himself, instead of gently helping them out in their specific issue. He stopped testing thoroughly, the codebase became worse, and he became irritated. His 2 juniors became code monkeys who would fill in Visitor methods, create business classes, prototype the UI, and little else. Eventually he got extremely burned out and left the company. The 2 juniors and I took over his work, and we had to work many months to straighten out his mess. And guess what? Those 2 juniors were pretty smart guys, they just needed a chance. Turns out this guy was just completely inept at handling people, or delegating. And it wasn't just "you communicate poorly", but more like "you think others are stupid and won't be able to do what you do".
@S-we2gp
@S-we2gp 4 ай бұрын
@@JellyMyst lol
@S-we2gp
@S-we2gp 4 ай бұрын
Yeah this is a good point. Granted when i get feedback like that I ask for what specifically they dont like or would change. However its also true the person giving the feedback should have provided the specifics from the beginning. This problem can be solved from both sides, so whenever im on either I try to ensure i solve, I dont expect that from other people (even though you rightly could) I try to be twice as good rather than expecting other people to have these things dialed in. Unless its one of your higher engineers giving crappy feedback to a lower engineer, then you gotta tell them to improve, but since in my mind i always place myself at the top (lol) that i always try to solve these things.
@DudeWatIsThis
@DudeWatIsThis 4 ай бұрын
WTF, youtube deleted my response here but I'm still getting notifications when people talk.
@mickoalhwint.andrada8080
@mickoalhwint.andrada8080 5 ай бұрын
Your videos just appear to me in youtube algorithm, As a CS college student I really enjoyed it! Thanks for providing content with real life experiences!
@dtinth
@dtinth 5 ай бұрын
When I see posts like this, it always reminds me of this quote: “Attitude is no substitute for competence” (Eric S. Raymond, How To Become a Hacker (2001))
@scahsaint6249
@scahsaint6249 5 ай бұрын
Eh, good attitude takes you further.
@dtinth
@dtinth 5 ай бұрын
@@scahsaint6249 absolutely agree, attitute is also important
@KarimElHayawan
@KarimElHayawan 5 ай бұрын
Should have written "Attitude is no substitute for aptitude", more rhetorically effective.
@tanglesites
@tanglesites 5 ай бұрын
That was very cool, PRIMETIME rose to the challenge, if I was not already subscribed that would got me to sub. Awesome!
@kr30000
@kr30000 5 ай бұрын
I have seen a developer with multiple years in the industry write code so slow that if I was a manager, I would have fired them. The person in question wrote a function that took 5 seconds to filter 200 items in a list...I was shocked when I look at the exponential iteration that also recreated the entire array and object in it...just for a filter operation...
@asdasddas100
@asdasddas100 5 ай бұрын
This had to be malicious I refuse to believe it 😭
@johndoe9604
@johndoe9604 5 ай бұрын
that's actually crazy
@JuusoAlasuutari
@JuusoAlasuutari 5 ай бұрын
Obviously a plant working for Intel or AMD to boost CPU sales.
@az8560
@az8560 5 ай бұрын
@@asdasddas100 Could easily be a child raised by wild immutability advocates and now trying to adapt to civilization.
@streettrialsandstuff
@streettrialsandstuff 5 ай бұрын
​@@asdasddas100"never attribute to malice that which is adequately explained by stupidity"
@mekowgli
@mekowgli 5 ай бұрын
I'm missing the main point: Someone that, despite years of experience, struggles with anything except trivial tasks straight out of tutorials. Someone that works on a 1 day task for 2 weeks, produces something that works 20% and you end up spending the night rewriting it the day before deadline, because what he created is an unsalvable mess. Someone you spend more time helping than doing it yourself would take (for years...). Someone you can't fire regardless, because you're not Netflix and finding someone that wants to work for you is super hard.
@oblivion_2852
@oblivion_2852 5 ай бұрын
It would bother me less if someone took a long time but their solution was good. Seemingly the people who take forever produce code that doesn't even work
@Evilanious
@Evilanious 5 ай бұрын
In chess it's said that if a player takes way too much time on a move, that move won't be good.
@SandraWantsCoke
@SandraWantsCoke 3 ай бұрын
I hope I will never have to deal with that damn. I know these people exist though.
@Cursed_Crystal
@Cursed_Crystal 5 ай бұрын
Im still a student but i joined few years ago one git repo. You could add things to the repo if you got the points you were getting for fixing code. I found small bug that needed a fix that was not too hard. I wrote the fix and got told that i need to change something since its not good. Done it. Then change another thing and another and another. It was frustrating but in the end i see how much they taught me on the way. It does not matter if your code is bad. What matters is that you are willing to listen to others and learn from that
@JuusoAlasuutari
@JuusoAlasuutari 5 ай бұрын
You said it. Most code in the world sucks, it's OK to not be an amazing coder. To be human is to have skill issues.
@donner7708
@donner7708 5 ай бұрын
Came here to listen to some programming stories and tweets, learned how to bubble sort. 10/10
@talhaakram
@talhaakram 5 ай бұрын
the switches sound awesome are these kailh box whites?
@FindingFocus
@FindingFocus 5 ай бұрын
Hey prime I was on popos and I couldn’t get my computer to wake from sleep, did you have that problem?
@ifaus-on-yt
@ifaus-on-yt 5 ай бұрын
Entirely unrelated to your video, but I do have a question for you. Where would someone like myself find a community to get a solid code review of small-scale javascript projects? I haven't dabbled in Javascript for like 15 years until about 2-3 months ago after seeing your channel. It got me interested again. Now I'm hooked again XD.
@mumk
@mumk 5 ай бұрын
thanks for the bubble sort though, as a noob I appreciate it
@mattmmilli8287
@mattmmilli8287 4 ай бұрын
Okay subbed 😂 that was hilarious got called on the bubble sort and passed
@brando8314
@brando8314 5 ай бұрын
I'd like to hear about a time when Prime had to scathingly review a pull request from a senior developer.
@ChuckNorris-lf6vo
@ChuckNorris-lf6vo 5 ай бұрын
Good job all I am impressed by your knowledge productivity creativity and potential.
@user-xk1cp5jd2g
@user-xk1cp5jd2g 5 ай бұрын
how would you sort spherically from center of sphere starting point expending outward spherically ?
@redpepper74
@redpepper74 5 ай бұрын
Just sort by distance squared
@Bolpat
@Bolpat 5 ай бұрын
9:25 My sense is that schools and maybe parents just don’t give harsh feedback anymore. Maybe people feel stuff on a scale that ranges from their worst to their best experience in that domain, so if your worst feedback experience wasn’t horrible, a vaguely subpar feedback feels close to the worst feedback ever. You don’t even need have the experience yourself, you just need to witness it.
@Blaisem
@Blaisem 5 ай бұрын
That's not really true. Being shit on from a person of authority will never train you to accept being shit on by a peer. One has the privilege to do it, while the other doesn't. I got shit on all the time by teachers and my parents growing up in the 90's, and all these anti-millennial sentiments of people growing up soft because of upbringing are so myopic. I guarantee you engineers in the 70's and 80's were just as ready to throw down over some colleague coming up and saying their code is trash to their face. I still remember in university, the older professors were the absolute prickliest sons of bitches I ever met, even those who had been in the industry. They had enormous egos and pride. Although my time in the industry has mostly involved people in my generation or younger, my few encounters with the previous generation in the wild only reinforced this perception. The generation before simply loves to make themselves out to be heroes, but they're just human. They aggroed each other constantly and can be huge manbabies. I remember a 55-year-old just hanging up on a call because he felt challenged and didn't like it. Fired 2 months later, good riddance.
@Lodinn
@Lodinn 5 ай бұрын
@@Blaisem That's interesting. It feels like the very perception of authority figures has shifted, and the very notion of the "privilege to criticize" is often rejected these days. A lot of people 30 and younger dismiss the "I'm more experienced/knowledgeable" argument right out of hand. In 90s-early 00s, trashtalking someone's work felt like the norm. That last decade there's an ever-increasing need to sugarcoat everything, essentially "be nice or I won't listen". It is a shift in responsibilities also: we used to have "it's your responsibility to learn", now it's more "it's your responsibility to teach so that I'd understand". Most of the time, it turns out just fine, but the edge cases are pretty noticeable on both sides.
@Blaisem
@Blaisem 5 ай бұрын
​@@Lodinn It's possible things have changed in the last decade, although if I recall correctly, people were already saying 10-15 years ago that the new generation was back then was already going soft. I can't tell if it's just a perennial perception every 10 years that people want to announce the new generation is soft, and then that new generation 10 years later turns around says the same thing about the next generation. As for missing a privilege to criticize, I don't have any facts to argue against it. I can only say in my personal sphere it hasn't been the case. Bosses are free to offer negative feedback, and people mostly take it when it happens. I mean, they can leave in a huff, but I can't recall it happening. I guess we could have a discussion on what that negative feedback looks like. As a boss, you are responsible for morale, so there's a proper way to deliver the negative feedback. A good boss in a private developmental meeting say your code writing is leading to bugs in production and needs to improve; they shouldn't call you out in the daily and say "hey, Timmy your code lately has been garbage, fix it." On the other hand, I've seen a boss get pissed over a bug(s) and yell at the team, and the person named Timmy knows it's their fault from their commit, and quietly so does everyone else. Timmy then fairly expects punishment through other means like bonus or missed promotions. But hey, maybe what's deemed proper has changed over time. Finally, I will say this interaction has often been unnecessary. Most people around me who haven't left for personal reasons have left due to layoffs, so for all I know the boss doesn't have to give negative feedback, just select the people he doesn't like when it's time for layoffs. Or shuffle them to another team.
@clovernacknime6984
@clovernacknime6984 5 ай бұрын
@@Blaisem Shitting on people has nothing to do with giving feedback, it's simply an attempt to establish dominance. And of course, when such power games are played using feedback as a cover then feedback itself becomes perceived as an attack which needs to be defended against. The behaviour you described is the end result.
@JorgetePanete
@JorgetePanete 5 ай бұрын
Should I learn caml a through n before learning ocaml?
@mikebarnacle1469
@mikebarnacle1469 5 ай бұрын
I also have never had a car breakdown because it was delivered from the factory with no wheels
@ZPanic0
@ZPanic0 5 ай бұрын
So how do I improve my capacity to turn ideas into code? I'm "fine" at it, but I'd rather be more than fine.
@EnjoyCocaColaLight
@EnjoyCocaColaLight 4 ай бұрын
8:00 You live in a field? In a tent? How do you deal with the bugs?
@bobbycrosby9765
@bobbycrosby9765 5 ай бұрын
Insertion sort is easy for anyone who played a lot of card games. It was the first sort i naturally reached for when I first learned programming in high school (pre-internet).
@andru5054
@andru5054 5 ай бұрын
Another great video from based prime
@adi96adi
@adi96adi 4 ай бұрын
3:50 the xor swap attempt 🤣
@boli2016
@boli2016 4 ай бұрын
That was a snazzy little command you did there to console.log wrap everything. What is that called, and are these steps correct?: 1. visual highlight all the lines you want it to apply to 2. `:s/` to replace, then use regex to match all characters with a `()` to have a matching group on the whole entire line 3. `/` then the replacement including a `\1` for the first matching group Why were the `;` semicolons added in both the matching section and in the result section? And this is different from `%s` in that you didn't need to specify the regex flags like `g`?
@xalxika
@xalxika 4 күн бұрын
As someone new to programming, watching him do that bubble sort and moving around so smooth and fast without using his mouse - it was intimidating
@SXsoft99
@SXsoft99 5 ай бұрын
I have less salary, yes but the costs of living differ from place to place, also work in east Europe for a company in the US (if you don't have sleep at night) you basically have a huge salary
@CheeseOfMasters
@CheeseOfMasters 5 ай бұрын
Not exactly. My brother works in Brazil for a Swiss company but they did lower his income to reflect his costs of living.
@ohno1052
@ohno1052 5 ай бұрын
​@@CheeseOfMasterswait what the fuck isnt it, like, heavy discrimination and just very greedy stuff?
@gileee
@gileee 5 ай бұрын
​@@ohno1052 Honestly, I don't know what else to expect. Why else would a company from Switzerland hire someone from Brazil? If they were gonna pay someone a Swiss paycheck then they would find someone in Switzerland. I'm in Eastern Europe and many EU and USA companies come here to outsource work because of cheap labour. When covid hit and the cost of living increased our companies increased how much dev cost and the companies went to a different East Europe country where IT isn't in a huge boom and programmers cost less. That's how big companies protect the bottom line. And to be fair their paychecks are still better than any local company and they 100% pay up every month.
@NihongoWakannai
@NihongoWakannai 5 ай бұрын
​@@ohno1052 welcome to outsourcing
@weirdboy2214
@weirdboy2214 5 ай бұрын
Cybersecurity is the better option.
@ThomasWSmith-wm5xn
@ThomasWSmith-wm5xn 5 ай бұрын
he did bsort in js????
@bernicefenton
@bernicefenton 5 ай бұрын
Even getting "const a = b + c" right on the first try deserves immense cheer
@kyguypi
@kyguypi 5 ай бұрын
I've never fired someone for a lack of experience. Because I checked that when I hired them and it's not something that changes unpredictability. I think this guy is that type that really struggles to keep track of which variables are mutating.
@thomasmoncrief26
@thomasmoncrief26 5 ай бұрын
Only 20 years of experience and the man can pull off a bubble sort. Legend.
@magicsmokeblog
@magicsmokeblog 5 ай бұрын
A long long long time ago, my first program was bubble sort in Pascal.
@nathanreeves8291
@nathanreeves8291 5 ай бұрын
6:11 that feeling when you get to run your code 😂
@nomoremuda
@nomoremuda 5 ай бұрын
feedback strategy i favor -> the Velvet Hammer, very direct, very candid, but doesn't have to be delivered in a harsh or deconstructive manner.... especially if it comes from a good place to improve the person's performance...
@Readraid_
@Readraid_ 5 ай бұрын
Aren't you ment to check for swaps in bubble sort? if no swaps are made in a cycle the array is sorted
@abz4852
@abz4852 5 ай бұрын
thats a different version of the algo which is probs more optimised but could run into a problem if you made a mistake. In this version you know that the maximum number of swaps is at most the number of items in the array so you can just make the outer loop for let i = 0; i < array.length. If you used while (!swap) {} on the outer loop and the inner for loop you used if (left
@Readraid_
@Readraid_ 5 ай бұрын
@@abz4852 I see alright, comp sci class got me fucked up
@Asto508
@Asto508 5 ай бұрын
You are right, he didn't implement actual bubblesort but a worse version of it.
@houcemkabboudi
@houcemkabboudi 21 күн бұрын
at my first year in university, our C lab instructor wanted us to implement a sorting function and asked us if anyone has finished the task and i told her yes and she was like which one did you use? i said bubble sort (tri à bulle, we were learning in french unfortunately) and she got confused as hell. she asked me to write down on the board even! she even was not sure i wrote it correct until i manually executed an example and showed her that it worked on my machine!!! never thought i'd be doing much effort for such a simple function
@ike__
@ike__ 5 ай бұрын
I was taught insertion and bubble using while loops cause it makes it more efficient (A-level comp sci)
@az8560
@az8560 5 ай бұрын
Pixel-perfect is often unachievable, especially with fonts. Designers design something in photoshop with all its fancy font rendering settings, use all the exquisite fonts they have on their computer, adjust kerning or other obscure settings... and then you have a jpg, an application/browser/os which renders fonts differently, and you have to bruteforce through whatever settings you have available to make it at least the same number of lines. Sometimes they just do the same component in their mock-ups differently because they have a luxury of adjusting each individual use case and forgetting what was on the previous screenshot, but it obviously doesn't make sense to have several different implementations just to accommodate their forgetfulness. Sometimes they just completely miss things. I can't imagine someone just firing the implementer instead of communicating about the mismatches first, that just doesn't make sense. Unless you just searching for an excuse to fire somebody.
@thewiirocks
@thewiirocks 5 ай бұрын
In this context, "pixel perfect" usually refers more to getting all the alignments and edges right. If you have multiple content boxes that are supposed too align to the same edges, but one of your boxes is a pixel or two wider, that looks sloppy. Using different padding in each box looks sloppy. Randomly changing font sizes / font families looks sloppy. I've had engineers whine about "who cares if it's off by 1 pixel?!?" As if quality work is not something to be strived for. I get that they don't see it when they're just getting started. But if you've been working on the same product with the same theme for months and you continue to be sloppy with your implementation, we're going to have problems. Of course, your code is probably just as sloppy, soooo....
@SandraWantsCoke
@SandraWantsCoke 3 ай бұрын
it means they are shitty designers.
@SkullFlight
@SkullFlight 4 ай бұрын
This is different from how I remembered bubblesort. It used to be a while loop instead of the outer for that breaks when the array is sorted (that is, when the innner for loop doesn't find any elements to swap).
@jeanlasalle2351
@jeanlasalle2351 3 ай бұрын
That is still bubble sort. It doesn't really matter in this case, and if it does his solution is more efficient in the worst cases. He probably could have added a check though to prevent further iterations if already sorted. The goal is not to work from memory but to be able to implement basic sorting.
@jeroenvermunt3372
@jeroenvermunt3372 3 ай бұрын
In python every for loop is actually a while loop
@ZM-dm3jg
@ZM-dm3jg 28 күн бұрын
Writing code to deliver features as fast as possible and let other developers clean-up performance or security or clean code issues got me promoted 4 times in 36 months and tripled my salary.
@bugfacedog44
@bugfacedog44 4 ай бұрын
It's called bikeshedding because of this hypothetical scenario: You're on a committee building out a nuclear reactor. No one understands the nuclear reactor so doesn't really have any substantive feedback. But they do understand the bikeshed that will be on premises. You have a 2 hour long meeting about the build-out of the multi-million dollar reactor and spend 20 minutes discussing what color we should paint the bikeshed.
@slendi9623
@slendi9623 5 ай бұрын
I would've changed the for loops on the bubble sort tbh, the outer one just goes i
@AHN1444
@AHN1444 5 ай бұрын
what means "pixel perfect" regarding code?
@haikelareff
@haikelareff 4 ай бұрын
many things
@Quantris
@Quantris 3 ай бұрын
it means making a screenshot of your UI match exactly what the designer threw together on their powerpoint slide
@AHN1444
@AHN1444 3 ай бұрын
ic tnx@@Quantris
@GustavoPinho89
@GustavoPinho89 5 ай бұрын
9:30 "people take things extremely personal these days" that's the Brazility sneaking right in....
@HonsHon
@HonsHon 2 ай бұрын
I saw the 5000 tabs opened on the side while you typed in each character trying to remember how to type in English.
@Tychosvideos
@Tychosvideos 5 ай бұрын
Now make bubble-sort in JDSL
@alexanderkuznetsov7597
@alexanderkuznetsov7597 5 ай бұрын
Prime, just in case, you can select text "by word" the same way vim does, by doing a double click, holding the button after the second click
@CarKiller92
@CarKiller92 Ай бұрын
Did not expect a bubble sort display based on this video title ngl.
@neildutoit5177
@neildutoit5177 2 ай бұрын
When I've fired managers, it's because they were unable to figure out what feedback to provide someone and how to provide it in a way that that individual can use it to grow. jk obvs. I haven't fired managers but I hate this mindset so much. If someone isn't growing it's pretty much always because they aren't being managed properly. Usually some type A personality who doesn't understand that neurodivergent people respond differently and have different needs. Which it's supposed to be your job to understand as a manager.
@adamnixon5503
@adamnixon5503 22 күн бұрын
This comment should be pinned to the top. I'd love to see the staff turnover for this Tyke guy! People who claim others can't take feedback can never take feedback themselves. When given the brutal truth back, you are therefore labelled difficult! This video(not Prime's take on the video) is about a guy on a power rush, and with a narrow set of beliefs. Worst kind of person and manager.
@user-tb4ig7qh9b
@user-tb4ig7qh9b 5 ай бұрын
It is time i share a very aggressive comments that is becuase in 2 months when i was working lonely in the project i add 5 features with fix things in the backend and i even was communicate with mobile team daily and debug with them issues in the mobile side and help them to complete some features that written before i came to app, in last 2 months i ee have 2 new devs and man how much was hard i ask them in code review to do some changes and after that disapper for 2 days and came back and says, he do not want to merge out code and it works on postman 😢
@CanadaWaxSolvent
@CanadaWaxSolvent 2 ай бұрын
I worked with a guy who could give you most detailed and extenisve explanations for anything. The problem was he never really listened to your question, and he talked to everyone like they had never programmed before. So you ask.. do we have an enumeration for this.. and he gives you a long winded explanation of what an API is.
@steamer2k319
@steamer2k319 5 ай бұрын
Bubble Sort: Just Do It
@H4KnSL4K
@H4KnSL4K 5 ай бұрын
Re: bubble sort - This would be a good chance to practice Test-Driven-Development. Start with some test data and you can quickly verify that your code is correct.
@NihongoWakannai
@NihongoWakannai 5 ай бұрын
Wtf are you talking about? A sorting algorithm being correct is dependent on the implementation not the end result. You can write a sorting algorithm incorrectly and still have it sort the array.
@H4KnSL4K
@H4KnSL4K 5 ай бұрын
@@NihongoWakannai Well, you can also try to implement it and have it *not* actually sort it correctly. So you need to ensure you are getting a sorted result! Otherwise it is wrong. Note, it might not be optimal, or you followed the wrong algorithm, but getting it sorted is kind of crucial to a sorting function
@H4KnSL4K
@H4KnSL4K 5 ай бұрын
@@NihongoWakannai You could also add some tests to ensure it is fast enough. Like if you are testing a quick sort, you can give it increasing input and measure the timing to see if it is behaving as it should. If you wanted to test bubble sort, you would have to add a parameter which would be the number of iterations it is allowed to run for, and then inspect the data to verify it is working as a bubble sort should.
@theodorealenas3171
@theodorealenas3171 5 ай бұрын
It's cool, but nothing to do with TDD. TDD would start with a test that empty returns empty, then minimal code to make that pass. Then 2 elements sort, then code that can swap 2 elements. Then test with a normal array, then the loops in the code. That's more like TDD. I don't see how it's useful here though
@exception05
@exception05 5 ай бұрын
I am not on the side of such a manager. This message of his shows how poorly management sometimes understands people, and because of his position and limited short experience, it seems to him that he understands. This thread shows the complexity of human communication, as well as its many facets, and his approach may actually work if he wants to create a company of "Good Happy Slow Shit Code". Programming is not a kindergarten, but a highly profitable and highly competitive environment with enormous stress. It's not for the weak. If his bunch of deadbeats ever screw his business, let's see if he'll be passive-aggressive or actively-aggressive. "If you can't play a man's game, if you can't code shit, you are shit! Hit the bricks, pal, and beat it, cause you are going out!". Anyway I'm against unhealthy toxic environment, also I'm against deciding the fates of programmers this way.
@tylerbrown1457
@tylerbrown1457 4 ай бұрын
Lots of great points. I'll add that people tend to take constructive feedback personally because they're attached to their work. It's hard not to be, we all spend enormous amounts of time and effort getting good at coding. Plus, coding itself demands that you put a lot of yourself into it, if that makes sense. It's natural to be emotionally invested to a degree. That's why it's so important to not say things like, "your code sucks" in code reviews. Rather, be honest but always be specific, "this big block of code is hard to follow because it's so convoluted, it'll be much easier to read if you extract a couple functions out of it and use x and y array methods instead of for loops."
@adamnixon5503
@adamnixon5503 22 күн бұрын
That's fine as long as feedback is accepted both ways. If the code does not suck, and the manager is on a power rush or nitpicking, that leads to a toxic environment.
@originalghoul3738
@originalghoul3738 4 ай бұрын
Impressive isnt quicksort a c++ function to use i j k l m n etc???
@MegaMech
@MegaMech 5 ай бұрын
"Our start up needs to let people go. Whoever can't do bubble sort from memory goes." It's a fair cop.
@JonathanSwiftUK
@JonathanSwiftUK 29 күн бұрын
Hey, really cool single-character variable names, feels like the mid 70s at school with the RMZ 380Z and BASIC. Maybe we should go back to this more charming era, a simpler time.
@abdullahalmosalami2373
@abdullahalmosalami2373 22 күн бұрын
"You code sucks" or "This code is bad" is an insult. It's pointless. Be specific, be kind, and I promise it won't hurt and will produce better results and won't result in people hating their life. For fuck's sake.
@Kenbomp
@Kenbomp 4 ай бұрын
But does Anyone use bubble sort? Should just use quick sort from the beginning for any thing above 1000 items
@bobbodaskank
@bobbodaskank 21 күн бұрын
It can be frustrating working with people who take things personally. I had a job where they made me the head of a team and I got pulled in to talk to a manager about a complaint from a guy on my team that "I keep telling him what to do." I was like "yes, uh... Assigning him work each day is my job." The manager was like "yeah I know, maybe use softer language?" Like, dude
@Ramiprops
@Ramiprops 5 ай бұрын
What you implemented is actually a weird insertion sort, which has best case o(n^2), while bubble sort has best case o(n)
@gendalfgray7889
@gendalfgray7889 26 күн бұрын
Explain pls why programmers required to write bubble sort every time from scratch?
@elpatosilva
@elpatosilva 5 ай бұрын
Australians use the stone sort, is basically the same but you order the array starting from the top.
@Shaita
@Shaita 2 ай бұрын
Putting a bug in production is not only on developer's
@sub-harmonik
@sub-harmonik 5 ай бұрын
I'm definitely a bikeshedder.. I'm kind of ocd so I'm a bit worried about being able to move past it
2 ай бұрын
Bublesort is a good mindchallenge interview exercise when hiring senior programmers. But if they use variable names like i and j, they probably won't let in into my team.
@HrHaakon
@HrHaakon Ай бұрын
If you have to implement a sort from memory, go with heapsort. Yeet it all into the heap, and pull it out. Just do the recursive data structure, and say it's "good enough".
@fairbanj
@fairbanj 2 ай бұрын
We had a guy who was a terrible coder but had a great attitude and work ethic. We kept him for about 5 years before we finally let him go. We've now spent nearly 10 years still cleaning up his code. 😞
@jordanholtz8130
@jordanholtz8130 3 күн бұрын
Bugless production is a myth, there will always be bugs in production. The time and effort required to find a bug increases exponentially as testing becomes closer to truly exhaustive. After a certain level of testing your return on investment is no longer worth it and the risk is next to none.
@marcinmielniczuk8279
@marcinmielniczuk8279 Ай бұрын
can we get a "why do i hire engineers" episode?
@davidharting3119
@davidharting3119 5 ай бұрын
Prime, if I just read the articles and don’t watch your reaction, will you still be able to afford your extravagant South Dakota lifestyle?
@ThePrimeTimeagen
@ThePrimeTimeagen 5 ай бұрын
yes
@SnowTheParrot
@SnowTheParrot 4 ай бұрын
I mean I heard Netflix pays their Hiring Engineers pretty good lol
@terry-
@terry- 3 ай бұрын
Great!
@komerczka
@komerczka 5 ай бұрын
I am 60 seconds into video and already missing the Costco guy
@drd2093
@drd2093 2 ай бұрын
Bubble sort worst case is n squared. But for already-mostly-sorted data it can be superior to other sorts, because its best case is o(n)
@Th1200
@Th1200 5 ай бұрын
ahhh linkedin XDDD Most of the posts there could be produced by a llm and the users would not notice...
@TenNiepokorny
@TenNiepokorny 2 ай бұрын
During my 12 years as a software developer not even a single time I was asked to implement bubble sort from memory at work. Useless knowledge.
@adamnixon5503
@adamnixon5503 22 күн бұрын
Careful. That sort of intelligent reply might get you fired as you cannot accept feedback.
@mirceacaprioru
@mirceacaprioru 5 ай бұрын
Literally just did a bubblesort in an interview a few hours ago. :)))
@idiomaxiom
@idiomaxiom 5 ай бұрын
Neil Gaiman, Be easy to work with, get work done on time, do great work. You only need two.
@ColaKingThe1
@ColaKingThe1 5 ай бұрын
Good video
@nickharbinger6839
@nickharbinger6839 5 ай бұрын
Someone working for this guy needs to implement an is even with just if statements to test the "code too slow" job security.
@dzanfox
@dzanfox 3 ай бұрын
Newbie dev here, and two and a half minutes into the video and I learn about ++i and that it's slightly faster over i++. I'm starting to learn may be bad at what I do, I don't know...
@valhalla_dev
@valhalla_dev 5 ай бұрын
LI and social media in general have created a habit of needing to create ideological absolutes in situations (like employing SWE's) that don't work well with absolutes. Some of the best work I've seen produced in multiple jobs has been produced by people who will very rarely look up from their shoes, some of the worst I've seen produced was made by folks with some of the highest EQ ever.
@AnonYmous-yu6hv
@AnonYmous-yu6hv 5 ай бұрын
And companies will prefer the charismatic douchebags and fake people that average or less than people who are less good with people but are very technical.
@valhalla_dev
@valhalla_dev 5 ай бұрын
@@AnonYmous-yu6hv I would put a fat asterisk on that. I've been a part of several companies that are biased toward highly technical folks that can't talk their way out of a paper bag, or are actively incredibly rude/arrogant, because they view the only purpose of an engineer being producing code, not working within the broader context of a company.
@Seaoftea
@Seaoftea 5 ай бұрын
My dude didn't even do bubble sort correctly. FIRED! You wrote an exchange sort algo which will always perform at n^2 instead of returning once everything is sorted.
@Asto508
@Asto508 5 ай бұрын
True, bubblesort has best case O(n) but his algo has O(n^2).
@CaptTerrific
@CaptTerrific 5 ай бұрын
7:10 sounds like he has management potential, to me!
@Mehuge
@Mehuge 2 ай бұрын
I once wrote a bug that killed a herd of cows. The bug was caused by an extra 0. I wasn’t fired.
@zfighter3
@zfighter3 3 күн бұрын
I get my grade 9 students to come up with a way to sort numbers without ever seeing it before. They naturally end up with bubble sort or something very close. If they can all do it without ANY experience, every programmer on the planet should be able to do it from memory. That person just needs higher standards for their employees lol.
@Sanscripter
@Sanscripter 5 ай бұрын
you Just posted this one to show off your bubble sorting skills
@EnjoyCocaColaLight
@EnjoyCocaColaLight 4 ай бұрын
++1 is making me sad.
@martins2246
@martins2246 5 ай бұрын
good code IS subjective. The "fancy places" have hard tests because things are mess.
@bonkers_dave
@bonkers_dave 5 ай бұрын
50 years ago I invented the bubble sort. Thought I was amazing. Then I discovered somebody else thought of it first. I was devastated.
@Quantris
@Quantris 3 ай бұрын
and that's why it's called bubble sort instead of bonkers sort
I Just Need A Programmer | Prime Reacts
18:26
ThePrimeTime
Рет қаралды 175 М.
Firing Our Top Talent Was The Best Decision Ever | Prime Reacts
23:19
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 23 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 103 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 33 МЛН
I Have Never Worked | Prime Reacts
26:11
ThePrimeTime
Рет қаралды 350 М.
Why I Quit the Scrum Alliance
7:58
The Passionate Programmer
Рет қаралды 10 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 555 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 756 М.
What Does Your Editor Say About You | Prime Reacts
22:12
ThePrimeTime
Рет қаралды 274 М.
Interview with Senior JS Developer in 2022 | DEVELOPER REACTION
12:10
Why I Got Fired JR Dev | Prime Reacts
19:33
ThePrimeTime
Рет қаралды 174 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 588 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 332 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,6 МЛН
Tag her 🤭💞 #miniphone #smartphone #iphone #samsung #fyp
0:11
Pockify™
Рет қаралды 17 МЛН