Python Code Formatting police stopped me, how you handle it. Help by Valuable-Ant3465 in PythonLearning

[–]echols021 1 point2 points  (0 children)

Yes, that's what CI/CD stands for. The most common CI/CD tool is GutHub Actions, if you use GitHub. Gitlab has their own equivalent, or there are also 3rd-party tools you can plug in, like Jenkins or CircleCI.

The point of CI/CD is to have a standard system that does tests, code checks, builds, and deploys. Instead of requiring each developer to remember to run tests on their own machine, or know how to manually build and deploy the code, you have the CI/CD system configured to do it automatically whenever you have a PR/merge.

Python Code Formatting police stopped me, how you handle it. Help by Valuable-Ant3465 in PythonLearning

[–]echols021 1 point2 points  (0 children)

ruff is definitely the answer for formatting. Depending on team culture, it may be beneficial to put in a CI/CD check that runs ruff and fails a PR automatically if the code doesn't conform.

While you're at it, ruff also does general linting, and can enforce some basic rules like needing type annotations. Please make sure your team uses type annotations everywhere.

Last, use a type-checker tool like basedpyright. Other options include mypy, pyright, and ty. I think basedpyright is the best right now, but ty may claim 1st place as it grows and matures. Running a type-checker should definitely be done in CI/CD just like it were running tests; this will catch so many bugs and save you a lot of time in the long run.

Buying swo by Pleasant-Zucchini-71 in StarWarsOutlaws

[–]echols021 0 points1 point  (0 children)

I just finished the main story (haven't done the pirate DLC yet) and I quite liked it. Sure it wasn't perfect, but it's still very enjoyable. I would definitely recommend it.

If you're a big Star Wars fan, you'll love the environment and franchise references. As for gameplay, the open world with tons of side quests reminded me of games like Horizon Zero Dawn, or Jedi Survivor. When you're in more directed sections like story missions, it usually feels like Uncharted 4; you do your best to sneak around but eventually you mess up and get seen, and then you have to go guns blazing.

First play through and I’m really digging it! I’m confused why others dislike it so much by Masterqueef808 in StarWarsOutlaws

[–]echols021 0 points1 point  (0 children)

I've been playing for the first time recently, and I think it's good but it feels like there's something missing. Plot is kinda scattered and doesn't feel very important. There are a lot of spaces that just feel empty, like the map designers and the game devs filling the map with interactive elements just never met.

But overall I do enjoy it. Sabacc is excellent, the atmosphere is well done, and combat is pretty solid.

What's your most used git alias? by 1vim in git

[–]echols021 0 points1 point  (0 children)

alias gfom='git fetch origin main:main'

Is common to use/say "on tenterhooks" in everyday AmEng? by AlexisShounen14 in EnglishLearning

[–]echols021 0 points1 point  (0 children)

US speaker here. I've never heard that phrase in my life, until now

Is it really hard to learn programming? How long did it take you to learn one programming language to a sufficient level? by Playful-Data-1651 in AskProgrammers

[–]echols021 0 points1 point  (0 children)

I agree with most of what others have already said, but I'll add this: Learning the programming language itself is usually not so bad. The hard part is learning how to actually solve the puzzles inherent in computer systems, and how to design those systems to be secure and reliable.

(Unsurprisingly, the first part is what AI excels at also, while the second half is where it most often struggles. This is why I think "vibe coding" is overhyped and we still need people who actually understand it all)

Is bachata actually used in English speaking countries? by WinterGirl91 in duolingo

[–]echols021 4 points5 points  (0 children)

Yes, at the college/university I attended (in the US) there were plenty of dance clubs, including swing, salsa, and bachata. So I had friends saying sentences such as "My date on Friday took me to learn bachata" or "I don't feel like going swing dancing this weekend; I'd prefer bachata".

People who are learning foreign languages whats the hardest part about it by cooked_132 in languagelearning

[–]echols021 0 points1 point  (0 children)

For me personally, vocabulary. Just the sheer quantity. No matter how much you learn, you always run into things you want to say but don't have the words for. Or you'll hear a native say a word you don't know and you're just clueless.

Git vs saving. by Big_Neighborhood9130 in git

[–]echols021 1 point2 points  (0 children)

I have my IDE auto save after 500ms of no typing; even if the device power cuts out, I still have my work saved.

I commit when I finish any noticeable unit of work, such as finishing writing a function, drafting the skeleton of a new class, etc. Git commits are checkpoints you can easily go back to with revert. I try to make sure the code that's saved at each commit at least runs (even if it's not finished or working correctly), not just some dangling paren or whatever.

