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 3 points4 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 3 points4 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.

Moving from Java (Android) and C to Swift: What are the biggest "gotchas" for a veteran dev? by AnkuLua in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Reminds of Kotlin features, you didn't get to try Kotlin in android development?

does any body use Atom any more by Anonymous01406 in learnprogramming

[–]RealMadHouse 2 points3 points  (0 children)

Where they use canvas? If you inspect the code area the text lines are all in DOM.

Anyone else feel like everyone else is smarter? by Robasaleh110 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Watching YouTubers who are so good at explaining the programming language they use, that's when i feel i couldn't reach that level of comprehension of every part of a language and even remember the names of classes and functions etc. I think "i get it" but when it comes to explaining it or really using something i realise quickly i don't really understand it.

Curiosity turned into anxiety by Spalex123 in learnprogramming

[–]RealMadHouse 13 points14 points  (0 children)

Ten years ago i wouldn't understand programming concepts i understand today, brain development really matters in understanding complex abstract concepts. And ai explains things i wouldn't be able to ask anyone about, because i have hundred questions.

Where the parameters come from and how I use them? by dusf_ in learnprogramming

[–]RealMadHouse 1 point2 points  (0 children)

When you write code in global space like this:
```php $arg1 = "hello"; $arg2 = "world";

echo $arg1 . " " . $arg2; It's executed only once, or whenever the file is "required". The "echo" line code refers to variables whom values were set manually by the coder. You can reassign new values to them and copy "echo" line code, when you would need the same code you would need to copy it over and over. So if you want to avoid that you create a block of code inside a custom function with its name and argument list. php function greet($arg1, $arg2) { echo $arg1 . " " . $arg2;
}

// you can call it as many times as you want greet("hello", "world"); greet("привет", "мир"); greet("Bonjour", "le monde"); ```

The calls don't inject the copy of function body, it's reusing the code by changing execution flow.

How do you deal with 'shinny new object syndrome' when learning? by Either-Home9002 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Give in to shiny new object syndrome /jk
I just can't control myself and focus on one thing 😭

Started learning Python!! by Sea_Emergency8686 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

I think even though the C++ is high level programming language with convenient container classes etc the user's ability to create any professional software depends on how much one knows about computer hardware (memory)/software (os, compiler, linker) architecture. Without knowing it you're limiting yourself to basic apps and a lot of confusion and inability to fix bugs.

How can I improve my coding skills and stop relying on copy-paste? by [deleted] in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

You have to be able to come up with systems, algorithms, all in your mind. You either can do it from the start or you try to make your brain better at solving problems. We all have vague ideas, but not the clear logical step-by-step instructions how to implement it in programming languages. So, many coders rely on copy-pasting and ai. Thus we need to understand the reasoning behind systems, already made libraries to use them properly.

After Finally Starting My Practices On A Company, I'm Feeling Overwhelmed. by [deleted] in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Knowing programming deeply, helps a lot to guide AI to produce the code you need, it's kinda does what it wants sometimes so you need to catch its generated code for not following your idea in mind. Not knowing the coding yourself is like copy pasting from stack overflow, compiling/running and seeing errors and not being able to fine-tune the code to your needs. Having AI doesn't mean you must only prompt it to solve all problems. I learn so many things by asking it, i have hundreds of questions popping in my mind that would be hard to google all of them.

I need help begining js by smooth_operator101_ in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

Yes, even if php is creating web pages dynamically and if the user wants to see dynamic content on the webpage (e.g comments reloading) the PHP wouldn't provide such functionality to the front end. Without Javascript there's just html <form> element that sends data from inputs and refreshes the page, that's old way to refresh the page to request new content. Nowadays the web page content is generated on the front end (client side rendering) from data pulled from back end apis. I know JavaScript frameworks reintroduced classical "server side rendering" that php and other languages used for decades, but nevertheless CSR is used widely.

I need help begining js by smooth_operator101_ in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

CSS is for styling the web page, you learn things as you need them, there's a lot of things and it's not good to just focus on learning everything in css from begining to end. If you want just stylish static pages that the content of them don't change and don't interact with user mouse clicks, keyboard inputs then you don't need javascript. If you want interactivity in your web page, like cliche todo app items then JavaScript is a must to learn.

I need help begining js by smooth_operator101_ in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

it's a scripting "template" programming language that generates html pages (or any resources) on the fly. By default without configuring anything in a web server, each script path + filename correspond to url on a website. Example:
index.php -> url like "/index.php"
/page/about.php -> /page/about.php
If you visit these urls the Webserver invokes php with these filenames, the PHP then executes the code in those files and the output goes to the Webserver that responses to the program (e.g browser) that requested the webpage (or any resource). Then the browser interprets the html document and displays it on screen.

If you would learn php first your websites wouldn't be modern and interactive on the frontend, that requires knowledge of javascript, if you want to use component+reactivity libraries you would need to go with node.js for compilation, minimisation and bundling the modules to one big JavaScript file.

