kryptonianCodeMonkey
@kryptonianCodeMonkey@lemmy.world
- Comment on She is making a GREAT point 8 hours ago:
9!? You think I can cum 9 times a day!? And apparently hit the egg every fucking time too? I don’t mean to question the conclusion because I think birth control should be both parties’ responsibility, but I think your premise reveals a distinct lack of grasp on biological reality. Why stop at 9? Why not 900? Really drive your point home! My dick is going to be useless after number 2 or 3 anyway.
- Comment on monumentale 1 day ago:
Concise readability is usually my goal. Like if I have 12 lines of code with a loop and some nested conditionals that takes a bit of thought to parse, it probably is better to move that to a function with a descriptive name like, “size, depth = get_directory_size_and_depth(filepath)”, that way the function name itself functions as it’s own comment/documentation, and, if you don’t really care about how the size and depth is aggregated, it abstracts that process onto one line of code that the reader can instantly understand without parsing anything. That goes doubly so when the function is generic like get_directory_size_and_depth(filepath) would be, and can be put in its own shared utilities file.
- Comment on monumentale 1 day ago:
I said function, not file. You can have 40 functions in one file.
- Comment on monumentale 1 day ago:
def is_even(num:int) -> bool: if x < 0: x = x * (-1) if x == 0: return True elif x == 1: return False elif x == 2: return True elif x == 3: return False elif x == 4: return True elif x == 5: return False elif x == 6: return True elif x == 7: return False # ...
- Comment on monumentale 1 day ago:
When I was in my 101 comp sci classes, one of my professors would say, “A function is meant to do one thing. So if your function doesn’t fit on the monitor in it’s entirety, that is a good indication your function is probably too complicated and/or doing too many things. Either simplify it or break it down further.” And that’s a rule I usually try to live by with my professional work too. So, anyway… I want to see the 4000k monitor this guy is using.
- Comment on Just answer the question you fuckin' nerd 1 week ago:
I mean that is true of basically all structures and materials. It’s just the coastline problem. How long is the coastline? Depends on the level of precision you apply and the exact time you measure. Theoretically it is infinite if you keep getting more and more granular with it. That’s not helpful or meaningful for general purposes though.
- Comment on Just answer the question you fuckin' nerd 1 week ago:
You misread what I was describing.
- Comment on Carrot 1 week ago:
That there carrot’s named Cletus.
- Comment on Just answer the question you fuckin' nerd 1 week ago:
That’s not entirely true. We don’t have just one hole going through us. Our holes branch. We have 3 intakes (2 nostrils, 1 mouth) and 2 outputs (1 anus, 1 urethra)
- Comment on Just answer the question you fuckin' nerd 1 week ago:
Is “topologist” a job? Like someone who specializes in telling you how many holes and knots exist in a given object, How to “untie” seemingly knotted things that actually topographically have no knots? Do you clock in for that, or is it a 1099 freelancer thing?
- Comment on Necessary post procedure care for vasectomy 4 weeks ago:
She’s a giant like the rest of his family. 6’2". And has his nose same as his other kids. Couldn’t deny her if he tried.
- Comment on Necessary post procedure care for vasectomy 4 weeks ago:
Tell him to wait a month before bragging about it. My father in law apparently told everyone who would listen for a couple weeks that he was shooting blanks, so no more kids (the man has no filter). He then had to ago around and let everyone know that his last live round had actually hit the mark. That would be my sister in law.
- Comment on proportional reaction 1 month ago:
In what language is that valid syntax?
- Comment on proportional reaction 1 month ago:
I love list comprehension. Best part of the language, imo. To each their own.
- Comment on proportional reaction 1 month ago:
Weird example. 3 nested conditionals is not the typical use case for a ternary, and 2 of the 5 branches result in a pointless a=a assignment. I agree this is bad code, but it’s just as bad and hard to parss in a normal if-else structure too:
if (a>b) { if (b>c) { if (a<d) { a=c; } else { a=a; } } else { a=d; } } else { if (b<c) { a=a; } else { a=d; } }
In another situation, though, it’s perfectly readable to have a much more typical ternary use case like:
a = c > d ? c : dAnd a pair of parentheses never hurt readability either:
a = (c > d) ? c : d - Comment on Captain's Log 1 month ago:
Right? It’s in a stupid place in each bathroom in my house. Whoever installed them had never heard of ergonomics.I just remove the roll entirely, set it on the sink and put it back when I’m done.
- Comment on Never ask... 1 month ago:
Just looked up a picture of the guy. His nose is more interested in sniffing his upper lip than I’ve ever been interested in anything in my entire life.
- Comment on *They drew First Blood, not me.* 1 month ago:
It’s maddening to me that world famous tough guy acrion heroes used to have big puffy feathered hair
- Comment on Uninvited pool guest 2 months ago:
It’s 45k Hungarian Forints, indicated by the ft on the tag. That $132.30 US.
- Comment on Who is the enemy? 2 months ago:
Well that is accurate…
- Comment on 2 months ago:
Everyone is doing 15+ under. We’re taking stop and go traffic. What are you talking about?
- Comment on 2 months ago:
So, I don’t know exactly how the adaptive cruise control works. But if it is slowing down and speeding up to maintain a specific distance, that does not fix things. The idea is to maintain a specific speed such that, as the people in front of you accelerate and brake, speed up and slow down, you have enough distance to not have to do that. You should essentially match their average speed with enough gap that their braking doesn’t put them close enough to your bumper that you have to slow down yourself. Normal cruise control would be better (except mine won’t set at speeds under, I think, 20mph) because your speed wont change. Adaptive cruise would make your drive safer, maybe, keeping you from being too close or failing to react to the change in traffic speeds, but I dont think it would solve the traffic issue itself.
- Comment on 2hot2handle 2 months ago:
Mansplaining is a behavior. It is a man arrogantly talking down to a woman assuming she knows less than you by virtue of being a woman or despite evidence to the contrary. If their defense to that was, “I just thought I was smarter than you and needed to demonstrate that, but it had nothing to do with your gender.” Then… well, I feel like they still need to examine that behavior.
- Comment on 2 months ago:
You need to give even more space then so that them doing that doesnt make you slow down. People cutting in front of you also helps because those are the assholes causing the brake waves.
- Comment on 2hot2handle 2 months ago:
Sure, my point was that a single sminstance outside of other context means that you cannot necessarily discern a pattern of behavior upon which to base your conclusion into which kind of asshole he is being. You could be innacurate in assuming he is sexist as well as assuming he isn’t. If complete accuracy is required, then you would need to not make a conclusion at all and let the comment slide without feedback until you have more data. I’m saying that it is more important to call them out than to worry about the exact accuracy, to not let the comment slide, to make sure they know that, in some way, it was inappropriate. One’s experience may lead one to make some assumptions that are incorrect in this context, but I don’t feel like that is the important part that you should critique. Either she says nothing, calls him a sexist, or calls him out but doesnt point out the sexism if there is sexism involved. I’m saying either of the latter is reasonable under the circumstances.
- Comment on 2hot2handle 2 months ago:
If you dont care about being accurate in calling out antisocial behaviour, how do you think the person expressing said antisocial behaviour will understand that interaction?
If they were being sexist and you don’t point that put, wouldn’t that be inaccurate?
- Comment on 2hot2handle 2 months ago:
She wasn’t wrong though. It does happen spontaneously in that it is happening without apparent external cause. There is an external cause, the change in pressure, but it is not apparent. And most people are aware that water boils at low pressures at room temps. He even said it was “basic thermo”, so of course a NASA astronaut would know about this basic scientific phenomenon, as would most people.
- Comment on 2hot2handle 2 months ago:
Sure. But it gives the appearance if sexism. Who gives a fuck if he is being an asshole if you mislabeled the kind of asshole he is.
- Comment on 2 months ago:
That’s also why the best way to relieve traffic is to go at a slow even pace without braking. Every time the someone runs up the ass of another car and brakes hard, or swerves into the “faster” lane and make someone else brake to not hit them, they cause another brake wave. If you have a few cars intentionally just hanging back and cruising with a big enough gao between them and the cars jocking in front of them, then their brake waves do not propogate behind you and eventually traffic just picks up pace again.
- Comment on 2hot2handle 2 months ago:
Sure, but being an arrogant prick that thinks they’re smarter than anyone else, regardless of gender, is already a thing that should be derided. Having only a single instance of this behavior being aimed at a woman as an example of his arrogance may mistakenly lead one to attribute that to misogyny instead of a general prickishness behavior, sure. But that’s a perfectly understandable assumption to make in that situation and the mistake of calling them the wrong kind of asshole, i feel, is less of a concern than him, indeed, being an asshole.