Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. I'm new to using Ruby and this tickled me pink

I'm new to using Ruby and this tickled me pink

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
68 Posts 47 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cm0002@lemmy.worldC [email protected]
    This post did not contain any content.
    F This user is from outside of this forum
    F This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #13

    This implies that integers in ROR are complex objects with properties that would be unhelpful in the majority of scenarios. Is that right?

    M 1 Reply Last reply
    8
    • F [email protected]

      This implies that integers in ROR are complex objects with properties that would be unhelpful in the majority of scenarios. Is that right?

      M This user is from outside of this forum
      M This user is from outside of this forum
      [email protected]
      wrote last edited by
      #14

      Integers are just integers in ruby, with no structure backing them. They behave like objects, but only in some respects. You can call methods on them, but you can't extend individual numbers with properties for example (which would require them to have structure).

      1 Reply Last reply
      2
      • M [email protected]

        People still use ruby?

        L This user is from outside of this forum
        L This user is from outside of this forum
        [email protected]
        wrote last edited by
        #15

        The handful of us have moved onto Crystal Lang. It's a statically type checked and compiled dialect of Ruby. Crystal is fun to write code, but the compiler is slower (compared to go-lang/rust)... because... well it's a ruby dialect (with DSL's)... and the 3rd party libraries are limited.

        M 1 Reply Last reply
        3
        • cm0002@lemmy.worldC [email protected]
          This post did not contain any content.
          V This user is from outside of this forum
          V This user is from outside of this forum
          [email protected]
          wrote last edited by [email protected]
          #16

          I'm gonna be honest, I never was drawn to python. I've been a professional developer for about a decade, and I've written all of one (1) python programs that I can remember (for my own personal use, mind).

          addie@feddit.ukA 1 Reply Last reply
          4
          • L [email protected]

            The handful of us have moved onto Crystal Lang. It's a statically type checked and compiled dialect of Ruby. Crystal is fun to write code, but the compiler is slower (compared to go-lang/rust)... because... well it's a ruby dialect (with DSL's)... and the 3rd party libraries are limited.

            M This user is from outside of this forum
            M This user is from outside of this forum
            [email protected]
            wrote last edited by
            #17

            This type checking, is it at run time?

            D 1 Reply Last reply
            1
            • S [email protected]

              I just started a new php gig

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote last edited by
              #18

              I fucking love PHP. I know I probably sound crazy to most developers, but PHP 8+ is freaking dope.

              S 1 Reply Last reply
              12
              • M [email protected]

                I fucking love PHP. I know I probably sound crazy to most developers, but PHP 8+ is freaking dope.

                S This user is from outside of this forum
                S This user is from outside of this forum
                [email protected]
                wrote last edited by
                #19

                Yeah I was also pleasantly surprised having only heard about it before. Lots of good stuff

                C 1 Reply Last reply
                2
                • M [email protected]

                  is rainbow Brite in porn?

                  supervisor194@lemmy.worldS This user is from outside of this forum
                  supervisor194@lemmy.worldS This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #20

                  ahahaha oh come on, the comment was clearly a joke. To be honest, I'd be far more interested in gothly serious sam on the left.

                  A 1 Reply Last reply
                  0
                  • cm0002@lemmy.worldC [email protected]
                    This post did not contain any content.
                    diplomjodler3@lemmy.worldD This user is from outside of this forum
                    diplomjodler3@lemmy.worldD This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #21

                    The Python won't give an accurate date here because it doesn't take into account leap years.

                    R W eager_eagle@lemmy.worldE blackmist@feddit.ukB 4 Replies Last reply
                    26
                    • M [email protected]

                      People still use ruby?

                      C This user is from outside of this forum
                      C This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #22

                      I had a coworker choose RoR for a major project despite the fact that he didn't know it, nobody on his team knew it, nobody at our company knew it, and nobody in the entire state knew it. It ended as one would expect, after three years and millions of dollars spent, with the only revenue it generated being $50K from the original client that had to be refunded to avoid a lawsuit.

                      1 Reply Last reply
                      2
                      • cm0002@lemmy.worldC [email protected]
                        This post did not contain any content.
                        nostradavid@programming.devN This user is from outside of this forum
                        nostradavid@programming.devN This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #23

                        How are the dataframe libraries on Ruby?

                        1 Reply Last reply
                        1
                        • M [email protected]

                          This type checking, is it at run time?

                          D This user is from outside of this forum
                          D This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #24

                          Its AOT compiled.

                          1 Reply Last reply
                          0
                          • M [email protected]

                            People still use ruby?

                            D This user is from outside of this forum
                            D This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #25

                            Besides Crystal, a lot of people went to Elixir and Phoenix as well

                            1 Reply Last reply
                            3
                            • V [email protected]

                              I'm gonna be honest, I never was drawn to python. I've been a professional developer for about a decade, and I've written all of one (1) python programs that I can remember (for my own personal use, mind).

                              addie@feddit.ukA This user is from outside of this forum
                              addie@feddit.ukA This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #26

                              What you can achieve in a couple of pages of Python can be pretty spectacular. It's also mostly very easy-to-read, with the possible exception of class inheritance, which is confusing mess.

                              If you need to write more than a couple of pages, then its lack of types becomes a hindrance to me - doing refactors when functions can take basically any arguments is quite painful, for instance. Not requiring any particular structure is great, up until you start to struggle with lack of structure.

                              Ideal programming language for when you're wanting to do something that would be a bit too unwieldy for a shell script. It also makes network requests and json parsing very straightforward, so it's great for interacting with REST APIs and writing simple microservices. Fast to write and runs quite quickly, so a good choice for Advent Of Code-like tasks. Would probably choose a different language for larger projects or when working in a team, though.

                              V 1 Reply Last reply
                              10
                              • cm0002@lemmy.worldC [email protected]
                                This post did not contain any content.
                                R This user is from outside of this forum
                                R This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #27

                                365.25, surely

                                B B blackmist@feddit.ukB 3 Replies Last reply
                                5
                                • cm0002@lemmy.worldC [email protected]
                                  This post did not contain any content.
                                  bleistift2@sopuli.xyzB This user is from outside of this forum
                                  bleistift2@sopuli.xyzB This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #28

                                  Fuck that. I once used a constraint solver in python where you could += a constraint to a problem. This is completely un-discoverable. In any sane language you can use IntelliSense to find that you can problem.… add(constraint) and be done with it without ever touching a manual. Overloaded operators are cool, but a menace.

                                  And while I’m ranting: Angular’s new addRouting(), withThingA(), withThingB() is complete horseshit, too. The old way of doing addRouter({ and letting the IDE tell you what you could to with the router was so much clearer!

                                  M _ 2 Replies Last reply
                                  8
                                  • diplomjodler3@lemmy.worldD [email protected]

                                    The Python won't give an accurate date here because it doesn't take into account leap years.

                                    R This user is from outside of this forum
                                    R This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #29

                                    timedelta marks time in days, seconds, and microseconds. It doesn't take leap years into account because the concept of years is irrelevant to timedelta. If you need to account for leap years, you need a different API.

                                    R N 2 Replies Last reply
                                    12
                                    • addie@feddit.ukA [email protected]

                                      What you can achieve in a couple of pages of Python can be pretty spectacular. It's also mostly very easy-to-read, with the possible exception of class inheritance, which is confusing mess.

                                      If you need to write more than a couple of pages, then its lack of types becomes a hindrance to me - doing refactors when functions can take basically any arguments is quite painful, for instance. Not requiring any particular structure is great, up until you start to struggle with lack of structure.

                                      Ideal programming language for when you're wanting to do something that would be a bit too unwieldy for a shell script. It also makes network requests and json parsing very straightforward, so it's great for interacting with REST APIs and writing simple microservices. Fast to write and runs quite quickly, so a good choice for Advent Of Code-like tasks. Would probably choose a different language for larger projects or when working in a team, though.

                                      V This user is from outside of this forum
                                      V This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #30

                                      I like Fish Shell better than python, not gonna lie. Easier to read and write. Especially if you already live in the terminal.

                                      A 1 Reply Last reply
                                      0
                                      • S [email protected]

                                        Yeah I was also pleasantly surprised having only heard about it before. Lots of good stuff

                                        C This user is from outside of this forum
                                        C This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #31

                                        I haven't used or read about PHP after college, and I am quite interesred in what are the good stuffs that you like now.

                                        It is cool to see how languages evolve.

                                        S 1 Reply Last reply
                                        1
                                        • C [email protected]

                                          I haven't used or read about PHP after college, and I am quite interesred in what are the good stuffs that you like now.

                                          It is cool to see how languages evolve.

                                          S This user is from outside of this forum
                                          S This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #32

                                          I haven’t used php before and I am not that far into it yet, so I don’t really know what’s gotten better but I like how it handles arrays and it has loads of little functions that make life easier.

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups