I wrote this Format dialog back on a rainy Thursday morning at Microsoft in late 1994, I think it was.
We were porting the bajillion lines of code from the Windows95 user interface over to NT, and Format was just one of those areas where WindowsNT was different enough from Windows95 that we had to come up with some custom UI.
I got out a piece of paper and wrote down all the options and choices you could make with respect to formatting a disk, like filesystem, label, cluster size, compression, encryption, and so on.
Then I busted out VC++2.0 and used the Resource Editor to lay out a simple vertical stack of all the choices you had to make, in the approximate order you had to make. It wasn't elegant, but it would do until the elegant UI arrived.
That was some 30 years ago, and the dialog is still my temporary one from that Thursday morning, so be careful about checking in "temporary" solutions!
I also had to decide how much "cluster slack" would be too much, and that wound up constraining the format size of a FAT volume to 32GB. That limit was also an arbitrary choice that morning, and one that has stuck with us as a permanent side effect.
So remember... there are no "temporary" checkins :)
Follow me for more random code musings!
Nu går det att beställa Solroseffekten på Bokus!
Signerad kopia fixar du på Gamla Stans Bokhandel i Stockholm 24/2 kl 14-15. Eller under författarsamtal med mig den 1/3 kl 17, samma ställe!
https://t.co/hMepiV0BlX
En läkare efterfrågade syntetisk hud för skadade patienter i Ukraina. Jag har fått loss alla de små mängder som fanns i lager i SE och FI, bör räcka till ett par operationer. Men behöver ytterligare 18500 SEK för själva huden. Om någon vill bidra: https://t.co/Is5OreJrfh
Att Lena Wilderäng (@thewicked), som sitter i vårt expertråd, har ett stort engagemang i Ukraina, har knappast undgått någon.
Nu har Lena bloggat om bl.a. vårt projekt ”SAY IT” med ukrainska psykologförbundet (NPA).
https://t.co/4sRZGG2bQX
#StandwithUkraine 🇸🇪🇺🇦