7 Top FAANG Coding Tips, Best Practices (ex-Google, ex-Meta)
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
Follow ye the wisdom of Gogle & Magogle
mustache stroke emoji
hey im unemployed,. what type of job could get me in door? Im in boston
Because Google is known for its fancy, cool client UIs. ChatGPT is the ultimate declarative coding language 😅
this needs credit card. a red light to avoid
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
Coding is 100% dead, but that doesn't mean that some people don't do it for fun
@@chadkirk925 that statment is 100% false
My recurring paychecks beg to differ@@chadkirk925
Its dead for some , not all@@chadkirk925
@@teemuperala3472 we need them to believe that coding is dead. Stop trying to wake them up.
Bro, I already dropped coding to become a lumberjack after your last video. I need woodcutting tips now.
Teak trees west of Castle Wars until level 99
we need more videos like this tech lead, not “coding is dead”
no, we dont. Truth is painful but its better than beautiful lies
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
Says everyone who has work experience / job security.@@seya1994
@@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 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
I thought coding is dead 🤔
He's the tech lead (the tech lead) (millionaire btw)
It’s probably click bait 🤔
@@aaronmoroney2066 do not question the tech lead
Coding is temporary. The future belongs to AI.
@@nevadawolf3040 Then humans will be dead.
Great !! finally back with coding videos continue it's great to see u talk on this topics
We expect more of these videos from you please. Great wisdom.
Great vid. "Don't take initiative if it's a stupid initiative". The ever-quotable tech lead.
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 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 solo coding 4 life 🖖
It's good to be king
Coding is just bs many people have many approaches but there is no right approach
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.
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.
These kinds of contents are the reason why I subscribed to this channel in the first place. I really appreciate you TechLead.
This type of content*
Wow, these are some excellent coding tips. Thanks for posting!
Thanks Tech Lead, I got the one of the skillshares!
This was great "old school" teach lead content.... nice to mix this in sometimes.
Just the right timing to remind me a week before I start my new job.
I enjoy your more philosophical videos but this is why I subscribed. Lets GO!
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.
Thanks. This video was refreshing
great delivery btw. any soft skills tips from a techlead and an employee perspective?
"Let's build some happy little tree data structures" - Bob Ross if he was a tech lead
"Let's invert a list here, invert a list there. It is your world, your imagination"
Thanks, this type of useful content is really back.
Total agree on the 'never refactor.' It is a total junior move to want to refactor everything.
previous video coding software engineering is dead, next video best coding tips
This guy is giving me whiplash
Yesterday: Coding is dead. Why I am not a coder. Today: 7 Top FAANG coding tips
Regarding documentation, it's down to the tech lead to ensure documentation is kept up-to-date (current tech lead/eng manager)
I would just delete the documentation. If your code is too hard to use, it just won't be used.
This seems stupid. Documentation is done by the whole team.
@@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) :)
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.
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.
Those are some SOLID principles, sir.
Any thoughts on game development as an intermediate path? It falls under Digital Media, but still requires (some) coding.
We need this man back in our code community; he explained things well enough. 😀😃
Useful advice, with just a pinch of sarcasm? Perfection!
You only offended junior engineers once in this video. 😆
Hope to meet this legend one day! 😃🙌
Totally agree, you are the legend.
Do a video on what the best keyboard is to become a FAANG tech lead
Regex on coding patterns? Ingenious idea.
Thank you very much for this! :)
You're the best comedian out there 🤣
Great tips! Thanks
Love it!❤️
:O Coding lessons from Tech Lead himself!
great video! More of this. Less of the fearmongering
I watched this with my morning coffee, and now my day is perfect.
Thanks Techlead excellent tips
First actually useful video for programmers from TL
What about Design Patterns in Coding? I have a master degree (Geoinformatics) but those were not taught. I think they are relevant.
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.
yes i still want to code, contraire to your suggestions in the previous videos. So... thank you!
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.
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
Wow... a really long code could be self explainatory? Come on man.. give me an effin // and stop listening to this fake programmer
Where can i learn more about the Regex testing framework for ensuring good coding patterns? (Like not mixing business and presentation logic?)
Look up regex linters. SwiftLint looks close to what we used it FAANG, not sure if there's other frameworks.
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 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..
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.
sir, where is the keyboard from the previous video?
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😮.
Which country in east Africa???
@@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.
The tech lead doing tech lead stuff... Nice
yes, coding is dead, I miss the vlogs
We do want More vlogs not this boring blah I think hew doing it purposely
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...
Care to bring CI/CD into this topic?
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.
I know you think coding is dead but you should make more software engineering videos.
Tell that to the Algorithm. I just do what it tells me to do.
@@TechLead We support you, TechLead.
@@TechLead but you drive the algorithm, not the other way around
Please dont its boring your other stuff is more entertaining and more logical than code @TechLead
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.
6.06am - Just finished watching an inspirational youtube video.
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.
Do you know anything about ML Lead or ML Engineer?
hey im unemployed, what type of job could get me in door and experience what the field is like? ? Im in boston
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.
How's million token going? Should I wait til it hits $1 dollar before buying?
Tech interview pro link in the end is dead
thnx 4 keeping it pozt
You looked happier in those photos
"deleting 300k lines in a single commit" - bro xd
TechLead finally coming back to his senses? 🤓
One day you say , dont code, now you give tips about coding. Lol😂😂😂
"any fool, any junior enginneer" lolol
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.
pls make another top 10 keyboards video
EX-META ✨oh, great that you are clear now😂
man he is good no lie
Great one, thanks bye
good developers also UNDERSTANDS their application.
What a serious video
Great Video
Impressive
Does anyone know which programming languages he knows?
Good tips.
sorry, where were you Tech-Lead at?
make their move and history repeats itself as it usually does
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.
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.
Also, if there is a test, it can both audit and document expectations.
7 coding tips for Magnificent 7 🏆
Im sure EPAM Systems had the same practices in their EngX program
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.
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.
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
So in conclusion, just delete everything.
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 :)
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.
@__TechLeeadd_ any time : I am a computer nerd.
Mr Tech lead ex googler ex facebook ex tesla.....how can we make some money online ?
What happened??? TechLead talks about Tech again?
After I watch this video, YT auto play ▶️ recommended me to watch his "coding is dead" video 😂
Can Ai replace programmers?
Programmers can replace AI
Very far from ChatGPT making entire, useful programs by itself without error
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.