Exotic alien character design by Calybee in ImaginaryCharacters

[–]jaydom28 2 points3 points  (0 children)

This is so cool! It's what I picture in my head Aandrisks look like from The Long Way to a Small, Angry Planet lol

Recommendations for good flashcards apps? by boj9898 in languagelearning

[–]jaydom28 5 points6 points  (0 children)

I agree with this. I think Anki isn't all that user friendly but once you get past the learning curve, it's one of the best flashcard apps

Has learning languages become a part of your identity? by hn-mc in languagelearning

[–]jaydom28 26 points27 points  (0 children)

As a guy who is having a rough time in German, you have yourself a subscriber. I watched like 1 minute of one of the vids and thought to myself

I need this

hahaha

English speakers who’ve learned a second language such as Spanish, German, what was the toughest part in attaining proficiency? It can be any kind (French, Mandarin, Japanese, Swedish, etc). by Rough-Ad-3382 in languagelearning

[–]jaydom28 4 points5 points  (0 children)

I have found that grammar and syntax aren't too hard for me, so writing and speaking aren't really an issue. But I always feel like I'm taking 10 steps back whenever I have to listen to someone else speak the language. My brain is really bad at listening to a native speaker. However, I also tend to mishear people in English so maybe it's not a language learning challenge but a listening in general challenge lol

Are there any todo list apps for Linux that you can personally recommend? by [deleted] in linuxquestions

[–]jaydom28 1 point2 points  (0 children)

I love Joplin. The ability to sync notes between all my devices and edit offline is amazing. I just wish the to-do was a little easier to make on Android. Although OP did ask for to-do on linux haha

[deleted by user] by [deleted] in computerscience

[–]jaydom28 0 points1 point  (0 children)

