"What's your go-to tool as a programmer these days?"

My brain, same as it always has been!

"What's your go-to tool as a programmer these days?"  My brain, same as it always has been! ๐Ÿ˜„

all 31 comments

sorted by: hot top controversial new old
[โ€“] 102 points 1 year ago (6 children)

I'm a big fan of my keyboard

  • source
  • hideshow 6 child comments
  • [โ€“] 57 points 1 year ago (5 children)

    The Universal Serial Bus is pretty good shit. Plug n Play is a great feature.

  • source
  • parent
  • hideshow 5 child comments
  • [โ€“] 30 points 1 year ago (2 children)

    microsoft: THERE STILL IS SOMETHING THAT JUST WORKS! WE NEED TO ADD AI SO YOUR KEYSTROKES WILL BE WRONGLY INTERPRETED!

  • source
  • parent
  • hideshow 2 child comments
  • [โ€“] 7 points 1 year ago (1 child)

    Although not really useful, I simply love RGB lighting in the keyboard.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 5 points 1 year ago

    Same, i don't like south-facing RGB though; at the right angle they peak out behind keycaps and just drill me right in the damn eye (photosensitivity sucks...). That and the lack of dedicated indicator LEDs for caps/num lock are the only things i don't like about my current keychron keyboard.

  • source
  • parent
  • [โ€“] 32 points 1 year ago (5 children)

    I'm going to count vim, or any other IDE as a tool. You don't just will your thoughts into the computer (at least most people don't, that I know).

  • source
  • hideshow 5 child comments
  • [+] 38 points 1 year ago (5 children)
  • [โ€“] 10 points 1 year ago

    Global variables

  • source
  • [โ€“] 10 points 1 year ago (6 children)
  • [โ€“] 6 points 1 year ago (4 children)

    Unless you're programming in assembly

  • source
  • parent
  • hideshow 4 child comments
  • [โ€“] 2 points 1 year ago (1 child)

    I mean, in C too.

    I used it when I wrote some throwaway C++ code working with SQLite. Since it had no RAII (and I had no intention of writing my own wrapper), I had to manually cleanup multiple resources somehow. If at least one resource failed to initialize, I had to deinitialize the ones that didn't fail. It was either goto or a bunch of flags to track what is initialized. goto looked more elegant.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 1 point 1 year ago*

    I misremembered the whole thing. It was still related to cleaning up after a failure, but there was only one resource I had to deal with. That's how it looks like:

        sqlite3 *db;
        int r;
    
        r = sqlite3_open("./data.db", &db);
        if (r) {
            std::cerr << "Can't open the database: " << sqlite3_errmsg(db) << std::endl;
            return r;
        }
    
        r = sqlite3_exec(db, "CREATE TABLE IF NOT EXISTS foo(...);", nullptr, nullptr, nullptr);
        if (r != SQLITE_OK) {
            std::cerr << "Can't create a table called foo: " << sqlite3_errmsg(db) << std::endl;
            goto out;
        }
    
        // a few more sqlite3_exec calls;
        // some sqlite3_prepare_v2 calls combined with sqlite3_bind_* and sqlite3_step calls
        // for repeated queries.
    
    out:
        sqlite3_close(db);
        return r;
    
  • source
  • parent
  • [โ€“] 5 points 1 year ago

    I am the tool ๐Ÿ˜Ž wait

  • source
  • I was gonna say gcc, but you do you, bro...

  • source
  • Leatherman.

  • source
  • Brand new sentence

  • source