Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • 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
Caint logo. It's just text.
  1. Home
  2. Programmer Humor
  3. Stringly typed
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Stringly typed

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
46 Posts 34 Posters 1 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.
  • F Frezik

    I have. I quickly learned not to.

    Tk is overlooked, though. It’s not pretty, and its approach is archaic, but it’s one of the few GUI toolkits that Just Works on every platform I tried it on with minimum fuss.

    lime!L This user is from outside of this forum
    lime!L This user is from outside of this forum
    lime!
    wrote last edited by
    #34

    having used swing and modern js, i still prefer tk.

    1 Reply Last reply
    1
    • F feyd@programming.dev

      I fucking love tcl

      M This user is from outside of this forum
      M This user is from outside of this forum
      MigratingApe
      wrote last edited by migratingape@lemmy.dbzer0.com
      #35

      The almighty
      package require Expect.
      The muse of automation.

      1 Reply Last reply
      0
      • lime!L This user is from outside of this forum
        lime!L This user is from outside of this forum
        lime!
        wrote last edited by lime@feddit.nu
        #36

        tcl is pretty fun actually, it’s like bash on steroids.

        for a preview of the insanity: anything surrounded by "" is a string, with the variable expansion you’d expect. anything surrounded by {} is also a string, but with no expansion. the equivalent in bash is the backtick string. but you don’t need to know that to write tcl. if you approach {} as “code blocks” like in other languages, it just works. reason being that tcl evals everything, constantly, attaching little tags to strings that tells the language how things are used, like “this string is an integer” or “this string is code and here is the result from last time it ran”. it’s madness and, weirdly, robust as hell. Xilinx writes all their tooling in tcl. SQLite started life as a tcl module, and it’s still the only api that is not provided by a plugin.

        1 Reply Last reply
        5
        • kiri (temp)K kiri (temp)

          Everithing is bytes.

          J This user is from outside of this forum
          J This user is from outside of this forum
          jerkface@lemmy.world
          wrote last edited by
          #37

          … Little Endian or Big Endian?

          1 Reply Last reply
          2
          • C cruel@programming.dev

            I took great pains last week to convert a big python project to make it typed. (shoutout to MonkeyType)

            It’s so much nicer to develop now…

            J This user is from outside of this forum
            J This user is from outside of this forum
            jjjalljs@ttrpg.network
            wrote last edited by
            #38

            Oh that’s a neat library. Type annotations in python are really nice, and you don’t have to add tooling like when you switch from JS to TS.

            1 Reply Last reply
            2
            • B brashboy@lemmy.world

              If it’s not getting used in a mathematical function, I’m making it a string

              G This user is from outside of this forum
              G This user is from outside of this forum
              garbagio@lemmy.zip
              wrote last edited by
              #39

              stoi and atoi got ur back, homie

              1 Reply Last reply
              1
              • Kruh MasterK Kruh Master

                M This user is from outside of this forum
                M This user is from outside of this forum
                monkdervierte@lemmy.zip
                wrote last edited by
                #40

                Cat type?

                1 Reply Last reply
                1
                • A asperan

                  It is also the bash approach, isn’t it?!

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  monkdervierte@lemmy.zip
                  wrote last edited by
                  #41

                  You can calculate n and n?

                  1 Reply Last reply
                  0
                  • V valmond@lemmy.world

                    Just cast it. /s

                    E This user is from outside of this forum
                    E This user is from outside of this forum
                    Ephera
                    wrote last edited by
                    #42

                    I believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…

                    V 1 Reply Last reply
                    0
                    • P panda_abyss@lemmy.ca

                      Sure, i think its just sql has not had any breaking version changes in like… ever?

                      V This user is from outside of this forum
                      V This user is from outside of this forum
                      valmond@lemmy.world
                      wrote last edited by
                      #43

                      Yeah, that’s really one in a kind for such an important feature.

                      1 Reply Last reply
                      0
                      • E Ephera

                        I believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…

                        V This user is from outside of this forum
                        V This user is from outside of this forum
                        valmond@lemmy.world
                        wrote last edited by
                        #44

                        In C that would make sense yes.

                        1 Reply Last reply
                        0
                        • P panda_abyss@lemmy.ca

                          Ah, the SQLite approach!

                          J This user is from outside of this forum
                          J This user is from outside of this forum
                          unalivejoy
                          wrote last edited by
                          #45

                          Me: Puts a boolean into sqlite

                          Me: Asks for that boolean

                          SQLite: “Here’s that int you asked for”

                          1 Reply Last reply
                          2
                          • U uranibaba@lemmy.world

                            Which language can nil an int?

                            E This user is from outside of this forum
                            E This user is from outside of this forum
                            Ephera
                            wrote last edited by
                            #46

                            Groovy will automatically convert integers into objects, as it sees fit. And one such case is when you assign null to an integer.

                            There’s some more languages, which try to treat primitive types like objects, to make them more consistently usable. As I understand, nullability is a big part of the reason why it can’t be solved with syntactic sugar, so presumably this would be possible in all those languages.
                            If I’m not mistaken, Ruby is another one of those languages.

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


                            • Login

                            • Don't have an account? Register

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