I bought the game a while ago and am picking it up intermittently. I need some general help since I don't want to be spoiled.

>!1. I'm struggling deciphering a lot of things. I only got this far cuz I'm used to metroidvania's and am naturally curious enough when wandering. 2. The movement is kinda janky so when I can't move a certain direction, I assume its because the path is blocked (it wasn't and I had to turn). Now I waste my time trying to turn into corners that probably are just dead ends and am fighting random obstacles in an otherwise straight path 3. I'm always left with the feeling of now what after finishing something and the path forward is confusing.

Current Progress:

  • I got the red and green gems. I found my way back the quarry, I didn't think to use the mask there because I didn't know what it did.
  • I found the graveyard. Can I even explore there with my current progress? I also forgot how to go back there and idt the map shows how to get there.
  • I've unlocked most of the cards, except maybe 1 or 2. I don't know what the wells even do. I don't get what why in ruined atoll, I don't know why one section of the circuit (north-east parts) don't turn yellow in the map even though I activated it and wen to the library.!<
reddit.com
u/Proper_Meaning7756 — 5 days ago

What are some Rules of Thumb you use when writing programs in C?

I've been writing some nasty code lately and I've since learned to use fsanitize, Wall, Werror, etc. None of those have really changed HOW I write code, just helps me find out I goofed up sooner.

I've been trying to follow some guidelines like not using the heap, limiting pointer arithmetic, being careful with implicit conversions, not using the preprocessor at all, etc. They have, in some form or the other, greatly impacted my productivity because now I'm trying to satisfy arbitrary rules(I know they're not, but deadlines are real and I suck).

What are some rules you use to write good C code AND write said code quickly?

Anyways, heres an example of my latest screw up that sent me spiralling because of how stupid it was:

#include &lt;limits.h&gt;
#include &lt;stdint.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;math.h&gt;
#include &lt;string.h&gt;

typedef enum {NODETYPE_I64, NODETYPE_F64, NODETYPE_STR, NODETYPE_ERR} node_type;


typedef struct string{
    char* value;
    uint64_t size;
} string;

typedef union data{
    int64_t   data_i64;
    double    data_f64;
    string*   data_str;
}data;

typedef struct node{
    data value;
    struct node* next;
    node_type type;
} node;


// Right here in this function, I ended up returning pointers to variables that always end up going out of scope.
node new_node_str(char* input){
    uint64_t input_size= strlen(input);
    string str_value= (string){.value= input, .size= input_size}
    node result= {(data){.data_str= &amp;str_value}, (node*)(0), NODETYPE_STR};
    return result;
}

int main(){
    return 0;
}
reddit.com
u/Proper_Meaning7756 — 6 days ago
▲ 26 r/Zig

I want to learn Zig, but I'm worried about things breaking. What are the features that the team has agreed won't be changing anytime soon?

I'm an embedded systems guy and I'm pretty new at it. I wanted to dip my toes into Zig. I just wanted to know how much of the language is very unlikely to change.

I know things like async will change and I'm not at a skill level where I can easily learn to do that even with C/C++ anyway, so it doesn't bother me much. But the last thing I want is things like print statements, basic memory management or file handling itself to be radically changed.

Any heuristic on what subset is the safest to use right now so that skills carry over if I find myself picking it up more often?

Edit: Thanks for the answers. I'll be trying Zig slowly now, starting with the usual exercises of writing data structures, file manipulation and some basic algorithms in it.

reddit.com
u/Proper_Meaning7756 — 6 days ago

What really is the difference between instructions and logic from a mathematical perspective? They both occupy some binary space, they both contain "information".

Edit: My bad, I meant whats the difference between DATA and logic.

Context: I was writing a parser and dealing with LLVM IR and a slow descent into madness and then quit. This question just stuck with me.

Besides, when writing C++ classes, I you can store functions inside them and in Functional programming, you can store state using monads.

The lines starting to blur to me and knowing that logic boils down to instructions that the CPU understands and can operate on but data can't isn't the elegant answer I'm looking for.

I guess TLDR is what does information itself mean and does data and logic both count as information?

reddit.com
u/Proper_Meaning7756 — 6 days ago

I am building a polyrhythmic metronome + alarm clock combo device and wanted to use a 7 segment display for it. Is it recommended to fake the effect using LED's and a plastic cutout to fake the effect?

I'm really rusty and wanted a cheap way to test several ideas. One thing I knew was that I should be able to see it easily from roughly 3-4 feet away. Measuring my existing alarm clock and doing some armchair math gave me a rough dimensions of about 15-20cm long by 5-7.5cm tall.

I started looking for 7 segment displays that were thin, cheap and big. I couldn't find any that fit all these criteria. 7-segment displays that big were these fat boxes that would make integrating them into other devices kind of pointless, plus they weren't cheap. The rest were tiny and cheap.

So I thought of using LED's (maybe strips, or bulbs or whatever else I can get for cheap) and putting a cover on top of it with cutouts in the shape of a 7 segment display. One issue I noticed right away was that light started bleeding between the slots making the numbers hard to tell.

I plan to eventually get a friend to design a PCB for me once I get it right. Is this plan viable? I don't know what else to look for or test because all I have are the bulbs and not the strips or anything else.

reddit.com
u/Proper_Meaning7756 — 14 days ago

Help, I'm stuck in note-taking hell. How do I get out?

I took this to work, I took it to college, I tried using it everywhere. I spend more time setting up themes, extensions, structuring notes rather than actually writing notes.

I've spent god know how long trying to find the optimal setup for taking notes in obsidian (single large notes vs graph-view vs bases vs folders etc). I quit daily noting because I write it at the end of the day and forget or I have nothing to say because I wasted the day doing nothing.

Also, I'm jobless right now so I've been telling everyone how productive I am (incl myself) while spending most of my time jumping between stray thoughts and setting up obsidian to be just right.

Edit: Wonderful answers here and I think that there should be an official guide that includes this information. Enough people run into this issue that its probably going to be beneficial to teach new or returning users to disable everything and work their way towards whatever setup gets them to be more productive.

reddit.com
u/Proper_Meaning7756 — 15 days ago
▲ 1 r/AskProgramming+1 crossposts

I'm not that comfortable with programming. Which framework should I use to build a cross platform app to get a feel for it? (I wanted to make either a simple apple notes clone, or a calculator with 2D graphing)

Reason: I always wanted to build things I can actually touch, feel, interact with and share. Applications are the closest second to that for me right now. (Update: Cross platform because I wanna show people around me and get them to use it to make myself feel like I did something useful in life. I only use linux and macos, none of them do)

I know C somewhat okay (I used to do embedded systems work), I know enough C++ to know I'm too scared to use it, I don't know much python. I will be using AI to help me out anyways, but a relatively simple language that I can actually learn pretty quickly is better because I typically read, test and modify AI code frequently (And because I kinda wanna see fast results).

reddit.com
u/Proper_Meaning7756 — 18 days ago

I thought that heilung lyrics sound very indian in some parts (Othan especially). What do you think? Do you hear it too?

I know that the languages share a common root of the Proto-Indo-European languages, but the overlap is surprising and that makes me want to learn the languages and their history. Would make a wonderful story I think.

Edit: Othan sounds like the Shiva Thandava Rudram and I had such a hard time finding it because people sing it a little differently to what I'm used to hearing.

reddit.com
u/Proper_Meaning7756 — 19 days ago

I wrote a program that had an incorrect null terminator check on Ubuntu. What I saw was a little confusing and I couldn't replicate the behaviour on MacOs.

Edit: I should've added this at the start, but I know why the program didn't work and I did know what the fix was. I was just really scared and surprised that I was able to see my environmental variables like that. My bad for not being clearer about what I wanted.

#include&lt;stdio.h&gt;

int tokenize(char* token){
  while (*token!="\0"){ // comparison with "\0" was the mistake
    printf("%c", *token);
    token+=sizeof(char); // didn't know about incrementing pointers at the time
  }
  printf("\n");
  return 0;
}

int main(){
  char msg[]= "sin(x)+COs(y)=sqrt(2)";
  tokenize(msg);
  return 0;
}

I was stupid and was trying to be clever in a few places, and the code segfaulted, but not before printing this (sorry for the crappy output, my name was on it so I had to use some crappy image to text to rip out whatever I can so I can remove my name from it, but the output is worse). Was this a bug, or are these things intended to be there? I was told by someone that looked at my output that this was a call stack or the environment variables, but then why didn't this behaviour replicate on macos?

hello.c: In function "tokenize":

hello.c:5:18: warning: comparison between pointer and integer

5 l

while (\*token!= l0H

sin(x)+COs(y)=sqrt(2)o@eeste9/e0o7B6ene.s90/eoo@PeHeaotlece/eooebhoosssHeCeo6eweTh

yRecooReseeRessoReseSese8SeeeLSeeecSesoSeoeeSeeeeS•

20S00005000

Teos-TessSTeoo|T

teo/co000В6ow/co

Teeso\[esso\[сo00)

Heco/eccoseflece eflece/eecceHece/es08e0

060QocsoQeco%Roce8ReooLReso

\\e0Jee:\]e00QJeoseJoooo\]0oso\]0oc\]0oco\]eooo\]ooco\]ooo0\]oooR\~o00q\^co0o

