MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1qdztqr/number_to_number_map/
r/programminghorror • u/JeffTheMasterr • Jan 15 '26
I forked TinyFileManager and am editing it to my likings, and found this (I wrote "what the hell" but the rest was them):
11 comments sorted by
14
Presumably one is the font size shown in the UI, the other is the actual rendered font size. But is this a file manager or a text editor?
5 u/JeffTheMasterr Jan 16 '26 Both technically. You're probably right about what it does
5
Both technically. You're probably right about what it does
15
Even outside the context of fonts and UI scale. It is 1:1 now, but may not be in the future.
2
Looks like a set of font sizes.
i guess values in map could be adjusted according to some sort of scaling
Link to repo's line: https://github.com/prasathmani/tinyfilemanager/blob/master/tinyfilemanager.php#L5406-L5422
-1
The horror is over 50k line file.
2 u/JeffTheMasterr Jan 17 '26 Oh no it's 5k 3 u/theWildBananas Jan 17 '26 True, my bad. Doesn't make it much better though. 3 u/my_new_accoun1 Jan 16 '26 Is that 5k
Oh no it's 5k
3 u/theWildBananas Jan 17 '26 True, my bad. Doesn't make it much better though.
3
True, my bad. Doesn't make it much better though.
Is that 5k
0
[deleted] — view deleted comment
6 u/JeffTheMasterr Jan 15 '26 It is actually. I'm reverse engineering the 5000+ line file and it's got PHP, HTML, CSS, and JS all in it, and this part is probably for when viewing code files to change stuff.
6
It is actually. I'm reverse engineering the 5000+ line file and it's got PHP, HTML, CSS, and JS all in it, and this part is probably for when viewing code files to change stuff.
14
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Jan 16 '26
Presumably one is the font size shown in the UI, the other is the actual rendered font size. But is this a file manager or a text editor?
15
u/bartekltg Jan 16 '26
Even outside the context of fonts and UI scale. It is 1:1 now, but may not be in the future.
2
u/Nrksng_Nth Jan 17 '26
Looks like a set of font sizes.
2
u/k1ake Jan 17 '26
i guess values in map could be adjusted according to some sort of scaling
2
u/QuestionablyExistin Jan 20 '26
Link to repo's line: https://github.com/prasathmani/tinyfilemanager/blob/master/tinyfilemanager.php#L5406-L5422
-1
u/theWildBananas Jan 16 '26
The horror is over 50k line file.
0
u/[deleted] Jan 15 '26
[deleted] — view deleted comment