Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 1 year ago

Aaargh....my eyes......my eyes......

lemmy.world

message-square
58
fedilink
334

Aaargh....my eyes......my eyes......

lemmy.world

@[email protected] to Programmer [email protected] • 1 year ago
message-square
58
fedilink
alert-triangle
You must log in or register to comment.
  • @[email protected]
    link
    fedilink
    English
    23•1 year ago

    Hey, this must be that self-documenting code I keep hearing about

  • @[email protected]
    link
    fedilink
    17•1 year ago

    Obviously, we can’t allow code like that - PascalCase is heresy… camelCase that shit.

    • @[email protected]
      link
      fedilink
      English
      3•1 year ago

      snake_case gang represent

  • sqw
    link
    fedilink
    English
    0•1 year ago

    rage bait

  • @[email protected]
    link
    fedilink
    English
    13•1 year ago

    My ASDV professor has two moods: He either names variables like this post, Or he names variables pp (for pointer pointer)

    • @[email protected]
      link
      fedilink
      2•1 year ago

      Fuck for some reason pp is giving me flashbacks to having to write using Hungarian notation variable names.

  • @[email protected]
    link
    fedilink
    English
    71•1 year ago

    Self-documenting code, high contrast… Carry on.

  • @[email protected]
    link
    fedilink
    5•1 year ago

    Leaning to program on 8-bit machines with 8k of RAM means that even today I abbreviate names.

    Plus it was accepted wisdom that shorter variable names were faster for the BASIC interpreter.

    • voxel
      link
      fedilink
      2•
      edit-2
      1 year ago

      variables don’t make it to the compiled binary tho, except debug symbols of course if have those enabled (but deploying them to an embeeded system is a terrible idea, they can remain on the host system)

      oh you mean on not for

      • @[email protected]
        link
        fedilink
        1•1 year ago

        Yeah for interpreted BASIC.

        But even after moving to writing assembly language on a separate PC devkit there was still the habit of using short names.

        I think that some assemblers had limits on name size.

  • @[email protected]
    link
    fedilink
    10•1 year ago

    This is getting absurd, variable names have become variable sentences.

    • magic_lobster_party
      link
      fedilink
      8•1 year ago

      Variable essays is the future!

  • @[email protected]
    link
    fedilink
    16•1 year ago

    Yea this looks productive.

    Imagine how useless the LSP suggestions are.

  • @[email protected]
    link
    fedilink
    6•1 year ago

    I approve. All code should be like this

  • @[email protected]
    link
    fedilink
    4•1 year ago

    Why not leave comments

    • @[email protected]
      link
      fedilink
      6•1 year ago

      Why leave comments?

      • @[email protected]
        link
        fedilink
        1•1 year ago

        deleted by creator

  • xep
    link
    fedilink
    18•
    edit-2
    1 year ago

    This has likely been done intentionally for humour’s sake, but take a look at some of the names in Apple’s AppKit framework, like https://developer.apple.com/documentation/appkit/nspreviewrepresentingactivityitem

    • qaz
      link
      fedilink
      2•1 year ago

      That page is giving me a 403

    • BombOmOm
      link
      fedilink
      English
      2•
      edit-2
      1 year ago

      I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:

          NSString * test = [[NSString alloc] initWithString:@"This is a test string."];
          NSString * test2 = [test stringByAppendingString:@" This value is appended."];
      

      And god forbid you want to concatenate two things to a string:

          NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];
      
  • @[email protected]
    link
    fedilink
    3•1 year ago

    Ugh, this makes me want to “slash slash slash.”

  • LinearArray
    link
    fedilink
    English
    3•1 year ago

    im scared

  • @[email protected]
    link
    fedilink
    7•1 year ago

    https://xkcd.com/1960/

    • @[email protected]
      link
      fedilink
      1•
      edit-2
      1 year ago

      It’s an unwritten rule that there‘s always a fitting xkcd post

  • @[email protected]
    link
    fedilink
    8•
    edit-2
    1 year ago

    deleted by creator

Programmer [email protected]

[email protected]
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: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 28 users / day
  • 419 users / week
  • 1.63K users / month
  • 4.3K users / 6 months
  • 3 subscribers
  • 1.54K Posts
  • 54.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org