•

0++200000\_000020000@esotee,Cootehx86\_64./helloSHELL=/btn/bashSESSION\_MANAGER=local/cringe\_name-OMEN-Laptop-15-en@xxx:e/tmp/.ICE-untx/2899,untx/cringe\_name-OMEN-Laptop-15-enxxx:/trp/.ICE-untx/2899

QT\_ACCESSIBILITY=1COLORTER/t-truecolorXDG\_CONFIG\_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdgXDG\_MENU\_PREFIX=gnome-GNOME\_DESKTOP\_SESSION\_TD=thts-ts-deprecatedCNOPE\_SHELL\_SESSION\_MODE=ubuntuSSH\_AUTH\_SOCK =/run/user/1098/keyring/sshNEMORY\_PRESSURE\_MRITE=c29tZSAyMDAwMDAgMjAMMDAwMAA=XHODIFIERS=@in=LbusDESKTOP\_SESSION=ubuntuGTK\_MODULES-gail:atk-bridgeDBUS\_STARTER\_BUS\_TVPE=sesstonPWD=/home/cringe\_name/Documents/Programming/CLOGNANE=cringe\_nameXDG\_SESSION\_DESKTOP=ubuntuXDG\_SESSION\_TYPE=x11GPG\_AGENT\_TNFO=/run/user/1608/gnupg/S.gpg-agent:6:1SYSTEND\_EXEC\_PTD=2899XAUTHORITY=/run/user /1098/gdm authorityWINDOWPATH=2HOPE=/hone/cringe\_nameUSERNAME=cringe\_nameLANG=en\_US.UTF-8LS\_COLORS=rs=8:di=01; 34: ln=01;36:nh=08:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:0г=40; 31;01:ml=00: su=37:4 :sg=30;43: ca=00: tw=30;42:o=34;42:st=37:44:ex-01; 32:\*. tar=01;31:\*, tgz=01;31:\* .arc=81;31:\*.ar j=01;31:\*. taz=01; 31:\*. Lha=81;31:\*.lz4-01;31:\*.Lzh-01;31:\*.Lzna-01;31:\*.tlz=01;31:\*. txz=01;31:+.tzo

