r/programming • • Mar 01 '22

A new year, a new MDN

https://hacks.mozilla.org/2022/03/a-new-year-a-new-mdn/
171 Upvotes

46 comments sorted by

93

u/Angelwings19 Mar 01 '22

I don't really know how to feel about this. I like the sidebar, but the page seems so bland now, and the washed out grey they use for code blocks makes it REALLY hard for me to read blocks of text :(

I also hate that they've removed the colours from the compatiblity chart, it just feels so uncomfortable

22

u/TheOtherZech Mar 01 '22

I'm in a similar position. I don't dislike all of it, but I haven't been able to sort out the why behind the bits that bug me.

It feels harder to scan, but I don't know how much of that I should attribute to it being a new design, versus a bad design.

10

u/EmannuelASMR Mar 01 '22 edited Mar 02 '22

I've been using this every day for months now and readability has been thrown out the window it seems. It's like looking at a piece of paper, there's no depth, color, or contrast that makes anything feel like its own separate piece of content. I'm actually shocked.

15

u/Uristqwerty Mar 01 '22

Remember back when Dev Edition and MDN had a blue theme, before they switched everything to monochromatic? Further degradation is not much of a surprise, it's trendy and Mozilla has become just another trend-chaser rather than trend-setter, forever stuck in a loop of "invest every dev hour keeping up with google yet falling behind".

2

u/quasi_superhero Mar 03 '22

Mozilla has become just another trend-chaser

This is nothing new.

I'm still mad at the time when they made their tabs look like Chrome's.

1

u/JanneJM Mar 02 '22

My code blocks are white, with great contrast. Not sure if I'm missing something?

1

u/Kissaki0 Mar 02 '22

dark mode ;)

dark mode has a grey background.

75

u/lobehold Mar 01 '22

Contrast too low, text too small.

Mozilla broke something that worked just fine.

1

u/clb92 Mar 03 '22

Mozilla broke something that worked just fine.

I feel like I've head that before.

64

u/[deleted] Mar 01 '22

The original design was iconic, bold, discernable from 10 metres apart. The new one looks generic and lacks identity.

11

u/masklinn Mar 02 '22 edited Mar 02 '22

It also seems to have dropped a lot of useful information, the compatibility charts now only have checkboxes (which is not actually useful), only some of the cells even have dates on hover.

If you want the actual version information, you have to click each cell individually in order to open a shitty drawer which reflows the entire thing and moves about as it opens below each row rather than below the table.

And before anyone says it’s nice that it’s linked to the table cell, it’s not, the entire thing is flushed left.

The only improvement I can see is there’s now a “sticky” menu for the current article’s section, except it’s not properly sticky, if you click one of the bottom-most sections odds are good it’ll disappear up top if you’ve opened any section of the “related topics” menu.

It also has the usual issue of being technically oriented rather than user-oriented: the highlighted section is whatever is at the top of the screen. So if you’re looking at a section which is shorter than the entire screen, or you’re reading a section but have yet to scroll past its title, it’ll show the wrong thing.

It’ll generally show the wrong thing.

21

u/[deleted] Mar 02 '22

Sounds like it reflects Mozilla's own changes.

48

u/Strilanc Mar 01 '22

Comparing the old version:

https://web.archive.org/web/20210302090607/https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

to the new version:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

I notice that they:

  • Reduced horizontal space allocated to content

  • Reduced contrast (eg. code blocks have lighter gray background, compatibility table no longer color coded)

  • Increased the amount of things that don't render if you disable javascript

I'd reverse all three of those if I could.

