Ruby - First Impression [Programming Languages Episode 7]

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 26

  • @LTibor2012
    @LTibor2012 9 หลายเดือนก่อน +9

    Ruby is my favorite programming languages for fast prototyping, smaller programs or I have to make a simpler thing fast. As on the website is: "Ruby is developers's best friend". I prefer its syntax over Python. Python has more library, has solution for everything and for particular purposes I would choose Python (web scraping, machine learning, AI, excel spreadsheets, pdf, etc.), but for general purpose I like Ruby better. Crystal is a compiled Ruby, but my problem with it is that the compiler is very slow today. For me the best four are: Ruby, Python, D, Nim. For the best eight come Go, Rust, FreePascal and Lua and for the best ten C# and Julia.

    • @GaryChike
      @GaryChike 9 หลายเดือนก่อน

      We share very similar tastes in languages.

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน +1

      I'm surprised Ruby hasn't continued to grow relative to Python -- it just seems like a langauge that is better for scaling applications. Crystal is climbing higher as one of the next programming langauges to investigate :)@@GaryChike

    • @GaryChike
      @GaryChike 9 หลายเดือนก่อน +2

      @@MikeShah Ruby is a general programming language but got relegated to being a one-trick Pony with Rails in the collective consciousness. But interestingly enough Ruby has one of the highest salaries in the StackOverflow 2022-23 surveys. It seems the top 8+ positions are taken up by functional programming languages, except for Zig which garnered the top spot for 2023.

  • @kyrsanmora
    @kyrsanmora 2 หลายเดือนก่อน +1

    I think the best book is smth like "Metaprogramming in Ruby", about eigenclasses etc. Ordinary stuff does not show it and it looks basically like Python per se, but its actually incredible dynamic language, I remember to constantly write my own little sub-languages in ruby. I don't think Python allows it, and its actually strange how fast for what it does it can run comparably to Python and PHP, some crazy c vm wizardy)

  • @leffivanov3127
    @leffivanov3127 9 หลายเดือนก่อน +2

    Crystal is like Ruby, but statically typed and compiled to native code. As far as I remember it uses Boehm GC for memory management, and it had some troubles running compiler on windows, but still it is interesting.

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน

      Perhaps we'll have to take a closer look at Crystal :)

  • @JoeAbbate
    @JoeAbbate 4 หลายเดือนก่อน +1

    Hey Mike, It is somewhat funny when at 56:43 you start checking why the compilation failed, you went from X11, skipped two lines, and then looked at the Tcl library failure. The two lines you skipped were for tcl.h and tk.h, which the configuration script marked as "no" (meaning, I think, "not present"). And you *had* mentioned that you probably needed the "dev" libraries. I believe what you wanted was tcl8.5-dev and tk8.5-dev.
    I had tried Ruby back when Rails was popular, but I wasn't aware of the influence of Smalltalk (or of Eiffel for that matter). Although I haven't used Smalltalk, I believe the 'respond_to?' is part of the influence since in Smalltalk objects are supposed to "respond" to messages.

    • @MikeShah
      @MikeShah  4 หลายเดือนก่อน

      Cheers that's probably the fix! Since recording this video, I've also updated my Ubuntu, so I can probably get the proper packages, and get the proper glibc and other depdencies that Ubuntu 18.04 had phased out -- good catch :)

  • @cbbcbb6803
    @cbbcbb6803 2 หลายเดือนก่อน +1

    My understanding is that snap slows everything down. Maybe use Debian instead of Ubuntu. Debian does not have snap installed by default.

    • @MikeShah
      @MikeShah  2 หลายเดือนก่อน

      Interesting, I'll have to do some more research perhaps. I'm on Ubuntu 22.04 now which has been mostly fine

  • @EightNineOne
    @EightNineOne 3 หลายเดือนก่อน +1

    I really like the style and tone of this! I'd love to see you take a look at elixir.
    I'd also love to see an end of year list with a synopsis of what your favourite languages are from this series and impressions of each. That'd be so cool!

    • @MikeShah
      @MikeShah  3 หลายเดือนก่อน +1

      Cheers! Yes at some point I will do a wrap up 🙂

  • @kcvinu
    @kcvinu 9 หลายเดือนก่อน +1

    Hi mike, there are couple of languages like Odin, C3 & Jai are working with custom allocators. Could you please do a video about how to work with these custom allocators ? Some of them have temp allocator, arena allocator etc.

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน

      I may take a look at some of those langauges on this series -- haven't heard of C3, but Odin and Jai are on my radar :)

  • @Crygd-utre1
    @Crygd-utre1 4 หลายเดือนก่อน +1

    my beloved ruby, but i prefer crystal on top of it, it's quite similar but different.

    • @MikeShah
      @MikeShah  4 หลายเดือนก่อน

      I did not know of Crystal until this series, very nice language

  • @deveshshevde-m4g
    @deveshshevde-m4g 9 หลายเดือนก่อน

    Happy New Year sir ( IN Advance) , pls lauch dsa series for cpp sir ( much needed)

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน

      Cheers! Happy New Year!

  • @DEVESHSHEVDE-l4r
    @DEVESHSHEVDE-l4r 9 หลายเดือนก่อน

    hello sir , i am following you since your cpp series . Can we can tuts on OS concepts along with DSA?
    Thanks alot for quality content sir!

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน +1

      Cheers -- thank you for the continued support! At some point, I will do some data structure and algorithms, and even systems programming -- not sure on timeline, but they are in the planning process.

    • @DEVESHSHEVDE-l4r
      @DEVESHSHEVDE-l4r 9 หลายเดือนก่อน +1

      @@MikeShah thanks sir i will eagerly wait for this , have a great year ahead ! Happy new year ( from your undergrad student)

    • @mytech6779
      @mytech6779 9 หลายเดือนก่อน +1

      @@MikeShah Doing a bare metal "Hello world" would be interesting if that is less complex than formal operating system programming. (Assuming desktop hardware, as opposed to microcontrollers.)

    • @MikeShah
      @MikeShah  9 หลายเดือนก่อน

      @@mytech6779 At some point I will revamp my assembly videos as I have learned quite a bit more since then 🙂