\*=01;31:\*.t7z-01;31:\*.zip=01;31:\*.z-01;31:\*.dz=01;31:\*.gz=01;31:\*.Lrz=01;31:\*.lz=01;31:\*.lzo=01;31:\*.xz=01;31:\*.zst=01;31:\*.tzst-01;31:\*.bz2=01;31:\*.bz-01;31:\*.tbz=01;31:\*.tbz2=01;31:\*. tz=01;

31:\* .deb=01;31:\*.г-01;31:\*-jar=01;31:\*.маг=01;31:\*.ear=01;31:\*, sar=01;31:\* .rar=01;31:\*.alz=01;31:\*.ace=01;31:\*.z00=81;31:\*.cplo-81;31:\*.72-01;31:\*.r2=01;31:\*.cab=01;31:\*.win=01;31:\*. SWn=01

• ;31:\* dwm=01;31:\*-esd-01;31:\* avif=01;35:\* jpg=01; 35:\* . jpeg=01; 35:\*.njpg=01;35:\*-mjpeg=01; 35:\*. glf=01;35:\*. bmp=01; 35:\*- pbn-01; 35: \*-pgn-01; 35:\* - ppm-01;35:\*- tga=01:35: \*.xbm=01;35:\*. xpm=01;35:\* .tif=01;35:\*. tiff=01;35:\*-png-01;35:\*-svg=01;35: \* .svgz=01; 35: \*.mng=01; 35: \*.pcx=81; 35: \*. nov=01;35:\*. npg=01; 35: \*-npeg=01; 35: \*-m2v=01;35:\*.nkv=01;35:\*- webn-01;35:\*. webp=01:35: \*. ogm=01; 35:\*.mp4= 01;35:\* - m4v=01;35:\*-np4v=01; 35:\* - vob-01;35: \* -qt=01; 35: \* - nuv=81; 35: \* . Wm=81; 35: \* . asf=01; 35:\*. rn=01; 35: \* . rmvb=01;35: \*. flc=01;35:\*.avi=01;35:\*.flt-01;35:\*.flv=81;35:\*-gl=01;35:\*.dl=01;35: \*.xcf=

