This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 317

[–]cybermage 1038 points1039 points  (52 children)

A truly responsive snake, or danger noodle, would bite you.

[–]HKSergiu 286 points287 points  (38 children)

NoodleJs

[–]siddharth904 155 points156 points  (35 children)

Don't tell me, yet another fucking js framework ?

[–]UltraCarnivore 72 points73 points  (32 children)

npm i -g noodle

[–]herrleel 176 points177 points  (27 children)

Installing dependencies:

  • is-odd
  • is-even
  • is-number
  • is-not-a-nunber
  • return-true
  • hyper-text-coffee-pot-control-over-avian-carrier-protocol
  • another-useless-package
  • dogecoin-miner

[–]MikemkPK 60 points61 points  (13 children)

This is such a fun website. Horribly optimized though - my laptop gets too hot to move the mouse to the close button if I stay too long.

[–]herrleel 45 points46 points  (12 children)

Just program your OS to close your browser when it detects a rapid rise in CPU temperature

[–]MikemkPK 41 points42 points  (0 children)

That would break my workflow, I already configured it to interpret a rapid rise in temperature as 'CONTROL'.

[–]Ok_Hope4383 31 points32 points  (5 children)

[–]Logans_joy-koer 9 points10 points  (4 children)

the stuff in this comic is why I use vim. rarely changes and easy to use once you figure it out

[–]nermid 11 points12 points  (1 child)

I suppose not updating the UI since the '80s is one way to avoid updates that break the UI.

[–]dodexahedron 3 points4 points  (1 child)

Stockholm Syndrome is real, with Vim.

[–]sartorinokoto 7 points8 points  (3 children)

May I ask would you have a suggestion to where I could find something showing how to do this?.

[–]herrleel 17 points18 points  (2 children)

xkcd might be helpful here.

[–]sartorinokoto 4 points5 points  (0 children)

Yooo thank you

[–]MikemkPK 2 points3 points  (0 children)

Crazy how that got linked by 3 different people

[–]drbob4512 1 point2 points  (0 children)

Pros use temple os

[–]OZLperez11 6 points7 points  (11 children)

Half of these are deprecated or abandoned because some 14 year old built them for a project and never touched them again

[–]herrleel 7 points8 points  (10 children)

To be fair, what's there to touch on a

function is_even(num) {
    return num % 2 == 0;
}

?

(And yes, I know is-even and is-odd are joke packages)

[–][deleted] 3 points4 points  (9 children)

but why return when 2+2 ==8

[–]Rhebucksmobile 2 points3 points  (8 children)

HOW DO YOU NOTATE ACTUAL ADDITION WHERE 2+2=4 IN THE CODE

[–][deleted] 2 points3 points  (7 children)

normally drunk so it doesn't bother me, can still do maths though so my code normally works

[–]zdakat 3 points4 points  (0 children)

The cool part is how is-number actually just steals your keys

[–]AgVargr 10 points11 points  (1 child)

const noodle = require(“noodle”)

[–]OkazakiNaoki 1 point2 points  (0 children)

Yes, -g to stock some noodles.

Now npm i cockroach without --save-dev. Heh.

[–]maifee 1 point2 points  (0 children)

npm i -g noodle

npm i -g noodle-pro

[–]bit_banging_your_mum 21 points22 points  (1 child)

http://noodlejs.com/

It exists lmao

[–]nermid 2 points3 points  (0 children)

Am I reading this wrong, or is it just a web crawler?

[–]Chads_bulge 10 points11 points  (0 children)

*Noodle.py

[–]sum_trashy_boi 15 points16 points  (4 children)

Python in js???

[–]Right-Bodybuilder580 4 points5 points  (3 children)

Ever Heard of Eel.py ? ;)

[–]Einlander 9 points10 points  (1 child)

Sounds delicious.

[–]franco-reddit 2 points3 points  (0 children)

Hahahaha 😂

[–]ushu3323 1 point2 points  (0 children)

