7 Top FAANG Coding Tips, Best Practices (ex-Google, ex-Meta)

2024 ж. 15 Мам.
74 522 Рет қаралды

Ex-Google TechLead on FAANG coding tips. The first 500 people to use my link will get a 1 month free trial of Skillshare skl.sh/techlead01241
Ace your coding interviews with ex-Google/ex-Facebook training. techinterviewpro.com/
0:00 Intro
1:57 1. Never comment code
3:51 2. Design leads code
5:11 3. Server driven design
6:48 4. Declarative languages
7:32 5. Consistency
8:56 6. Never refactor
9:37 7. Regex Linters
10:31 Bonus tip
Ace your coding interviews with ex-Google/ex-Facebook training. techinterviewpro.com/
💻 Get access to 100+ programming interview problems explained: coderpro.com/
📷 Learn how to build your own successful business on KZhead: youtubebackstage.com/
💻 I’ll send you FREE daily coding interview questions to practice your skills: dailyinterviewpro.com/
🛒 My computer and camera gear: www.amazon.com/shop/techlead/...
💵 Merch! The ultra-thin TechLead wallet: amzn.to/42UyYOb
⌨️ My favorite keyboards: iqunix.store/techlead
Follow me on social media:
/ techleadhd
x.com/techleadhd
Disclaimer: This description may contain affiliate links.