01; 35:\* . xwd=01;35:\* - yuv=01;35:\*- cgn-01;35: \* .enf =01; 35: \*. ogv=01;35:\*. ogx=01; 35: \*.8ac=00; 36:\*. au=00; 36:\*. fLac=00; 36: \*.n4a=00;36:\*.mid-00;36:\*.nidi-00;36:\*.nka=00;36:\*.mp3=00;36:\*.mpc=00; 36:\*.0 gg=00; 36:\* . ra=08;36:\*. wav=80;36:\* .oga-09;36:\* .opus-08; 36:\* .spx=00; 36:\* . xspf=00; 36:\*-=00;90: \*#=00;90:\*.bak=00;90:\*.crdownload=00;90:•.dpkg-dist=00;90:\*.dpkg-new=00;90:\*.dpkg-old=00;90:\*.dpkg-tmp=ee:90:\*.old=00:90:\*.orig-80:90:\*-part=00;90:\*.rej=00;98:\*- rpmnew=08;90:\*. rpnorlg=88;90:\*- rpnsave=80;90:\*. swp=00;90:\*. tnp=00;90:\*.ucf-dist=00;90:\*.ucf-new=00;90:\*.ucf-old=08;90: XDG\_CURREN \_DESKTOP=ubuntu: GNOMEMEMORY\_PRESSURE\_MATC=/sys/fs/cgroup/user.sltce/user-1000.sltce/user@1000.service/app.sltce/app-gnome|x2dsession\\x2dnanager.slice/gnome-sesston-nanager@ubuntu.service/n emory-pressureVTE\_VERSION=7688GNOME\_TERMINAL\_SCREEN=/org/gnome/Terninal/screen/072c8938\_3398\_48a3\_bcc8\_18b4a3c1d5aeLESSCLOSE=/usr/btn/lesspipe Xs NsXDG\_SESSION\_CLASS=userTERM=xtern-256colorL ESSOPEN=| /usr/bin/lesspipe %sUSER=crappy\_nameGNONE\_TERMINAL\_SERVICE=: 1.1642DISPLAY=:1SHLVL=1GSM\_SKIP\_SSH\_AGENT\_WORKAROUND=trueQT\_IM\_MODULE=tbusDBUS\_STARTER\_ADDRESS=untx:path=/run/user/1088/bus ,guid=375efa4e711b081abf4c28b569480446XDG\_RUNTIME\_DIR=/run/user/1000

Segmentation fault (core dumped)
reddit.com
u/Proper_Meaning7756 — 21 days ago

I'm kind of lost at the moment and I don't really know what I'm doing. How do you get out of that headspace?

I did my bachelors in ECE and graduated in 2025. I wanted to work on semiconductor design. I failed to do that and my skills atrophied since then. I'm stuck searching for software jobs and the market is terrible, plus I'm inexperienced and have struggled to get it and am hating software the more I work on it.