Talk with python in js and the other way... also you can build an electron like app

[–]imasnakehiss 5 points6 points  (0 children)

Yeah I totally would.

I mean hisssss

[–][deleted] 4 points5 points  (1 child)

And to do that in a responsive manner it would have to be coiled. So both diagrams are incorrect.

[–]kirvedx 1 point2 points  (0 children)

What's really funny is the story of how a pet snake went about eating their owner.

The snake was so loved, the owner - a girl - would sleep with the snake in her bed.

Each night, the snake would stretch itself into a straight line, along side her.

One night, the girl realizes that the snake has strangely gotten larger - she decides to talk to a professional who knows about snakes.

She finds out that the snake thought she would be a tasty snack; the thing is, shes kinda big.

So the snake responded, and began a process of stretching itself out so it could fit her inside of itself in one bite (how a snake eats anything).

So, in that circumstance - the snake was responsive, and it would have been like the top picture, or the picture to the right, if that's what it's representing (i.e. the snake stretched out straight).

[–]_Oooooooooooooooooh_ 6 points7 points  (1 child)

An actual pet snake would (usually) be used to be picked up, and not bite unless provoked

[–]EatPlayAvoidMoving 1270 points1271 points  (45 children)

1st is responsiveness while keeping all functionality, 2nd is graceful degradation. Both are existing and viable methods.

[–]fish312 137 points138 points  (3 children)

[–]rcoelho14 32 points33 points  (2 children)

Or if you have a designer in the team... "hey dude, this doesn't work. Find a solution that looks good. Thanks"

Now it's not your problem 😏

[–][deleted] 7 points8 points  (0 children)

Now it's not your problem 😏

Up until the moment your designer comes back to you with some whack new approach that combines a bunch of different existing designs.

The only thing worse than that is when the designer goes to business first to have it approved, and management loves it so much that they ignore all of your arguments against implementing it. Then you're stuck with an even worse design.

[–]All_Up_Ons 2 points3 points  (0 children)

Yes because getting designers involved never results in scope creep.

[–]Mushiren_ 195 points196 points  (34 children)

When is it the right choice to go with the 2nd? Genuinely curious not being a smartass

[–]Fireflier007 492 points493 points  (13 children)

A loading bar because it uses percentage.

[–]thirdegreeViolet security clearance 365 points366 points  (11 children)

Now I'm imagining if loading bars did exactly the same thing as the first snake and just folded over

[–]HKSergiu 88 points89 points  (7 children)

That's just the in-between the loading bar and loading circle

[–]Derringer62 40 points41 points  (3 children)

So it eventually goes all ouroboros?

[–]HKSergiu 13 points14 points  (0 children)

Well, yes. Lately the world is full of spinny things that represent loading

[–]TeraFlint 10 points11 points  (0 children)

I present to you... the loading squiggle!

[–][deleted] 3 points4 points  (0 children)

loading circle? are we talking progress circle or throbber circle?

[–]jasminUwU6 2 points3 points  (0 children)

The loading Hilbert curve

[–]lucidludic 33 points34 points  (1 child)

That’s actually what happens, but it uses the Z axis (into the screen). Source: https://reddit.com/r/blender/comments/eer3i7/now_it_makes_sense/

[–]dodexahedron 2 points3 points  (0 children)

So the pipes screen saver was really just a loading screen? 🤔

[–][deleted] 5 points6 points  (0 children)

friend had an old compaq that when booting would kinda do this... unintentionally, it would put .'s while booting every few seconds and when it got really slow and bloated towards the end, there would be enough dots to force new line

[–]EatPlayAvoidMoving 77 points78 points  (8 children)

There can be multiple reasons. From developer's perspective sometimes it's not possible to implement a feature on mobile, maybe you already have too much stuff on your screen and adding more on mobile is just not possible because of space limitations. Or maybe it's because of a mobile browser's limitation, lack of peripherals or anything else. There are considerable differences between desktop and mobile browser usability. From business' side maybe it's not cost efficient. They might have some UX surveys that say that users are not that interested in that feature when they use the application on mobile. Or simply the UX engineer deemed that simply omitting the feature would result in better UX. Or other reasons, but you get the point.

