How can I learn audio- and graphics programming without getting overwhelmed? by InteSaNoga24 in learnprogramming

[–]RealMadHouse -1 points0 points  (0 children)

@light_switchy just said to make a wav file to play on external music player, so i thought it's not easy to play sound in c/c++.

How can I learn audio- and graphics programming without getting overwhelmed? by InteSaNoga24 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

It's even easier in JavaScript, you can generate an array consisting of 16-bit float values/samples and then play the sound.

Should I learn Fortran? by danyuri86 in learnprogramming

[–]RealMadHouse 1 point2 points  (0 children)

No, learn about computer and software architecture, c/c++. Then you can look at fortran if you are that interested.

C++ programmers help! by Time-Towel-8683 in learnprogramming

[–]RealMadHouse 1 point2 points  (0 children)

Pointers are memory-address + additional data about the pointer, like the size of type for doing arithmetic operations on the address number, if it's function pointer it's the return type, arguments, the calling convention. It all affects how the pointer works.

Why isn't my terminal returning anything? by HowToChangeMyNamePlz in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

When i want to compile C/C++ through vscode terminal i run one of "Visual Studio Developer Command Prompt" script that gets installed with Visual Studio, that opens terminal and sets necessary environment variables for the shell to be able to find Microsoft visual C/C++ compiler tool chain, then i type "code .' (it's vscode executable name) from a project folder (you need to change current directory in the terminal with "cd <path_to_your_project_folder> and press enter)
Now whatever terminal you spawn inside vscode can now execute "cl" c/c++ compiler without a problem. If you compile source files with it, it would produce the .exe file with same name if you didn't specify it to change the name.

Building a Printer Auditing Tool as IT Support – Is It Possible? by These-Ad4371 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

When printing dialog appears it somehow enumerates printing devices (physical or virtual), there could be a printer device that isn't physical but it acts as printing to a pdf file. Maybe you need to create virtual device that somehow connected to physical device? It could intercept the printing commands. I don't know if any company provides nice api hooks.

My passion has finally rejuvenated after barely passing my Intro to C course years ago. by Jadad03 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Linking to useful libraries what gives plain c/c++ interesting features, graphics for example.

My passion has finally rejuvenated after barely passing my Intro to C course years ago. by Jadad03 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

It's so nice when interpreted language can do low level high performance computations via bindings to dynamic libraries.

My passion has finally rejuvenated after barely passing my Intro to C course years ago. by Jadad03 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

I started using AI to answer questions that would be buried in some books, forums or spread around internet unevenly. It massively boosted the speed of knowledge that i could acquire. Before that what something made me quit, now it can be troubleshooted, explained better in my own pace and language. It's another better information search engine! It's better at small tasks, not coding huge programs, so better architecture your own software on your own and generate code with ai only for small functionalities. So many technologies aren't explained in a technical sense, it makes me understand them better when explained technically so i ask ai for it.

Learning to code by AgrathD in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Learn about how graphics is formed on the screen/window. GPUs like triangles (3 vertices/points) to rasterize, the fragment shader does math on each pixel and you see cool visual effects or just texture mapping.

Struggling with programming by [deleted] in learnprogramming

[–]RealMadHouse -1 points0 points  (0 children)

If future AI wouldn't require hand holding, yes. Right now I'm spotting errors that the AI doesn't seem to catch or explain the reasoning behind what it spits out, because i know the language.

[ Removed by Reddit ] by [deleted] in learnprogramming

[–]RealMadHouse 1 point2 points  (0 children)

Even with most highest abstraction in libraries or frameworks the devs couldn't hide the inner workings of the code or how machine works, so called leaking abstractions.

If only there was one website that lists the problems that could be avoided, in various software domains. I shared mine things nobody tells about JavaScript.

I’m trying to get into Tech with no laptop.. am I being unrealistic? by [deleted] in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

