this post was submitted on 12 May 2024
799 points (97.8% liked)

Programmer Humor

32745 readers
171 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] veganpizza69@lemmy.world 4 points 7 months ago (3 children)

What would even be the design solution without massive empty space? Add a lot of columns? Make the long content horizontal instead of vertical?

[–] kevincox@lemmy.ml 5 points 7 months ago

You could go columns for the content, but I think my ideal layout would still have the main content in a single column. I would put all of the chrome horizontally through. For example no header before and footer afterwards, put everything in different columns. Maybe even throw some extra navigation on the screen.

You don't need to use every pixel, just avoid putting things offscreen unnecessarily.

[–] wizzor@sopuli.xyz 5 points 7 months ago

I think for most web apps it doesn't make sense to allow the width to get so wide, except when the content being displayed is a columnar list and even then it's a pretty marginal benefit.

What I've done is limit the max-width to some amount of px/chars and allowed the remaining space be empty, with an exception for when displaying tables. Even with tables, the bigger width is only beneficial if either the contents of the columns are large enough, or there are very many columns to show. The solution in my mind is limiting the column widths to the longest content.

[–] gentooer@programming.dev 3 points 7 months ago

This seems really cool for tiling windows managers (even Windows has tiling options, although I'm not familiar with those). That being said, I still prefer a multimonitor setup on my tiling WM of choice.

[–] PlexSheep@infosec.pub 4 points 7 months ago* (last edited 7 months ago) (4 children)

You need to turn your head to read the line number.

Besides, your lines shouldn't be longer than 80 characters anyway

[–] platypode@sh.itjust.works 5 points 7 months ago

Eh, depends on the language and the context. I still use 80 for C, but I've found 120 to be a much more reasonable number for Java.

[–] palordrolap@kbin.social 5 points 7 months ago (1 children)

80 characters

Two hours and no-one's challenged this? People must be asleep.

(This is not that challenge. Only pointing out that someone usually has by now.)

[–] herescunty@lemmy.world 2 points 7 months ago

Something something… pep8… something… 79… darkside…

[–] Hexarei@programming.dev 2 points 7 months ago

Java devs gotta be able to read the whole name of their WidgetFactoryBuilderRepositoryConstructorFactoryRepositoryBuilderFactoryRepositoryManagerBuilderFactoryRepositoryFactoryFactoryFactoryBuilderFactory

load more comments (1 replies)
[–] joneskind@lemmy.world 3 points 7 months ago (2 children)

What the heck, is this real?

load more comments (2 replies)
[–] twig@lemmy.dbzer0.com 2 points 7 months ago
[–] rain_worl@lemmy.world 0 points 2 months ago

will be able to read motherfuckin' websites really well

load more comments
view more: ‹ prev next ›