/g/ - Technology

install openbsd

[Make a Post]
[X]





GUI 101 Nanonymous No.2519 [D][U][F][S][L][A][C] >>2521 >>2529 >>2552 >>2630 >>2644
File: f1c402f8db14a8d7547c3634ce22416919672bd0705fd47404b11d93151723ef.jpg (dl) (76.34 KiB)

GUI programming is easy as fuck. You just need to not be an obvlivious lazy shithead

Format:
>How it should be
<What actually happens

>The user operates in milliseconds. Not hundreds-thousands of milliseconds. 20ms or less
<Hurr durr your system is slow just get a new computer bruh
<t. fag who thinks he has a fast computer because a hamburger menu only takes 1000ms to open

>Have hotkeys for pretty much everything
<Hamburger menu and shit that has no hotkeys and makes you wait 3 seconds before showing the contents of the menu

>Don't have shithead surprise functionality
<Booting bloated grub3 in library
<Have "nigger" as one of the boot entries
<spam enter key so niggers behind me don't see it
<system speaker beeps 5 times

>Opening a new window should happen instantly. The window will be grey box until the program loads and paints to it (needs WM support). If you can actually see the box it means the program is shit
<You click the button to open your shitty bloated file or web browser and nothing happens, so you continue working in your text editor while waiting for it to load, then the window you requested finally opens while you're typing and gets fucked up

>Don't have a single program instance if you can't even fucking do it right
<Firecuck stays open in the background after you close it. If you try to reopen firecuck in this situation, it will make you wait a few seconds, then show a popup saying "firecuck is already open". WELL THANKS FOR NOTHING SHITHEAD

>If your disk really is as fucking slow as modern software makes it look, stuff like the text editor, image viewer, and file browser (all of which should be tiny) should be in memory at all times
<Takes 30 seconds to start any "minimal" file browser after boot
<Windows superfetch bullshit doesn't work because it tries to be smart instead of having an explicit list of programs to be cached, and they're all bloated and either waste entire RAM or knock each other out

>LCD screens are incapable of displaying animations. There is literally no way to show animated content in a non-retarded way for 99.9999% of users. Stop fucking trying
<Slide tabs across the screen, which become blurry, juddery, and unreadable
<Bonus points to every program which has one or more of the following: no vsync, input lag, judder, user is not allowed to press buttons while waiting for the animation to end

>It's completely unacceptable for a GUI to freeze for over a second. If you need disk access or something else that's slow as fuck, it should be done in motherfucking parallel
<Program freezes for multiple seconds while loading some retarded shit from disk or IPC. even just to open a menu (it's 2019 after all)

Webshit
>I don't fucking care if your website has cookies. I already knew it did in 1990. Fuck your privacy policy, I don't give a shit about your claims, don't waste 1/3 of the page telling me all this bullshit. Fuck your popups
<"CONCENT FORM". really...
<https://www.popsci.com/consent.php?redirect=https%3a%2f%2fwww.popsci.com%2fheavy-metals-baby-food
<needs JS to load the "consent" button
<I don't care if your manager or some retarded regulator asked you to put this here. Punch them in the face

>Don't be a retard fuck
<Firecuck makes you wait for a round trip to the server before letting you choose where to save the file
<Firecuck had a "disable popups" option that never fucking worked, and they finally removed it after 15-20 years

Omitting JS points because everyone already hates it

Nanonymous No.2520 [D]

forgot another point under

>Don't be a[n] [absolute] retard fuck[head] [with 40 cocks up your ass]
<Firefux doesn't let you choose where to save a file in certain cases (for example if it's a PDF). It just goes to downloads instead of the subfolder i just saved 10 other files to

Nanonymous No.2521 [D] >>2676

>>2519
The problem with GUI programming is that it's unnecessary for the vast majority of tasks. Unless what you're doing involves images or video, GUIs are mostly useless.
The second problem comes from the fact that all GUI frameworks in existence, even the "minimal" ones, are bloated pieces of shit which attempt to force "object oriented" models of doing things even where it's not necessary. Instead of having this retarded "object", just have a simple integer, similar to a UNIX-style file descriptor, which can be used in place of an "object" and let the GUI library take care of managing the "objects".
Why in the absolute fuck do you need objects when you can use a simple integer in its place? Useless trash.

