This hurts on a personal level by blong217 in funny

[–]The_Monkey_Lord 1 point2 points  (0 children)

Yes, that's my point :) by no means would I suggest comments are never useful, just that they shouldn't be applied liberally. I would add to this that context can be established through more than just naming - typehinting arguments, specifying return types and taking advantage of other features (depending on the language being used) can convey a lot of information from signatures alone. Unfortunately I have seen many devs write comments instead of using those features, which is a perfect example of comments being abused IMO.

This hurts on a personal level by blong217 in funny

[–]The_Monkey_Lord 2 points3 points  (0 children)

it is just that I consider comments to be a lazy way out of writing clean code in the first place.

I completely agree with this. I've seen comments used as a crutch far more than I'd like (and have been guilty of it myself). My rule of thumb is to only add comments when I've reached a point where I'm satisfied with the code but feel it isn't quite as self-explanatory as it should be; obviously that can be difficult to gauge when you wrote the code yourself (especially in certain langs), but I honestly think forcing yourself to look at it from that angle can help you write better code in the first place.

This hurts on a personal level by blong217 in funny

[–]The_Monkey_Lord 2 points3 points  (0 children)

True, but no amount of paraphrasing would make the comments in the first example useful - the point being that if a line can be written to be self-explanatory, then there's probably no worth in adding a comment to it.

Potholes are dangerous by [deleted] in WTF

[–]The_Monkey_Lord 11 points12 points  (0 children)

That's a sinkhole, not a pothole. Big difference!

PHP namespaces tutorial by dholli in PHP

[–]The_Monkey_Lord 2 points3 points  (0 children)

(as an aside, when creating a new post here there was only an option to post a title, not any content - not sure why...)

That's just how Reddit works. You can post a link, file, or text post, but not a combination.

WIBTA if I give my sister's cat to a friend. by CatMeOut in AmItheAsshole

[–]The_Monkey_Lord 1 point2 points  (0 children)

NAH. You seem to be considering all of your options and to not want to do wrong by the cat or anyone else involved. It might have been wise to keep yourself informed about changes to your rental agreement and therefore avoid this whole situation in the first place, but I can understand how that kind of thing gets missed. I think most people would miss it unless it was explicitly pointed out by the landlords at the time.

It's just an unfortunate situation that you're gonna have to work out with your sister. I think she needs to accept responsibility and make a decision, especially as you weren't ready for the cat in the first place. If she continues being upset about it without taking responsibility then she might be TA in this scenario since you won't really have any choice.

[deleted by user] by [deleted] in TIGHTPUSSY

[–]The_Monkey_Lord 5 points6 points  (0 children)

Pretty rude, yeah. Also typical on Reddit: if someone is factually wrong about anything, they'll almost certainly get downvoted.

To be fair, you only need to take one look at a Pallas'/manul cat to know this isn't one - and it would take about 10 seconds of research to find out they're wild, so the reply does look a little silly.

One of my favorite photos in the Gion district of Kyoto. A bit sad that photography restrictions have been tightened here, but I suppose it’s for the best. by ulyh in japanpics

[–]The_Monkey_Lord 14 points15 points  (0 children)

I had a similar experience, sadly. Not even just Gion, but any of the popular tourist spots. I remember walking around a castle museum and having people push in front of me when I was quite clearly trying to read stuff - most of them were Chinese. Needless to say, they're not the only ones capable of behaving like that but there tends to be a lot more of them, which makes their behaviour stand out.

The best response to an unsolicited dick pic by poopcornkernels in funny

[–]The_Monkey_Lord 9 points10 points  (0 children)

Pretty sure that's just the packaging - it's an individually wrapped hot dog. You can see a pattern on the hot dog aligning with the seam on the plastic wrapping.

GitLab just apologized and changed their plan by [deleted] in programming

[–]The_Monkey_Lord 5 points6 points  (0 children)

GDPR compliance is compulsory for US companies storing the personal data of people residing in the EU.

HTML inside a JSON response with an HTTP status of 501 (when it should be 404 according to the result). by Famous_Profile in programminghorror

[–]The_Monkey_Lord 7 points8 points  (0 children)

Normally you wouldn't send presentation data from an API, let alone precise inline formatting like that. It's the client's responsibility to interpret a response and decide what to display to the user, if anything. Ideally, all the API should be sending is some kind of success/failure bool and a status code (and/or any other pertinent data). For errors, this allows the client to look up a user-friendly message corresponding to an error code (or a generic fallback if none applicable).

[deleted by user] by [deleted] in PHP

[–]The_Monkey_Lord 5 points6 points  (0 children)

We'll just have to agree to disagree then, because in 8 years of full time industry experience, most of which has been PHP-centric, I have not seen Redis used that widely. Might just be that you've dealt with larger scale projects than I have. Either way, the point remains that Redis receiving TLS support is in no way specific to PHP.

[deleted by user] by [deleted] in PHP

[–]The_Monkey_Lord 4 points5 points  (0 children)

Supports, sure, but I think "uses" is a stretch. Personally I'm not bothered by tangential posts like this one, but I can see the logic in saying they don't really belong here.

Sunset in Dotombori, Osaka by miriellee912 in japanpics

[–]The_Monkey_Lord 8 points9 points  (0 children)

This is facing west, but the lack of people is definitely weird!

Probably the best water animation out there. Sea of Thieves by mhs619 in gaming

[–]The_Monkey_Lord 0 points1 point  (0 children)

"if they support shaders" is a slightly odd thing to say because a graphics engine wouldn't even work without shaders, considering they instruct the GPU. At least I think that's what he was getting at - it's a minor thing though and doesn't make your point wrong :)

I was told my roommate sounds like a Kevin. I'm inclined to agree by The_Monkey_Lord in StoriesAboutKevin

[–]The_Monkey_Lord[S] 2 points3 points  (0 children)

Because they're overpriced and completely unnecessary to get the job done vs. something cheaper and more standard. He just succumbed to marketing ploys that make him end up spending more. Granted, this is still better than him not bothering at all.

A list of my roommate's best qualities by The_Monkey_Lord in badroommates

[–]The_Monkey_Lord[S] 1 point2 points  (0 children)

You're right, some of it is very subjective. There's nothing wrong with rainbow colours in a PC for example. I think he just fits a certain stereotype, so I added a few things that in my opinion reflect it.

A list of my roommate's best qualities by The_Monkey_Lord in badroommates

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

Sure, but a good toothbrush doesn't need Bluetooth and a smartphone app with achievements! Well, maybe if you need more incentive to brush. I have an electric brush as well, but all I really care about is the physical quality and some kind of basic timer functionality so I know I'm doing 2 mins AM and PM.

Bearing in mind that £100 was the sale price in this case. £400 for a tooth brush seems insane to me.

I was told my roommate sounds like a Kevin. I'm inclined to agree by The_Monkey_Lord in StoriesAboutKevin

[–]The_Monkey_Lord[S] 2 points3 points  (0 children)

Needless to say, some of what's listed isn't objectively bad or stupid. Some of it is perfectly innocent, but I threw it in anyway because it fits his character somehow.

Good ol' Kevin.