Programming thread

  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
what language should i learn? i know the very basics of c++, i would rather ask people than google it :^
There's worse books:

1774058734467.png
 
not really writing anything, ive been just thinking about learning a new language
Careful saying that sort of thing around here, you'll have a bunch of turbo-nerds recommending that you learn some archaic language that most people have never heard of and has little practical use in the modern world. Anyway, have you considered PostScript? It's the language that printers speak, the heart and soul of PDF's, and the reason why Times (New) Roman, Courier (New), and Helvetiva (Arial) are the three fonts that everybody knows.
 
Imma say what everyone else is too chickenshit to:

HASKELL

Edit: You faggots know I'm right
It's not a bad recommendation, the issue is just that it's going to have a big impact.

Either:
1. all other languages will seem trivial/underpowered, OR
2. all other languages will seem sane/approachable

Possibly both at once.
 
Imma say what everyone else is too chickenshit to:

HASKELL
I've a question.

The first contract I ever got was to implement an infrastructural macroeconomics model. Its original form was a long human-readable text and a set of tables with figures like expenses per year, created jobs, commodity prices, route capacity and current throughput, salaries, inflation, life expectancy, accident stats, etc. The text said how to calculate each and every parameter, several hundred of them, eventually resulting in one figure: "this is how how much we gain from building this railroad, therefore we will break even in 25 years total". They also provided an excel file with these formulas badly implemented (a few typos in the excel formulas, a typo in the text of the original executive order, and several instances of forgetting to stretch a cell range), for reference.

The way I'm reading it, functional programming + static typing + lazy evaluation would've solved this out of the box. Is this correct?
 
I've a question.

The first contract I ever got was to implement an infrastructural macroeconomics model. Its original form was a long human-readable text and a set of tables with figures like expenses per year, created jobs, commodity prices, route capacity and current throughput, salaries, inflation, life expectancy, accident stats, etc. The text said how to calculate each and every parameter, several hundred of them, eventually resulting in one figure: "this is how how much we gain from building this railroad, therefore we will break even in 25 years total". They also provided an excel file with these formulas badly implemented (a few typos in the excel formulas, a typo in the text of the original executive order, and several instances of forgetting to stretch a cell range), for reference.

The way I'm reading it, functional programming + static typing + lazy evaluation would've solved this out of the box. Is this correct?
Sounds like it, yes. FP is a lot like directly writing out a spec.
 
I've been thinking about creating a windows app for a while, that needs a UI. Mostly on the internet it's people telling me that I should use Flutter or Electron or just another self contained WebApp to make said app, but I really don't want to do that, if possible I'd like to do something small and fast, and use C, my main problem is, are there any good C GUI Framework for Windows? Or do I need to use C++ or C#?
 
Last edited:
I've been thinking about creating a windows app for a while, that needs a UI. Mostly on the internet it's people telling me that I should use Flutter or Electron or just another self contained WebApp to make said app, but I really don't want to do that, if possible I'd like to do something small and fast, and use C, my main problem is, is there are good C GUI Framework for Windows? Or do I need to use C++ or C#?
you can use winapi itself
you can use nuklear.h (kinda like imgui)
you can use microui (recommended)
you can use raygui (i dont really recommend it but its an option)

if you want a big boy library theres also gtk
 
I've been thinking about creating a windows app for a while, that needs a UI. Mostly on the internet it's people telling me that I should use Flutter or Electron or just another self contained WebApp to make said app, but I really don't want to do that, if possible I'd like to do something small and fast, and use C, my main problem is, is there are good C GUI Framework for Windows? Or do I need to use C++ or C#?
would sdl not suffice? im not well learned on actual app development (most of the stuff i make are webapps) and only just started looking into lowlevel design and implementation of gui on the actual machine but sdl2 has seemed fairly simple to me
 
would sdl not suffice? im not well learned on actual app development (most of the stuff i make are webapps) and only just started looking into lowlevel design and implementation of gui on the actual machine but sdl2 has seemed fairly simple to me
SDL doesn't provide out of the box mechanisms for building a UI. You'd be fully responsible for implementing layout and tracking bounding boxes and interactions states for widgets. You'd also have to deal with the minutia of how those widgets interact based on screen position and scaling according to system DPI.
 
you can use winapi itself
you can use nuklear.h (kinda like imgui)
you can use microui (recommended)
you can use raygui (i dont really recommend it but its an option)

if you want a big boy library theres also gtk
Thanks, Nuklear looks like a great pick, MicroUI is a bit too barebones, as long as the app I'm making doesn't hit 25mb I'm happy.
 
are there any good C GUI Framework for Windows?
There is only one good answer and that is Win32. With the other options listed by some in response to your post, you will eventually run in to accessibility issues and have to reinvent the wheel. The API might be a bit archaic (not per se bad!), but asking your favorite LLM for some guidance will get you there.
 
Back
Top Bottom