Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. The Lounge
  3. I just got one of the best compliments on my code

I just got one of the best compliments on my code

Scheduled Pinned Locked Moved The Lounge
24 Posts 9 Posters 5 Views 1 Watching
  • 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.
  • H honey the codewitch

    This is the kind of code that will still run in thermostats displays in 100 years after your death.

    I woke up to that message on Reddit's ESP32 forum and it made my morning. :-D

    Real programmers use butterflies

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #3

    That should make your day for the next hundred years...

    "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    1 Reply Last reply
    0
    • H honey the codewitch

      This is the kind of code that will still run in thermostats displays in 100 years after your death.

      I woke up to that message on Reddit's ESP32 forum and it made my morning. :-D

      Real programmers use butterflies

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #4

      But the thermostats wont last so long and display chips and IDE may change from time to time. Are you now on e-paper as my company?

      Press F1 for help or google it. Greetings from Germany

      1 Reply Last reply
      0
      • H honey the codewitch

        This is the kind of code that will still run in thermostats displays in 100 years after your death.

        I woke up to that message on Reddit's ESP32 forum and it made my morning. :-D

        Real programmers use butterflies

        J Offline
        J Offline
        Jon McKee
        wrote on last edited by
        #5

        Not familiar with the codebase, so I can only imagine what prompted the commit titled "grr" :laugh: Looks like it had something to do with the RA8875.

        H 1 Reply Last reply
        0
        • J Jon McKee

          Not familiar with the codebase, so I can only imagine what prompted the commit titled "grr" :laugh: Looks like it had something to do with the RA8875.

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #6

          It was a merge conflict, and VS code's interface to handle them is infuriating. It kept staging my changes and I couldn't seem to get it to accept my overrides to the merges. I didn't expect the "grr" commit to actually commit. Keep in mind I had already tried to commit unsuccessfully several times by then. :laugh:

          Real programmers use butterflies

          J 1 Reply Last reply
          0
          • H honey the codewitch

            It was a merge conflict, and VS code's interface to handle them is infuriating. It kept staging my changes and I couldn't seem to get it to accept my overrides to the merges. I didn't expect the "grr" commit to actually commit. Keep in mind I had already tried to commit unsuccessfully several times by then. :laugh:

            Real programmers use butterflies

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #7

            That explains it :laugh: I still think one of my best time investments was learning git on the command line. It seems like every git tool has issues like this.

            H J 2 Replies Last reply
            0
            • J Jon McKee

              That explains it :laugh: I still think one of my best time investments was learning git on the command line. It seems like every git tool has issues like this.

              H Offline
              H Offline
              honey the codewitch
              wrote on last edited by
              #8

              I've learned it but it never seems to stick. I always wind up having to google what I need to do.

              Real programmers use butterflies

              J 1 Reply Last reply
              0
              • H honey the codewitch

                I've learned it but it never seems to stick. I always wind up having to google what I need to do.

                Real programmers use butterflies

                J Offline
                J Offline
                Jon McKee
                wrote on last edited by
                #9

                Fair enough. I was the "git master" for a year on a project so it was my job to resolve any repo issues and a lot of the common stuff ended up sticking for me. I still use git-scm for reference though :thumbsup:

                1 Reply Last reply
                0
                • J Jon McKee

                  That explains it :laugh: I still think one of my best time investments was learning git on the command line. It seems like every git tool has issues like this.

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #10

                  To me it seems to be every GIT tool and GIT itself. Obligatory XKCD[^].

                  Wrong is evil and must be defeated. - Jeff Ello

                  J H 2 Replies Last reply
                  0
                  • J Jorgen Andersson

                    To me it seems to be every GIT tool and GIT itself. Obligatory XKCD[^].

                    Wrong is evil and must be defeated. - Jeff Ello

                    J Offline
                    J Offline
                    Jon McKee
                    wrote on last edited by
                    #11

                    I've been that friend in the hover text :laugh: That is way too accurate. It really is pretty simple though! Honest!

                    J 1 Reply Last reply
                    0
                    • J Jon McKee

                      I've been that friend in the hover text :laugh: That is way too accurate. It really is pretty simple though! Honest!

                      J Offline
                      J Offline
                      Jorgen Andersson
                      wrote on last edited by
                      #12

                      Many years ago I made an in depth comparison between GIT and Mercurial. I chose mercurial and have never looked back, it just works. I keep hearing people at places complain about GIT messing up, while the main complaint about Mercurial is that it isn't GIT. :doh: Anyway, sooner or later I will have to give in, GIT is winning on pure inertia.

                      Wrong is evil and must be defeated. - Jeff Ello

                      H J R 3 Replies Last reply
                      0
                      • H honey the codewitch

                        This is the kind of code that will still run in thermostats displays in 100 years after your death.

                        I woke up to that message on Reddit's ESP32 forum and it made my morning. :-D

                        Real programmers use butterflies

                        Sander RosselS Offline
                        Sander RosselS Offline
                        Sander Rossel
                        wrote on last edited by
                        #13

                        Because no one dares touch it...? :laugh:

                        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                        H 1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          Because no one dares touch it...? :laugh:

                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #14

                          To be honest I use so much metaprogramming and template specializations throughout you're not entirely off base. It's necessary to provide the kinds of features and flexibility GFX provides in a manner fast enough for these little MCUs to handle what it is throwing at it.

                          Real programmers use butterflies

                          1 Reply Last reply
                          0
                          • J Jorgen Andersson

                            Many years ago I made an in depth comparison between GIT and Mercurial. I chose mercurial and have never looked back, it just works. I keep hearing people at places complain about GIT messing up, while the main complaint about Mercurial is that it isn't GIT. :doh: Anyway, sooner or later I will have to give in, GIT is winning on pure inertia.

                            Wrong is evil and must be defeated. - Jeff Ello

                            H Offline
                            H Offline
                            honey the codewitch
                            wrote on last edited by
                            #15

                            I'm sticking with Git because of it's "market" saturation. Basically, everyone uses it. That means that 1. It's not going anywhere 2. Most major IDEs and code editors support it, if badly at times 3. If something *does* go wrong, there's a lot of pressure on Microsoft to fix it due to the size of the userbase

                            Real programmers use butterflies

                            J 1 Reply Last reply
                            0
                            • J Jorgen Andersson

                              To me it seems to be every GIT tool and GIT itself. Obligatory XKCD[^].

                              Wrong is evil and must be defeated. - Jeff Ello

                              H Offline
                              H Offline
                              honey the codewitch
                              wrote on last edited by
                              #16

                              Hahahaha it's funny 'cuz it's true!

                              Real programmers use butterflies

                              1 Reply Last reply
                              0
                              • H honey the codewitch

                                I'm sticking with Git because of it's "market" saturation. Basically, everyone uses it. That means that 1. It's not going anywhere 2. Most major IDEs and code editors support it, if badly at times 3. If something *does* go wrong, there's a lot of pressure on Microsoft to fix it due to the size of the userbase

                                Real programmers use butterflies

                                J Offline
                                J Offline
                                Jorgen Andersson
                                wrote on last edited by
                                #17

                                That's it. Except for point 3 which only applies to Github and still won't explain Office.

                                Wrong is evil and must be defeated. - Jeff Ello

                                H 1 Reply Last reply
                                0
                                • J Jorgen Andersson

                                  That's it. Except for point 3 which only applies to Github and still won't explain Office.

                                  Wrong is evil and must be defeated. - Jeff Ello

                                  H Offline
                                  H Offline
                                  honey the codewitch
                                  wrote on last edited by
                                  #18

                                  :laugh: That's fair.

                                  Real programmers use butterflies

                                  1 Reply Last reply
                                  0
                                  • J Jorgen Andersson

                                    Many years ago I made an in depth comparison between GIT and Mercurial. I chose mercurial and have never looked back, it just works. I keep hearing people at places complain about GIT messing up, while the main complaint about Mercurial is that it isn't GIT. :doh: Anyway, sooner or later I will have to give in, GIT is winning on pure inertia.

                                    Wrong is evil and must be defeated. - Jeff Ello

                                    J Offline
                                    J Offline
                                    Jon McKee
                                    wrote on last edited by
                                    #19

                                    I've done some digging around because I've never heard of Mercurial before. They seem pretty similar to be honest. Many of the common commands are the same and many of the flags for those commands are the same. The big difference I can see at the moment is the branching strategy. Since named branches in Mercurial are permanent, it seems like you could really bloat a repo over time with nonsense unless you're super careful about primarily using bookmarks. But then you lose the multi-head ability of branches which seems like the big feature that makes Mercurial "easy to use" since it let's you ignore what in git would be a FETCH_HEAD merge on pull. I can see where this would also cause issues down the road though - you have to remember to merge eventually. Overall I'm always of the mindset that if it meets your needs then go for it, seems like a solid DVCS, but personally I think I like the direction git is going. The newer sparse-index and sparse-checkout features are really cool even though at the moment I'm not working on any monolithic repos large enough to feel the benefit.

                                    J 1 Reply Last reply
                                    0
                                    • Mike HankeyM Mike Hankey

                                      An atta-boy negates a lot of oh-shits. Congrats

                                      The less you need, the more you have. Even a blind squirrel gets a nut...occasionally. JaxCoder.com

                                      G Offline
                                      G Offline
                                      Gary R Wheeler
                                      wrote on last edited by
                                      #20

                                      It seriously does. I get an attaboy every other year or so at work. It's unreal how much that does for my state of mind. (if you think that's pathetic, you get the point)

                                      Software Zen: delete this;

                                      1 Reply Last reply
                                      0
                                      • J Jon McKee

                                        I've done some digging around because I've never heard of Mercurial before. They seem pretty similar to be honest. Many of the common commands are the same and many of the flags for those commands are the same. The big difference I can see at the moment is the branching strategy. Since named branches in Mercurial are permanent, it seems like you could really bloat a repo over time with nonsense unless you're super careful about primarily using bookmarks. But then you lose the multi-head ability of branches which seems like the big feature that makes Mercurial "easy to use" since it let's you ignore what in git would be a FETCH_HEAD merge on pull. I can see where this would also cause issues down the road though - you have to remember to merge eventually. Overall I'm always of the mindset that if it meets your needs then go for it, seems like a solid DVCS, but personally I think I like the direction git is going. The newer sparse-index and sparse-checkout features are really cool even though at the moment I'm not working on any monolithic repos large enough to feel the benefit.

                                        J Offline
                                        J Offline
                                        Jorgen Andersson
                                        wrote on last edited by
                                        #21

                                        Jon McKee wrote:

                                        you have to remember to merge eventually.

                                        Default setting is that you can't push without merging first. It's obviously a different mindset, but if you haven't gotten stuck in the "GIT thinking" it's actually easier. Remember, branches aren't the same things. But as you say, the capabilities are very similar. There's a really good primer on the differences here[^]

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        J 1 Reply Last reply
                                        0
                                        • J Jorgen Andersson

                                          Many years ago I made an in depth comparison between GIT and Mercurial. I chose mercurial and have never looked back, it just works. I keep hearing people at places complain about GIT messing up, while the main complaint about Mercurial is that it isn't GIT. :doh: Anyway, sooner or later I will have to give in, GIT is winning on pure inertia.

                                          Wrong is evil and must be defeated. - Jeff Ello

                                          R Offline
                                          R Offline
                                          Rich Shealer
                                          wrote on last edited by
                                          #22

                                          I started with SVN. Then when I went looking for a distributed system I moved to Mercurial for the same reasons you listed. I only switched to GIT because Visual Studio supported it and I succumbed to peer pressure. I've been on too many technical islands in my career.

                                          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
                                          • Popular
                                          • World
                                          • Users
                                          • Groups