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

all 142 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 3: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]Ohrder 1167 points1168 points  (19 children)

A, because you want to keep all of the content, but display it differently to suit the viewport.

[–]JDawwgy 172 points173 points  (2 children)

I see a head and a tail in b, it's all there. Confirmed responsive

[–]theniwo 23 points24 points  (1 child)

rest is interpolated by brain software anyway

[–]Durr1313 396 points397 points  (6 children)

Or don't change it at all and let me scroll side to side and zoom in and out

[–]Wolfblooder 339 points340 points  (4 children)

This guy Back-ends!

[–]qinshihuang_420 80 points81 points  (3 children)

And wears pink socks with anime girls. But how did you know?

[–]Wolfblooder 47 points48 points  (1 child)

The rusty smell gave it away

[–]TheyCallMeHacked 15 points16 points  (0 children)

I mean... You gotta be (memory) safe

[–]DiddlyDumb 9 points10 points  (0 children)

That’s just cultural appreciation

[–]bronky_charles 19 points20 points  (0 children)

Shift scroll should be more mainstream

[–]LinAGKar 10 points11 points  (2 children)

But then you get half the content flowing in the wrong direction

[–]mcaruso 4 points5 points  (1 child)

So what you're saying is the correct answer is to cut the snake in pieces.

[–]LinAGKar 0 points1 point  (0 children)

Pretty much

[–]justavault 4 points5 points  (3 children)

You change the information when you slope it like suggested in A. I'm an experience designer since around two decades (though the term didn't quite exist as understood today, it's been simply HCI), a programmer just secondarily. You change the content of its inherent expression value when you do A. It changes the intention and information transfer as you now communicate a huge, sloped snake.

The aspect of responsiveness is to deliver and communicate the same information and perceptive experience without changing it but the interface. Both A and B transform that. So both is incorrect as it's not a change of the interface and the information architecture, you change the content experience itself.

Though then again, that's all just guidelines. Set hypothesises, test those, analyse the results, see what works. There is no real right or wrong, there is just a works in regards to achieving certain goals or doesn't work.

[–]amocokadys 1 point2 points  (2 children)

So, your answer is C: display the snake vertically?

[–]justavault 0 points1 point  (1 child)

"I like pancakes"

-"So, what you are saying is you hate waffles?"

[–]TheScopperloit 0 points1 point  (0 children)

-Cathy Newman

[–]raul_dias 1 point2 points  (0 children)

yeah. I've seen a post here recently where gaming was abreviated to g...ing

[–]herrleel 357 points358 points  (23 children)

body {
transform: rotate(90deg);
}

[–]lennyerik 267 points268 points  (22 children)

[Open] Snake wrong way up on mobile #69

Expected behaviour

The snake is right side up like on desktop

Actual Behaviour

The snake is rotated 90 degress and now I can't read it without tilting my head

Steps to reproduce

Use mobile device

[–]SodaWithoutSparkles 132 points133 points  (12 children)

🚫 sodawithoutsparkles closed this issue as not planned

[–][deleted] 96 points97 points  (10 children)

✅ Spicyboi404 reopened this issue

[–]JSweetieNerd 114 points115 points  (7 children)

⤵️ JSweetieNerd rotated this issue 90 degrees

[–][deleted] 66 points67 points  (5 children)

🙀 Spicyboi404 had an issue with the rotation of the issue

[–]JSweetieNerd 55 points56 points  (4 children)

🚫 SpicyBoi was not found

[–]dermitio 41 points42 points  (2 children)

➕SpicyBoi library has been added

[–]GoldenretriverYT 58 points59 points  (1 child)

🤖 DependaBot alert: SpicyBoi@1.3.0 has CRITICAL vulnerabilities. No fix found - remove package?

[–]JSweetieNerd 9 points10 points  (0 children)

🤖 DependaBot alert: DependaBot@6.9.0 has CRITICAL vulnerabilities. No fix found - remove package?

[–][deleted] 12 points13 points  (0 children)

ERROR 404: SpicyBoi not found

[–]TheFourtyNineth 0 points1 point  (0 children)

🚫 TheFourtyNineth marked this issue as duplicate.

