Lemmy for LUS
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 1 year ago

How NOT TO CODE: Intel's Linux Thunderbolt Utils Code is the WORST I have EVER SEEN!

www.youtube.com

external-link
message-square
7
fedilink
2
external-link

How NOT TO CODE: Intel's Linux Thunderbolt Utils Code is the WORST I have EVER SEEN!

www.youtube.com

☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 1 year ago
message-square
7
fedilink
#GNU #grep anti patterns that cause #bugs #t2sde #linux #Ads & more @Amazon: https://services.exactcode.de/amzn.cgi?index=electronics&keywords=laptop You can...
alert-triangle
You must log in or register to comment.
  • @5714@lemmy.dbzer0.com
    link
    fedilink
    1•1 year ago

    I don’t code, but is hardcoding sudo EVER a reasonable thing in C?

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      1•1 year ago

      it is not

    • @const_void@lemmy.ml
      link
      fedilink
      1•1 year ago

      It’s not reasonable in any language

  • @roadrunner_ex@lemmy.ca
    link
    fedilink
    English
    1•1 year ago

    Putting aside the “should/shouldn’t do” argument, I was also wondering if the code is even viable. I imagine that ‘ls’ and ‘sudo’ are probably pretty ubiquitous, but I bet there exist some Linux installs out there with a different shell than ‘bash’, and some might not have ‘grep’ too. That would lead to some pretty cryptic bugs for the end user, eh?

    • @const_void@lemmy.ml
      link
      fedilink
      1•1 year ago

      I bet there exist some Linux installs out there with a different shell than ‘bash’,

      100%. Alpine is one such distro.

    • ☆ Yσɠƚԋσʂ ☆OP
      link
      fedilink
      1•1 year ago

      That code is a crime against nature and humanity.

  • @litchralee@sh.itjust.works
    link
    fedilink
    English
    1•1 year ago

    FYI, the Intel code used to be here (https://github.com/intel/thunderbolt-utils) but apparently was archived a week ago. So instead, the video creator posted the fork here: https://github.com/rxrbln/thunderbolt-utils

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 9 users / day
  • 90 users / week
  • 364 users / month
  • 1.54K users / 6 months
  • 3 subscribers
  • 1.19K Posts
  • 13.7K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.18.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org