Right now, my skills are at their lowest point in the last 10 years and I can't really commit to any one thing because I'm forced to keep pushing in different directions (AI/ Embedded systems/ unpaid testing work/ cloud/ networking/etc).

reddit.com
u/Proper_Meaning7756 — 21 days ago

I'm an Electronics Engineer. I like working with hardware but I'm stuck exclusively working on software. What is Industrial Design like?

Basically the title. I graduated last year and was forced to get a job in programming. I don't hate coding but it gets tiring after a while. I looked at this sub and liked what I was seeing because in my head, this is closer to what I thought I'd be doing when I joined EE.

Whats ID like? Have any EE engineers branched out into it? What are job prospects and salaries like?

PS: I've jumped headfirst into various fads thinking that those are my interests and passions. That was a mistake and I'm not looking to repeat that.

Edit: Yes, I did read the community guide. Thats what got me very interested to begin with.

reddit.com
u/Proper_Meaning7756 — 22 days ago

How did you grow past your flaws?

I'm (24M) going through a crisis of everything right now. Lots of trouble with family, undoing the damage of having grown up as a problem child and trying to look out for my sister(12F) who's also being abused by my parents.

Having seen all that I have, I genuinely am struggling to even ask the right questions. But I wanted to tackle this one first. I'm sure at least some of you have had terrible childhoods, horrible parents, bad things you've done etc. How did you grow past all of that? How did you become a better person to yourself and your family?

PS: I'm leaving out so many details about my parents because this is probably not the place for people to complain about their parents and write 100 page essays about how horrible they are.

reddit.com
u/Proper_Meaning7756 — 24 days ago

I've (24M) been awkward around women for various reasons. How can you tell if I'm uncomfortable or creepy or nervous around you?

Followup: How do I know if you are uncomfortable around me? What can I do to stop it?

Growing up as a person has been difficult and I've made a lot of mistakes when it comes to personal relationships, be it friends or family. I've been feeling guilty about a lot of things lately and this is another one of them. I've been trying to keep distance if I can help it, and if not, I avoid eye contact or whatever else I can at that moment.

reddit.com
u/Proper_Meaning7756 — 25 days ago

Quit reading 6 years ago. Need recommendations for short books (&lt;400 pages, fiction) to get back into reading.

Basically what the title says.

I graduated from high school 6 years ago and since then, I've gotten addicted to short form content, scrolling, and generally anything with instant gratification or escape from boredom.

Now my ability to write and speak have regressed, my vocabulary is tiny compared to what it used to be and I'm just much lesser now because of it. I tried reading fellowship/dune/foundation and I have struggled hard.

I wanted to start small this time and see how that goes. Isaac asimov does have a few short stories, but I'd like to know others too.

reddit.com
u/Proper_Meaning7756 — 27 days ago

Quit reading 6 years ago. Need recommendations for short books (&lt;400 pages, fiction) to get back into reading.

Basically what the title says.

I graduated from high school 6 years ago and since then, I've gotten addicted to short form content, scrolling, and generally anything with instant gratification or escape from boredom.

Now my ability to write and speak have regressed, my vocabulary is tiny compared to what it used to be and I'm just much lesser now because of it. I tried reading fellowship/dune/foundation and I have struggled hard.

I wanted to start small this time and see how that goes. Isaac asimov does have a few short stories, but I'd like to know others too.

reddit.com
u/Proper_Meaning7756 — 27 days ago

What emotions does tool evoke for you? I'll go first

Theres this thing I've been trying to write for a while now and I've been listening to tools entire discography while doing it.

Nowadays theres a certain vibe I get from each member and each song. From Adam Jones I get the feeling of nostalgia (especially during No Quarter and Descending), I get the feeling of whimsical joy and energy when listening to Danny Careys parts (The openings of fear inoculum and invincible on the pads in particular) and Justins bass parts makes me feel like I'm growing up in some weird way. Maynards singing amplifies and enhances some aspect of each one of these feelings.