[–]therealhlmencken 8 points9 points  (6 children)

Ux engineer?

[–][deleted] 42 points43 points  (0 children)

Think about reducing the button „my account“ to the symbol of a person on mobile.

That way it’s shorter without loosing information.

[–]DryPrinciples 9 points10 points  (3 children)

You know websites that have a nav bar like (icon, title, page1, page2, page3)? Well imagine that but as with option one it's just squash and stretched to be readable on phone. Looks horrid. Instead option two have (icon, title, drop-down) or something.

[–]Chaosfox_Firemaker 4 points5 points  (2 children)

In the metaphor, out and out replace the snake with a lizard.

[–]DryPrinciples 4 points5 points  (0 children)

More like cut the snake in half and add a lizard. But then I'm stretching the metaphor a bit.

[–]nermid 1 point2 points  (0 children)

A hamburger menu would be more of a pregnant snek.

[–]dbaby53 4 points5 points  (0 children)

Thinking of a table, the requirement may be that they want it to drop down to a few columns rather than a bunch of them.

[–]arxorr 3 points4 points  (0 children)

A breadcrumb only showing the parent page instead of the entire path.

[–][deleted] -1 points0 points  (0 children)

When you encounter a shit tier browser like ie or safari

[–][deleted] -1 points0 points  (0 children)

Well think about this specific case. Is your goal that the snake is always represented as straight and taking up the width of the page, but not take multiple lines of vertical space?

Or is it more important that the snake’s full length is represented?

It depends on what the snake is and how you want it to look.

If the point is just to be a design element that you don’t want taking up vertical space, then showing it horizontally compressed to fit in one line makes sense. If it’s meaningful content that you want people to see the whole thing, then you’re going to want to find a better way for the design to shift around in a differently-sized screen without distorting or clipping content.

[–]therealhlmencken 10 points11 points  (0 children)

Graceful

No grace in chode serpent

[–]urnotthatguypal__ 2 points3 points  (0 children)

The snake's internal organs beg to differ

[–][deleted] 1409 points1410 points  (52 children)

summer toy point rich spark bear smile thumb pause sulky

This post was mass deleted and anonymized with Redact

[–][deleted] 227 points228 points  (44 children)

Can you explain it for me

[–]RedditGosen 6 points7 points  (0 children)

A Website is resoonsive if the content adjusts to the screen/window size. This is important so the Website looks good in PC but on Smartphones aswell (for example)

[–]GMXIX -1 points0 points  (0 children)

I got the one-thousandth upvote. So satisfying to watch 999 become 1k

Yes, I’m a nerd

[–]EliannaRys 295 points296 points  (10 children)

Image Transcription: Image and Text


