Norbi's Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml 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
link
fedilink
0
external-link

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

www.youtube.com

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
7
link
fedilink
alert-triangle
You must log in or register to comment.
  • litchralee@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    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

  • roadrunner_ex@lemmy.ca
    link
    fedilink
    English
    arrow-up
    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
      arrow-up
      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σɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      That code is a crime against nature and humanity.

  • 5714@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

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

    • const_void@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It’s not reasonable in any language

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      it is not

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 332 users / day
  • 929 users / week
  • 3.28K users / month
  • 10.2K users / 6 months
  • 1 local subscriber
  • 36.5K subscribers
  • 1.22K Posts
  • 15.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org