Пікірлер
  • The first 500 people to use my link will get a 1 month free trial of Skillshare skl.sh/techlead01241

    @TechLead@TechLead4 ай бұрын
    • Follow ye the wisdom of Gogle & Magogle

      @generaltheory@generaltheory4 ай бұрын
    • mustache stroke emoji

      @listcheck@listcheck4 ай бұрын
    • hey im unemployed,. what type of job could get me in door? Im in boston

      @landons2k907@landons2k9074 ай бұрын
    • Because Google is known for its fancy, cool client UIs. ChatGPT is the ultimate declarative coding language 😅

      @389293912@3892939124 ай бұрын
    • this needs credit card. a red light to avoid

      @lasindunuwanga5292@lasindunuwanga52923 ай бұрын
  • This man will tell you coding is for losers one day, and share coding best practices another. He's the kind of arms dealer who sells weapons to both sides. Truly a marketing genius

    @Ayra_Is_Cool_lol@Ayra_Is_Cool_lol4 ай бұрын
    • Coding is 100% dead, but that doesn't mean that some people don't do it for fun

      @chadkirk925@chadkirk9254 ай бұрын
    • @@chadkirk925 that statment is 100% false

      @teemuperala3472@teemuperala34724 ай бұрын
    • My recurring paychecks beg to differ@@chadkirk925

      @forthehomies7043@forthehomies70434 ай бұрын
    • Its dead for some , not all@@chadkirk925

      @d0giem@d0giem4 ай бұрын
    • ​@@teemuperala3472 we need them to believe that coding is dead. Stop trying to wake them up.

      @Triple_A-679@Triple_A-6794 ай бұрын
  • Bro, I already dropped coding to become a lumberjack after your last video. I need woodcutting tips now.

    @HyperionStudiosDE@HyperionStudiosDE4 ай бұрын
    • Teak trees west of Castle Wars until level 99

      @douglasdotv@douglasdotv4 ай бұрын
  • we need more videos like this tech lead, not “coding is dead”

    @wisdomelue@wisdomelue4 ай бұрын
    • no, we dont. Truth is painful but its better than beautiful lies

      @seya1994@seya19944 ай бұрын
    • In a sense, human intelligence is more artificial than AI. Staying human, seeking for primes of humanity, glowing trust and empathy are top qualities now

      @generaltheory@generaltheory4 ай бұрын
    • Says everyone who has work experience / job security.@@seya1994

      @bhill6923@bhill69234 ай бұрын
    • @@seya1994 durhhh? , we know some of what he says is true, but while we are in it already, it’s okay to get good advice on how to get better, or you think we gonna “not getting into it” because AInis taking over?😂

      @wisdomelue@wisdomelue4 ай бұрын
    • @@wisdomelue i don't think software engineering is something worth hours of learning and it's better to try other solutions as techlead says. It's also truth people are getting bitter because of life wasted in nerdish life while other people were having fun and you expecting to have fun later in life. I think it's better to go other way

      @seya1994@seya19944 ай бұрын
  • I thought coding is dead 🤔

    @stefanlindner4615@stefanlindner46154 ай бұрын
    • He's the tech lead (the tech lead) (millionaire btw)

      @peaklander1@peaklander14 ай бұрын
    • It’s probably click bait 🤔

      @aaronmoroney2066@aaronmoroney20664 ай бұрын
    • @@aaronmoroney2066 do not question the tech lead

      @peaklander1@peaklander14 ай бұрын
    • Coding is temporary. The future belongs to AI.

      @nevadawolf3040@nevadawolf30404 ай бұрын
    • @@nevadawolf3040 Then humans will be dead.

      @jora5483@jora54834 ай бұрын
  • Great !! finally back with coding videos continue it's great to see u talk on this topics

    @Farid-Khan@Farid-Khan4 ай бұрын
  • We expect more of these videos from you please. Great wisdom.

    @cemtekesin9033@cemtekesin90334 ай бұрын
  • Great vid. "Don't take initiative if it's a stupid initiative". The ever-quotable tech lead.

    @jmpersic@jmpersic4 ай бұрын
    • The worst initiative is a small refactor wrapper class. function add (a, b) {return a + b;} It's very hard to block this kind of code. The junior engineer can claim "impact" for shipping their "add" framework, which is then open sourced. But it's just more "new ways" of doing things that everyone has to learn.

      @TechLead@TechLead4 ай бұрын
    • @@TechLead Well that's a wild look into Fang life. I'm a solo dev working on enterprise apps, always fun to see the other side.

      @jmpersic@jmpersic4 ай бұрын
    • @@jmpersic solo coding 4 life 🖖

      @maxron6514@maxron65144 ай бұрын
    • ⁠It's good to be king

      @jmpersic@jmpersic4 ай бұрын
    • Coding is just bs many people have many approaches but there is no right approach

      @albin6126@albin61264 ай бұрын
  • Nice seeing this side of you again TechLead, wishing you a Happy New Year! Appreciate the insight/tips to keep in mind. The don't refractor one just to make it look pretty is a really good one that I might not have considered as heavily before hearing it from you.

    @KalebSDay@KalebSDay4 ай бұрын
  • When he said to not comment your code, I first thought this was another TechLead troll video, but his explanation actually makes a lot of sense.

    @bin4ry_d3struct0r@bin4ry_d3struct0r4 ай бұрын
  • These kinds of contents are the reason why I subscribed to this channel in the first place. I really appreciate you TechLead.

    @rbalsdldiify@rbalsdldiify4 ай бұрын
    • This type of content*

      @last-life@last-life3 ай бұрын
  • Wow, these are some excellent coding tips. Thanks for posting!

    @user-di4bt7qu2i@user-di4bt7qu2i4 ай бұрын
  • Thanks Tech Lead, I got the one of the skillshares!

    @MelodiesAndRhythms@MelodiesAndRhythms4 ай бұрын
  • This was great "old school" teach lead content.... nice to mix this in sometimes.

    @stachowi@stachowi4 ай бұрын
  • Just the right timing to remind me a week before I start my new job.

    @limbo3545@limbo35454 ай бұрын
  • I enjoy your more philosophical videos but this is why I subscribed. Lets GO!

    @lukealadeen7836@lukealadeen78363 ай бұрын
  • comments in code can be useful. It really depends what code it is. If you are writing an API, a good practice is to add comment to each public function to explain what it does, what are the return types and parameters. Also goes for situational math or logic code, it's often difficult to tell what it's trying to do without explanation. You have to think from the perspective of a new engineer unfamiliar with your code - will they be able to understand what's going on here? If not can you simplify it? If not, add comments. Also refactoring is sometimes necessary. You are not going to write perfect code from the get go. Sometimes extending and adding new features requires the code to be refactored. Trick is to know when and how much to do it.

    @drawmaster77@drawmaster774 ай бұрын
  • Thanks. This video was refreshing

    @missyelaine@missyelaine4 ай бұрын
  • great delivery btw. any soft skills tips from a techlead and an employee perspective?

    @horoshuhin@horoshuhinАй бұрын
  • "Let's build some happy little tree data structures" - Bob Ross if he was a tech lead

    @AimlesslyMusical@AimlesslyMusical4 ай бұрын
    • "Let's invert a list here, invert a list there. It is your world, your imagination"

      @andreys7729@andreys77294 ай бұрын
  • Thanks, this type of useful content is really back.

    @fateriddle14@fateriddle144 ай бұрын
  • Total agree on the 'never refactor.' It is a total junior move to want to refactor everything.

    @cathrynm@cathrynm4 ай бұрын
  • previous video coding software engineering is dead, next video best coding tips

    @themonkeyman2790@themonkeyman27904 ай бұрын
  • This guy is giving me whiplash

    @SuperRnine@SuperRnine4 ай бұрын
  • Yesterday: Coding is dead. Why I am not a coder. Today: 7 Top FAANG coding tips

    @cybersphere@cybersphere4 ай бұрын
  • Regarding documentation, it's down to the tech lead to ensure documentation is kept up-to-date (current tech lead/eng manager)

    @Gold-pl9en@Gold-pl9en4 ай бұрын
    • I would just delete the documentation. If your code is too hard to use, it just won't be used.

      @TechLead@TechLead4 ай бұрын
    • This seems stupid. Documentation is done by the whole team.

      @javier.alvarez764@javier.alvarez7644 ай бұрын
    • @@javier.alvarez764 The tech lead should ensure it happens. They should be ultimately responsible for guiding/leading the engineers. (ex engineer, ex tech lead, current eng manager) :)

      @Gold-pl9en@Gold-pl9en4 ай бұрын
    • Documentation is for non-programmers. If a programmer or a tech-lead or a team-lead or a lord-manager demands low-level documentation from you it only means that he doesn't bother to read your code.

      @andreys7729@andreys77294 ай бұрын
  • Thank you so much for a POSITIVE code video. I will be applying this at work tomorrow. I don't even watch your negative, trolling, comment-seeking videos.

    @mjm1986bk@mjm1986bk4 ай бұрын
  • Those are some SOLID principles, sir.

    @BartKus@BartKus4 ай бұрын
  • Any thoughts on game development as an intermediate path? It falls under Digital Media, but still requires (some) coding.

    @Rocketbunny180sx@Rocketbunny180sx4 ай бұрын
  • We need this man back in our code community; he explained things well enough. 😀😃

    @maveasna2096@maveasna20964 ай бұрын
  • Useful advice, with just a pinch of sarcasm? Perfection!

    @RossRyles@RossRyles4 ай бұрын
  • You only offended junior engineers once in this video. 😆

    @Gold-pl9en@Gold-pl9en4 ай бұрын
  • Hope to meet this legend one day! 😃🙌

    @abrasionthermals9172@abrasionthermals91724 ай бұрын
  • Totally agree, you are the legend.

    @yishstudio8393@yishstudio83934 ай бұрын
  • Do a video on what the best keyboard is to become a FAANG tech lead

    @ilearncode7365@ilearncode73654 ай бұрын
  • Regex on coding patterns? Ingenious idea.

    @389293912@3892939124 ай бұрын
  • Thank you very much for this! :)

    @kevin26exe@kevin26exe4 ай бұрын
  • You're the best comedian out there 🤣

    @tolotrarabefaly1333@tolotrarabefaly13334 ай бұрын
  • Great tips! Thanks

    @saraf2417@saraf24174 ай бұрын
  • Love it!❤️

    @ddddsdsdsd@ddddsdsdsd4 ай бұрын
  • :O Coding lessons from Tech Lead himself!

    @SandraWantsCoke@SandraWantsCoke4 ай бұрын
  • great video! More of this. Less of the fearmongering

    @JegErN0rsk@JegErN0rsk4 ай бұрын
  • I watched this with my morning coffee, and now my day is perfect.

    @BUY_YOUTUBE_VIEWS_d133@BUY_YOUTUBE_VIEWS_d1334 ай бұрын
  • Thanks Techlead excellent tips

    @wheeldogg@wheeldogg4 ай бұрын
  • First actually useful video for programmers from TL

    @ivandavidalmadaperez4963@ivandavidalmadaperez49634 ай бұрын
  • What about Design Patterns in Coding? I have a master degree (Geoinformatics) but those were not taught. I think they are relevant.

    @n8ged8@n8ged84 ай бұрын
  • There’s a book called code perfect where it says that max number of lines of code should be 5, though I think it can be more as long as it’s easy to understand what’s going on in 1 minute. So if you name your functions properly, it could be an easy to follow story.

    @GoogleAccount-wy2hc@GoogleAccount-wy2hc4 ай бұрын
  • yes i still want to code, contraire to your suggestions in the previous videos. So... thank you!

    @brahmazengi55@brahmazengi554 ай бұрын
  • I agree with almost everything mentioned, except "never refactor". Code structure is often a result of requirements and assumptions. Both can and will change over time, if the product is existing long enough and is evolving. This leads to your code base reflecting an outdated view of reality that can manifest itself in weird or inefficient call patterns or structure that doesn't fit anymore. In that case refactoring should be done, to reduce cognitive load. It shouldn't be risky, if you are using the tools the IDE provides, and anyway you should have good test coverage, that would uncover issues.

    @piff57paff@piff57paff4 ай бұрын
  • I almost never write comments only when there is an unexpected functionality or when references to functions needed. Code should be written so it's self-explanatory in my opinion

    @menilev@menilev4 ай бұрын
    • Wow... a really long code could be self explainatory? Come on man.. give me an effin // and stop listening to this fake programmer

      @jesustarsia6994@jesustarsia69944 ай бұрын
  • Where can i learn more about the Regex testing framework for ensuring good coding patterns? (Like not mixing business and presentation logic?)

    @TRoss-ru6sg@TRoss-ru6sg4 ай бұрын
    • Look up regex linters. SwiftLint looks close to what we used it FAANG, not sure if there's other frameworks.

      @TechLead@TechLead4 ай бұрын
    • I understand for style, but how will a regard help with presentation vs logic eg imports ? Please tech lead more videos for coding, teach us for once

      @occo5877@occo58774 ай бұрын
    • @@occo5877 one way is to regex test for "Controller" in any View file... Assuming properly named files, that blocks any view from referencing controller logic directly. It then needs to send messages upstream using callbacks, delegates, actions, state, etc..

      @TechLead@TechLead4 ай бұрын
  • Thank you great tips, my strategy is to learn programing enough to be able to ask questions to LMMs to write code for me :) - it works with simple projects.

    @micbab-vg2mu@micbab-vg2mu4 ай бұрын
  • sir, where is the keyboard from the previous video?

    @AnthonyMarchenko@AnthonyMarchenko4 ай бұрын
  • I hear people say cloud has taken over storage capabilities (backup) but in some places over here [East Africa] that doesn't render flash discs useless. Same applies to programming, unless the world becomes dominated by computer systems that don't need software anymore😮.

    @Namcode177@Namcode1774 ай бұрын
    • Which country in east Africa???

      @brandonmunda346@brandonmunda3464 ай бұрын
    • @@brandonmunda346 take for instance Uganda, where I stay currently as a South Sudanese refugee. Technologies which are deemed deprecated still serve their purposes. Anyway the world doesn't move synchronously.

      @Namcode177@Namcode1774 ай бұрын
  • The tech lead doing tech lead stuff... Nice

    @DASHIZZAL@DASHIZZAL4 ай бұрын
  • yes, coding is dead, I miss the vlogs

    @Tbjbu2@Tbjbu24 ай бұрын
    • We do want More vlogs not this boring blah I think hew doing it purposely

      @Tranquilflame@Tranquilflame4 ай бұрын
  • since your video on the matrix and society, I've subscribed. I'd like you to expand on the subject, it was very interesting, maybe on politics in the USA, I'd like to understand this country better...

    @Jimi-bx3xf@Jimi-bx3xf4 ай бұрын
  • Care to bring CI/CD into this topic?

    @goowawa@goowawa4 ай бұрын
  • I only comment my code with TODOs. It's helpful to know what you need to do, and potentially where it should go. I rarely add other types of comments. In the 90s I did comment my code because all of my variables were nondescriptive. That was the style back then and all of those lines of code should be deleted.

    @svintheanajones88@svintheanajones884 ай бұрын
  • I know you think coding is dead but you should make more software engineering videos.

    @BobGoldfield@BobGoldfield4 ай бұрын
    • Tell that to the Algorithm. I just do what it tells me to do.

      @TechLead@TechLead4 ай бұрын
    • @@TechLead We support you, TechLead.

      @I_Lemaire@I_Lemaire4 ай бұрын
    • @@TechLead but you drive the algorithm, not the other way around

      @Skipolo@Skipolo4 ай бұрын
    • Please dont its boring your other stuff is more entertaining and more logical than code ​@TechLead

      @Tranquilflame@Tranquilflame4 ай бұрын
  • I am one of the world's best programmers, second only to the TechLead. My code is clean. Its structure elegant. To code with me is to code with programming itself. I am a programmer and I am happy. Comments are overrated, and nobody reads them, anyway. Use your "comment sense". When I design the software of giants, I drink nothing. Not coffee. Not water. Nothing. I work with other people, but I am a better programmer. Happiness is among my greatest assets. The flow of data is smooth. My code is easy to debug. Not that I ever have any bugs, of course.

    @BlackHermit@BlackHermit4 ай бұрын
  • 6.06am - Just finished watching an inspirational youtube video.

    @NoTech25@NoTech254 ай бұрын
  • Ive been a 29 year for the entire history of the internet sense it's existed as a technology admittedly mediocre full stack developer qualifying me as an "expert" haha... Hey good tips actually. I gave a sigh when I heard the topic. I was like here it goes... Eh.. Not bad. Your tips are correct. Agreed.

    @petersouthwell5971@petersouthwell59714 ай бұрын
  • Do you know anything about ML Lead or ML Engineer?

    @catrinacraft@catrinacraft4 ай бұрын
  • hey im unemployed, what type of job could get me in door and experience what the field is like? ? Im in boston

    @landons2k907@landons2k9074 ай бұрын
  • A video about best coding practices but yet in some videos he mentioned that software engineers are going to be obsolete. Discouraging people from become software engineers.

    @rlifts@rlifts4 ай бұрын
  • How's million token going? Should I wait til it hits $1 dollar before buying?

    @seniorsergeanttomcroydon6401@seniorsergeanttomcroydon64014 ай бұрын
  • Tech interview pro link in the end is dead

    @Almormd@Almormd4 ай бұрын
  • thnx 4 keeping it pozt

    @e00d20@e00d204 ай бұрын
  • You looked happier in those photos

    @unknowndata3841@unknowndata38414 ай бұрын
  • "deleting 300k lines in a single commit" - bro xd

    @RealismHD1@RealismHD14 ай бұрын
  • TechLead finally coming back to his senses? 🤓

    @Denzelzeldi@Denzelzeldi4 ай бұрын
  • One day you say , dont code, now you give tips about coding. Lol😂😂😂

    @ronaldomaia@ronaldomaia4 ай бұрын
  • "any fool, any junior enginneer" lolol

    @clapcell@clapcell4 ай бұрын
  • Yea, make more videos like this. Honestly I stopped watching your channel, and I'm willing to start again if you plan making videos like this.

    @mirzakadic9174@mirzakadic91744 ай бұрын
  • pls make another top 10 keyboards video

    @boohba@boohba4 ай бұрын
  • EX-META ✨oh, great that you are clear now😂

    @lukkash@lukkash4 ай бұрын
  • man he is good no lie

    @dav.7557@dav.75574 ай бұрын
  • Great one, thanks bye

    @seya1994@seya19944 ай бұрын
  • good developers also UNDERSTANDS their application.

    @gislo@gislo4 ай бұрын
  • What a serious video

    @fourmidu17@fourmidu174 ай бұрын
  • Great Video

    @UncleFreedom777@UncleFreedom7774 ай бұрын
  • Impressive

    @DAVIS__@DAVIS__4 ай бұрын
  • Does anyone know which programming languages he knows?

    @BrayanMartinez-wp9vh@BrayanMartinez-wp9vh4 ай бұрын
  • Good tips.

    @jasonisjasondoes@jasonisjasondoes4 ай бұрын
  • sorry, where were you Tech-Lead at?

    @parikxit@parikxit4 ай бұрын
  • make their move and history repeats itself as it usually does

    @emirhan4029@emirhan40294 ай бұрын
  • You totally got the bit about comments wrong. They are there to describe the intent/purpose, not the code itself. If I want to know what the code is doing, I can just look at the code. But looking at the code doesn't tell me anything about the original reason the code was written/written in the way it was.

    @arcan762@arcan7624 ай бұрын
  • About #1: everyone can read code and you don't need to explain what it does. Explain why you do it and why in this way.

    @michaelraasch5496@michaelraasch54964 ай бұрын
    • Also, if there is a test, it can both audit and document expectations.

      @trappedcat3615@trappedcat36154 ай бұрын
  • 7 coding tips for Magnificent 7 🏆

    @vzuzukin@vzuzukin4 ай бұрын
  • Im sure EPAM Systems had the same practices in their EngX program

    @nik.nenkov@nik.nenkov4 ай бұрын
  • Refactoring is super important but only if you're good at it and you're the lead. In big organizations, overtime every line in a file has a different author, and most of these authors are working fast and don't bother to examine what the code above and below their contribution actually does. Code gets duplicated, grows overly complicated, lacks cohesion and that in turn leads to slower development and hard to find bugs. As project lead you should be the one refactoring everybody's contributions into a cohesive unit, break up those long complex functions into smaller ones, simplify and make the codebase more readable. Let your junior devs figure out happy paths for (small) new features, then you go in and adapt their solutions to the greater whole while fixing all the edge-cases and bugs they didn't. You're stuck with junior devs anyway so you might as well have them do something useful.

    @ultimatesin3544@ultimatesin35444 ай бұрын
    • I feel that refactoring can be very dangerous if you don't have unit tests and functional tests protecting the code you intend to modify. It's very easy to reintroduce errors into refactored code. I personally like refactoring code, and most of my speed gains comes from just refactoring code so it doesn't make so many passes over a dataset but I'm somewhat in the minority. But refactored code can often be absurdly short compared to unfactored code.

      @langhamp8912@langhamp89124 ай бұрын
  • Not only has this genius worked for couple of months in Google, he is a millionaire. As a millionare, he gives you this very vAlUaBle advice. Better listen dear coders. tHiS iS TecHLeAd himself. Glorious

    @standaterziev5511@standaterziev55114 ай бұрын
  • So in conclusion, just delete everything.

    @JohnSmith-bm6zg@JohnSmith-bm6zg4 ай бұрын
  • funny because at my company, we don't find time to do anything. so the monstrous mess just grows and grows :) i love my job :)

    @JazevoAudiosurf@JazevoAudiosurf4 ай бұрын
  • Sometime You could come here: I program as well... this would be in HungarY, not all that complication thanks to aircraft tecnics. I am circa 120 KM from Budapest. Not all that big dial.

    @simhgamedev@simhgamedev4 ай бұрын
    • @__TechLeeadd_ any time : I am a computer nerd.

      @simhgamedev@simhgamedev3 ай бұрын
  • Mr Tech lead ex googler ex facebook ex tesla.....how can we make some money online ?

    @arturosanchez4031@arturosanchez40314 ай бұрын
  • What happened??? TechLead talks about Tech again?

    @eyaswoo1483@eyaswoo14834 ай бұрын
  • After I watch this video, YT auto play ▶️ recommended me to watch his "coding is dead" video 😂

    @weishi5286@weishi52864 ай бұрын
  • Can Ai replace programmers?

    @techtalk1455@techtalk14554 ай бұрын
    • Programmers can replace AI

      @SciMoTeAr@SciMoTeAr4 ай бұрын
    • Very far from ChatGPT making entire, useful programs by itself without error

      @ghostaccountlmao@ghostaccountlmao4 ай бұрын
    • Eventually yes but something more sophisticated than just programming will come up. Maybe solo projects will be the future where a single person is making an entire project on his own using creative thinking and automating and boosting that process by using ai. People will work for themselves rather than corporates. Entertainment industry will be the most profitable and sought after career choice. This will take atleast 20 years or 30 when ai + robots+ iot will be at its peak and almost all jobs are fully automated.

      @AnuragShrivastav-7058@AnuragShrivastav-70584 ай бұрын
KZhead