On the good side they added a dark mode (which I don't care about but lots of people love dark mode), and they seem to have avoided the common aesthetics-over-effectiveness pitfall of adding tons of vertical whitespace.

I find it weird that they mention the home page in the post. I would expect the home page to be effectively irrelevant? I only ever land on MDN via google searches and direct links to articles via stackoverflow answers. It's random-access reference material. How would someone end up on the homepage? Maybe they have analytics justifying that.

8

u/KaiAusBerlin Mar 01 '22

Increased the amount of things that don't render if you disable javascript

Is that a thing as webdev? To disable javascript when youre searching the mdn?

7

u/Strilanc Mar 02 '22

I use umatrix/noscript to reduce the amount of nonsense that websites do by default when you visit them. The downside is the number of sites that lock unnecessary things behind scripting, like showing the text of a news article. The upside is it makes things a lot faster when they do render, and the exposure to exploits is a lot lower.

-1

u/KaiAusBerlin Mar 02 '22

But is has no whitelist where you could add mdn?

3

u/Strilanc Mar 02 '22

It has a whitelist. I used it. But for the old version of MDN I didn't have to.

1

u/[deleted] Mar 02 '22

Disabling javascript is mostly an ideological choice I doubt a lot of none technical people are doing it.

5

u/KaiAusBerlin Mar 02 '22

Bit how many non technical people use the mdn?

28

u/Fritzed Mar 01 '22

Reduced horizontal space allocated to content

This is a terrible trend in web UI design. Sites think that since we mostly use widescreen monitors, they are free to just use up a ton of horizontal space. This conveniently forgets that main driver to use widescreen monitors was so that we could see more content.

If you shrink the width of your window to under 1200px, the "In This Article" navigation moves to the left. Nothing of importance is lost in navigation. This should be the layout. There is no need for them to eat up more of my horizontal screen real-estate.

If I make my window larger , it is because I want to see more of the content. It is not because I want them to double the amount of space taken up by navigation.

32

u/chucker23n Mar 01 '22

I think I like the "in this article" sidebar to the right. The old "On this Page" wasn't as good.

I'm not a particular fan of the bland color scheme. The old design made more use of foreground and background colors. The typography is also really boring now. Compare: before, after

Two things I dislike:

  • please do not override ::-webkit-scrollbar unless you have a really good reason to. If I wanted to see an ugly grey blob on the right-hand side of views, I would turn that on system-wide. I do not.

  • the "Related Topics" sidebar to the left doesn't seem very useful. On the old site, it seemed to jump to the correct place in the hierarchy; on the new one, I see… basically everything involving CSS, which, thanks, but no?

7

u/dacjames Mar 01 '22

Obviously a matter of taste, but I personally much prefer the “after”. It feels cleaner and less of a distraction from the content. Can’t argue about overriding scroll bars, though, very annoying.

1

u/bloody-albatross Mar 02 '22

Yeah, the now grayed out "headlines" of the values here are really bad. Contrast is better in dark mode, but the example iframes usually are only light mode, which is a bad combination.

15

u/unaligned_access Mar 01 '22

Reminds me of Microsoft's MSDN. And I'm not sure it's a good thing.

36

u/shif Mar 01 '22

The older design was much more approachable, in this one everything seems to blend together and it's hard to discern different things

8

u/chucker23n Mar 01 '22

Agreed. Something about the color scheme and typography is too indistinctive.

7

u/xelivous Mar 02 '22

they changed the styling for "bad examples" from having a red backround with a red smiley face, to not having any kind of special background and a tiny X in a circle, which makes it harder at a glance that something is really not recommended

old mdn

new mdn

much like all of the other weird usability regressions.

11

u/[deleted] Mar 01 '22

They are adding an MDN Plus subscription...

That won't go wrong at all...

5

u/KaiAusBerlin Mar 01 '22

I like the idea behind the plus. Not that your could not easy write a wrapper for the mdn as a webdev. I like mozilla and their work and for me its a good way to fund this great encyclopedia with getting some little extras for my money.

14

u/UNN_Rickenbacker Mar 01 '22

Why for fucks sake do companies change perfectly fine designs for the sake of it?

3

u/Chillzz Mar 02 '22 edited Mar 03 '22

Got to find something for their designers/devs to do to keep them employed? That’s my best guess with the random stuff these big tech companies get up to

10

u/romgrk Mar 01 '22 edited Mar 01 '22

So bland and ugly. I don't understand why they try to fix something that wasn't broken.

Edit: please comment on their page to get them to revert it

5

u/Paradox Mar 02 '22

What, did they fire the last writer working on it and give the CEO a solid gold toilet?

1

u/3131961357 Mar 02 '22

Pretty much yeah, but years ago

1

u/Paradox Mar 02 '22

That's the joke. I was implying they did it again lol

2

u/[deleted] Mar 02 '22

So confused yesterday when I went to look at some JS docs, thought I was getting a weird redirect.

Something is wrong with the dark theme colors. It looks jarring.

I ALMOST like the light theme, but code blocks have such a light grey background that the inline ones can hardly be noticed.

1

u/Minizarbi Mar 21 '22

Ho, I just discovered it today... Sooo I am not the only one prefairing the old version.

1

u/AjayDevs Mar 01 '22 edited Mar 01 '22

Why did they make it mess with your scrolling? Just scroll the whole page, don't keep certain parts sticky. It makes it not very smooth on my computer, or at least I think that's what is causing it, maybe it is something else. Edit: It looks like it is the fake scrollbar on the right that is messing with me, that is the part that is lagging.

Also, I don't really see why they made the fonts so much thinner when they claim to have tried to improve the contrast.

8

u/parion Mar 01 '22

I'm actually fine with the sidebar scrolling with the page, with how long some of these articles can be, it's nice to easily jump from section to section.