it's really simpleI really need to learn Python. It’s just finding the time and energy.
it's really simpleI really need to learn Python. It’s just finding the time and energy.
Yes, please. I just want something to make. That's the easiest way to learn something newThen let's learn together! We need to get Deku in here too.
do a mastodon botYes, please. I just want something to make. That's the easiest way to learn something new
For the moment I don't know what to make
A bot that scans for deals and post them on Mastadon?do a mastodon bot
yeah, that would actually be extremely cool, and useful! you should totally do that!A bot that scans for deals and post them on Mastadon?
I'll look into ityeah, that would actually be extremely cool, and useful! you should totally do that!
awesomesauce! let me know if you have any questions (i did make that gaming news bot, after all, haha)I'll look into it
Python & AI go hand-in-hand, and I suspect that would guarantee you success in landing a job. AI is a vast unexplored space, everything is starting on the ground floor, it's caveman days. Any shmo can come up and make a big difference, or become the next God.I really need to find projects to do also in. python, something simple to teach myself but also to have a "start" of a portfolio to show now that I have to find a company.
Shell with (neo)vim has been my programming environment for close to 8 years now. Neovim comes with quite good defaults regarding basic behaviour, compared to vim. This doesn't get you some good tools, like searching project-wide (text, or files), a git blame to understand when and why a line was introduced, or making it connect to an LSP server. All these needs plugins, and configuration. I have a public configuration for these, but it might be quite opaque if you don't know what the options are doing. You might be better off searching for tutorials. In any case I'm sharing it: nvim/.config/nvim · master · Pau Ruiz Safont / dotfiles · GitLabAfter spending three weeks at a programming school doing the entrance exam to see if I should start there, I kind fell in love with the way they programmed. They only used shell and vim to do everything and all programming was done in C. While I might want to learn more gdscript I still would love to use shell and vim. Anyone have experience with customising stuff like that? I did install just a theme for it to make it look colorful lol. One can open gdscript files just fine but it doesn't have syntax support.
You should normally be able to use NeoVim with the command nvim from everywhere just like Vim.I installed neovim, but don't fully understand yet how things work, I have to run it from its proper folder where it installed, but I thought it would be more like vim that you can use everywhere?
assuming you are in linux, or macos, and you have installed neovim with some package manager, then you should haveI installed neovim, but don't fully understand yet how things work, I have to run it from its proper folder where it installed, but I thought it would be more like vim that you can use everywhere?
nvim
command available. I added alias, so that I can open it up with vim
. Neovim pretty much the same as vim anyhow. If you are a hardcore user you maybe can spot differences. otherwise the biggest difference is that configuring neovim you use lua instead of vimscript.if you are in macOS then maybe you are using zsh, then your configuration for it should be in the .zshrc file I think, or .bashrc if you are using bash.Ive been changing and installing so much in my terminal so now even aliases don't work lol, hmh is there a way to factory reset terminal in Mac?XD
For me, programming started with creating small websites that offered links to download emulators and ROMs. Back then, web development wasn't even considered real programming, and people would laugh if you said you were 'programming' a webpage.Im curious, how did you all "get" programming? I keep learning and learning and it still feels like I have no idea what hell I am doing. Im trying to solve problems for the course Im doing now and most of the time it feels like I don't even know where to begin.
What does your programming journey look like?
I'd be kind of curious to see an example problem in your coursework and give advice how I'd approach it or what sort of 'thing' you may be missing (is it knowledge of concepts, is it the way you're thinking about things, or are you simply worrying too much about an ideal solution?).Im curious, how did you all "get" programming? I keep learning and learning and it still feels like I have no idea what hell I am doing. Im trying to solve problems for the course Im doing now and most of the time it feels like I don't even know where to begin.
What does your programming journey look like?
The hints there, without any other context, are definitely confusing at first read! I think I see what they're trying to teach you though. This will be directly applicable to video game scripting / programming, if nothing else.low-G you're right, it happens a few times that I think something is going to be impossible to then see that it was pretty simple.XD Right now I am doing a problem where I have to write function for a voting program, that not only counts votes but has to eliminate the one with lowest votes, then take the second and thirst options in the ballot and recount until there is one clear winner.
Essentially these functions I have to write. Working on the tabulate one now.
bool vote(int voter, int rank, string name)
{
int i = 0;
while (i < candidate_count)
{
if(candidates[i].eliminated == false && strcmp(candidates[i].name,name == 0)
{
preferences[voter][rank] = i;
return true:
}
i++;
}
return false;
}
Thanks! Yeah I also missed one where I put : in stead of ; lolIf I'm reading this right (since i don't know the specification), you're storing the candidate index (position) in case it's still active in a matrix indexed by voter/rank ?
Also, you're missing a parenthesis between name and ==
Yeah and I can understand why that might take a while because they want you to learn specific lessons, based on those hints I can tell there's a certain data structure they're giving you which makes sense here too. These are important lessons.I was struggling almost two days trying to understand how to writer a certain function... only to conclude that is was kind of simple ! Or I think I have done it as its supposed to be, can't test the program before Ive written all functions.
C:bool vote(int voter, int rank, string name) { int i = 0; while (i < candidate_count) { if(candidates[i].eliminated == false && strcmp(candidates[i].name,name == 0) { preferences[voter][rank] = i; return true: } i++; } return false; }
void tabulate(void)
{
int i = 0;
int j = 0;
int c = 0;
while (i < voter_count)
{
while (j < 3)
{
c = preferences[i][j];
if (candidates[c].eliminated == false)
{
candidates[c].votes++;
break;
}
j++;
}
j = 0;
i++;
}
return;
}
}
The break exits the closest loop.Doesn't the break close the whole function? Wouldn't that make the function misbehave, but now it is like it just restarts the loop but with correct i value.
I suppose it depends a bit on what exactly you are asking from it.I do also realise that using chatgpt is not helping me at all to learn, that I'm just cheating myself.
Very true, I dunno if this is known everywhere but it's called 'rubber ducking'. Being forced to explain something to someone or something forces you to pay attention to every aspect of your problem and what resources you have -- that's something people almost never do naturally. It's a skill that you build up.I suppose it depends a bit on what exactly you are asking from it.
I would expect that some people would benefit greatly from having some programming concept "talked out" with them instead of just reading them from a documentation or something. A conversation with someone can help even if the other side of the conversation is a LLM bot.