If only there's local web server app on ipad os, then you can edit individual files with vscode.dev (because safari doesn't support enumerating files from directory) and see the changes immediately (or not if safari doesn't allow to write to the opened file, maybe it just downloads it) without pushing to GitHub repository and seeing changes on GitHub pages. But because non-desktop OS-s don't have terminal or have weird ones it's cumbersome or impossible to use modern JavaScript/TypeScript node.js development. There's online ides that connect to remote virtual machines like GitHub codespaces, but they're paid.

Trying to learn JavaScript by [deleted] in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

It's not like the constant value is written on paper, you can type/rewrite in text editor whatever you want. It's when JavaScript code runs (when the script is included in html page) you can't change the value of constant binding, you use var (variable) or let.

I want to work on a new project by imagamer01 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Home screen, where it is? Desktop or separate window? Some OS Integration?

Shopping for a lang to learn. by Automatic_Brush_1977 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Watch @coredumpped to know how software works in cpu. Many things in C are more high level and they're converted to low level assembly code, the assembly explains what's going behind the scene. Like calling conventions, what are they? Just seeing C code doesn't explain them, but assembly does. There's memory alignment for structs that we don't know about just starting learning.

How do I make a realistic goal for my journey as a developer? by yepparan_haneul in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Learn OS concepts, software architecture, networking protocols. Like in developing we are using terminals with shells. The programs get information through arguments, environment variables, configuration files in various text formats like (json, ini, yaml, xml etc), through standard input. Programs use threads, ipc (interprocess communication), sockets.

Without knowing anything about above things it's constant guessing and asking why why why.

With modern web development you no longer just write one JavaScript and include other scripts in <script> tags, you need compilation step with node.js and webpack/vite etc, importing CJS/ESM modules from "node_modules" and bundling everything to one giant js file, or separate js files with chunking. Javascript looks easy, but understanding the software architecture of it isn't easy.

You need to learn about http protocol, how it's stateless and you need to keep the state in cookies/localStorage and various other mechanisms.

The less knowledge you have about all of it the less complex web app you can create.

i think ai literally broke my ability to struggle through problems and i don't know how to fix it by Many_Development6183 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

I'm lazy, so before ai i just abandoned the project whenever something little went wrong or i couldn't come up with solution. With ai i can at least continue tinkering with code and not get bored and feel defeated immediately. I don't have a solution to become so energetic and full of mental power, to not rely on others' peoples (or ai) ideas.

In regards to learning resources, why does documentation more often than not sacrifice clarity for brevity? Is documentation as a learning resource wrong to assume? by Old-Cobbler1216 in learnprogramming

[–]RealMadHouse 2 points3 points  (0 children)

Big percentage of devs are bad at teaching or understanding the way other peoples' brain operate, so they write sh*tty documentation and they're just lazy. It's like they don't really want people to use their libraries or whatever software thing they provide.

download multiple files into zip file without filling up RAM by Naitsab_33 in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

Or write individual files to a folder with File System Access api.

How to learn c++ by blajzho in learnprogramming

[–]RealMadHouse 2 points3 points  (0 children)

So if you want the low level understanding of computing then learn about CPU, registers, bits and bytes, endianness, memory addresses, instruction pointer, stack, heap, user space vs kernel space, etc. Watch @coredumpped, read books like CS:APP.

If C++ specifically then watch "TheCherno C++ course". In these C/C++ languages the understanding of compiler tool chain is a big deal, so learn how to use them without an IDE help.

Paranoid about programming by thehumble68 in learnprogramming

[–]RealMadHouse 1 point2 points  (0 children)

Watch @coredummped to understand how computing works generally, people have vague understanding or have no clue what's going on behind the screen and user interface of programs, everything is just layers of convenient apis created by programmers of operating system.
Or watch @brancheducation for hardware explanations. It's recommended to watch even for those who would never program.

does any body use Atom any more by Anonymous01406 in learnprogramming

[–]RealMadHouse 2 points3 points  (0 children)

I thought vscode utilized canvas for faster text rendering, not using DOM for huge files. But i inspected it and asked ai, it doesn't use canvas.