Off Topic
    • Categories
    • Tags
    • Users
    • Groups
    • Amazon
    • OT Fundraiser
    • Register
    • Login

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.5k
    Loading More Posts
    • 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.
    • ?
      A Former User
      last edited by A Former User

      I’ve been playing around with Gtk 3 programming and the api is a hot mess. It’s also a moving target with so much refactoring and deprecation even in between minor version changes. But while searching for answers to problems, I kept coming back to docs and examples in the Vala programming language. I’d never heard of Vala before but apparently it is:

      an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.

      So C with Objects? Sound familiar? Yeah well I’ve been learning it since yesterday and whilst I’ve never liked C++, I kind of do like what I’ve seen of Vala so far. It uses reference counting garbage collection and has a lot of syntactic sugar in the language to make programming in it quite pleasant. I don’t think it’s a replacement for C++, well probably not, but as a C#-like language that doesn’t need a run time like mono or .NET it’s kind of attractive to me.

      It’s been around since 2006 and hasn’t caught the world by storm so it’s probably not going to now but it might be worth playing with if you have any new Gtk projects in your future.

      1 Reply Last reply Reply Quote 0
      • KilemallK
        Kilemall Careful, railroad agent
        last edited by

        So in looking this all up, looks like you do user interface work for apps?

        https://i.imgur.com/hX2CMMZ.jpg

        Never go full Lithu-
        Twain

        No editing is gonna save you now-
        Wingmann

        http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

        http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Kilemall
          last edited by

          @kilemall said in The OFFICIAL programming thread:

          So in looking this all up, looks like you do user interface work for apps?

          Me? Yeah, but for work I do javascript / web front end work. Well, full stack (front end and back end) as often as not.

          But this is just a throwaway personal project that I’m using Gtk for. And yeah, Gtk is a Ui widget library. Gommonly used in Gnome (Ubuntu’s standard desktop environment) but also in other stand alone applications.

          What I’m actually building is my own task bar and application menu. I forget what the windows terminology is but it’s the bar along the bottom with the start button, the currently running apps and the notifications and clock on theright. Plus the Start menu.

          1 Reply Last reply Reply Quote 0
          • KilemallK
            Kilemall Careful, railroad agent
            last edited by

            When it’s web, you gotta attach what the website/UI presentation is doing with the underlying app and ultimately database one way or another. You could probably MAKE the website or thick client BE the app, but boy I’m not keen on exposing everything on the user device.

            Someday when the product goes EOL and it doesn’t matter, I’ll have to explain how one product I was admin of worked. I think you would find it horrifying and elegant at the same time.

            https://i.imgur.com/hX2CMMZ.jpg

            Never go full Lithu-
            Twain

            No editing is gonna save you now-
            Wingmann

            http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

            http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

            1 Reply Last reply Reply Quote 0
            • TazzT
              Tazz
              last edited by

              Screenshot_20220226-210530-248.png

              GTFO

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                Not sure if this belongs here but anyway: Tigger was right! Analog > Digital.

                Future Computers Will Be Radically Different (Analog Computing)
                KilemallK 1 Reply Last reply Reply Quote 2
                • Gators1G
                  Gators1
                  last edited by

                  You are dead to me!

                  alt text

                  1 Reply Last reply Reply Quote 0
                  • WingmannW
                    Wingmann Gold
                    last edited by

                    You mean that he is <.5 or he would be >.5 and be 93 to 98% alive.

                    -= Ez dut galduko itxaropena =-

                    1 Reply Last reply Reply Quote 0
                    • KilemallK
                      Kilemall Careful, railroad agent @A Former User
                      last edited by Kilemall

                      @hog said in The OFFICIAL programming thread:

                      Not sure if this belongs here but anyway: Tigger was right! Analog > Digital.

                      Future Computers Will Be Radically Different (Analog Computing)

                      In Traveller Robots, the brains have mixes of linear, parallel and/or synaptic CPUs. This was pretty good stuff given that the ruleset was written in 1986 and parallel computers were mostly in the lab.

                      Traveller Book 8: Robots - Wikipedia

                      Traveller Book 8: Robots - Wikipedia

                      One of the big limits of the robots in the ruleset is that synaptic processors at ‘too high’ percentage where the software and error checking occurs makes robots go crazy. You want more of them, but you don’t want the robot driving your vehicle or operating on a human to lose their marbles.

                      Kind of shows it’s age though, just designing a vehicle mounted robot brain to drive a car and nothing else is something like Cr30000.

                      https://i.imgur.com/hX2CMMZ.jpg

                      Never go full Lithu-
                      Twain

                      No editing is gonna save you now-
                      Wingmann

                      http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                      http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                      1 Reply Last reply Reply Quote 0
                      • Gators1G
                        Gators1
                        last edited by

                        Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?

                        alt text

                        JamJ 1 Reply Last reply Reply Quote 0
                        • JamJ
                          Jam @Gators1
                          last edited by

                          @gators1 said in The OFFICIAL programming thread:

                          Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?

                          Fucking double “L” in Traveller.

                          I hate that almost as much as I hate the term “pregnant people” and “we’re at the mercy of the computer!”

                          No, tigger; just kidding. ;-)

                          "laissez les bons temps rouler!"

                          Gators1G 1 Reply Last reply Reply Quote 0
                          • Gators1G
                            Gators1 @Jam
                            last edited by

                            @jam said in The OFFICIAL programming thread:

                            @gators1 said in The OFFICIAL programming thread:

                            Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?

                            Fucking double “L” in Traveller.

                            I hate that almost as much as I hate the term “pregnant people” and “we’re at the mercy of the computer!”

                            No, tigger; just kidding. ;-)

                            Congratulations on your pregnancy. Do you know if it’s a boy or girl yet? I posted some gender reveal ideas in the random thread.

                            alt text

                            1 Reply Last reply Reply Quote 0
                            • Gators1G
                              Gators1
                              last edited by

                              The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021

                              alt text

                              1 Reply Last reply Reply Quote 0
                              • Gators1G
                                Gators1
                                last edited by

                                Why Hog is a fraud…

                                How to "Google It" like a Senior Software Engineer

                                alt text

                                ? 1 Reply Last reply Reply Quote 1
                                • ?
                                  A Former User @Gators1
                                  last edited by

                                  @gators1 said in The OFFICIAL programming thread:

                                  Why Hog is a fraud…

                                  How to "Google It" like a Senior Software Engineer

                                  I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.

                                  Yesterday my IDE was showing an error against an else if clause so I tried elif and elseif but it didn’t work. So I googled how to do an if statement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns out else if was correct and the error was from something else. )

                                  Gators1G TheMouseT 2 Replies Last reply Reply Quote 2
                                  • Lob12L
                                    Lob12
                                    last edited by Lob12

                                    I’m also fucked if work ever looks at my search history, but for other reasons. Ahem.

                                    [IMG] https://image.ibb.co/nhhF0Q/new_sig_lob12.jpg [/IMG]

                                    Gators1G 1 Reply Last reply Reply Quote 3
                                    • Gators1G
                                      Gators1 @A Former User
                                      last edited by

                                      @hog said in The OFFICIAL programming thread:

                                      @gators1 said in The OFFICIAL programming thread:

                                      Why Hog is a fraud…

                                      How to "Google It" like a Senior Software Engineer

                                      I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.

                                      Yesterday my IDE was showing an error against an else if clause so I tried elif and elseif but it didn’t work. So I googled how to do an if statement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns out else if was correct and the error was from something else. )

                                      I still google shit in SQL because I forget the syntax if I don’t use it for a few months. Been doing some Python shit and that’s burning my brain and bandwidth because I have been hitting every python site and video ever made. Have not coded to any great degree in years and feel like a retard trying to learn it now. Python has some really cool data tools though and if I use those I don’t have to work with an actual retard who manages our BI application.

                                      alt text

                                      rote7R 1 Reply Last reply Reply Quote 1
                                      • Gators1G
                                        Gators1 @Lob12
                                        last edited by

                                        @lob12 said in The OFFICIAL programming thread:

                                        I’m also fucked if work ever looks at my search history, but for other reasons. Ahem.

                                        PutinGstring.ca

                                        You’re welcome.

                                        alt text

                                        1 Reply Last reply Reply Quote 0
                                        • JamJ
                                          Jam
                                          last edited by Jam

                                          I’m not clicking on that link unless I’m on a VPN or using the Onion.

                                          And even then, I’m more concerned than curious., lol.

                                          "laissez les bons temps rouler!"

                                          1 Reply Last reply Reply Quote 0
                                          • rote7R
                                            rote7 @Gators1
                                            last edited by

                                            @gators1 said in The OFFICIAL programming thread:

                                            @hog said in The OFFICIAL programming thread:

                                            @gators1 said in The OFFICIAL programming thread:

                                            Why Hog is a fraud…

                                            How to "Google It" like a Senior Software Engineer

                                            I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.

                                            Yesterday my IDE was showing an error against an else if clause so I tried elif and elseif but it didn’t work. So I googled how to do an if statement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns out else if was correct and the error was from something else. )

                                            Been doing some Python shit and that’s burning my brain and bandwidth because I have been hitting every python site and video ever made. Have not coded to any great degree in years and feel like a retard trying to learn it now.

                                            That’s a complimentary gift that comes with every new programming language you learn. And it keeps on giving.

                                            Python has some really cool data tools though and if I use those I don’t have to work with an actual retard who manages our BI application.

                                            How about a “Go away or I will replace you with a very small python script.” sticker for your work laptop?

                                            fffg

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post