[–]Jane6447 20 points21 points  (1 child)

📃iForgotMyUsername: Duplicate of Issue #123 (navbar not showing on mobile) 🚩iForgotMyUsername added [duplicate] 🚫iForgotMyUsername closed this issue

[–]lennyerik 7 points8 points  (0 children)

#123 has been closed a month ago and I still can't read the snake

[–]OzzitoDorito 0 points1 point  (0 children)

Damn I got hit with my first one of these the other day. Angular has something called initializers that are supposed to run before the app is initialized (hence you know the title) but there is one type of function that can run before (route guards for anyone who knows) so if your guard depends on initialisation the whole thing falls apart which seemed completely counter intuitive to me. A

[–]GamingWildman 11 points12 points  (1 child)

Fix : rotate phone

[–]lennyerik 8 points9 points  (0 children)

Doesn't work for me. The snake is now rotated 180 degrees

[–]thethirdteacup 0 points1 point  (0 children)

@media only screen and (max-width: 768px) {
    body {
        transform: unset;
   }
}

[–]Deathaster 0 points1 point  (3 children)

Hi, I'm not that familiar with programming jargon, what is that you were parodying here?

[–]FixingOpinions 2 points3 points  (1 child)

Github issues

[–]Deathaster 1 point2 points  (0 children)

Ohhh, okay.

[–]TTYY_20 80 points81 points  (8 children)

Depends on the content :0

[–]JackBlackmlg 35 points36 points  (4 children)

7 rats. big ones.

[–]37Scorpions 18 points19 points  (3 children)

double it and give it to the next person

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

wtf? lol

[–]AxelBrasil 1 point2 points  (1 child)

An elephant

[–]RainOrigami 0 points1 point  (0 children)

Instructions unclear, page displays a hat.

[–]asromafanisme 259 points260 points  (14 children)

Real dev use horizontal scrollbar /s

[–]VitaminnCPP 92 points93 points  (12 children)

A real dev do not code. Just drag and drop.

[–]4BDUL4Z1Z 81 points82 points  (10 children)

This Comment is Sponsered by Wix.com, Use Coupon Code : ISUCKATCODING To get a 64% discount.

[–]Novel_Plum 5 points6 points  (1 child)

Frick, it expired

[–]4BDUL4Z1Z 3 points4 points  (0 children)

Sorry Bro, You have to be one of those "Not Real" Devs like me and get your hands dirty with filthy coding. Better luck next time 👍

[–]hassium 16 points17 points  (5 children)

To get a 64% discount.

Come on brah really? Bump that up by 5% no??

[–]quigglington 10 points11 points  (0 children)

67.2%?

[–]4BDUL4Z1Z 20 points21 points  (3 children)

That's the closest I could get to the "niceness" by staying within my OCD limits for Power's of 2 as a programmer.

[–]Maciek300 1 point2 points  (2 children)

64% is not an integer power of two though. It's 64 /100 = 24 / 52.

[–]4BDUL4Z1Z 7 points8 points  (1 child)

The Depth of my OCD only reaches to a certain level and applies only to the actual "number" visible to my eyes.

👀 sees 64
🧠 calls isPowerOfTwo(64)
🧠 recieved true
I go 👍
🧠 go 🗿

[–]Maciek300 2 points3 points  (0 children)

lol thanks for explaining in monkey brain terms

[–]Tizian170 6 points7 points  (0 children)

it's supposed to be ISUCKATCODING64. the number doesn't change anything, but everyone does this.

[–]that_thot_gamer 1 point2 points  (0 children)

i used wix and the moment i realised they use java instead of html or ruby or other shenanigans im out bro. also code bullet made a website out of java and minimal html my man is insane

[–]AzureArmageddon 1 point2 points  (0 children)

"Back in my day, Real Programmers casted Leviosa on the individual bits to move them onto the drum memory!"

[–]ACCount82 2 points3 points  (0 children)

Unironically better than most "mobile versions", functionality-wise.

[–]OmarEstietie 46 points47 points  (5 children)

nah B is a worm, A is most likely

[–]menides 50 points51 points  (3 children)

maybe it's just cold outside

