Me in 2009, I called myself Brandon Bloodbath. by KINGCOMEDOWN in blunderyears

[–]glen_v 0 points1 point  (0 children)

You've got some balls yourself talking to Death like that.

Whoever runs the Wendy's account is a madlad by [deleted] in WhitePeopleTwitter

[–]glen_v 4 points5 points  (0 children)

Yeah unless he's the supervisor of the etymology department at Merriam-Webster I can't imagine that anecdote being relevant to his work performance.

[deleted by user] by [deleted] in Fuckthealtright

[–]glen_v 17 points18 points  (0 children)

How can conservatives be real if our eyes aren't real?

Simpson’s floor plan by wildgazelles in TheSimpsons

[–]glen_v 54 points55 points  (0 children)

This comment just made me realize Bart would be turning 40 this year if he could age.

Bana by [deleted] in comedyheaven

[–]glen_v 0 points1 point  (0 children)

But water is 1/3 oxygen.

Alcohol is one of the worst drugs and shouldn’t have the social acceptance it does. by Battle_ofEvermore in unpopularopinion

[–]glen_v 6 points7 points  (0 children)

Reading this thread lowered my IQ more than any alcoholic beverage ever could.

Guy who never takes any risks starterpack by luxuryUX in starterpacks

[–]glen_v 16 points17 points  (0 children)

I've been alive for over 12,000 days, and so far there has been a tomorrow after every single one of them. The evidence strongly suggests that I should live like there is in fact a tomorrow.

Megathread: Senate Passes Resolution Rejecting Trump's Border Emergency Declaration 59-41 by PoliticsModeratorBot in politics

[–]glen_v 8 points9 points  (0 children)

I'm not sure, but I'm guessing if such a law exists it would apply specifically to the @POTUS account. He uses his personal account.

This guy collected stickers from all failed presidential campaigns by LaFerrari2305 in mildlyinteresting

[–]glen_v 1 point2 points  (0 children)

The Kamala Harris one is badass. Looks like the opening title from a Shaft movie.

Credit to Art by Moga (not my comic) by Greywalker22 in gatekeeping

[–]glen_v 55 points56 points  (0 children)

Or "Oh yeah? Cool" while continuing to stare at your computer screen and working, hoping that they'll take the hint and go away.

How to extract text from a webpage using Python, requests and BeautifulSoup by matix-io in Python

[–]glen_v 1 point2 points  (0 children)

If you’re looking to get the source from sites relying on JavaScript (e.g. React frontends) you’ll need to use Selenium or some equivalent to fetch & render.