I'm trying to get a feel for how other people perceive tools music because its kind of the feeling I'm trying to emulate when writing. I don't intend to publish it because its the first time I'm writing something and I haven't really found a footing on how I'd like to write, but I know for sure what I want the reader to feel when they read.

reddit.com
u/Proper_Meaning7756 — 28 days ago

I think I'm playing the game wrong

I bought Half Life 1 and 2 a little over 2 years ago and have clocked in 4.6 hours total in the game which includes a bunch of retries.

I have seen the developer commentaries, I've seen the design videos, I've seen everything under the sun about how the game funnels you into the right path. Despite all that, I still seem to get lost all the time. Sometimes areas are dark or I associate red the color to not go a certain direction or something else and end up circling in the same corridors not knowing where to go. I didn't have trouble with silksong or tunic or other exploration games but I'm having way too much trouble with HL2.

Yes, I maybe kinda dumb but please help me because I don't want to have to see a playthrough to have to beat the game like I did for portal 2.

reddit.com
u/Proper_Meaning7756 — 1 month ago
▲ 2 r/AskProgramming+1 crossposts

Pitfalls when designing an MLIR dialect?

I was working on prototyping an algorithm for BFS and Shortest Paths and I got that working fairly quickly. I am now tasked with making an MLIR dialect that does the same thing and now I'm trying to architect a solution for it.

Notably, I don't know anything about MLIR, but I did dabble a little bit with LLVM before. The architecture is alien to me and Im spending a few days reading material on MLIR.

My trivial solution was to make a struct that stores nodes, their destinations and their weights. Basically just a roundabout way of making a 2D matrix. After a little reading, I don't think this solution would be very useful when making an MLIR frontend.

My question is, what pitfalls and general good practices should I be aware of when making MLIR dialects? I know that my initial design will come to bite me back later if I don't structure it right, but I generally have little idea on what makes for a good design and when a reasonable decision can become the wrong one.

PS: I know this isn't a topic thats ELI5 friendly, but a lot of the material is really verbose and hard to digest so a little dumbing down would help. I'm currently going through the MLIR beginner friendly tutorials and the main MLIR docs.

Edit:
I'll be sharing the project here when if and when I complete it as well as a toy language I was designing. I'd like to get some feedback but I'm very much still in the beginning phase of learning.

reddit.com
u/Proper_Meaning7756 — 1 month ago

What actually is a database?

I was looking at the definitions online and a database is always used interchangeably with DBMS and the ELI5 answers I've seen describe databases as a means of organising data in structured ways to make reading and writing data easy, safe and fast.

The extension of this logic to me is, shouldn't csv files count as databases too if you had a way to retrieve, modify and store data with the general ACID principles and whatnot? Googling that tells me that CSV files don't count because they only store raw data.

So then, are databases defined by the mechanism which data is handled? Doesn't that make any file a database as long as its implemented properly?

Edit:

Just wanted to add:

  • I'm using sqlite3 from python for my project. I come from an embedded systems background so I had to know the specifics of what I was working with.
  • The responses here seem a little mixed with some people agreeing that csv files with the proper wrappers would make a (terrible) database.
  • I think I get it now. The storage format is just a part of what makes a database and is not the database itself.

Edit 2:
u/StevenJOwens

u/esaule

u/LaughingIshikawa

u/rolfn

TLDR: These guys and some others answers honestly sum up a lot of the questions I had and a bit more I didn't know to ask. Thanks guys.

reddit.com
u/Proper_Meaning7756 — 2 months ago
▲ 2 r/macbookair+1 crossposts

Need recommendations for a macbook air sleeve

I bought a 13 inch M5 macbook air recently and I already have a 11 inch M2 iPad Pro. I could use some recommendations for a sleeve that can hold both. I live in India and feel that cloth is better than leather or rubber. I'm not quite sure which one to get after searching for a few days (I don't know what is good quality just by looking at it and the reviews seem suspicious).

My only real conditions are:

  • It should hold both devices
  • It should be able to last a long time in the hot and humid conditions I live in
  • Price isn't too much of a concern, but I'd prefer if its around the 2000-3000 Rs range
reddit.com
u/Proper_Meaning7756 — 2 months ago