Nanonymous No.2522 [D]

Focus stealing.

Nanonymous No.2523 [D]

Opera was a gr8 web browser but it's now owned by chinks.

All the big projects are FOSS, and FOSS is run by soyboys and trannies now, so expect retardation from those projects.

Nanonymous No.2524 [D] >>2525

>The second problem comes from the fact that all GUI frameworks in existence, even the "minimal" ones, are bloated pieces of shit
this

Nanonymous No.2525 [D]

>>2524
I guess more people need to learn to code.

Nanonymous No.2529 [D] >>2530 >>2641

>>2519
The EU has a cookie law requiring consent.

Nanonymous No.2530 [D] >>2533

>>2529
I didn't consent to being spammed with spurious messages regarding shit that I've already blocked.

Nanonymous No.2533 [D] >>2630

>>2530
There's a firefox addon to block the cookie warnings. it works bretty good

Nanonymous No.2552 [D] >>2648

>>2519
<Have "nigger" as one of the boot entries
You did this to yourself.

Nanonymous No.2630 [D] >>2632

>>2519
<I don't care if your manager or some retarded regulator asked you to put this here. Punch them in the face
>>2533
Ads aren't a real problem when you have JS disabled (how the fuck can you even browse otherwise). These retarded headers and footers literally caused more of a problem for me than any ad in the last 15 years. Also now every website has some gay fucking spaced out font so both of these gayshits combined mean you can only read one paragraph before you have to scroll down.
Even ignoring the footers that JScucks are able to hide, who the fuck thought it was a good idea to make these retarded modern layouts that make it impossible to read anything more than one sentence before you close the page?

Nanonymous No.2632 [D] >>2635

>>2630
Economy. You need to employ people since there are so many of them.

Nanonymous No.2635 [D] >>2642

>>2632
This is the dumbest thing I've read in a long time.

Nanonymous No.2640 [D] >>2641

How about you actually stop visiting nigger-tier websites instead of crying about cookie notices.
When you see a cookie banner, just never visit the site ever again.

Nanonymous No.2641 [D]

>>2640
That would be every website, retard. See >>2529

Nanonymous No.2642 [D]

>>2635
Think about it for a minute.

Nanonymous No.2644 [D] >>2645 >>2680

>>2519 Homo sapeins can't react in 3 ms, or 0.003 second. Human beings need at least 0.3 or 0.4 seconds to react.

Nanonymous No.2645 [D] >>2646

>>2644 Homo sapeins -> Homo sapiens

Nanonymous No.2646 [D]

>>2645 OP said 20ms but it is not quite different to 3ms.

Nanonymous No.2647 [D]

some measure of reaction time recorded in some experiment doesn't apply. for example lots of temporal effects translate into the spatial domain: e.g an with an object moving across the screen on an LCD on a 144Hz monitor, if the pixel transitions are taking longer than than 6.99ms, you will see trails on the edges of the moving objects. program latency isn't all about reaction times

Nanonymous No.2648 [D]

>>2552
>just don't do that
just stop calling yourself a programmer

Nanonymous No.2675 [D] >>2676

This is because you do not understand the basic idea: maintain the code. The whole “UNIX-like code based on functions / procedures” becomes very shitty when there is one oop-like task, which involves an understanding of polymorphism (not only the principle, but also as the GRASP pattern), etc.

Nanonymous No.2676 [D][U][F]
File: 51abdb45143bc732c15ddfda72ff978208b1107a128cddcc9bcb872efe0e08a1.svg (dl) (6.70 KiB)

>>2521
>>2675


Nanonymous No.2680 [D]

>>2644
Wrong. Reaction time for people who aren't fucking retards averages 12ms to 17ms. It's while console shit is shit and games are over-optimized for normalfags with shit reflexes and thought processes.