Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated

Name: Anonymous 2014-07-27 0:20

https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/Scrollbar.cpp
https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/win/ScrollbarThemeWin.cpp
Let's reinvent the fucking scrollbar, which every goddamn platform with a UI already has, and make it behave subtly different from the native one!

Right-click a native scrollbar in some other app:
- Scroll Here
- Top
- Bottom
- Page Up
- Page Down
- Scroll Up
- Scroll Down

Right-click a scrollbar in Chrome:
- Back
- Forward
- Reload
- Save As...
...

Right-click a scrollbar in Firefox and Opera:
Absolutely fucking nothing happens!

What the fuck!? How did these terminally retarded idiots get involved in creating one of the most important pieces of software to the average user?

Name: Cudder !cXCudderUE 2016-03-12 18:51

>>849
That is not mine... and I wouldn't even want to call it mine.

https://github.com/lexborisov/myhtml/blob/master/source/myhtml/tokenizer.c

Holy. Fucking. Shit. :facepalm: :facepalm: :visagearecaceae:

Over 2K lines of C spread across half a dozen files just to implement an HTML tokeniser!? Mine is less than 768 lines of x86 Asm, in one file. What sort of - dogmatic - insanity causes someone to turn a reasonably simple state machine that would most sanely be implemented as a single switch into a bloody mess of several dozen functions with massive code duplication? This is like copy-paste coding taken to the next level. A lot of what I wrote about Hubbub (NetSurf)'s tokeniser in >>549 applies to this abomination too, including the several-dozen-character-long variable names, horrificly duplicated EOF checking every-fucking-where, and allocating (and freeing) on every goddamn token the thing processes.

The most amusing part is there is not a single switch statement anywhere!!!

This level of bloatyness is only slightly reasonable if he was being paid per line of code.

Newer Posts