Why is it a nightmare to write a ui in C?

Why is it a nightmare to write a ui in C?

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

UFOs Are A Psyop Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

  1. 4 weeks ago
    Anonymous

    Skill issue

    • 4 weeks ago
      Anonymous

      Okay show me the true skill? The best way i know of is win32 api

      • 4 weeks ago
        Anonymous

        Write your own API homosexual

      • 4 weeks ago
        Anonymous

        >windows
        It's much better on Linux.

        • 4 weeks ago
          Anonymous

          cope linux gui "apis" are dogwater

  2. 4 weeks ago
    Anonymous

    UIs are incoherently object oriented, in fact it is maybe the one single application where object orientation is a very good match.

    C has no object orientation. GTK bolts it on and it's awful.

    • 4 weeks ago
      Anonymous

      Actually, object orientation is cancerous to GUIs. There are better concepts.

      • 4 weeks ago
        Anonymous

        Such as?

        • 4 weeks ago
          Anonymous

          Immediate GUIs. Reactive GUIs. Both you can't find in highly OOP GUI toolkits like Qt, GTK, or WxWidgets.

          • 4 weeks ago
            Anonymous

            >Immediate GUIs
            Who needs processing efficiency anyway

          • 4 weeks ago
            Anonymous

            Immediate GUIs don't need to be inefficient. I made one that refreshes the screen only around when anything changes.

          • 4 weeks ago
            Anonymous

            Then it's not immediate. We need another name for these kinds of UIs.

          • 4 weeks ago
            Anonymous

            >Then it's not immediate.
            Not him but what makes it not immediate?

          • 4 weeks ago
            Anonymous

            it is immediate you dumb moron

          • 4 weeks ago
            Anonymous

            >Immediate GUIs don't need to be inefficient.
            They just seem to end up that way anyway. They're popular with people who don't understand GUI event models. You know, game programmers and webdevs.

            Imagine you have a GUI that offers the users a preview of an effect of doing something. Like adding two numbers. That makes little sense outside of a demo and is redundant with a calculator, but fore demonstration purposes it's great. So if you have numbers a and b (suppose they're user input fields) you can declare that "preview = a + b;" without having to register event listeners on the a and b input fields and have them update the preview label manually and basically having to write lots of code to get that done. You just declare "preview = a + b;".
            GUIs have often such annoying dependencies. Reactive programming just allows you to specify them decoratively even in much more complicated scenarios so this can be a relief.
            This is far beyond the "a button and a label are both objects you can manipulate" basic b***h moron bullshit.

            That's having an object/data model while pretending you don't. "Reactive" just means "we've hidden lots of Listeners around the place". A lot of traditional GUIs are done the same way (except without the fancy front-end compiler that does the hiding).

          • 4 weeks ago
            Anonymous

            >They just seem to end up that way anyway. They're popular with people who don't understand GUI event models. You know, game programmers and webdevs.
            I have a firm retained mode GUI background though.

          • 4 weeks ago
            Anonymous

            https://www.forrestthewoods.com/blog/proving-immediate-mode-guis-are-performant/
            yes because writing GUIs in js is performant

          • 4 weeks ago
            Anonymous

            >Reactive GUIs
            qrd?

          • 4 weeks ago
            Anonymous

            Imagine you have a GUI that offers the users a preview of an effect of doing something. Like adding two numbers. That makes little sense outside of a demo and is redundant with a calculator, but fore demonstration purposes it's great. So if you have numbers a and b (suppose they're user input fields) you can declare that "preview = a + b;" without having to register event listeners on the a and b input fields and have them update the preview label manually and basically having to write lots of code to get that done. You just declare "preview = a + b;".
            GUIs have often such annoying dependencies. Reactive programming just allows you to specify them decoratively even in much more complicated scenarios so this can be a relief.
            This is far beyond the "a button and a label are both objects you can manipulate" basic b***h moron bullshit.

          • 4 weeks ago
            Anonymous

            Just think of gaming UIs written in some 3D game engine that are textures and every click is registered fricking immediately (max. 1 frame delay). And now imagine it's running with 5000+ fps.

            Such UIs usually only exist in games as a byproduct, but there are niche applications, I'd assume.

          • 4 weeks ago
            Anonymous

            Ah, I stand corrected

            Imagine you have a GUI that offers the users a preview of an effect of doing something. Like adding two numbers. That makes little sense outside of a demo and is redundant with a calculator, but fore demonstration purposes it's great. So if you have numbers a and b (suppose they're user input fields) you can declare that "preview = a + b;" without having to register event listeners on the a and b input fields and have them update the preview label manually and basically having to write lots of code to get that done. You just declare "preview = a + b;".
            GUIs have often such annoying dependencies. Reactive programming just allows you to specify them decoratively even in much more complicated scenarios so this can be a relief.
            This is far beyond the "a button and a label are both objects you can manipulate" basic b***h moron bullshit.

          • 4 weeks ago
            Anonymous

            Ah, I stand corrected [...]

            Nuklear

            Again, they don't need to be implemented with constant updates. It's possible to implement them efficiently. It's just that immediate GUIs have been hogged by game devs, which need to update the screen every frame anyway.

          • 4 weeks ago
            Anonymous

            Nuklear

          • 4 weeks ago
            Anonymous

            >Immediate GUIs.
            Nice until you need to do a lot of stuff with them. Then they start to break down. That's been my experience with Dear ImGui. Its nature as an immediate mode GUI is nice for fast prototyping, but once you have to make something more serious you end up building a retained mode GUI on top of it and you just use Dear ImGui for the widgets and rendering management. It basically becomes more of an API for building your UI on.

        • 4 weeks ago
          Anonymous

          Grammar of Graphics

        • 4 weeks ago
          Anonymous

          https://github.com/Immediate-Mode-UI/Nuklear

  3. 4 weeks ago
    Anonymous

    no? windows has directx and on loonix you opengl or vulkan
    you make your own template then reuse as many times you want

  4. 4 weeks ago
    Anonymous

    Because C is a language for writing drivers and firmware for microcontrollers. It was never intended for UI development.

    • 4 weeks ago
      Anonymous

      show me a language that was

  5. 4 weeks ago
    Anonymous

    By the way, C is not used anywhere in real life. So your interest in this dead language makes you look like a first-year college student who is studying it on a programme.

    • 4 weeks ago
      Anonymous

      >nocoder babble
      I use it everyday
      t. embedded engineer

    • 4 weeks ago
      Anonymous

      I hope you are kidding bro. My friend makes six figures at Phoenix Technologies writing C all day.

    • 4 weeks ago
      Anonymous

      Seethe troony. C is king

    • 4 weeks ago
      Anonymous

      Obvious bait, C is everywhere in microcontrollers and embedded systems.

      • 4 weeks ago
        Anonymous

        Anon, even python is used in embedded systems now. We're not in the 90s anymore.

        • 4 weeks ago
          Anonymous

          Circuitpython and similar are (very useful) for hobby projects

        • 4 weeks ago
          Anonymous

          Maybe if you're a literal Arduino moron.

          • 4 weeks ago
            Anonymous

            >What do you mean Python is used in embedded?
            >STOP THE COUNT !!!!

          • 4 weeks ago
            Anonymous

            Literally where? Outside of Tarduino """"makers""".

        • 4 weeks ago
          Anonymous

          never seen any device in production that uses it.
          arduino hobby projects don't count.

  6. 4 weeks ago
    Anonymous

    Because UI's are worthless bloat.

  7. 4 weeks ago
    Anonymous

    Try creating a UI by writing bytes directly to /dev/fb0, it all makes sense and is much easier to do than using whatever convoluted framework

  8. 4 weeks ago
    Anonymous

    Because it's a nightmare to write regardless of language.
    Even if you import GTK in Python and use that to make a UI, which is arguably the most braindead simple way to make a UI, it will become a mess.
    It's just the way it is.

    • 4 weeks ago
      Anonymous

      *Graphical WYSIWYG IDEs make UI easy, and sometimes the auto-generated code for that ain't too bad either, but usually you're just trading on headache for the other.

    • 4 weeks ago
      Anonymous

      when do you think frontendgays will fix this shit

  9. 4 weeks ago
    Anonymous

    >'cord slop
    go back

    • 4 weeks ago
      Anonymous

      >go back
      You first anon, you know it's from discord because you use discord

      • 4 weeks ago
        Anonymous

        picrel says @everyone you have to be a frickin moron not to know thats 'cordslop

        • 4 weeks ago
          Anonymous

          >picrel says @everyone you have to be a frickin moron not to know thats 'cordslop
          >@everyone is discord exclusive
          How to say you're using discord without saying you're using discord
          Stop embarrassing yourself dumdum

        • 4 weeks ago
          Anonymous

          How old are you young man? 12?

  10. 4 weeks ago
    Anonymous

    ncurses?

  11. 4 weeks ago
    Anonymous

    this looks kind of interesting
    https://github.com/lc-soft/LCUI

    • 4 weeks ago
      Anonymous

      npm?

      • 4 weeks ago
        Anonymous

        is just package manager that can be used for other things than javascript.

  12. 4 weeks ago
    Anonymous

    >Why is it a nightmare to write a ui in C?
    Because you're doing it the gay way instead of trying immediate mode GUI.

  13. 4 weeks ago
    Anonymous

    C was "developed" before the concept of user or interface.

    • 4 weeks ago
      Anonymous

      nop
      unix and their multi user thing and such
      its not abt concepts
      its abt a lack of good libraries

      btw

      https://i.imgur.com/SaF5nSq.jpeg

      Why is it a nightmare to write a ui in C?

      have you tried SDL2, op?
      i tried it
      and i like it

    • 4 weeks ago
      Anonymous

      >C was "developed" before the concept of user or interface.
      GUIs are older than C. C shills make you think everyone working on computers in the 70s was moronic, but that's because you're only looking at C.

  14. 4 weeks ago
    Anonymous

    Everything is a nightmare to write if you use C.
    GUIs are actually easier to write in C than in C++, because it's way harder to fall for OOP memes and completely frick up your architecture.
    This guy is writing an actually high quality C GUI app from scratch: https://x.com/ryanjfleury/status/1747756219404779845
    Of course it's C so the chance that anybody else will be able to efficiently reuse that code in another project is zero. We might get a good debugger out of it, but we won't get a GUI toolkit.

    • 4 weeks ago
      Anonymous

      >look this guy sucks so its only normal that you do!
      skill issue

      • 4 weeks ago
        Anonymous

        Read the post again ESL kun. That GUI is great.

        • 4 weeks ago
          Anonymous

          >looks great
          doesnt mean the code isnt ass, cs student-kun

          • 4 weeks ago
            Anonymous

            ???

          • 4 weeks ago
            Anonymous

            yes
            maintainability and extensibility are very important in a codebase, anon-chan
            performance and visual presentation arent the only metrics by which a codebase is judged

          • 4 weeks ago
            Anonymous

            Why are you telling me this? I didn't say anything about the code being good or bad, and I definitely I didn't ask.

          • 4 weeks ago
            Anonymous

            you were complaining about gui related stuff inevitably becoming a tedious mess of spaghetti, no?
            welp, its a matter of interfacing. cant cut the matter otherwise

  15. 4 weeks ago
    Anonymous

    How do we reduce the friction between textual -> graphical?

    • 4 weeks ago
      Anonymous

      good interfaces, duh

    • 4 weeks ago
      Anonymous

      Take inspiration from Plan 9's UI. Specifically look at how ACME can treat plain text in the application as buttons, and how RIO lets programs overtake the terminal window.

  16. 4 weeks ago
    Anonymous

    sdl just works, the frick are you talking about ?

  17. 4 weeks ago
    Anonymous

    It really is not. GTK is pretty easy.

Your email address will not be published. Required fields are marked *