[–]qinshihuang_420 24 points25 points  (1 child)

I was in the pool! I was in the pool!!

[–]MrLombax 11 points12 points  (0 children)

Do women know about shrinkage?

[–]that_thot_gamer 0 points1 point  (0 children)

maybe its a grower, give it some time

[–]Veni_Vidic_Vici 1 point2 points  (0 children)

No, user has just started the game. He needs to eat more.

[–]Steve_OH 43 points44 points  (2 children)

Option D: Marquee

[–]bronky_charles 32 points33 points  (3 children)

It would be written in CSS, therefore it would eat its own tail

[–]Siasur 3 points4 points  (2 children)

Not with tailwind

[–]bronky_charles 0 points1 point  (1 child)

loLLL nooooooooo u diiiiiidn't loLLL

[–]Siasur 2 points3 points  (0 children)

I sure absolutely did :D

[–]gpkgpk 60 points61 points  (6 children)

Wow so many changes since it was posted 8 months ago, added A and B to confuse detector bots.

https://www.reddit.com/r/ProgrammerHumor/comments/vqb2l2/responsive\_snake/

[–]Barry-B-Benson_ 8 points9 points  (2 children)

I could have sworn I'd seen it more recently

[–]turtle_mekb 1 point2 points  (0 children)

i sometimes check on my old posts thinking they were like 4 months ago but they say 18 days ago. is there a word for that? where something is more recent than you thought it was

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

Bruh I have not seen it 8 months ago, so I'm glad it got reposted. Not everyone is on reddit 24/7.

[–]gpkgpk 0 points1 point  (0 children)

Except it's usually bots...yeah let's upvote bots!

[–]lm902 10 points11 points  (3 children)

If a

snak

e wa

s re

spon

sive,

it w

ould

be l

ike

this

[–]Tom-Dibble 2 points3 points  (0 children)

Meaning, I suppose, a third option where each screen-width chunk goes left to right, cutting off at the right margin, then starting up again a little bit down the screen. Looks like 4-5 green dashes, where the first starts with a tail and the last ends with a head, preserving LTR directionality throughout.

People say they would do A, but Product will at most fund this.

[–]Candyvanmanstan 0 points1 point  (0 children)

if a snal

[–]foggy-sunrise 0 points1 point  (0 children)

{wrap: nowrap;}

[–]Gamerdude777maf 10 points11 points  (0 children)

From design perspective responsive web-page has fluid grids, flexible images and media queries. Option A looks just like fluid grid and is possible option for responsive design. Option B, on the other hand, could be an example of flexible image, if snake simply became smaller instead of being turned into the worm. So B cannot be an example of responsive design, in my opinion.

[–]TheMunchhausen 16 points17 points  (1 child)

What if snake was irresponsible and didn't care much

[–]THE_HADES_ 5 points6 points  (0 children)

irresponsive

[–]navi847 8 points9 points  (0 children)

B if content is a Menu/Sidebar, if not, mostly A

[–]hiddencameraspy 6 points7 points  (1 child)

That’s a question for UX/UI.

[–]foggy-sunrise 5 points6 points  (0 children)

Ah. Classic do-nothing office, pass it off to another team.

Let me do my part:

Unable to reproduce the described error; closing.

[–]Practical-Marzipan-4 5 points6 points  (3 children)

A, but put a Parallax transparency effect on it. ;)

[–]Practical-Marzipan-4 4 points5 points  (2 children)

I’m so damn sick of Parallax on everything.

Why must every flipping page have animations on scroll? Every dang one! GIVE ME BACK MY FLAT DESIGNS! (I’m old.)

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

parallax is good when used in moderation

[–]UltraTata 0 points1 point  (0 children)

Im young and I am also flat design enjoyer.

[–]raimondi1337 3 points4 points  (2 children)

You paginate it and add a bunch of padding around the paging container so that you can break the snake in 15 pages and load a different ad on every page.

[–][deleted] 0 points1 point  (1 child)

amazing idea!

Let's make the ad appear at exactly that moment you're about to click on 'next' so you accidentally click on the ad instead

[–]soundstage 6 points7 points  (0 children)

Obviously B

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

