kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbynot_IO@lemmy.blahaj.zone
1 year

centerDiv.js

lemmy.blahaj.zone English

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

60
    You must log in or register to comment.

    • squirrel@discuss.tchncs.de
      1 year
      div {
        display: grid;
        place-content: center;
      }
      

      We’ve come a long way…

        • dejected_warp_core@lemmy.world
          1 year

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

          • criss_cross@lemmy.world
            1 year

            You misspelled nesting tables

              • washbasin@sh.itjust.worksEnglish
                1 year

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

            • ChaoticNeutralCzech@feddit.orgEnglish
              1 year

              Obligatory https://justfuckingusehtml.com/

                • AnarchistArtificer@lemmy.worldEnglish
                  1 year

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

                  • chunes@lemmy.world
                    1 year

                    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.worksEnglish
                        1 year

                        You don’t just zoom?

                          • chunes@lemmy.world
                            1 year

                            Not on desktop

                              • explodicle@sh.itjust.worksEnglish
                                1 year

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

                                  • chunes@lemmy.world
                                    1 year

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

                            • ZeroOne@lemmy.world
                              1 year

                              I’m totally going to bookmark this & also I’m going to insert this as well.<br> https://www.htmlhobbyist.com/

                            • milicent_bystandr@lemm.ee
                              1 year

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

                                • pewpew@feddit.it
                                  1 year

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

                                    • svn@lemmy.kde.social
                                      1 year

                                      You can wrap everything in unsafe and keep living dangerously!

                                        • Ephera@lemmy.mlEnglish
                                          1 year

                                          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@lemmy.kde.social
                                              1 year

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

                                            • yetAnotherUser@lemmy.ca
                                              1 year

                                              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@lemmy.kde.social
                                                  1 year

                                                  Oh boy, now I can stop missing C++

                                              • QuazarOmega@lemy.lol
                                                1 year

                                                Yew* Rust

                                                FTFY

                                                  • bricklove@midwest.socialEnglish
                                                    1 year

                                                    Nah, they had it right

                                                      • QuazarOmega@lemy.lol
                                                        1 year

                                                        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@midwest.socialEnglish
                                                    1 year

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

                                                    • Colloidal@programming.dev
                                                      1 year

                                                      Flutter like a butterfly, sting like a Dart.

                                                      • TheMightyCat@lemm.ee
                                                        1 year

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

                                                          • milicent_bystandr@lemm.ee
                                                            1 year

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

                                                        • GreenKnight23@lemmy.world
                                                          1 year

                                                          I worked with some pretty dumb people who mocked me for years as the guy who couldn’t design a UI to save my life because the product I inherited was designed by someone in the 1990s. it wasn’t pretty but it was functional.

                                                          any time a UI request came in for the new product and I would try to take it, the PM would pull it and give it to someone else. “oh, their skillset is better suited for UI/UX.” I was told.

                                                          I got fed up with it and designed my online portfolio. used it to showcase my work and skills even documented my process from mockups to design iteration and final products.

                                                          I then posted on linkedin my new portfolio and listed myself as open to connect. within a day the PM made a point to pull up my portfolio on standup and asked me where I got the template. told them, “no template. as you can see in the documentation I designed it from scratch using HTML5 CSS3 and JavaScript. I also included the js packages I used.”

                                                          they were stunned and immediately started to shuffle some UI tickets my way. I just said, “sorry, my skillset is better served for backend requests.”

                                                          I quit two months later after a few interviews that seemed to go well. I hated that shithole.

                                                          moral of the story? don’t discourage people from taking on tasks they aren’t obviously suited for. they might just surprise you.

                                                            • squaresinger@lemmy.world
                                                              1 year

                                                              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
                                                                  1 year

                                                                  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
                                                                      1 year

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

                                                                    • GreenKnight23@lemmy.world
                                                                      1 year

                                                                      change of pace, mostly. I also like the challenge. when I’m not challenged at work I lose interest easily and can spiral into not doing my job. so it’s nice to break up a long running project with some new bugs or tasks that are unrelated.

                                                                      • LeGrognardOfLove@lemmygrad.mlEnglish
                                                                        1 year

                                                                        Why not? Both needs skills to accomplish very well.

                                                                        I’m not a frontend guy, but I like to mess with frontend stuff once in a while!

                                                                        Flex is so fun!

                                                                        Managing css masterfully is a skill in itself!

                                                                    • magic_lobster_party@fedia.io
                                                                      1 year

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

                                                                        • bestboyfriendintheworld@sh.itjust.works
                                                                          1 year

                                                                          Most pages don’t need dynamic loading.

                                                                            • Omega@discuss.online
                                                                              1 year

                                                                              True

                                                                              • AnUnusualRelic@lemmy.worldEnglish
                                                                                1 year

                                                                                My menus need to be dynamically reloaded!

                                                                              • MonkderVierte@lemmy.zip
                                                                                1 year

                                                                                Dynamically loading pages suck too.

                                                                                • TrickDacy@lemmy.world
                                                                                  1 year

                                                                                  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
                                                                                      1 year

                                                                                      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
                                                                                          1 year

                                                                                          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
                                                                                          1 year

                                                                                          people love over engineering the fuck out of technology

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

                                                                                            • TrickDacy@lemmy.world
                                                                                              1 year

                                                                                              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)@lemmy.blahaj.zone
                                                                                              1 year

                                                                                              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.worldEnglish
                                                                                              1 year

                                                                                              It’s still Javascript.

                                                                                            • yetAnotherUser@lemmy.ca
                                                                                              1 year

                                                                                              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@lemmy.blahaj.zoneEnglish
                                                                                                  1 year

                                                                                                  got it, my bad

                                                                                                • katy ✨@piefed.blahaj.zoneEnglish
                                                                                                  1 year

                                                                                                  real ones learn dhtml

                                                                                                    • 1hitsong@lemmy.ml
                                                                                                      1 year

                                                                                                      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.

                                                                                                    • brianary@startrek.website
                                                                                                      1 year

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

                                                                                                        • piccolo@sh.itjust.works
                                                                                                          1 year

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

                                                                                                            • brianary@startrek.website
                                                                                                              1 year

                                                                                                              Not something I’ve encountered.

                                                                                                            • I Cast Fist@programming.dev
                                                                                                              1 year

                                                                                                              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

                                                                                                              • Alexstarfire@lemmy.world
                                                                                                                1 year

                                                                                                                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
                                                                                                                    1 year

                                                                                                                    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?

                                                                                                                • Flamekebab@piefed.socialEnglish
                                                                                                                  1 year

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

                                                                                                                  • belated_frog_pants@beehaw.org
                                                                                                                    1 year

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

                                                                                                                    • mesa@piefed.socialEnglish
                                                                                                                      1 year

                                                                                                                      Damn that’s some spicy takes lol.

                                                                                                                      • oni ᓚᘏᗢ@lemmy.world
                                                                                                                        1 year

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

                                                                                                                          • Biyoo@lemmy.blahaj.zone
                                                                                                                            1 year

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

                                                                                                                          • Destide@feddit.ukEnglish
                                                                                                                            1 year

                                                                                                                            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 post

                                                                                                                            Report community

                                                                                                                            Modlog
                                                                                                                            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

                                                                                                                            This community is visible to everyone.

                                                                                                                            • 401 users / Day
                                                                                                                            • 2.65K users / Week
                                                                                                                            • 2.71K users / Month
                                                                                                                            • 14.7K users / 6 months
                                                                                                                            • 2.35K posts
                                                                                                                            • 90K comments
                                                                                                                            • 2 local subscribers
                                                                                                                            • 31.9K subscribers
                                                                                                                            • UI: 1.0.0-beta.0
                                                                                                                            • BE: 1.0.0-alpha.20
                                                                                                                            • Modlog
                                                                                                                            • Instances
                                                                                                                            • Docs
                                                                                                                            • Code
                                                                                                                            • join-lemmy.org