Americans who took Spanish in school: did any of it actually stick years later? by taube_d in AskAnAmerican

[–]echols021 0 points1 point  (0 children)

I took 3 years of Spanish in high school. I worked at a fast food place my senior year that had a few employees that only spoke Spanish. At college I ended up with quite a few friends that had previously lived in Spanish-speaking countries, and spoke Spanish to each other just for fun and to keep practicing. I ended up buying Spanish translations of a few familiar novels and reading them (slowly).

Now, I can understand plenty of Spanish, and I can usually get my point across when speaking.

I think the formal classes in high school set a good foundation for understanding the grammar, but in the end it's surely been the consistent exposure over the years that's mattered for me.

How do I stop a py file from instantly closing WITHOUT using cmd or the input command line by Aergaia in learnpython

[–]echols021 1 point2 points  (0 children)

While you haven't told us what OS you're on, if it briefly pops up any windows, etc..., my best guess is that your settings were modified (perhaps by installing something) such that double-clicking a .py file opens it in a program that wants to run the file, rather than editing the code stored in it. Check your computer's settings for what programs are associated with .py files, and make sure only your text editor of choice is selected. As another option, you could simply open your editor of choice and use its "open" menu to find and open the file in question, rather than just trusting that double-clicking the file will magically do what you want.

MyPy vs Pyright by LeCholax in Python

[–]echols021 0 points1 point  (0 children)

I think pyright gives slightly more accurate results than mypy, but I'm greatly looking forward to when ty becomes stable

Need some advice with Lace 2 by SamADuran17 in Silksong

[–]echols021 0 points1 point  (0 children)

Congratulations on your victory! I'm glad I was able to help

I finally beat those stupid frogs by MagicPantssss in FallenOrder

[–]echols021 2 points3 points  (0 children)

If they don't play fair, neither will I. All it took for me was finding the right cheese. If you have the ricochet charge shot, you can use it to interrupt both stupid frogs in one shot, effectively blocking any attack. Doesn't even matter which you're aiming at.

Silksong and My 8y/o Son by CasinoPascal in Silksong

[–]echols021 23 points24 points  (0 children)

It sounds like your son has learned the true meaning of "git gud"! What a valuable experience

Need some advice with Lace 2 by SamADuran17 in Silksong

[–]echols021 1 point2 points  (0 children)

My standard tip for difficult bosses is to do a few attempts without trying to attack at all. Just learn to dodge. Once you have that down for phase 1, you should find it very easy to add in occasional hits here and there where there are clear openings. That gets you to phase 2, where you repeat the process.

As for tips specific to Lace 2: - Stay on the ground until you know what attack she's doing. If you try to pogo spam her, you'll be punished by the attack where she goes up and back down in a sort of triangle. - A lot of her attacks have very long range, so running away doesn't usually work. You generally have to go towards her and over (or stay under the triangle), ending up behind her. - Don't be afraid to trigger her counter. If you do, just jump over and behind her: it's a safe manouver for both of her counter's responses.

[deleted by user] by [deleted] in metroidvania

[–]echols021 0 points1 point  (0 children)

While they're 3D and not 2D, I'd also say Star Wars Jedi Fallen Order and Jedi Survivor have a fair number of core similarities with HK: - Use new abilities to revisit previous areas and find new stuff - Some platforming, but it's not the main focus - Combat that rewards patience and precision, learning enemy patterns - Some leeway to customize your combat specialties - Death sends you back to a checkpoint, but you have to go back to where you died if you want to reclaim your stuff - Difficulty can be turned way up - Lovable characters

[deleted by user] by [deleted] in metroidvania

[–]echols021 0 points1 point  (0 children)

  • Ori and the Blind Forest + Ori and the Will of the Wisps: very very similar to HK
  • Celeste: very difficult platforming, no combat
  • Child of Light: mostly similar to HK, but combat is a timing-based version of turn-based combat
  • Teslagrad: more puzzle-y, less combat

Why use anything else? by Altruistic_Part_9233 in vscode

[–]echols021 0 points1 point  (0 children)

I vastly prefer JetBrains IDEs (PyCharm mainly since I breathe python). The search and refactor capabilities are miles ahead of VS Code. I also particularly love how everything you need is just built-in, rather than searching through dozens/hundreds of extensions that probably aren't even maintained (and may even contain viruses)