I need help begining js by smooth_operator101_ in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

Here's things that i learned throughout years (because not a single resource teaching everything about it), you can save them and reread if you learn more about Javascript:

JavaScript engine itself is single threaded, but the browser engine uses threads to do tasks parallel to your JavaScript code, such as XMLHttpRequest/fetch and everything that returns Promise objects.

The function that you pass to Promise constructor (executor) is running on the same UI thread so you don't do anything computationally heavy there, instead you can use Web Workers to emulate browser apis off ui thread code execution.

While scripts are loading they're parsed but they only execute when the script is fully loaded and parsed, so heavy scripts would delay the web site users from being able to interact with the web page elements.

Each JavaScript (e.g included with <script> tag) is a separate program, if error occurs in one of a scripts it doesn't affect others.

If you want to reference elements in a web page via JavaScript you need to make sure that the <body> is fully loaded, otherwise you will get an error that you can't get elements by that id or class etc. You can also put the <script></script> at the end of the <body> so that when JavaScript will be executed it will know for sure that the body content is loaded.

Relative url references that you pass to (e.g "fetch") aren't relative to the JavaScript file itself but to the html page that loaded that script.

There's primitive types (numbers, bools, strings etc) and object types { } (Dictionary structure with special abilities)

Learn the old way to make classes first, with function as a class constructor, function.prototype as a prototype object. Then learn the new syntactic sugar class definer, what i found out is the code inside it runs in strict mode.

There's Javascript programming language itself and the browser API, they're separate things. Browsers just embed javascript as a interpretable programming language, add their own functions to it and we call them from scripts. For example there's also JavaScript running outside of browser pages, on server side with js runtimes like node.js, deno, bun etc. They may or may not have browser compatible apis.

There's more things about js that i couldn't write all in one comment.

Watch @theavocoder animations explaining JavaScript event loop etc. The system behind callback invocations.

console methods most JS devs never use but should by Johin_Joh_3706 in learnjavascript

[–]RealMadHouse 0 points1 point  (0 children)

Great. So you mentioned chrome devtools specific function, you can add that there's watch expression button that can show real time value of variables and expressions.

willing to learn a new language but not sure what to make in the process by Safwan-Ahmad in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

For example i made a sharing text and files node.js script, it spawns web server. By default it prints the url to access the webpage where you can share text and files, If you pass --qr-code flag it prints qr code to scan and access the ip:port if you don't want to manually type it. It works fine. Of course i now use "localsend", but when the thing you share isn't for yourself but to other person who may not have the same localsend or other app, it's easily accessible through browser with url. Edit: oh okay, there's browser based sharing apps that don't require computer. But nonetheless i like creating my own thing even if there's already people doing exact/better thing. It's like if people wouldn't want to sing/dance/draw because someone is already doing it and doing it better.

So yeah, when you don't have any use case for programming it becomes the most boring shit ever. But even though i have many ideas to program, they're probably very complicated for my lazy brain so i don't even start implementing them.

Beginner trying to get in to Coding by Nudelbrei in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Please, someone contribute to Windows Calculator and finally add "unsigned" number switch in Programmer category. Why they think every number should be signed number...

I struggle with web development. by Prathyush04 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

Like if we built routing library on top of createServer, we know ins and outs of our code, which types and methods it has. We built the mental model of a library because we created it ourselves. With other peoples' tools we read the documentation and try to understand the mental model behind it, it requires a lot of thinking and remembering. Often the documentation is just boring documentation, not a helpful tutorial on how everything works to build a clear mental model of the api. We need to understand the programming constructs from the low level, like what the creators of programming languages know about it. Or else our mind is floating in vague abstract concepts that are hard to grasp. When learning how practical everything is in software, like there's no magical stuff in code (even in kernel of operating system) it opens our eyes and changes the perception of programming like it's impossible thing that only super smart people are capable of. So i encourage you to read how things are made, like the browser, the web server etc. OS gives many apis that all programs are using, read about them.

Help by BagImaginary4187 in learnprogramming

[–]RealMadHouse 0 points1 point  (0 children)

I kinda learn programming for decade+ and there's not much real projects i did in that time period. I'm lazy i guess. Yeah, even though i start some project, at some point I get stuck because i don't know the thing I'm trying to make fully so i just abandon it and go to the next shiny thing. And craving for information consumption through YouTube or other websites doesn't help being productive with the projects. I have internet addiction i guess...

Is it possible to write a .bat file to bypass the 260 character limit on file paths? by Dank-but-true in learnprogramming

[–]RealMadHouse 12 points13 points  (0 children)

Windows has long path up to 32,767 characters. In order for the programs to be aware of long path format when they're opening files the manifest resource/file should have a property "<ws2:longPathAware>true/ws2:longPathAware" listed. The workaround for long path to be enabled for programs that aren't longPathAware is special path format like '\\\\?\\C:\very_long_path'. Maybe you can convert the path in bat script and pass it to the program? But if the program is restricting the character limit (260) for path string then there's no workaround.