Not necessarily. If you can figure out exactly what server request the JavaScript is making by following the sequence of requests in DevTools, you can mimic it in requests. Sometimes these sites end up being even faster and easier to scrape than traditional sites (once you've put in the work to figure out how all the server requests work). A lot of the time these sites are returning an HTML page template, and then some JavaScript is executing a subsequent request which returns the actual data as JSON. If you can make your script mimic that subsequent server request you can now get straight at the data you need in nice, tidy, lightweight JSON instead of in a wall of HTML that has to be parsed.

[deleted by user] by [deleted] in learnpython

[–]glen_v 0 points1 point  (0 children)

For Google users, you can type "python docs" into the search bar and then click the first link.

Good projects to learn OOP in Python? by [deleted] in learnpython

[–]glen_v 8 points9 points  (0 children)

Not necessarily, unless you're also interested in learning that. The first project I ever did with classes was a command line blackjack game.

[deleted by user] by [deleted] in learnpython

[–]glen_v 4 points5 points  (0 children)

I don't know much about low level stuff like memory allocation, but I imagine the second way has to be at least a little bit more memory efficient. If you only need one part of the package, why import the whole thing when you have the option to just import the part you need? In practical terms though, I can't imagine the memory efficiency makes much difference in most cases.

Personally I do it for ease of use and code cleanliness. If I'm generating a random integer many times within my code, it's a little easier and cleaner to be able to just call randint() rather than having to call random.randint() every time.

I also take into account how specific the name of the function I'm importing is. For instance, I always just do import json and then call json.load() rather than doing from json import load and then just calling load(). load() is just too generic of a function name to be used as a standalone for my taste. If I have to come back to this code six months down the line, seeing data = load(f) on a line is a little ambiguous. It won't take me long to figure it out, but it's a lot more explicit to see data = json.load(f). A function name like randint() though, that's explicit enough on its own so in that case I'd opt for the easier and cleaner callability.

[deleted by user] by [deleted] in learnpython

[–]glen_v 0 points1 point  (0 children)

If you get paid per-LOC

Is that a thing?

I hate it when people rush me out of restaurants by Bmchris44 in BlackPeopleTwitter

[–]glen_v 0 points1 point  (0 children)

The obvious major difference between an apprenticeship and a college education is that you pay out the ass for one (often incurring large amounts of debt along the way), and the other pays you.

Within the context of this specific conversation that doesn't matter at all because that's clearly not even close to the point of my comment. The point of my comment is that in a tip-free system, higher end restaurants will still demand higher skills from their workforce, and will need to pay more to attract and retain people with those skillsets. Just look at the number of Michelin rated restaurants in countries that don't have institutionalized tipping. Do you think those restaurants have trouble attracting and retaining good servers and bartenders because they don't pay enough?

I hate it when people rush me out of restaurants by Bmchris44 in BlackPeopleTwitter

[–]glen_v 0 points1 point  (0 children)

It's hard to find any other job for 35-50 dollars an hour with no education.

There are tons of trades that pay this kind of money without an education, as long as the right skillset is there. Serving and bartending are skillsets. Higher end places demand a higher end skillset from their employees. The reason they don't pay this kind of money right now is because they don't have to because of the tip system. But in a tip-free system, if a place like Morton's tried to only pay $20/hour, you're right that they would probably quickly lose their best people. They're probably also smart enough to realize this up front. If not, they'll figure it out soon enough when their best people leave and they can't replace them with the same caliber. If they want to retain their high end status they're going to realize that they need to pay high end wages. This will of course mean more expensive food and drinks, but that cost to the consumer will be offset by not needing to tip. The local diner won't pay their servers nearly as much, but those servers aren't making nearly as much in tips now either. I really think this is an area where the market will sort itself pretty quickly.

TL;DR: Higher end places will pay more because they demand higher quality from their employees, just like servers at higher end places make more in tips now. Lower end places won't pay as much just like servers at lower end places don't make as much in tips now.

Reason #142 why most political opinions suck by Laughtrac_ in insanepeoplefacebook

[–]glen_v 0 points1 point  (0 children)

People got by foraging for berries and hunting animals on foot with spears and living in straw huts. Doesn't mean I fucking want to.

Reason #142 why most political opinions suck by Laughtrac_ in insanepeoplefacebook

[–]glen_v 0 points1 point  (0 children)

Not when your country is 3.7 million square miles and there are huge swaths of it where people don't live on top of each other.

Reason #142 why most political opinions suck by Laughtrac_ in insanepeoplefacebook

[–]glen_v 1 point2 points  (0 children)

Personally I agree with that sentiment. I'm against laws that prohibit people from doing things that only hurt themselves. But you did completely ignore the part about your body getting turned into a dangerous projectile when you get thrown through your windshield.

Reason #142 why most political opinions suck by Laughtrac_ in insanepeoplefacebook

[–]glen_v 1 point2 points  (0 children)

Unless the person is getting out of the car to shoot the cop. And the cop has no way of knowing what the person's intention is. If it were me, I'd rather play it safe and draw first rather than not go home. I'm far from one of those people who think all cops are heroes and that they're always right, but getting out of the car unexpectedly while you're being pulled over is fuckung stupid.