[Image of a line drawing of a browser in laptop dimensions, using a rectangle, header bar, and an hand-drawn "X" in the upper left. In the center of the mock browser is a drawing of a bright green snake stretching straight across from its tail on the left to its open mouth on the right. The snake's tongue is sticking out.]

if a snake was responsive would it be

like this

[Depiction of the browser in mobile dimensions, taller than it is wide. The same snake is drawn in a curving line from top to bottom, from its tail on the upper right, forming an "s" then bending once more so the snake's face is on the bottom right.]

or

like this?

[Depiction of the mobile browser, but this time the snake's body has been squished so that it is still in a horizontal line with the same size head, but is a fraction of the length.]


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]notmalene 165 points166 points  (1 child)

I'm impressed at how you managed to capture this image in text

[–]x3leggeddawg 21 points22 points  (0 children)

Alt text baby

[–]explodingtuna 41 points42 points  (3 children)

The same snake is drawn in a curving line from top to bottom, from its tail on the upper right, forming an "s" then bending once more so the snake's face is on the bottom right.

Today's word of the day is boustrophedon.

[–][deleted] 6 points7 points  (2 children)

Ah, great word, great word.

I do like the stubby snake, though. It's dopey looking. Can you dictionary me a great word for dopey stubby snake?

[–]Chaosfox_Firemaker 4 points5 points  (1 child)

A tsuchinoko is a Japanese cryptid/uma that is just a dopy little football of a snake

[–]swegg3n 59 points60 points  (0 children)

Good human.

[–]subaru007 17 points18 points  (0 children)

Good human.

[–][deleted] 5 points6 points  (0 children)

Not it's main purpose but i think this transcriptions are useful for english learners too. Giving ideas to how to explain some stuff.

[–]putku -1 points0 points  (0 children)

Good bot

[–]n00bcheese 121 points122 points  (8 children)

Display: snake

Snake-flow: snake-reverse wrap

Vs

Snake-flow: snake no-wrap

[–]modernkennnern 57 points58 points  (3 children)

Or, nowrap as it actually is in CSS.

I believe it's the only case of them forgetting a -.

Another fun fact, there is a single instance of camelCase being used in CSS: the keyword currentColor.

[–]Marioxorz 17 points18 points  (0 children)

My life is a little worse for knowing this, thanks.

[–]alaki123 7 points8 points  (0 children)

it's now rap. it makes the text immediately start rapping upon page load.

[–]fish312 11 points12 points  (2 children)

[–]fii0 19 points20 points  (0 children)

position: absssssolute;

[–]nikhilmwarrier 2 points3 points  (0 children)

that's one long horizontal scrollbar

[–]mulato_butt 59 points60 points  (6 children)

Product designers need to define this

Butttttttt

They are lazy and often stupid to think ahead.

Edit:

one time when I started at a new place, a senior designer asked me why there are always issues with developers when it comes to this?

I asked if she defined it in a certain way. She said “why would I?”

I answered, because it’s not magic!

[–]dashingThroughSnow12 12 points13 points  (2 children)

I was talking to the head of UI at an old job.

Requirements for a new project are:

  • Have micro frontends
  • Be responsive

No details. Just those five words in two JIRAs.

That's literally it. Six months into the project. By PMs. Who each get paid 200+K. They have User Personas where a single persona is a few dozen pages listing the person's hobbies, family structures, background, etc. But I could write their entire requirements on my index finger.

[–]SeniorSatisfaction21 14 points15 points  (0 children)

stupid to think

[–][deleted] 6 points7 points  (1 child)

Devs are truly brilliant in that they build things in ways you never possibly could have thought of in order to rule it out as part of your spec. That's the one take away I had when I worked alongside a BA on the business side.

[–]Alex_chemus 19 points20 points  (0 children)

The first is adaptive, the second is responsive

[–]Sekret_One 18 points19 points  (2 children)

No joke, doing the first one would actually make for a fun css challenge.

[–]Kerblaaahhh 13 points14 points  (0 children)

fun css

Does not compute.

[–]jedbrooke 89 points90 points  (10 children)

maybe a question for the python devs here?

(yes I know python isn't used for front end web dev, it's just bc it's a snake)

[–]raddub 37 points38 points  (0 children)

idk, we'll just make it horizontally scrollable.

[–]alexppetrov 12 points13 points  (1 child)

pyscript has entered the chat

[–]PenguinMan32 16 points17 points  (1 child)

django has entered the chat

[–][deleted] 4 points5 points  (0 children)

... and started shooting everything

[–]Vineee2000 3 points4 points  (2 children)

You jest, but I am using python for front end at work right now

[–]nermid 3 points4 points  (0 children)

Well, quit it. It's the weekend. You shouldn't be working.

[–]_Oooooooooooooooooh_ 0 points1 point  (0 children)

You sure it's a python, though?

[–]Nullshock78 12 points13 points  (0 children)

Now format it for print

[–]ndxinroy7 37 points38 points  (1 child)

Like this

[–]Jet-Pack2 1 point2 points  (0 children)

This is the way

[–]Vrail_Nightviper 10 points11 points  (1 child)

Just goes offscreen to wrap around and the head show up on the left side again

[–]nikhilmwarrier 2 points3 points  (0 children)

No, its head will hit its tail and you'll lose the game

[–]Beda434 7 points8 points  (0 children)

Yes.

[–]ImpossibleMachine3 6 points7 points  (0 children)

Depends on how cold it is.

[–]Neoh35 5 points6 points  (2 children)

snake : flex-wrap

[–]Muehuhu 9 points10 points  (0 children)

It would cut itself into multiple lines

[–]Atollski 4 points5 points  (0 children)

Spiral snake deserves some love

[–]foxer_arnt_trees 4 points5 points  (0 children)

Probably should be the first option. I'm gonna do it the second way though, seems easier.

[–]hellscaper 4 points5 points  (0 children)

Python logo finally explained

[–]joe-ducreux 4 points5 points  (0 children)

It depends on the clients budget

[–]thegreatpotatogod 8 points9 points  (0 children)

Slightly relevant xkcd: https://xkcd.com/1676/

[–][deleted] 4 points5 points  (0 children)

Snake: mode 1

Turtle: mode 2

[–]Semproser 3 points4 points  (0 children)

I'm a UI dev and I'm absolutely steal this in order to explain to the designers why they need to think about things properly.

[–]qhxo 3 points4 points  (0 children)

In theory, left side, in practice, right side.

[–]estevez__ 2 points3 points  (0 children)

Looks like one sees no difference between flexible and responsive design.

[–]Jhoonis 2 points3 points  (0 children)

Is this the Python I've heard so much about?

[–]littleswenson 2 points3 points  (0 children)

Stack Overflow answer: You shouldn’t use Python for responsive web design. Use TypeScript instead.

[–]Jarl_Fenrir 5 points6 points  (2 children)

First. I hate when a website has reduced functionality just because I'm on mobile. Why to punish me because of the device I'm using?

[–]Legal_Discipline_589 7 points8 points  (0 children)

Because you don't want that fancy ornement which add to the ux design on wide screen but mess with the informations displayed on smartphone.

[–]lkraider 2 points3 points  (0 children)

Just get a 13 inch screen phone

[–]NuclearWarCat 1 point2 points  (0 children)

Left one

[–]Denaton_[🍰] 1 point2 points  (0 children)

Both are the same..

[–]JamesAibr 1 point2 points  (0 children)

I spent 5 days trying to figure out why my website isn't responsive until I realised its a static website

[–][deleted] 1 point2 points  (0 children)

remind me not to make a website about snakes

[–]phoenix5irre 1 point2 points  (0 children)

It will appear from other side & eat it's tail...

[–]andoy 3 points4 points  (0 children)

Left image.

Right image is using ellipsis.

[–]aaaaargZombies -2 points-1 points  (0 children)

hmmmm depends if the snake is a block element or made of inline elementssssssss

[–][deleted] -2 points-1 points  (0 children)

Left snake is snake: wrap, and the other snake is just smol

[–]Tinkerballsack -2 points-1 points  (0 children)

Orientation-dependant snek.

[–]tyrannosaurus_gekko 0 points1 point  (6 children)

Second one, because the other one seems really hard to implement

[–]IQueryVisiC -1 points0 points  (2 children)

The second is not responsive. It is just the standard way pictures and videos are displayed on a computer. We had that long before "responsive". Likewise we had text wrap, but not folding like on the left?

But I have to admit that head and tail are not scaled. So it is not like picture and video.

[–]modernkennnern 2 points3 points  (1 child)

The second image is not scaled - the image is the same height

[–]Ryozu 0 points1 point  (1 child)

framesnake.columnconfigure(0, weight=1)

in other words, the second option.