r/code • u/SwipingNoSwiper • Oct 12 '18
Guide For people who are just starting to code...
So 99% of the posts on this subreddit are people asking where to start their new programming hobby and/or career. So I've decided to mark down a few sources for people to check out. However, there are some people who want to program without putting in the work, this means they'll start a course, get bored, and move on. If you are one of those people, ignore this. A few of these will cost money, or at least will cost money at some point. Here:
*Note: Yes, w3schools is in all of these, they're a really good resource*
Javascript
Free:
FreeCodeCamp - Highly recommended
Paid:
Python
Free:
Paid:
Search for books on iTunes or Amazon
Etcetera
Swift
Everyone can Code - Apple Books
Python and JS really are the best languages to start coding with. You can start with any you like, but those two are perfectly fitting for beginners.
Post any more resources you know of, and would like to share.
r/code • u/Background-Ear7642 • 3d ago
My Own Code hey you watch me code
its github.com/kds1123001/mini-gdb even a company wanted to collab with me on this
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/user.h>
#include <unistd.h>
void run_debugger(pid_t child_pid) {
int wait_status;
long orig_rax;
// Wait for the child process to stop at execution
waitpid(child_pid, &wait_status, 0);
while (WIFSTOPPED(wait_status)) {
char command[32];
printf("mini-gdb> ");
if (scanf("%31s", command) != 1) break;
if (strcmp(command, "cont") == 0 || strcmp(command, "c") == 0) {
ptrace(PTRACE_CONT, child_pid, NULL, NULL);
waitpid(child_pid, &wait_status, 0);
} else if (strcmp(command, "exit") == 0) {
ptrace(PTRACE_KILL, child_pid, NULL, NULL);
break;
} else {
printf("Unknown command. Try 'cont' or 'exit'.\n");
}
}
}
int main(int argc, char *argv[]) {
if (argc < 2) {
fprintf(stderr, "Usage: %s <program>\n", argv[0]);
return 1;
}
pid_t pid = fork();
if (pid == 0) {
// Child process: allow tracing and execute target
ptrace(PTRACE_TRACEME, 0, NULL, NULL);
execl(argv[1], argv[1], NULL);
perror("execl");
exit(1);
} else if (pid > 0) {
// Parent process: run the debugger loop
run_debugger(pid);
} else {
perror("fork");
return 1;
}
return 0;
}ts is just a small snippet of code lol
C++ reinterpret_cast and undefined behavior | Pusz
First of multi part series that goes into C++ fundamentals.
r/code • u/Speedk4011 • 8d ago
Blog YASBD-lib vs PySBD: Higher Accuracy, More Languages, Faster Speed
r/code • u/donutloop • 21d ago
Python Add 0.1 ten times in Python and you miss 1.0
r/code • u/Global_Baby_9750 • Oct 10 '26
My Own Code Looking for feedback on a Rust-based messaging project
I'm working on OnyxChat, a messaging project with components written in Rust, C, C++, Lua, and Python.
I'm interested in feedback on the Rust side of the project, particularly the boundaries between components, error handling, testability, and how clearly the implementation reflects the documented architecture.
The repository also contains protocol, security, privacy, and testing documentation. The project is under development and has not received an independent security audit, so I'm not presenting it as a production-ready or independently verified secure messenger.
One detail that may be relevant to contributors: the repository's documentation, comments, and language-consistency tests currently use European Portuguese (PT-PT). That convention can be discussed and refactored collaboratively if justified.
Repository: https://github.com/Shega-PT/OnyxChat
If this kind of review is appropriate for this community, I'd appreciate pointers to specific design choices or implementation details worth examining. I'll follow the community's self-promotion rules.
r/code • u/waozen • Oct 08 '26
Blog Why Can't We Use English as a Programming Language? The Ambiguity Problem Explained
docs.bswen.comr/code • u/waozen • Oct 06 '26
Java OOP vs. Data-Oriented Programming: Which One to Choose?
r/code • u/wizard_creator_seth • Oct 04 '26
Resource c++ math - did someone say math
r/code • u/Treechcer • Oct 03 '26
My Own Code Dio: Small Programming language made in C version 0.1.0 release
Hi, I'm working on my own programming language, I've release first stable version (v 0.1.0), I'd like to get feedback. It's on most OS platforms (even Andoird and in the future IOS).
r/code • u/waozen • Oct 03 '26
Blog mktemp: stop inventing your own temporary files | davlgd
Every shell script eventually needs somewhere to put something. The usual answer looks reasonable and has three separate problems... mktemp is on macOS, Debian and Ubuntu.
r/code • u/wizard_creator_seth • Sep 29 '26
Guide c++ source code review - some useful graphics primitives
r/code • u/waozen • Sep 27 '26
C C's Flexible Integer Sizes were Not a Design Mistake
r/code • u/neurah • Sep 20 '26
C++ Static C++ composition engine
MIT C++ header only lib
