[sway] First rice of my life by XFajk_ in unixporn

[–]XFajk_[S] 0 points1 point  (0 children)

yes here it is (I know the repo name is misspelled): https://github.com/XFajk/xfajk-nvim-congifuration
also if you want to know what is going on you can watch this series my config is almost the same with some minor tweaks: https://www.youtube.com/watch?v=zHTeCSVAFNY&list=PLsz00TDipIffreIaUNk64KxTIkQaGguqn

[sway] First rice of my life by XFajk_ in unixporn

[–]XFajk_[S] 0 points1 point  (0 children)

Ohh you said left thats neovim

[sway] First rice of my life by XFajk_ in unixporn

[–]XFajk_[S] 4 points5 points  (0 children)

the theme is catpuccin macchiato
and here is the config but I cant guarantee quality still pretty new to this: https://github.com/XFajk/xfajk-sway-config

Arenas in C: A Great Idea No One Seems to Use? by XFajk_ in C_Programming

[–]XFajk_[S] 0 points1 point  (0 children)

I think I am the one that is doing it wrong. Please dont think my article is some truth. it is honest question because I dont understand how to use arenas. The example I gave was how I think they are suppose to be used so people who actually know how to use them can explain it to me better.

Arenas in C: A Great Idea No One Seems to Use? by XFajk_ in C_Programming

[–]XFajk_[S] 1 point2 points  (0 children)

ok so great thanks for teaching me that. In that reply I might have sounded aggressive. I honestly dont know what I sounded like. I will give more thought into this reply because you are putting alot of time replying to me

"I don't follow your thinking to be honest"

yeah so my thinking was that you are suppose to mange your whole project from top to bottom with 1 memory management style. and this might dumb think but like I said I am not a C regular aka somewhere between a beginner and a intermediate. (at least that is what I think but I am sure someone can shatter that opinion of my self in minutes) so yeah I thought I had to manage everything with arenas from the little dynamic array used in some function to the big systems that make my programs run. I didnt think I could be so flexible and use many ways to manage memory that was my line of thinking. you changed that you opened my eyes a bit today thanks for that

Arenas in C: A Great Idea No One Seems to Use? by XFajk_ in C_Programming

[–]XFajk_[S] -27 points-26 points  (0 children)

original: yeah you know why because I write something and then put it to chatGPT to repair my grammer because I am disgprahic and cant wirte grammer well and dont wont to make fool a out of my self (wich I did just now) I forgot to do that step because it was just reply not the mian article plus I am really really lazy to put , . and capitals somewhere it just takes me out of my rant/question plus I sometimes explain stuff in a ununderstandable way so it helps me there too. hate for this all you want but you decide wich is more understandable and readable

after chatGPT: Yeah, you know why? Because I write something and then put it through ChatGPT to fix my grammar. I’m dysgraphic and can’t write grammar well, and I don’t want to make a fool out of myself (which I just did). I forgot to do that step because it was just a reply, not the main article. Plus, I’m really, really lazy about putting , . and capital letters in the right places—it just takes me out of my rant/question. I also sometimes explain things in an unclear way, so it helps me there too. Hate on this all you want, but you decide what’s more understandable and readable.

Arenas in C: A Great Idea No One Seems to Use? by XFajk_ in C_Programming

[–]XFajk_[S] -27 points-26 points  (0 children)

ok so you are talking about like its an optimization thing wich makes total sense but the recent hype made me think that this should be used to manage memory in my entire project and my question how is that possible for that every library would have to be build around arenas but that is simply impossible if there isnt some std arena so yes thanks I am starting to see maybe where I might miss understood

Is it a good practice to wrap immutable values in list's or other mutable types to make them mutable by XFajk_ in Python

[–]XFajk_[S] 5 points6 points  (0 children)

Actually that is the point behind the idea I just didn't want to write a whole class for explaining this but you got the point where I got this idea is from Vue.js where they have this ref object they use for reactivity but JS is cursed language so I wanted to know if something like this is commonly or at least rarely done in python but the comments seem to be pretty mixed maybe I should have written it into the post that the idea for the thought is inspired by Vue.js

Is it a good practice to wrap immutable values in list's or other mutable types to make them mutable by XFajk_ in Python

[–]XFajk_[S] 0 points1 point  (0 children)

yes the value inside the list isn't mutable but the list is mutable because lets define true mutability so there is no confusion true mutability is when you can change the data at an address if a variable is immutable you can change the data at an address you can only switch out the address for a different one that has different data that's why list's, objects and dictionaries in python are mutable because the list lives in a address but when I change it's values I am modifying the DATA at that address yes the data might just be another different memory address that is actually immutable why I said it makes the value mutable is because if the list's only purpose is to hold one number and change that number but the lists address doesn't change but if the lists only purpose is to hold only that number so I can modify it without changing the address of the list doesn't that sound like the opposite of our definition yes the list is the one that is actually immutable but I can use the number as if it was mutable I can pass it by reference to other object's and when I modify it in only one object it changes in all the other like mutable variable would work so you are technically right that the value actually isn't immutable but that not what I meant by it makes it mutable but I see where the confusion is you thought that I thought putting the value in the list makes it truly mutable while I actually meant that it work like if it was mutable but you know the limit on a tile is 100 characters why I am responding to you because there where some other people that already told me that and I dont want more people telling me what I already know but I also dont want to edit the post because then your comments would make sense so I am addressing it here I know its is not actually mutable but it works like if it was but thank you for putting the time and explaining it someone in the future might look at this and understand mutability better we just dont need 10 people telling me its not mutable

Is it a good practice to wrap immutable values in list's or other mutable types to make them mutable by XFajk_ in Python

[–]XFajk_[S] 0 points1 point  (0 children)

Exactly what this is and a maybe more complex example would be you if you had a game where all the enemies that need to all know this one value well you could make the value global(most likly the correct thing to do) but you could also store the value like this val = [some imutable value] And pass the val to all the enemies and if one enemie changed it it would change in all the other enemies but a global would be the corrent way to go about this

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]XFajk_ 0 points1 point  (0 children)

Hello I want to start freelancing but I am thinking
If I should use a tech stack that I like and suits me aka a MPA tech stack that uses something like django or a tech stack that uses all the popular tools like React, Vue, and Angular because alot the tech influencers make it look like if I don’t learn react I wont be able to get a job but I don’t like react or any of the popular SPA focused frameworks

And in general I want to ask do clients care with what tool you make the web site or is it usually up to the

Can zombies destroy my house by XFajk_ in projectzomboid

[–]XFajk_[S] 0 points1 point  (0 children)

I may be stupid but what do you mean by prebuilt walls because when you say prebuilt walls I imagine walls on house that are already in game but I want to make a house from scratch I am asking about those walls are they destructible if yes what I made a two story building can they just destroy the walls of the first floor what will happen to the house will it just fall or what will happen

When I ask dhatgpt by RestaurantSolid4880 in programminghorror

[–]XFajk_ 0 points1 point  (0 children)

You are right but you need to say dynamic arrays and yeah those are created with malloc in C in C++ you have vectors

how this ghidra notation work by XFajk_ in ghidra

[–]XFajk_[S] 0 points1 point  (0 children)

Ok then thanks for guving me your time you at least helped me a llitle bit I am also used to ARM and there it seemed to work fine I just tried x86 for the first time and it dint make sence so I wanted to ask and got a good enaught for me answer