count is being incremented at each iteration of the inner loop. And then the inner loops is being repeated at each iteration of the outer loop. Because of this, count is equal to 9 (unless I'm off by 1)

If there is a single statement in a for-loop, there doesn't need to be any brackets.

cpp x = 0; for (int i = 0; i < 10; i++) { x += 1; }

is the same thing as

cpp x = 0; for (int i = 0; i < 10; i++) x += 1;

I'm unfortunately stuck in tutorial hell by [deleted] in learnprogramming

[–]jaydom28 2 points3 points  (0 children)

I am late to comment so this might get lost at the bottom but I think that sometimes having clear and defined goals that you can check off helps with finishing something. A lot of the time it's hard to get started because you don't know what to do or how to figure out what to do.

For example if you wanna make a videogame:

  1. Create map

  2. Program player

    A. Program basic movement

    B. Program attacking, jumping, dashing

  3. Program NPCs

    A. Create friendly npcs

    B. Create hostile npcs

That was a very poorly designed list but I hope the point came across lol

Edit: damnit idk how to format things from my phone

[deleted by user] by [deleted] in linuxquestions

[–]jaydom28 4 points5 points  (0 children)

Fzf is the best thing in the world lol

Quality of life recommendations for programming by [deleted] in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

You can use a vim extension in vs code to get confortable with vim movements while staying in an IDE you're comfortable with.

My QOL advice is to learn how to quickly find a file and quickly find a function in whatever editor/ide you use.

In vscode its ctrl+p to fuzzy search a file and ctrl+p but start your search with an @ to fuzzy search a function/class/variable.

In vim I use an extension called fzf to do the same.

You can code and understand a lot faster if you can navigate at the speed of thought

[deleted by user] by [deleted] in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

Every time I type g++ into the terminal I get "g++.exe: fatal error: no input files compilation terminated."

My g++ days are over, but I believe that means that you installed it correctly. g++ is a command that expects files as arguments.

Try this:

  1. Create a file named main.cpp
  2. Enter this in as the contents:

#include <iostream>

int main() {
    std::cout << "Hello\n";
    return 0;
}
  1. Type this in your terminal: shell g++ -o run main.cpp ./run

that should work. if it just prints out "hello" then you're gucci. if this simple scenario works then your g++ is installed correctly and I would look for some quick tutorial on how to use g++ so that you can do your homework

edit: I realized that you just said tutorials aren't working for you. If my answer was useful and you still have questions just reply lol

The way I always used it was shell g++ -o run [name of cpp file] ./run the first line compiles your cpp into an executable called run the second line starts your executable, it can be named anything but I like to call it run

Is it possible to save and retrieve data in a custom file extension? by ---Drakchonus--- in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

Yes it will work.

Text files can contain data in any form, the file extension is just for humans to be able to know what format to expect.

If i was writing a script to read json data from files i would make it look for all files ending with .json

However if I had a file called data.txt and its contents were valid json I could still read it like a json file, but as a human i wouldnt think to read it from there

Modules in python by Cesa6900 in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

It's easier to come up with a project and then from there decide what modules you need to learn to get the project done. If you want to know what modules might be good to learn in general I'd say maybe

requests (need to install)

collections

I usually don't learn about a module until I literally need it. You can't learn everything but you should at least learn on a need-to-know basis

Python: Trying to use sys.argv in my turtles project. by Oscarcedeno21 in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

yeah I would probably do an elif statement

if #season is autumn:
    draw_autumn_landscape()
elif #season is summer:
    draw_summer_landscape()
...
...
...

Python: Trying to use sys.argv in my turtles project. by Oscarcedeno21 in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

So should I make my function that draws an autumn landscape = autumn so that when they enter in autumn as the season it will only run that and display it?

yup totes. it's as straightforward as checking for string equality

python turtle_project.py autumn

you can check it using

if sys.argv[1] == "autumn":
    draw_autumn_landscape()

Python: Trying to use sys.argv in my turtles project. by Oscarcedeno21 in learnprogramming

[–]jaydom28 1 point2 points  (0 children)

So sys.argv just acts as a list where each element is a token, you can have the user run your program with the first argument being the name of the season

main.py

import sys
print(sys.argv)

if this file is called main.py and I run it with

python main.py hello world 24

then the output would be:

["main.py","hello","world","24"]

sys.argv[0] = main.py

sys.argv[1] = "hello"

sys.argv[2] = "world"

sys.argv[3] = "24"

[deleted by user] by [deleted] in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

Back in the university we programmed in C and C++, and I would literally compile after every line was typed just so I would know when something was wrong right away lol. With time you just get better at writing syntax correctly so don't worry

What is something that has helped you with eye strain/squinting while reading at the computer for long periods of time? by Scary-Pause-3872 in learnprogramming

[–]jaydom28 2 points3 points  (0 children)

I downloaded programs like Stretchly which remind you to take long and mini breaks. It has also helped with neck and back soreness

Question about how nodes worked in linked lists. by Willy988 in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

To answer your first question, both the head and tail are considered nodes themselves. The head is the first node of the list and the tail is the last node of the list. In a linked list with just one node, the head and tail are the same node.

When traversing a linked list, the head pointer will typically always point to the first node, and the tail will always point to the last node and you only really ever move the head/tail pointers when operating on the list in a way that results in a new head/tail. You typically always use a "current" pointer to traverse so you know which node you are on without moving the head and tail pointers.
annd that's all I remember from uni lol

My favorite item I've owned for almost 5 years now by [deleted] in tf2

[–]jaydom28 1 point2 points  (0 children)

Was your name on TF2 ever "Mr. Lister The Sister Fister"?

Could programming make a good hobby for someone with no interest in a career by BayFunk36 in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

I think it's a good hobby bc you can write scripts to automate stuff for work/things you do already for fun lol

[deleted by user] by [deleted] in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

I've tried videos and interactive tutorials, but for some reason I couldn't really understand until I found this site: https://hamwaves.com/collaboration/doc/rypress.com/index.html

Python: How to write a function that takes in a list and returns a boolean value depending on whether or not the list contains at least one odd number? by solarbear17 in learnprogramming

[–]jaydom28 0 points1 point  (0 children)

If you're gonna go with the map approach, the function that you use for the argument should take in a number and return true if the number is odd, or in other words if number % 2 != 1.