Live data from Hacker News

If you want to create a button from scratch, you must first create the universe

madcampos.dev

101–110 of 144 posts

Re: If you want to create a button from scratch, you must first create the universe

#101
Before opening the article, I thought it's about a shirt buttons and it reminded me one of my favourite thought experiments:

Imagine everything man-made suddenly disappears but not the knowledge individuals carry. How long until we have an iPhone (or a plastic shirt button)? Would it even be any faster than the first time around?

Re: If you want to create a button from scratch, you must first create the universe

#102

Thought this was a reference to this parody https://youtu.be/xE9W9Ghe4Jk?is=wmaIJ6LXNW-mZ49Q

Hilarious, the software industry is a parody of itself. Sadly I understood most of the jargon, a sign that I'm in way too deep. Time to step away from the madness of crowds, and return to monkey. Press to restart.

Re: If you want to create a button from scratch, you must first create the universe

#103
post #101

Before opening the article, I thought it's about a shirt buttons and it reminded me one of my favourite thought experiments: Imagine everything man-made suddenly disappears but not the knowledge individuals carry. How long until we have an iPhone (or a plastic shirt button)? Would it even be any faster than the first time around?

John Plant has been working to get to the Iron Age for eleven years, but he's doing it for the lulz.

https://www.youtube.com/@primitivetechnology9550/videos

Re: If you want to create a button from scratch, you must first create the universe

#104

I sometimes wonder how much slower technological progression would have been, if we hadn't taken whatever widget engine any given OS gave us, and instead constantly debated over and recreated every feature in the OS, like we do with web interfaces. The crazies part is that when we actually research it, a default button is about 20% faster than the the flat nonsense we've settled on ( https://www.theregister.com/offbe…

This is really an Apple thing, rigidly enforcing whatever their current OS aesthetic looks like. But Apple (or Xerox) invented the UI paradigms we're still living with. Look at the progress of Flash/AIR AS3 as an embedded runtime prior to its annihilation. By 2010 or so, it had the capability to leverage the GPU on pretty much any device, directly uploading bitmaps and shaders. It had garbage collection as good as or…

> But Apple (or Xerox) invented the UI paradigms we're still living with.

Others invented plenty of UI paradigms before Apple: swiping, skeomorphism, etc.

Re: If you want to create a button from scratch, you must first create the universe

#105

I sometimes wonder how much slower technological progression would have been, if we hadn't taken whatever widget engine any given OS gave us, and instead constantly debated over and recreated every feature in the OS, like we do with web interfaces. The crazies part is that when we actually research it, a default button is about 20% faster than the the flat nonsense we've settled on ( https://www.theregister.com/offbe…

This is really an Apple thing, rigidly enforcing whatever their current OS aesthetic looks like. But Apple (or Xerox) invented the UI paradigms we're still living with. Look at the progress of Flash/AIR AS3 as an embedded runtime prior to its annihilation. By 2010 or so, it had the capability to leverage the GPU on pretty much any device, directly uploading bitmaps and shaders. It had garbage collection as good as or…

> By 2010 or so, it had the capability to leverage the GPU on pretty much any device

If your device was running Windows sure. On Linux, Flash absolutely sucked with 100% CPU usage to render the most basic still image and on Android it was kind of similar.

Re: If you want to create a button from scratch, you must first create the universe

#106

I sometimes wonder how much slower technological progression would have been, if we hadn't taken whatever widget engine any given OS gave us, and instead constantly debated over and recreated every feature in the OS, like we do with web interfaces. The crazies part is that when we actually research it, a default button is about 20% faster than the the flat nonsense we've settled on ( https://www.theregister.com/offbe…

This is really an Apple thing, rigidly enforcing whatever their current OS aesthetic looks like. But Apple (or Xerox) invented the UI paradigms we're still living with. Look at the progress of Flash/AIR AS3 as an embedded runtime prior to its annihilation. By 2010 or so, it had the capability to leverage the GPU on pretty much any device, directly uploading bitmaps and shaders. It had garbage collection as good as or…

> except for one: It was closed source.

Two, it was not responsive. It was written for fixed sizes with keyboards and mice. Not portrait displays with touch screens, nor AR/VR displays with pointers/hands, and for resolutions of the day, not reflowing / resizing to fit the user's device

Re: If you want to create a button from scratch, you must first create the universe

#107
post #101

Before opening the article, I thought it's about a shirt buttons and it reminded me one of my favourite thought experiments: Imagine everything man-made suddenly disappears but not the knowledge individuals carry. How long until we have an iPhone (or a plastic shirt button)? Would it even be any faster than the first time around?

I've always wanted to write a "How to make a peanut butter and jelly" cookbook that starts with "okay, first you're going to need to find a stalk of wheat that's ready to seed, but don't worry about germinating it because we'll do that in the next chapter.

Re: If you want to create a button from scratch, you must first create the universe

#109

I find this cute and amusing, having had to write buttons in assembly language in the 80s, drawing the buttons into video memory using blits.

I did something similar in win16/32 at one point. Think we wanted something special with graphics on the button.

We basically had to recreate all of the actions of focus/unfocus/etc. Everything a normal button could do. Now that I have done more stuff I a know for a fact I made my life way harder than it should have been and could have subclassed. But it was a full button recreation. Styling messaging and all. You have to watch for things like what if someone clicks outside of your button but lets go inside the button. What does that mean? All sorts of weird side effects. What if your button has focus and someone starts typing? What if someone clicks outside of your button but holds the button down as they slide across your button? What does that look like?

Would I ever do it again. Probably not. Seriously use the built in ones.

Re: If you want to create a button from scratch, you must first create the universe

#110

My understanding is Apple / Webkit is blocking custom element extension on native HTML elements, which would cut down this 500 line monster to: class SaganButton extends HTMLButtonElement { … } Anyone know the reasoning they’re blocking this?

But why bother when you can just use ?
Post reply on HN