Live data from Hacker News

An informal survey of z-index values found in the wild

psuter.net

11–20 of 30 posts

Re: An informal survey of z-index values found in the wild

#11
From the article :

> Perhaps you will succeed where I failed, and find a way to include in a chart the largest z-index value I found, namely 10^1242-1.

> Yes, that’s 1242 times the number 9.

Come on, I know maths are no longer needed to be a developer, but this is ridiculous.

Re: An informal survey of z-index values found in the wild

#12
post #11

From the article : > Perhaps you will succeed where I failed, and find a way to include in a chart the largest z-index value I found, namely 10^1242-1. > Yes, that’s 1242 times the number 9. Come on, I know maths are no longer needed to be a developer, but this is ridiculous.

Although the wording is ambiguous he probably (correctly) meant that the number is 1242 9's long: 999999... and not 9^1242 or 1242 x 9

Re: An informal survey of z-index values found in the wild

#13
post #12
post #11

From the article : > Perhaps you will succeed where I failed, and find a way to include in a chart the largest z-index value I found, namely 10^1242-1. > Yes, that’s 1242 times the number 9. Come on, I know maths are no longer needed to be a developer, but this is ridiculous.

Although the wording is ambiguous he probably (correctly) meant that the number is 1242 9's long: 999999... and not 9^1242 or 1242 x 9

Oh, I did not understand this way, but you are indeed correct. My bad.

Re: An informal survey of z-index values found in the wild

#14
Note: The following statements are for sake of argument and I realize that they are likely not practical.

I think is a result of the fact that styling is outside the domain of front-end software engineering. I don't mean this literally; clearly it is part of the job description. What I mean is that as a software engineer my primary skillset is in programming and CSS generally has very little to do with programming.

This is true semantically (CSS lacks good support for variables, functions, conditionals, etc.). However, it is also true in terms of of how designs are generally structured. For example, layout tends to be "I want exactly this spacing at this breakpoint and this spacing at this other breakpoint" instead of "I want the spacing to scale according to this equation of screen size".

Re: An informal survey of z-index values found in the wild

#15
post #12
post #11

From the article : > Perhaps you will succeed where I failed, and find a way to include in a chart the largest z-index value I found, namely 10^1242-1. > Yes, that’s 1242 times the number 9. Come on, I know maths are no longer needed to be a developer, but this is ridiculous.

Although the wording is ambiguous he probably (correctly) meant that the number is 1242 9's long: 999999... and not 9^1242 or 1242 x 9

I can totally see myself type a bunch of "9", then copy paste them a bunch of times in a moment of CSS layout induced rage :)

Re: An informal survey of z-index values found in the wild

#16
post #6

I would have liked to see the first graph in number order instead of rank. Being in rank order doesn't tell me much. Later is the graph with all numbers in number order, but I think that first graph with just the top 50 would be far more interesting in number order.

There you go: https://psuter.net/images/z-index-fig-1-alt-preview.png

Re: An informal survey of z-index values found in the wild

#17

This was fascinating, thanks. Made me think about why I used 99 as my max -- I think it's because back in the SNES days, all the RPGs used 99 as a limit.

Someone should do an anthropological study.

"Final Fantasy? The Enduring Influence of JRPGs on Web Development Practices."

Re: An informal survey of z-index values found in the wild

#18
post #16
post #6

I would have liked to see the first graph in number order instead of rank. Being in rank order doesn't tell me much. Later is the graph with all numbers in number order, but I think that first graph with just the top 50 would be far more interesting in number order.

There you go: https://psuter.net/images/z-index-fig-1-alt-preview.png

Has anyone tried calling the phone number used for a z-index in this chart? Seems like a very specific number to be used that many times. It would be amazing if the css was #ForAGoodTimeCall { z-index: 2147483647 }

Re: An informal survey of z-index values found in the wild

#19
> At rank 39, we have 8675309, which I personally didn’t recognize as being particularly noteworthy. However, with over half a million collected uses, it clearly is meaningful to many.

Is this value there due to some stock value in some well used piece of software such as a cookie notice plugin for Wordpress?

I had not realised this was a '42' grade special number before and I wonder how it is so popular in CSS.

Re: An informal survey of z-index values found in the wild

#20
post #16

Earlier quoted context omitted.

There you go: https://psuter.net/images/z-index-fig-1-alt-preview.png

Has anyone tried calling the phone number used for a z-index in this chart? Seems like a very specific number to be used that many times. It would be amazing if the css was #ForAGoodTimeCall { z-index: 2147483647 }

Max 32 bit signed integer in decimal.
Post reply on HN