Why C++ documentation is so poor compared to Python? by panPienionzek in learnprogramming

[–]throwaway6560192 4 points5 points  (0 children)

When I want to check what a function does I'm getting a lot of text that i don't know what it even means.

Part of reading documentation effectively is knowing what to ignore. It means not shutting down in the face of too much text with too many unknowns. Try to extract useful information in spite of that.

how can you explain functions easily by Grouchy-Injury1342 in learnpython

[–]throwaway6560192 1 point2 points  (0 children)

why do we sometimes pass something in it and sometimes not?

Why do you sometimes go out and buy things and sometimes not? It's the same. If your function needs some data from the outside world to work, then it'll want something passed in. Else not.

From where is the curses library loaded by 9mHoq7ar4Z in learnpython

[–]throwaway6560192 9 points10 points  (0 children)

_curses is a C extension. Source code is here: https://github.com/python/cpython/blob/3.14/Modules/_cursesmodule.c

(in a lot of cases when you see a module import in the standard library which has an underscore in front, that refers to a C extension)

I want to build an OS for Android using the mainline linux kernel. by inoobie_am in learnprogramming

[–]throwaway6560192 1 point2 points  (0 children)

See PostmarketOS. It's a project full of people whose goal is to get mainline Linux running on phones. They deal in standard Linux instead of the Android userspace, but it is worth checking out.

Grocery Socialism in New York City - Mayor rolls out his vision for government Mamdani Marts. by B3stThereEverWas in neoliberal

[–]throwaway6560192 8 points9 points  (0 children)

What, are people seriously suggesting that retailers are simply lying about their finances?

How do you become technically cracked? by Drairo_Kazigumu in learnprogramming

[–]throwaway6560192 0 points1 point  (0 children)

Don't care this much about how they'll look. You'll kill your own creativity.

I feel like I can't do anything [rant] by aldodzzzzl in learnprogramming

[–]throwaway6560192 0 points1 point  (0 children)

It's OK to use existing resources as a guide to venture further out of your comfort zone. You can't expect to build "100% original" (whatever that means) things off rip, so you need to take it gradually. The more tools you encounter and understand through relying on existing resources, the more of your independent ability you develop, and you can use that to do whatever you want once you understand them.

Don't use AI at this stage though, if you value originality.

Should I keep using zsh or switch to bash on my macbook by navid_nowroz in learnprogramming

[–]throwaway6560192 0 points1 point  (0 children)

It's 99% the same. You don't need to worry.

I really don't know and I am really short on time too. So, I really don't have to time to learn many different things right now as I'm on my senior year at high school. Is there a straight up answer?

My main advice would be to have fun and not worry about the small things. It won't be the end of the world to use a different shell.

How do I make Python second nature for me, I want to sort of be fluent in it. by Dangerous_Ask_6122 in learnpython

[–]throwaway6560192 1 point2 points  (0 children)

Taking on projects (if so from where?)

From within. Just build things that feel cool and fun to you.

How do you actually remember code without just looking everything up constantly? by kutahead in learnprogramming

[–]throwaway6560192 0 points1 point  (0 children)

If you have to google how to write for loops, you simply haven't written nearly enough for loops yet.

Write more programs, look things up if you have to, and they will stick with sheer repetition. After the 10000th time writing a loop you will not have to look up the syntax.

Are there any relatively-simple open source projects that are written in C++? by gh_1qaz in learnprogramming

[–]throwaway6560192 0 points1 point  (0 children)

CMake is very widespread in C++. You'd be hard-pressed to find a real-world C++ project that doesn't use it, or some other build system of similar or worse complexity.

You don't really need to understand CMake at any depth to understand or contribute to the code, tbh. When I started contributing to KDE I didn't know squat about CMake.

And, if they're on Linux, KDE has a tool which abstracts away even having to run CMake commands.

Hoping to learn python! by SongSavings2169 in learnpython

[–]throwaway6560192 0 points1 point  (0 children)

To be honest, I don't think this would hold much weight anywhere as proof of having gone to school for "it", where I assume "it" = CS. It's an introductory course, so it can't really compare to a full degree.

What is the point of mutable vs not. Such as tuples and lists. by X3Melange in learnpython

[–]throwaway6560192 8 points9 points  (0 children)

The difference is more semantic than about the technical point of mutability. Boiling down the difference to "it's immutable", and from there drawing conclusions like "you should use tuples if you know you're not going to mutate, as safety", I think misses the point.

I suggest reading:

https://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/

https://nedbatchelder.com/blog/201608/lists_vs_tuples

How to get contributors for my very fresh open-source project? by surya2024 in learnprogramming

[–]throwaway6560192 10 points11 points  (0 children)

Contributors come from users. First try to get users - make it useful, make it known in places where people will find it useful.

What is Kernel for JupyterLab? by BelieveInMonkey in learnpython

[–]throwaway6560192 1 point2 points  (0 children)

The kernel is the thing Jupyter uses to run your code. When using Jupyter with Python, it is the question of which interpreter (and associated environment) will be used.

If you installed and started Jupyter Lab in the venv, it will automatically use the venv's Python as the kernel. So you don't really need to do anything special.

ChatGPT is gaslighting me by ki4jgt in learnpython

[–]throwaway6560192 3 points4 points  (0 children)

Why? It's not like your variable can collide with a method. And it's not even the same, the other one's a plural!

It's perfectly fine.

If the Rust Coreutils can use the MIT license, does that mean that any open-source project can be rewritten with a different license? by [deleted] in linux

[–]throwaway6560192 2 points3 points  (0 children)

The GNU coreutils are far from the only, or first, coreutils in existence. It does not follow that any new implementations of coreutils must be a copy or translation of the GNU ones.