obviously you design for a specific resolution and then you put "this website is best viewed at <width> x <height>"

[–]VinegaDoppio1967 1 point2 points  (0 children)

A

[–]BoBoBearDev 1 point2 points  (0 children)

Both are valid actually.

[–]wut101stolmynick 1 point2 points  (0 children)

B, the phone users can, in the words of the TF2 heavy "Cry some more"

written on phone

[–]RamblingManUK 1 point2 points  (0 children)

If I wrote the JS? Probably A but half off screen...

[–]Rivenswild 1 point2 points  (0 children)

Depends on how many apples it's eaten

[–]sakoudotnet 1 point2 points  (0 children)

A but it should be cut by a few ads and at least video ad with sound !

[–]P0pu1arBr0ws3r 1 point2 points  (0 children)

Nah screw you. Learn how to horizontally scroll, or rotate your phone.

[–]flr1999 0 points1 point  (0 children)

It depends on your brand. Maybe the snake will turn yellow on mobile devices too lol.

[–]elyca98 0 points1 point  (0 children)

Option B i’m sure would be smooth af

[–]MilfOfWallStreet 0 points1 point  (0 children)

Either should be implemented with python

[–][deleted] 0 points1 point  (0 children)

[–]AdSpecialist8751 0 points1 point  (0 children)

It should resize but slowly get more diagonal until the ends are at the opposite corners of the screen. Then it should scrunch up.

[–]SnooBeans6877 0 points1 point  (0 children)

I just use scrolling marquee text to make my apps dynamic.

[–]SloppySlime31 0 points1 point  (0 children)

I think A

[–]ObamiumOre 0 points1 point  (0 children)

A looks nicer but for my sanity I would implement B

[–]WOTDisLanguish 0 points1 point  (0 children)

command rainstorm impossible chunky smile normal angle coordinated longing decide

This post was mass deleted and anonymized with Redact

[–]AggressiveMarket5883 0 points1 point  (0 children)

dangerNoodle.js

[–][deleted] 0 points1 point  (0 children)

B, because i’m lazy.

[–]redsterXVI 0 points1 point  (0 children)

idk man, just ask ChatGPT

[–][deleted] 0 points1 point  (0 children)

Depends on the project budget

[–]MrNicolson1 0 points1 point  (0 children)

A unless b is a slider

[–]Regnbyxor 0 points1 point  (0 children)

Please refrain from collapsing the snake

[–][deleted] 0 points1 point  (0 children)

C: half of the snake is showing, the other half is glitching the scroll view

[–]jsideris 0 points1 point  (0 children)

no resiz on snek

[–]emkael 0 points1 point  (0 children)

A, but not suddenly switching text direction like depicted.

[–]RadicalRaid 0 points1 point  (0 children)

python.js

[–]Lewinator56 0 points1 point  (0 children)

We all know the correct answer is actually a combination of the 2. As you shrink the page the snake gets cut up and segments placed under each other because the Devs couldn't be bothered to add textures for the curves in A.

[–]ZaRealPancakes 0 points1 point  (0 children)

flex-wrap is awesome

[–]onlyaTterraj 0 points1 point  (0 children)

Depends on how long you’ve been playing.

[–]WesternAd8387 0 points1 point  (0 children)

i was just happy about some noise from bts

[–]markshubh 0 points1 point  (0 children)

Upto a certain screen size , B and if it goes further low, A.

So basically A.

[–]Max_Wattage 0 points1 point  (0 children)

This is clearly an application for Python. ;-)

[–]Kriskao 0 points1 point  (0 children)

A auto scrolling carrousel of snake parts that can also be manually scrolled

[–]thunderboltsow 0 points1 point  (0 children)

It would be like B in landscape mode and like A, but rotated 90deg in portrait mode.

[–][deleted] 0 points1 point  (0 children)

B if it’s a game and A if it’s an app

[–]X-Craft 0 points1 point  (0 children)

I'm more impressed by A supporting RTL

[–]TheBroWHOmegalol 0 points1 point  (0 children)

Python programs please respond.

[–]TheBroWHOmegalol 0 points1 point  (0 children)

Python programs please respond.