nokonoko / Pomf

Simple file uploading and sharing, source for the now shut down site Pomf.se
MIT License
463 stars 98 forks source link

CI on grill.php #47

Closed SSCBryce closed 8 years ago

SSCBryce commented 8 years ago

Some autism. Improve speed, efficiency, tidiness and ease of scaling for grill loading. Adding a new grill is drap and drop + tick up proper variable. Updated array_rand to superior mt_rand which is, according to multiple sources both un and official, more random and at least 4 times faster (mersenne twister). Also added a new grill, 1.png, to prevent obvious empty array spot with new grill.php code.

These changes are tested working on my clone, at least.

ghost commented 8 years ago

Sorry to be rude, but it's bad. Branching is also messed up in this merge request. I doubt you have rights to distribute the new grill anyway, baka.

04:40:37 WubTheCaptain | CI on grill.php by Farfie · Pull Request #47 · nokonoko/Pomf · GitHub https://github.com/nokonoko/Pomf/pull/47
04:40:41 WubTheCaptain | Why can't people use Git right
04:51:35        ewhal4 | >+$waifus = 10;
04:51:37        ewhal4 | +$aWaifus = 0;
04:51:39        ewhal4 | +$images = array();
04:51:41        ewhal4 | jesus fuck
04:51:55        ewhal4 | can't you just length the array?

I am glad grill.php is no longer a feature in pantsu/pomf, the only mostly maintained and clean development branch of Pomf.

I almost wish I didn't reply, this repository is dead.

SSCBryce commented 8 years ago

I don't really think you're being rude. I was just tinkering with a clone and did this change to make adding waifus easier, I had no idea if it was more efficient code wise or what not. And yeah it was also my first time trying to use Git at all, heh. I'll just close it since you've confirmed it's worthless.

SEAPUNK commented 8 years ago

I'd (mostly) ignore Wub's comment, since it's not really that constructive.

While there are better ways of doing this PR, it's a start. With practice, you'll get better. :)

Your PR does many things, which could be split up into their own PR, or omitted entirely, in my opinion:

So generally, I'd have this PR be just the change in grill.php, sans the $aWaifus addition, and then create separate PRs for the rest of the bullet points.

Considering how you're a beginner at git, a tip: for PRs, it's preferred that you create separate branches for each enhancement or feature addition and not master, because as soon as you add another commit to master, it automatically gets added to the PR.

Read this tutorial to get a better idea on how to do a PR correctly: https://yangsu.github.io/pull-request-tutorial/

Have fun!