Some Tech I Wish I Learned Sooner

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • AWS, SQL, Linux, and more, this is basically just skill issues: the video

КОМЕНТАРІ • 65

  • @rod6722
    @rod6722 11 днів тому +117

    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  11 днів тому +24

      FUCK I should have included that, 100% same

    • @RemotHuman
      @RemotHuman 11 днів тому +2

      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 10 днів тому +1

      for sure

    • @claytonkruse
      @claytonkruse 9 днів тому +1

      Definitely what I would have said.

    • @stanleyvandenbos
      @stanleyvandenbos 7 днів тому +2

      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 10 днів тому +31

    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 7 днів тому +10

    Jack Harlow can really code 😂

  • @gauthamvijayan
    @gauthamvijayan 8 днів тому +5

    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  7 днів тому +1

      Learned this one the hard way lol

  • @tom.watkins
    @tom.watkins 10 днів тому +5

    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 11 днів тому +8

    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.

  • @GrimaldGorb
    @GrimaldGorb 6 днів тому +6

    22 is still young bro, not a fossil, I'm 31 and still learning it.

  • @anthonygayflor
    @anthonygayflor 10 днів тому +12

    “Drizzle tricked me into using SQL” hahahaha

  • @abdirahmann
    @abdirahmann 6 днів тому +2

    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.😊

  • @gauthamvijayan
    @gauthamvijayan 8 днів тому +1

    Resonates with me. Now I am jumping more into Postgres and backend in general.

  • @UliTroyo
    @UliTroyo 10 днів тому +2

    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.

  • @JS_Jordan
    @JS_Jordan 11 днів тому +3

    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

    • @JS_Jordan
      @JS_Jordan 11 днів тому

      Also agree with you that gcp sucks ass

  • @Restai
    @Restai 10 днів тому +1

    I would try neon as a Postgres provider (Yes, I know there are some hell stories). But 300 USD sounds really expensive

  • @skyhappy
    @skyhappy 10 днів тому +1

    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.

  • @webpkric
    @webpkric 11 днів тому +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  11 днів тому +7

      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 11 днів тому +1

      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 11 днів тому +1

      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.

  • @skyhappy
    @skyhappy 10 днів тому +1

    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.

  • @sylarfx
    @sylarfx 8 днів тому +1

    dude GCP is fine in comparison with AWS, AWS is fine in comparison with Azure, you should give GCP a second try

  • @lcarv20
    @lcarv20 11 днів тому +2

    You should try cloud run from gcp. Pretty simple

  • @ultrasive
    @ultrasive 11 днів тому

    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.

  • @massy-3961
    @massy-3961 11 днів тому +2

    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.

  • @snipernosnipey8162
    @snipernosnipey8162 10 днів тому +1

    I hate mongo, but during Covid everyone was pushing it. Wish I started wtih psotgres.

  • @alibarznji2000
    @alibarznji2000 10 днів тому

    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.

  • @fakebizPrez
    @fakebizPrez 8 днів тому

    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 7 днів тому

      It depends on the application (some architecture like event driven stuff could benefit from serverless) but most of the time yeah.

  • @victorbuikem
    @victorbuikem 11 днів тому +3

    It's a monstrosity but a beautiful monstrosity 🔥🔥

  • @sfulibarri
    @sfulibarri 10 днів тому

    Be careful with lambda, it feels really nice up front but a whole world of pain awaits.

  • @smrdotgg
    @smrdotgg 10 днів тому

    Did you use AWS raw or with SST?

    • @smrdotgg
      @smrdotgg 10 днів тому

      or any other tool?

  • @adolfomartin5456
    @adolfomartin5456 9 днів тому +1

    No Docker, AH AH AH AH AH

  • @tcurdt
    @tcurdt 11 днів тому +3

    AWS works reliable - but the DX is still awful.

    • @skyhappy
      @skyhappy 10 днів тому

      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 10 днів тому

      Sst fixes that

    • @tcurdt
      @tcurdt 10 днів тому

      @@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.

  • @tobychidi
    @tobychidi 11 днів тому

    Have you tried Lucia for Auth?

    • @DitherWither
      @DitherWither 11 днів тому

      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 11 днів тому

      @@DitherWither I think the better question would be why not?

    • @tobychidi
      @tobychidi 11 днів тому

      @@DitherWither Will also definitely be looking deeper into OAuth implementation soon.

    • @DitherWither
      @DitherWither 11 днів тому

      @@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 11 днів тому

      Lucia is great

  • @boccobadz
    @boccobadz 11 днів тому +8

    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 11 днів тому +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 10 днів тому +1

      OOP is used everywhere lmao.
      ORM is also extensively used. This UA-cam uses Both ORM and OOPS

    • @art-ificialblon-die7013
      @art-ificialblon-die7013 10 днів тому +3

      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 7 днів тому

      have you ever worked in the real world? Wdym OOP isn't used lmfao

  • @user-td5gy2fh3p
    @user-td5gy2fh3p 10 днів тому +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.