Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO to Programmer Humor@programming.devEnglish ·
edit-2
8 个月前

centerDiv.js

external-link
message-square
42
link
fedilink
559
external-link

centerDiv.js

not_IO to Programmer Humor@programming.devEnglish ·
edit-2
8 个月前
message-square
42
link
fedilink

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

alert-triangle
You must log in or # to comment.
  • squirrel@discuss.tchncs.de
    link
    fedilink
    arrow-up
    66
    ·
    8 个月前
    div {
      display: grid;
      place-content: center;
    }
    

    We’ve come a long way…

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      8 个月前

      The collective man-hours this would have saved people, if we had it back in 1999, would be staggering.

    • criss_cross@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      8 个月前

      You misspelled nesting tables

      • washbasin@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 个月前

        My man right here. Y’all ever want to code some HTML emails? Nested tables as far as the eye can see!

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    37
    ·
    8 个月前

    Obligatory https://justfuckingusehtml.com/

    • AnarchistArtificer@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 个月前

      That was wonderful, thank you for sharing. When it’s done well, I really enjoy this style of prose.

    • chunes@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 个月前

      I had to resize my browser window in order to read that how dare you not simply read my mind and select my preferred column width instead

      99% of users, probably

      • explodicle@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 个月前

        You don’t just zoom?

        • chunes@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          7 个月前

          Not on desktop

          • explodicle@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 个月前

            You can’t just hold control and scroll the mouse wheel?

            • chunes@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              7 个月前

              I don’t like reading big text. I’d rather have small text in a smaller area

  • magic_lobster_party@fedia.io
    link
    fedilink
    arrow-up
    23
    ·
    8 个月前

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

    • bestboyfriendintheworld@sh.itjust.works
      link
      fedilink
      arrow-up
      30
      ·
      8 个月前

      Most pages don’t need dynamic loading.

      • Omega@discuss.online
        link
        fedilink
        arrow-up
        6
        ·
        8 个月前

        True

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 个月前

        My menus need to be dynamically reloaded!

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      26
      ·
      8 个月前

      Dynamically loading pages suck too.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      8 个月前

      JavaScript frameworks actually exist for two reasons, one, vanilla JavaScript lacks ease of use (does not suck and I don’t care who disagrees) and two, people love over engineering the fuck out of technology. See: technology since the iPhone came out. We have advanced systems around the world spinning up processes to make up for the fact that touch screens are hard to type accurately on.

      • magic_lobster_party@fedia.io
        link
        fedilink
        arrow-up
        10
        ·
        8 个月前

        jQuery got popular because Internet Explorer, Firefox, Chrome and other browsers weren’t exactly cross compatible. Writing vanilla JS was risky business in that sense.

        It also supported AJAX across all major browsers, which meant the website could make API requests without reloading the entire page. It was super revolutionary to press a button and it only changed a part of the page.

        Then Angular and React took it a step forward and that’s where we are now.

        • TrickDacy@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          8 个月前

          I am very aware of the progression. But you’re vastly glossing over how much complexity (and feature set) was added after jQuery. If JavaScript sucks, how would you change it? Shitty browsers implementing it poorly in the past (and safari doing so today) doesn’t make it suck.

      • dejected_warp_core@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        8 个月前

        people love over engineering the fuck out of technology

        Exhibit A: 2.85 Million packages, as of mid-2023

        • TrickDacy@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          8 个月前

          Unless those are mostly overly complicated, it doesn’t speak to what I’m saying. But I guess it means people like doing their own engineering better than relying on others

      • Nat (she/they)
        link
        fedilink
        arrow-up
        1
        ·
        8 个月前

        Immediate mode rendering and components seem to be why people use them. And you know what? The web should natively support those but doesn’t (well it kinda bad components, but ehhh). Otherwise I agree, the frameworks are overcomplicated.

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 个月前

      It’s still Javascript.

  • GreenKnight23@lemmy.worldBanned
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    6 个月前

    Removed by mod

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      8 个月前

      I agree with your final take, but why would you want to take frontend tickets if you can also do backend work?

      • TeddE@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        8 个月前

        Raw spite. If you’re upset enough to build a whole LinkedIn profile, you’ve already mentally moved on to the next company.

        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          8 个月前

          With me too, my employer has to start worrying once I put my current position into my linkedin profile.

      • GreenKnight23@lemmy.worldBanned
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        6 个月前

        Removed by mod

  • yetAnotherUser@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    8 个月前

    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_IOOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 个月前

      got it, my bad

  • brianary@startrek.website
    link
    fedilink
    arrow-up
    9
    ·
    8 个月前

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

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      8 个月前

      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

    • piccolo@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      7 个月前

      Wait until you see when they refuse to learn anything but SQL.

      • brianary@startrek.website
        link
        fedilink
        arrow-up
        1
        ·
        7 个月前

        Not something I’ve encountered.

    • Alexstarfire@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 个月前

      TBF to regex, it’s completely unreadable. I love the magic that can be done with it, but by God, it needs syntax highlighting. Something may do this, but I’ve never seen anything that does.

      • brianary@startrek.website
        link
        fedilink
        arrow-up
        1
        ·
        7 个月前

        You get used to it sooner than you’d think. There are libraries to convert between regex and English. Maybe it deserves a Unicode code block like APL?

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 个月前

    real ones learn dhtml

    • 1hitsong@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      8 个月前

      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.

  • Flamekebab@piefed.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 个月前

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

  • belated_frog_pants@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    8 个月前

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

  • mesa@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 个月前

    Damn that’s some spicy takes lol.

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 个月前

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

  • oni ᓚᘏᗢ@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 个月前

    I use plain HTML along tachyons.io, it’s pretty neat.

    • Biyoo
      link
      fedilink
      arrow-up
      3
      ·
      8 个月前

      On mobile the header has overlapping content- not the worst but shows very little attention to detail for a CSS toolkit :(

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

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

  • 1.1K users / day
  • 4.26K users / week
  • 7.74K users / month
  • 16.6K users / 6 months
  • 532 local subscribers
  • 28.7K subscribers
  • 1.98K Posts
  • 66.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.13
  • BE: 0.19.13-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org