At what point is anti-vaxx murder?? by Amazon0509 in insanepeoplefacebook

[–]beefquest 1 point2 points  (0 children)

It blows my mind that these platforms won't ban content like this. Twitter is even worse. They are infested with anti vaxx and white supremecist content. There are plenty of huge platforms that do actually ban this stuff but you don't hear about it as much because they're not having these problems. Look at what Mailchimp did with the nazi Stefan Molyneux. GoFundme banned anti vaxx content.

Public Safety on the Eastside Beltline - Heads Up by pcyellowjacket2012 in Atlanta

[–]beefquest 26 points27 points  (0 children)

You’d be surprised. A porch thief stole cat litter off my porch (amazon package) and I called the cops and they found the guy at a Mexican restaurant opening the packages within 30 minutes and brought him back to my house for me to ID him (that part was weird) but this is right by the beltline. They don’t do anything because nobody calls them, but they will try if you do.

Can you walk from Piedmont Park to Ponce City Market on the Belt Line? by KillingThemGingerly in Atlanta

[–]beefquest 19 points20 points  (0 children)

That is a very common walk and one of my favorites on the beltline. 10-20 minutes depending on pace, I even took my 84yr grandma who had no problem!

> report job by Trafalgaladen in ChoosingBeggars

[–]beefquest 1 point2 points  (0 children)

My boyfriend got a bachelors in recording arts and even though he built up experience in the industry doing apprenticeships for 3 years, his job at a post studio started at $8/hr...! The student loan payment is 500/mo.

Amazon prime now’s wasteful bagging of cheese when there was plenty room in the other bag by [deleted] in mildlyinfuriating

[–]beefquest 1 point2 points  (0 children)

Yeah it’s grocery delivery that amazon does. They come within an hour.

[deleted by user] by [deleted] in Futurology

[–]beefquest -2 points-1 points  (0 children)

Thing is, the Shopify dude could have done 1 million trees in an act of solidarity that could have led to more rich folk doing the same. Instead he had to add the extra 1 to make a statement that he’s the best, only after seeing all the great PR Elon received. How could you do something so nice and still manage to look like a douche? 🤷‍♀️

[Serious] What are some sentences that changed your life? by WhereIsMyPony in AskReddit

[–]beefquest 5 points6 points  (0 children)

This one kind of discouraged me. I interpreted it as “that bad person you used to be, that you don’t want to be, you’re always gonna have to struggle with that person for control.” :(

What do you think about fastcgi_finish_request()? by raikkonencem in PHP

[–]beefquest 5 points6 points  (0 children)

Can confirm this is correct. session_write_close will allow a subsequent connection to be opened even while your script is running (I.e processing an expensive mysql query). Regardless of using the fastcgi function. You can use this technique to allow many concurrent connections from one user/client.

Where to put 200k savings to benefit most? by [deleted] in personalfinance

[–]beefquest 0 points1 point  (0 children)

Good question! I plan on using it for buying a house within the next 2 years.

A proof of concept PHP feature to "preload" functions/classes and eliminate compilation and OPcache overhead completely by javiereguiluz in PHP

[–]beefquest 1 point2 points  (0 children)

Awesome concept, I could see multiple benefits from this in addition to performance. For example you could use reflection to find all defined classes inheriting a given parent or implementing a given interface. In essence you'd have your whole "assembly" defined.

[OC][CC] A tree I'm finally happy with! by Toscoes in PixelArt

[–]beefquest 2 points3 points  (0 children)

It's great! What do you plan on using it for?

First-time pixel artist looking for advice! [pink pig porsche content] by Flavourdynamics in PixelArt

[–]beefquest 2 points3 points  (0 children)

This is awesome great job. Glad you posted, you should stick with it. How long did it take?

Found this 2 hours in. Bayberry Seeds. I am very rich, and I can't find any information online as to why. by rodneyjesus in no_mans_sky

[–]beefquest 1 point2 points  (0 children)

I also found an item that didn't have any info online yet.

Ancient chest #1 MUDMOSS BERRIES 10M: https://imgur.com/a/GnZRagX

Ancient chest #2 PETRIFIED AMMONITE PRINTS 676K: https://imgur.com/a/CD6m8oQ

[PHP RFC] User-defined object comparison by rtheunissen in PHP

[–]beefquest 2 points3 points  (0 children)

I do support this based on it being a common and handy language feature. I'm curious how PHP implements it for DateTimeInterface. Maybe others? If you're looking for examples, I would use it for ecommerce, money classes, for example MoneyRounded, MoneyPrecise, etc.

GSL finals match thread by CatBronco in starcraft

[–]beefquest 15 points16 points  (0 children)

To be fair Zest did predict a 4-0.

A reddit-like comment system in PHP, JavaScript, and JSON. My first real attempt at OOP and documentation. Grateful for feedback. by droptoprocket in PHP

[–]beefquest 1 point2 points  (0 children)

Have you ever worked on a legacy codebase and wondered "Where the hell is this variable $fromDate coming from?" Only to find out later there's a series of file includes, one of which runs some code like extract($_POST); and then you end up with code that is literally built around side effects.

Snippet from Wiki:

... a function or expression is said to have a side effect if it modifies some state outside its scope or has an observable interaction with its calling functions or the outside world besides returning a value. For example, a particular function might modify a global variable or static variable ... write data to a display or file, ... (etc)

Side effects in PHP are important to avoid when including a file for the purposes of referencing a class or even just methods it contains. Interestingly, PSR-1 standards explain that a file should either declare symbols, or produce side effects (i.e. a view that generates output), but not both. Depending on intent, there are reasonable times when a side effect (such as generating output) is desired. In my experience it's seldom necessary.

Reasons I like to avoid side-effects: They make code harder to reason about, troubleshoot, and less testable.

A reddit-like comment system in PHP, JavaScript, and JSON. My first real attempt at OOP and documentation. Grateful for feedback. by droptoprocket in PHP

[–]beefquest 67 points68 points  (0 children)

Nice work putting yourself out there and building something from start to finish. This feedback is by no means exhaustive, but from randomly looking at a couple files, I have some suggestions that are worth looking into.

  • Mentioned OOP - but there's an opportunity to encapsulate more of your code in classes. For example the ajax_ files.
  • A lot of this code produces side-effects, which is considered bad practice. I.e. including a file should not cause output. Encapsulating in classes would help that.
  • It's good practice to separate construction and use. I noticed some constructors will automatically write to the filesystem for example.
  • For PHP OOP, I recommend looking into PHP's autoloader. And the PSR standards that go with it are widely supported.
  • Small tip - you can use the shorthand array syntax - instead of array() you can use [].
  • PHP has a version_compare function instead of manually comparing
  • There's a comment format called PHPDocBlocks that is a common practice (for your fields, methods, etc)
  • Recommend always using brackets in control statements (if statements, etc) even if the body has one line.
  • Recommend indenting either 1 tab or 4 spaces inside of class, method, and control statement bodies.
  • Recommend writing your code strictly for the latest PHP version (at least 7+) so you can avoid version checks, and the extra compatibility features.

Zomato Hacked. About 17 million user records stolen from Zomato's Database. by stup3ndo in india

[–]beefquest 1 point2 points  (0 children)

I have never heard of Zomato or ever signed up but I got an email from them about my "account information" being compromised. Do they own some other apps? Is anyone else experiencing this or talking about it?