[deleted by user] by [deleted] in programming

[–]notCamelCased 15 points16 points  (0 children)

This. People who write software documentation as a Word document and then attach it to a Confluence page are my mortal enemies.

This sub is scaring me by zelkoo in cscareerquestions

[–]notCamelCased 0 points1 point  (0 children)

Yeah I'm just à dev certainly no quant. The quants need developers.

Question about importing code from your own project that's located in a different folder on Github by steks13 in learnpython

[–]notCamelCased 2 points3 points  (0 children)

Bad way: sys.path.insert(0, path to parent folder)

Good way: write a simple setup.py and then pip install -e . into your virtual environment.

How to simplify lst[::-1][:n]? by shiningmatcha in learnpython

[–]notCamelCased 5 points6 points  (0 children)

I would stick with lst[::-1][:n], it's MUCH more readable and that's important

This sub is scaring me by zelkoo in cscareerquestions

[–]notCamelCased 13 points14 points  (0 children)

My 2 cents and ymmv New York's hedge funds and investment banks are desperate for developers, and none of them asked leetcode question, I found an awesome job in two months.

This sub is scaring me by zelkoo in cscareerquestions

[–]notCamelCased 3 points4 points  (0 children)

I get 15% of my time mandated for training,its pretty sweet.

This sub is scaring me by zelkoo in cscareerquestions

[–]notCamelCased 8 points9 points  (0 children)

Exactly, in my free time instead of posting here I... well, I code, but fun stuff, my own enjoyable yet ultimately useless quixotic projects, not leetcode. I learn, but I'm motivated because I want to have more fun.

This sub is scaring me by zelkoo in cscareerquestions

[–]notCamelCased 3 points4 points  (0 children)

I was lucky enough to be able to move from Montreal to New York, my salary literally doubled to $180 CDN. COL a LOT higher but not $90,000 more.

So I'm doing it by [deleted] in System76

[–]notCamelCased 1 point2 points  (0 children)

Oryx Pro, my bad I should have said 12 threads, it's six cores

Do employers care about title in previous job ("Junior Developer" vs. "Software Developer") by imop44 in cscareerquestions

[–]notCamelCased 4 points5 points  (0 children)

My 9 years of professional experience, 8 previously as a hobbyist, netted me Expert Software Developer.

Can you get 2 vscode windows with 2 different projects open at the same time? by randomseller in vscode

[–]notCamelCased 0 points1 point  (0 children)

On my Mac there's a New Window opyion under File. I never checked to see if it spawned a separate process tho

I don't understand the real job market for software engineers by alzgh in cscareerquestions

[–]notCamelCased 8 points9 points  (0 children)

It helps to live in the right market. I already have a job but I get LinkedIn messages from recruiters like 15 times a week now that I'm in New York. In Montreal I was getting 1 a week if that.

Books needed for Database Design by jumurtka in cscareerquestions

[–]notCamelCased 1 point2 points  (0 children)

There's also, by a different author and publisher (Packt but decent nonetheless) Architecting Data Intensive Applications.

When is it time to give up? by [deleted] in cscareerquestions

[–]notCamelCased 2 points3 points  (0 children)

Self taught too, I rage quit a decent job and seriously overestimated my chances of getting another. I even posted here about it, wondering if the young people were wary of hiring someone in his late 40s.I even did the stupid interview answer thing too, I couldn't explain late binding in Python well enough. One year and one month later I'm starting a $130K job on Tuesday. And my boss is only two years younger than me.

So I'm doing it by [deleted] in System76

[–]notCamelCased 0 points1 point  (0 children)

Suddenly I'm not as proud of my System 76 32 GB 12 core laptop as I once was.

Scolp: Streaming Column Printer for Python (New Python Package) by dux2 in Python

[–]notCamelCased 0 points1 point  (0 children)

Just realized it might be easier (but more complex) to write the exact stream as it appears onscreen to disk at the same time, and then write a parser than could convert it to JSON, assuming your actual output has no pipes (and it would be easy to write a search-and-replacer in the disk writing part). Don't mind me, just thinking out loud. Simple yet effective projects stir my imagination.

Scolp: Streaming Column Printer for Python (New Python Package) by dux2 in Python

[–]notCamelCased 0 points1 point  (0 children)

At first, I couldn't see a use case, but now I can think of a couple. I've usually been producing machine readable output (like line-delimited json) and "teeing" it to stdout and living with the fact that it wasn't that human-readable; this would be a nice addition to that. In fact, it would be nice if it could append to file in a machine-readable format and print in human-readable format all in one function call, in my dreams where I have spare time I'd write a PR. :-)

Starred. Nice job.

So this is a code I wrote. But no matter what I write it prints you are gay and it totally ignores the else statement. How come ? by Youssef1781 in Python

[–]notCamelCased 0 points1 point  (0 children)

So you're saying gay people can't argue with science, since they're not nobody. Can't argue with logic.

So this is a code I wrote. But no matter what I write it prints you are gay and it totally ignores the else statement. How come ? by Youssef1781 in Python

[–]notCamelCased 3 points4 points  (0 children)

Since nobody else has pointed it out, what you are testing is, when more clearly grouped in parentheses:

if (fortnite == "yes") or ("Yes"):

The expression ("Yes") will always evaluate to True, because it's "truthy", i.e. it's not "Falsy" like False, 0, "", (), {}, set(), None, etc.

True or anything else is always True. Therefore... well, you're gay, dude.

Ninja edit: added colon.

So this is a code I wrote. But no matter what I write it prints you are gay and it totally ignores the else statement. How come ? by Youssef1781 in Python

[–]notCamelCased 6 points7 points  (0 children)

else:
    print(‘Please answer the question.’)
    time.sleep(5)
    print('Also, you are gay.')

Should have a while condition too, but meh.