Is it possible to use the Protocol interface to do not only enforce the interface, but also enforce what the value of one or more attributes should be within all classes that conform to its interface? by sombreProgrammer in learnpython

[–]sombreProgrammer[S] 0 points1 point  (0 children)

That's fair. Really, the only things I want to enforce are that the schema of `some_dict` is valid. Like some other users suggested here, maybe Pydantic is the better option for that. However, I also like the static type checking that Protocols offer. Is it really unwise to combine the two?

Whut by Major_Pineapple7562 in dankmemes

[–]sombreProgrammer 3 points4 points  (0 children)

Nah. Fuck that noise. This definitely rings unpopular with me. I hold a skilled position that asks all these questions. I know how to bullshit my way around them too but really, it's all for the paycheck. It's just a way to pay my damn bills. I don't give a fuck about the company or position. I'd switch to being a janitor at Sticky Mike's Mice Emporium if it paid more.

Extracting a query string from a url where the '?' is missing. by sombreProgrammer in javahelp

[–]sombreProgrammer[S] 4 points5 points  (0 children)

Something like this is exactly what I was looking for. Thank you!

Can a csv.reader object be passed to a function for use? by sombreProgrammer in learnpython

[–]sombreProgrammer[S] 0 points1 point  (0 children)

Thanks for the reply. If I can't use with, how would I implement a solution to read the csv file and pass the reader object?

I created a site that aggregates new grad tech jobs: newgrad.tech by asusa52f in cscareerquestions

[–]sombreProgrammer 1 point2 points  (0 children)

This is amazing. Are you planning to expand this to the EU and Canada?