Simple file uploads in Golang

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 14

  • @prajwalparashkar9793
    @prajwalparashkar9793 Місяць тому

    Wow everything is so simple and intuitive in go. Nice

  • @nabeelyousafpasha
    @nabeelyousafpasha Місяць тому

    Respect from Pakistan 🇵🇰

  • @nklvjvc
    @nklvjvc Місяць тому +1

    I started learning Go recently and have to say that you are my favorite channel. All videos so far cover important parts that most web apps need in some way. Also, appreciate you doing "extra" like showing how to upload it inside the directory and not just upload the file as you could easily stop the tutorial there but those extras help a lot. Coming from Laravel, it's a bit hard to understand writing all of these just for file upload but hopefully will get there at some point! By the way, how do you like Zed Editor? I find UI very pleasing but I am not able to try it as it's not available on Windows yet.

    • @cdruc
      @cdruc  Місяць тому +1

      I try to show all the hurdles I went through when I first did whatever I'm showing in videos 😂
      Coming from Laravel it will be really PAINFUL to learn go - in Laravel everything is so so easy to do! Write a couple lines and BOOM you have a full feature! While in go...ugh, you have to write a lot just to do simple things, but somehow, I love it! (and hate it at the same time)
      Zed is clean and super super fast! It still has a couple annoyances - for example, I often want o select and duplicate code. VScode and other IDEs duplicate *exactly* you've selected while zed duplicates all the lines - it's a small thing but really annoying! It makes it up with speed though 😂

    • @nklvjvc
      @nklvjvc Місяць тому

      @@cdruc haha laravel spoiled us, but I can relate with loving this approach, it just have that good feeling making something and having to understand it and not just use some facades/helpers that do a lot of work "behind the scene".
      Go showed me how little I actually know about all of these stuff, but I like how language is "making" me learn it all along the way. I am even refusing to try gin/echo for now 🤣

    • @cdruc
      @cdruc  Місяць тому +1

      ​@@nklvjvc "I like how language is "making" me learn it all along the way"
      this is exactly why I'm doing all my side projects in golang 😂

  • @selvamp5775
    @selvamp5775 Місяць тому

    Nice 🙏

  •  Місяць тому

    that is a great example, but is there like a Storage object that can take care of that? like Storage::disc('aws')->put('file'). It seems very verbose and repetitive. At least at first glance.

    • @cdruc
      @cdruc  Місяць тому

      one could reduce the number of lines by consolidating the creating and writing the file into a single function.
      but in general, yes, golang is much MUCH more verbose than laravel - and that can be both a good and a bad thing depending on how you look at it.
      right now i very much like being more verbose

  • @vladyslav.ishchuk
    @vladyslav.ishchuk Місяць тому

    Is it Fleet IDE?

    • @cdruc
      @cdruc  Місяць тому

      nope, it's zed.dev/

  • @coder236
    @coder236 Місяць тому

    why did go decide to use nil instead of well established null? this is weird.

    • @cdruc
      @cdruc  Місяць тому +2

      seeing how every golang dev writes code I assume it's because they really like short names 😂
      you'll get used to it pretty fast though

    • @coder236
      @coder236 Місяць тому

      @@cdruc I haven't started with go yet but looking to switch from php 😅 the con currency stuff has got me interested. Thanks for creating such good tutorials though.