Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
not_IO ( not_IO@lemmy.blahaj.zone )  to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago

centerDiv.js

lemmy.blahaj.zone

message-square
28
link
fedilink
350

centerDiv.js

lemmy.blahaj.zone

not_IO ( not_IO@lemmy.blahaj.zone )  to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago
message-square
28
link
fedilink

got it from here https://front-end.social/@elly/114668957184577014

alert-triangle
You must log in or # to comment.
  • squirrel ( squirrel@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    48
    ·
    1 year ago
    div {
      display: grid;
      place-content: center;
    }
    

    We’ve come a long way…

  • ChaoticNeutralCzech ( ChaoticNeutralCzech@feddit.org ) 
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 year ago

    Obligatory https://justfuckingusehtml.com/

  • magic_lobster_party ( magic_lobster_party@fedia.io ) 
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    JavaScript frameworks are invented because pure HTML and CSS suck for dynamically loaded pages, and vanilla JavaScript suck in general.

    • MonkderVierte ( MonkderVierte@lemmy.zip ) 
      link
      fedilink
      arrow-up
      21
      ·
      1 year ago

      Dynamically loading pages suck too.

  • milicent_bystandr ( milicent_bystandr@lemm.ee ) 
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    Oh yes please. But not JavaScript. I use Rust frameworks to avoid all three!

    • pewpew ( pewpew@feddit.it ) 
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      Eww Rust! I hate memory safe languages, I love torturing myself with C

      • svn ( sevon@lemmy.kde.social ) 
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        You can wrap everything in unsafe and keep living dangerously!

        • Ephera ( Ephera@lemmy.ml ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          unsafe doesn’t deactivate memory safety. It only allows you to then create raw pointers and whatnot, which you could use to circumvent memory safety, but all the normal language constructs still do enforce it.

          • svn ( sevon@lemmy.kde.social ) 
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            I know, but it does let you sled off a cliff if you choose to.

        • yetAnotherUser ( yetAnotherUser@lemmy.ca ) 
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Tsoding has created a few rules for writing Rust to make Rust “fun” to program in, and gave them the name of Crust.

          Here is the rule set (it may change over time):

          1. Every function is unsafe.
          2. No references, only pointers.
          3. No cargo, build with rustc directly.
          4. No std, but libc is allowed.
          5. Only Edition 2021.
          6. All user structs and enums #[derive(Clone, Copy)].
          7. Everything is pub by default.

          If you ever want to try this out for some ungodly reason, there’s a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it’s raylib), and with a Makefile showing how to compile your projects (remember we aren’t using cargo).

          • svn ( sevon@lemmy.kde.social ) 
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Oh boy, now I can stop missing C++

      • QuazarOmega ( QuazarOmega@lemy.lol ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Yew* Rust

        FTFY

        • bricklove ( bricklove@midwest.social ) 
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 year ago

          Nah, they had it right

          • QuazarOmega ( QuazarOmega@lemy.lol ) 
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            Knew someone would say that, lol, gold project, sad that it’s gone unmaintained and my man started working on home-manager at home
            …wait

    • peoplebeproblems ( peoplebeproblems@midwest.social ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Yeah I gotta get my workplace to get on board with it. Rust->Webasm is simply amazing

    • Colloidal ( Colloidal@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Flutter like a butterfly, sting like a Dart.

    • TheMightyCat ( TheMightyCat@lemm.ee ) 
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Men really out here inventing entire JavaScript engines so they don’t have to learn Rust/C/C++/whatever

      • milicent_bystandr ( milicent_bystandr@lemm.ee ) 
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Meanwhile women are hand-coding in assembly, like God intended.

  • yetAnotherUser ( yetAnotherUser@lemmy.ca ) 
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    OP, I don’t think you’ve correctly linked to the post (when I visit the linked webpage, the browser tries to download an ActivityPub activity instead of showing the post in the Mastodon web UI). Please replace the link with this one.

    • not_IO ( not_IO@lemmy.blahaj.zone ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      got it, my bad

  • brianary ( brianary@startrek.website ) 
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Wait until you see what they do to avoid learning SQL or Regex or JSON Pointer or XPath.

    • I Cast Fist ( ICastFist@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Ugh, i’ve had to write some Selenium tests where I had to come up with weird ass Xpaths because not a single fucking element had an ID and over half would spawn something in a different div

  • Flamekebab ( Flamekebab@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    I was so pleased when a brief for a thing at work was “no frameworks”.

  • katy ✨ ( cupcakezealot@piefed.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    real ones learn dhtml

    • 1hitsong ( 1hitsong@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Do you remember the dhtmlguru? The site had the bronze man holding some kind of ball over his head and would magically move when you hovered over the navigation menu.

  • belated_frog_pants ( belated_frog_pants@beehaw.org ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    React sucks and is way way way overdone and ill die on that hill

  • mesa ( mesamunefire@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Damn that’s some spicy takes lol.

  • Destide ( sirico@feddit.uk ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Wait till you see what they do for a bit of concurrency

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 515 users / day
  • 1.62K users / week
  • 3.02K users / month
  • 7.23K users / 6 months
  • 463 local subscribers
  • 33.5K subscribers
  • 1.53K Posts
  • 25.1K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code