Comment on: Learning the ultimate basics of Python, need help with one problem
0 23 Oct 2019 22:32 u/i_am_triggered in v/programmingComment on: Why can't programmers... Program?
it's almost ok, Biggest problem is that it doesn't do what it should, it only prints 1-99 not 1-100.
To fix that change from range(1, 100) to range(1, 101)
Second (not so big) problem is that it makes 0 sense to have this nums variable, the same result you will get from:
for i in range(1, 101):
print(fizzbuzzer(i))
I probably wouldn't hire you as a Python programmer :P
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
If you would use generator expression instead of list comprehension and next() instead of [0] it would stop on first match instead of going through whole string. Only difference would be IterationStop exception instead of IndexError when no match.
I didn't test it, but I'm pretty sure I'm right :)
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
This is not Python code, this is C code written in Python :P
Comment on: On pushing back against the SJW encroachment on the F# community
You're right, but when project changes names of variables from "slave" and "master" because it's offensive, I really don't feel like participate in this circus.
Comment on: On pushing back against the SJW encroachment on the F# community
Wow, I really appreciate your efforts.
I just stopped contributing to open source altogether. I feel like it's lost case, I admire your spirit.
Comment on: HOW TO: Move from github to BitBucket. I just moved 4 private repositories and it took me 10 minutes.
Gitlab itself is using that infamous "code of conduct" that will get you removed from project for being not PC in outside world.
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#code-of-conduct
Comment on: The Ruby Programming Language community is now under siege by SJW entryists and the trojan horse Code of Conduct
Look up higher in this thread, there is a link to project called opal where they were trying to get core contributor kicked out of project because he tweeted something they didn't like. Adopting this CoC means removing people for project unrelated private opinions, it's explicitly there in the CoC.
Comment on: Learn to Code. It's a LOT Harder Than You Think
So everyone should just omit HTML from the list of their coding skills?
I think it makes sense, since html is not coding.
Comment on: Learn to Code. It's a LOT Harder Than You Think
I know few guys who do C++ professionally and they are very afraid to say that they know C++, always some disclaimers, it's just a very difficult language.
Having HTML in the same sentence as Java, C++ or Python makes me believe that you may overestimate your coding abilities.
Do you code professionally (for money)?
I'm not attacking you personally, I just think that C++ is not something you can teach 12 year olds as you seem to be suggesting.
Comment on: What kinds of problems is /v/programming solving these days?
I took three weeks off to chill (right before christmas to just after new year). My beloved team (and it's only 4 people) already managed to pollute our main code base with such nonsense that it's hard to believe (invented their own http method to name one). FML.
Shorter:
if (a, b, c, d) == (1, 9, 3, 8)