Some Tech I Wish I Learned Sooner

  Рет қаралды 17,265

Ben Davis

Ben Davis

Күн бұрын

Пікірлер: 71
@rod6722
@rod6722 4 ай бұрын
Docker for me. Thought it was some extremely convoluted thing, turns out it's not that hard to understand and actually super convenient!
@bmdavis419
@bmdavis419 4 ай бұрын
FUCK I should have included that, 100% same
@RemotHuman
@RemotHuman 4 ай бұрын
I just learned the basics of dockerfiles recently. I thought it could have been made simpler by just having it be a superset of bash files instead of its own language: start from a consistent base image like the real docker does, and just tell it what commands to run to set up the system to your liking. There is probably something wrong with this idea idk, maybe it wouldn't work irl for some reason like maybe important security updates to the lts linux version your using need to be run but will end up breaking your commands in practice, or maybe I am missing an important usecase for docker that this wouldn't support, I basically just used it for upload a web service to railway
@throwaway-lo4zw
@throwaway-lo4zw 4 ай бұрын
for sure
@claytonkruse
@claytonkruse 4 ай бұрын
Definitely what I would have said.
@stanleyvandenbos
@stanleyvandenbos 4 ай бұрын
I still want to learn Docker. It feels so big for some reason. I've tried a couple of tutorials before but it doesn't make sense yet. Any tips on where to start or any great tutorials I should watch or read?
@PraiseYeezus
@PraiseYeezus 4 ай бұрын
Honestly Postgres is the gift that keeps on giving. Foreign data wrappers, JSON column storage, time-series data, semantic search, even queues can all be built on it. Honestly the most useful and versatile piece of tech that exists in software development outside of maybe Docker.
@nosajboodhan64
@nosajboodhan64 4 ай бұрын
Jack Harlow can really code 😂
@tom.watkins
@tom.watkins 4 ай бұрын
Love the honest takes here, the best engineers often go on this type of journey. I still remember when the idea of running JS on the server was a mind boggling concept for me as a mostly front end developer when node was blowing up 😅
@thompson_ian
@thompson_ian 4 ай бұрын
We have a very similar story when it comes to web development. I’m 23 and began learning web stuff around 2020ish. Before that, I mainly did iOS related projects in Swift. I thought web development was a beast I’d never be able to learn, after attempting to learn how to use react a few times. Then I found Svelte and everything changed lol. Programming has always been a hobby and I have no formal training nor is it my profession (I am a school teacher), but you’re definitely right; it is crazy to go back to past projects and see how much you really didn’t know.
@gauthamvijayan
@gauthamvijayan 4 ай бұрын
The OAuth 2.0 said here is a hidden gem which is missed by many. As our application grows, we need to access other 3rd party data sources. Understand how access tokens an refresh tokens work and then integrating them into our custom backend is a must.
@bmdavis419
@bmdavis419 4 ай бұрын
Learned this one the hard way lol
@HermesSoilder
@HermesSoilder 4 ай бұрын
“Drizzle tricked me into using SQL” hahahaha
@GrimaldGorb
@GrimaldGorb 4 ай бұрын
22 is still young bro, not a fossil, I'm 31 and still learning it.
@gauthamvijayan
@gauthamvijayan 4 ай бұрын
Resonates with me. Now I am jumping more into Postgres and backend in general.
@abdirahmann
@abdirahmann 4 ай бұрын
here's sth else you'll wish you learnt earlier when you progress in your career, its Networking!!, learn vlans, subnets, route tables, routing protocols, BGP and just general advanced networking, it makes you a wizard when you combine it with development, the amount of dev youtubers that don't know a good bit of networking is mindblowing!!!, this helps a ton when your infra is self hosted but also in big entreprises in the cloud etc.😊
@devfren
@devfren 4 ай бұрын
Nice vid man, for me 100% it’s just networking in general. I thought things like load balancers were this crazy thing and that’s why serverless was invented but anyone could learn it in a week
@devfren
@devfren 4 ай бұрын
Also agree with you that gcp sucks ass
@UliTroyo
@UliTroyo 4 ай бұрын
The more tools to use, the harder it becomes to gauge how much context you've gained. I'm here laughing at my old self having tough times with JS tooling, future me is over there laughing at how much trouble I'm having with WebGL.
@ultrasive
@ultrasive 4 ай бұрын
Unfortunately I think my old projects where i leaned on Prisma; a ton have grown so far and have other people working on them that I can no longer switch it out for Drizzle, i can only do that for new projects. Even in golang i used to use GORM and still do because i thought it was the only way to protect myself from sql injection.
@webpkric
@webpkric 4 ай бұрын
Can you go into when and how people get surprise AWS bills? Is there a service where that will not happen. I am ok my website not working but don't want a surprise bill. Is there a guide for that.
@bmdavis419
@bmdavis419 4 ай бұрын
Anything that can "scale infinitely" (lambdas, queues, etc.) are vulnerable to this. Often what happens is either 1, a DDOS attack or 2, they accidently recursively call some function and it runs infinitely building up obsene amounts of compute. The most important thing is to put rate limiters on your stuff (I recommend upstash) and test it to ensure nothing can self reference
@RemotHuman
@RemotHuman 4 ай бұрын
What you could do is try to pull the plug once the spending starts to get too high. I think there is a service in AWS where you can set up a webhook or something once your billing goes over a certain limit, then you have to code it yourself to shut down your other services (I guess this could be a benefit because you could hook it up to only shut down if your profit or other metric is not spiking too, aka its a ddos or bug and not your product going viral). in some other cloud solutions such as vercel (which is a basically just a nicer but more expensive wrapper around aws) there is a setting to pause your entire project after a certain spend threshold
@tcurdt
@tcurdt 4 ай бұрын
You can specify a monthly budget and get notified when you surpass that. This will probably not safe you from quick spikes though. Not really great. I am sad that they get away with this.
@Restai
@Restai 4 ай бұрын
I would try neon as a Postgres provider (Yes, I know there are some hell stories). But 300 USD sounds really expensive
@semyaza555
@semyaza555 4 ай бұрын
Wait...what hell stories?? I was about to use it for a project but maybe I won't Lol.
@Restai
@Restai 4 ай бұрын
@@semyaza555 Last year Neon wasn't as stable as it is now, I am shipping in it in production. I would recommend it to start a project.
@lcarv20
@lcarv20 4 ай бұрын
You should try cloud run from gcp. Pretty simple
@skyhappy
@skyhappy 4 ай бұрын
You should check out convex, it's supabase but better. It has built in type safety (you define ts types when making the db schema), and for serverless functions, blows supabase out of the water.
@okkashaally2115
@okkashaally2115 4 ай бұрын
Don't compare anything with Supabase
@semyaza555
@semyaza555 4 ай бұрын
@@okkashaally2115 Why?
@user-qq7yc1qp8z
@user-qq7yc1qp8z 3 ай бұрын
Not SQL - trash.
@sylarfx
@sylarfx 4 ай бұрын
dude GCP is fine in comparison with AWS, AWS is fine in comparison with Azure, you should give GCP a second try
@skyhappy
@skyhappy 4 ай бұрын
Should've used gcp over aws. gcp dx is so much better, for a saas idea I switched to it last week from aws. One example: gcp logs feels like a modern car, very powerful and intuitive UI/UX while aws cloudwatch logs is decades behind. My research on reddit about people who used both clouds is that gcp has better dx. Don't get me started on gcp cloud run vs. aws app runner. The latter is notorious for crappy logging.
@aldierygonzalez7249
@aldierygonzalez7249 4 ай бұрын
Isnt their SQL really expensive?
@user-qq7yc1qp8z
@user-qq7yc1qp8z 3 ай бұрын
@@aldierygonzalez7249you don’t really need to use only one provider, you could host backend on google cloud run, use supabase for auth and postgress and host front end on netlify.
@skyhappy
@skyhappy 3 ай бұрын
@@aldierygonzalez7249 idk but generally they are cheaper than aws
@massy-3961
@massy-3961 4 ай бұрын
Hey Ben if your ever trying to get back into the Golang world, there’s a cool new technology called Connect which is an RPC like tRPC but with basically any language to any language. I know you love that shared types and dev experience.
@alibarznji2000
@alibarznji2000 4 ай бұрын
SQL is the OG. I have to add though, when it comes to cloud providers, AWS while being the best option, your apps shouldn't rely on it too much. I've gotten to the point that I think apart from S3 and EC2 instances and maybe a little bit of lambda, you shouldn't do too much on there, your costs are gonna stack up. your mindset should be not to be too dependent on anything ,whether it being a library or a giant cloud provider, if your programming language is not scaling up better (cough Javascript cough cough), you should move on from it, especially on the backend, and I'm not saying this lightly as I've been a Nodejs dev for almost 6 years.
@snipernosnipey8162
@snipernosnipey8162 4 ай бұрын
I hate mongo, but during Covid everyone was pushing it. Wish I started wtih psotgres.
@sfulibarri
@sfulibarri 4 ай бұрын
Be careful with lambda, it feels really nice up front but a whole world of pain awaits.
@smrdotgg
@smrdotgg 4 ай бұрын
Did you use AWS raw or with SST?
@smrdotgg
@smrdotgg 4 ай бұрын
or any other tool?
@fakebizPrez
@fakebizPrez 4 ай бұрын
Stay away from all cloud providers. Take the time to setup a VPS correctly and when you have a product that scales your profit will be significantly more.
@duckblast
@duckblast 4 ай бұрын
It depends on the application (some architecture like event driven stuff could benefit from serverless) but most of the time yeah.
@victorbuikem
@victorbuikem 4 ай бұрын
It's a monstrosity but a beautiful monstrosity 🔥🔥
@adolfomartin5456
@adolfomartin5456 4 ай бұрын
No Docker, AH AH AH AH AH
@tobychidi
@tobychidi 4 ай бұрын
Have you tried Lucia for Auth?
@DitherWither
@DitherWither 4 ай бұрын
I don't get why anyone would use lucia, writing your own cookie or bearer token auth is simpler, and oauth is simple enough that you don't even need a library for it
@tobychidi
@tobychidi 4 ай бұрын
@@DitherWither I think the better question would be why not?
@tobychidi
@tobychidi 4 ай бұрын
@@DitherWither Will also definitely be looking deeper into OAuth implementation soon.
@DitherWither
@DitherWither 4 ай бұрын
@@tobychidi It might just be me, but it took more time to use lucia than to simply use my backend framework's built in signed cookies with postgres's uuid Use uuids as the primary key for your users table, and then set a signed cookie with the uuid as the content. Do you need to make a database query every request? yes, but its good enough for smaller projects
@cotyhamilton
@cotyhamilton 4 ай бұрын
Lucia is great
@boccobadz
@boccobadz 4 ай бұрын
ORM is just OOP guys getting their way lol. There's a reason why nobody uses OOP in the real world. Why would you willingly give up on the power of Postgres (eg loops, triggers, etc)? ORM is good for "react bros" whose most complicated queries is 'select * from xyz where clientId=abc'. Anything even remotely complicated falls apart. Remember, SQL code written once will work forever (if schema stays the same); you can't be sure it will be the same with any ORM-based code.
@KingMinePlay
@KingMinePlay 4 ай бұрын
OOP is used in the real world everywhere I don't know what you are talking about. You can always write raw SQL queries even if you are using an ORM. I personally prefer plain SQL and you are absolutely right that it is the only option when doing really complex stuff.
@tinahalder8416
@tinahalder8416 4 ай бұрын
OOP is used everywhere lmao. ORM is also extensively used. This KZbin uses Both ORM and OOPS
@art-ificialblon-die7013
@art-ificialblon-die7013 4 ай бұрын
Another one of these OOP-haters. Please, try writing enterprise-scale software using just procedural/functional programming. There's a reason why OOP exists and it's not for elitist programmers to ejaculate themselves over their own pet project.
@M0J0-RL236
@M0J0-RL236 4 ай бұрын
have you ever worked in the real world? Wdym OOP isn't used lmfao
@tcurdt
@tcurdt 4 ай бұрын
AWS works reliable - but the DX is still awful.
@skyhappy
@skyhappy 4 ай бұрын
GCP gang rise up! As someone who migrated from aws app runner to gcp cloud run last week. GCP is 100 years ahead.
@PTBKoo
@PTBKoo 4 ай бұрын
Sst fixes that
@tcurdt
@tcurdt 4 ай бұрын
@@PTBKoo Partially.Last time I checked one would still need to use the horrific AWS console from time to time. And IAM permission management is still all but KISS. Feels like they rather sell certifications than to improve.
@user-td5gy2fh3p
@user-td5gy2fh3p 4 ай бұрын
Maybe you should focus on... you know... computer science instead of chasing web dev, then you won't have these skill issues. Any good computer science program would have taught you fundamentals, including SQL, to not have the issues you're referring to. Because of this, I'm sure that you do not have a computer science degree. Furthermore, I'm also sure you aren't even interested in the topic to look up these things on your own. That is why web devs like yourself get so much hate.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 212 М.
The Tech I’m Learning and Why
27:25
Ben Davis
Рет қаралды 12 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 119 М.
Stop Throwing Away Your Work
10:03
Ben Davis
Рет қаралды 3,5 М.
malicious javascript injected into 100,000 websites
12:28
Low Level
Рет қаралды 220 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 408 М.
The Secret Language Scaling WhatsApp and Discord
28:32
Theo - t3․gg
Рет қаралды 190 М.
The Most Over-engineered Stack I Actually Shipped
8:40
Ben Davis
Рет қаралды 625
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,6 МЛН
Svelte 5 Ruined Svelte (and that's why I love it)
12:37
Ben Davis
Рет қаралды 14 М.
Unexpected Lessons I've Learned After 15 Years Of Coding
43:05
Theo - t3․gg
Рет қаралды 105 М.
*Next-door 10x Software Engineer* [FULL]
4:50
Programmers are also human
Рет қаралды 912 М.