Comment on: How does Terraria handle thousands of tiles?
0 09 Dec 2019 06:36 u/Master_Foo in v/programmingHow to make Quick-Sort less efficient than Bubble-Sort.
1 0 comments 07 Dec 2019 06:35 u/Master_Foo (..) in v/programmingComment on: Senior GitLab exec resigns over plan to stop hiring engineers in China and Russia
"Director of Global Risk and Compliance" Why would a DGRC be opposed to mitigating global risks? I'm betting she's either a Chinese or Russian spy.
Comment on: Python is eating the world: How one developer's side project became the hottest programming language on the planet
The real king is transistors. I don't program anymore. I just lay it all out in metal switches.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I sound like a person making a joke at the expense of your mom.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
People have value and that value can be converted into cattle.
Think of it this way, you go to work. At the end of the month, you get a paycheck. How many cattle can you buy with that money? Your value can be converted into cattle, and there are many facets by which we can determine which various positive traits are worth something.
The only person who could object to this reasoning is an SJW.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Well, when Terry A. Davis cleans himself off of the railroad tracks, tell him to stop in and submit some code.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
If you expect me to lower myself to software development then pay me.
I never said you have to do something useful for me. You can fuck off for all I care. All I'm saying is, you are sitting around here bitching about something I'm doing, when you aren't really doing anything better. I mean, you might as well go down the street and heckle the beaner digging a ditch. But while you are doing that, the dirty beaner is objectively more useful than you are.
I mean, let's talk cows here. I'm walking down the street and I see a dirty beaner being useful and a slackjawed yokel standing on the side doing nothing. So, who is worth more cows? The dirty beaner is worth more cows than you are.
It's easy to criticize. But nobody is going to give a fuck about your opinion if you don't pick up a shovel and start digging.
Been to a lot of Saudi people-markets then, have you?
Irrelevant. When someone claims they have worth, I expect them to qualify that. Here's a way for them to do that.
My consulting fees are $125 an hour. You can't afford my heuristics.
I'm really not interested in paying you anything. But, if you pop in and act as if you can do better than I can, then you'd be a real bitch if you don't man up and prove yourself.
Oh, so now it's optimal market value plus assets, huh? Look, just don't ever touch a keyboard again.
Personal assets are included in a person's self-worth. There's really nothing radical about that.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
The code compiled. Who cares?
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I know. I did that to trigger the autisits.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Tell ya what, Sweetheart. Make your own project and do better.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
4/10
Your're just mad because your mom is worth less cows than Tanisha.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Yeah, I never interacted with Henry Corp. But I've head of his shenanigans. If I did something to trigger /v/TraditionalWives enough to be worthy of that flair, I'll OWN IT and be proud!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I use Voat's night mode. So, flair doesn't show up. I didn't even know I had a shill flair for the longest time. But, when I found out, it was the happiest day of my life!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Well, I still think you and everyone on /v/TraditionalWives are trannies. Rule 16 is still in play. So, please don't take a way my shill flair!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Some of the best questions are funny. I mean, this is a joke project, but that doesn't negate the real scientific value.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Well, you are a woman, so, I really can't expect you to do anything useful... OK, sorry. I just had to get that out of my system.
Seriously though. I don't know what your programming capabilities are, so I'll give you something easy. Let me know if you can/want to move on to something more difficult.
The best place to start is to start gathering some data on test subjects. They don't have to be real people, but real people are better. And rich celebrities like Hillary Clinton and Jennifer Lawrence are probably not a good baseline. We need some "normal people".
This is the model for the test subjects. You can probably just find information and start adding to the list.
The only real confusing thing here is the "negative children". That's meant to mean: "The number of children by current husband minus the number of children from other men."
If you want to do this it would be cool. Thanks. I'll give this as a gift to /v/TraditionalWives so they can all tell their daughters exactly how much they are worth!
Subject[] test_subjects = [
{
name: "Jennifer Lawrence",
age: 28,
children: 0,
hotness: 9.75,
skin_albedo: .6,
net_worth: 130000000,
divorces: 0
},
{
name: "Hillary Clinton",
age: 72,
children: 1,
hotness: 5,
skin_albedo: .6,
net_worth: 45000000,
divorces: 0
},
{
name: "X",
age: 20,
children: 0,
hotness: 10,
skin_albedo: .6,
net_worth: 0,
divorces: 0
},
{
name: "Tanisha",
age: 25,
children: -5,
hotness: 7,
skin_albedo: .05,
net_worth: -10000,
divorces: 5
}
];
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Yeah, I'll admit it's a silly project. But, when you are an economics geek, sometimes a stupid question pops in your head and you just want a stupid answer. And when you are a programmer you have no real excuse not to solve the stupid problem.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Help to add some datapoints so we have an accurate model to work with!
I mean, surely the average /v/TraditionalWife is better than Hillary Clinton! Right?
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Yeah, these script kiddies are complaining that I'm not treating a high level language like ASM. It's like, dude, a function call is free so long as it's not virtual, so chill the fuck out. It's self documenting code!
Yeah, I could render this all down to one line, but then it just becomes an unattainable mess. The compiler doesn't care. So, the problem is right there, sitting in your chair.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Ha! We think alike! That is what I'm working on today. Literally implementing the hot/crazy matrix into the program.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Hey, everyone! I found the SJW!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Basically, it's a way to model a problem by simplifying complex features. You won't get an accurate solution, but you'll get a "good enough" solution. Spherical Cow
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
The average value of a cow is ~$2400.
Yeah, but a calf goes for $500. Instead of complaining about it, why don't you commit something useful?
There's simply no way that a woman is worth more than six cows. Seven at most.
This calculates the optimal market value for a person. Which means, this isn't what you, or I or even the average person thinks this is worth. This calculates the optimal price someone, somewhere would be willing to pay for this person.
There's simply no way that a woman is worth more than six cows. Seven at most.
Instead of complaining submit a better heuristic.
Yeah, look, you're just not cut out for this "computers" thing. Consider something more suitable to your intellectual capacity, like gender studies, or suicide.
She has $45,000,000 in assets. That's a lot of cows. I mean, hell, I don't like Hillary either. But I'm not going to be autistic about it. She has cash, that translates to cows. If it makes you feel any better, if you take away all the Jew's money, she's only worth 25 cows.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I have to trigger the autistic english majors somehow dude!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Well, don't forget about contracts and native unit testing. What I have here is maybe an hour of dinking around. Yeah, it's not impressive. But, there are potentially thousands of heuristics to calculate, each one slightly different, and soon I'm going to optimize the code for that.
I mean, you can sit here and criticize, like any jackass, or you can shut up and be useful.
That reminds me of another heuristic to add. "Shut up and be useful". That should be worth a couple of cows easily. I'll crunch the numbers and we'll see which women are better at this than you.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Tell you what, I'll show you some cool tricks next time I commit. But the fact that you are even asking should be a warning to yourself that Dunning-Kuger is in play. Maybe read up on D language's feature set and see if you can figure it out before I commit.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Yeah, I'm going to add some competance heuristics the next time I pick up the code. You can say all kinds of nasty things about Hillary, but she is crafty. I'll be honest enough to give her that.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I'm mulling it over. I just need to figure out how to get it to work in the overall scheme of things.
The biggest problem I'm coming across is, this is an optimal market value that we are solving for here.
What that means is, you and I look at Hillary Clinton's 90,000 cow value and we both think that's ridiculous right? Well, a modeling agency would probably come to the same conclusion, obviously.
So, what is the problem here? Is the math wrong? On the surface it seems so, but it's not. Because this isn't necessarily about what you, or I, or a modeling agency, or even the average person thinks Hillary Clinton is worth. An optimal market value is about what SOMEONE SOMEWHERE would potentially value Hillary Clinton at, and that SOMEONE SOMEWHERE is most likely Bill Clinton or Chelsea Clinton.
You and I and everyone else would turn our noses at paying 90,000 cows for Hillary Clinton. But, Bill and Chelsea would probably look at that number and think "Yeah, that's about right".
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I have a heuristic for peak fertility. Maybe "peak modeling" is another avenue to look at, but the hotness heuristic pretty much covers that regardless of age.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
You say that as if the compiler gives a crap about lines of code. Sounds more like a "Chair -> Keyboard Interface" problem to me.
But, if you think you can do better without sacrificing readability or maintainability, go ahead and push the code. At best, you'll cut out maybe a dozen pointers.
It's easy to criticize, but I think I'd rather keep the maintainability.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
float calculate_children(){
int modifier = 10;
return this.children * modifier;
}
Basically, if a woman has more children from another man than from her current husband the value would be negative children. (or a negative risk value)
Likewise, if a woman has more children from her current husband than from another man there would be a positive children. (or a positive risk value)
The Heuristic can probably be refined, but I think it's a good place to start.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
You have to think of this from the perspective of someone who is looking at this woman with children and analyzing the risk / reward of those children.
If a woman has 5 of YOUR children, that woman is EXTREMELY valuable to you. If that woman has 5 of some other guy's children, that is naturally going to be a burden and lower her perceived value. Right?
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Ah, OK, I misread that. Yep, totally agree.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
A quick Ctl+F shows you are missing height + weight for a BMI calculations. A 200lb land whale isn't worth much to a white man.
That's a good point. I'll have to think about it. The hotness scalar kind of covers that though and I don't want to have redundant scalars. So, I'd either have to keep the hotness variable or remove it in favor of a multitude of scalars which "hotness" would comprise of.
Speaking of, need a "from" perspective as well.
From, as in a location? Like, Africa or something? Try to make that into an objective scalar value and I'll see what I can do. But, "Africa" doesn't really translate into a scientific value we can do calculations on.
I guess what I'm trying to get at here is, despite this being a humorous project, there IS some sense of measurable reality here and I don't want the humorous aspect to get in the way of the real scientific value. Help me out with some of these heuristics and I'll add them in if they can work.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Yeah, right now I'm just looking to get a proper heuristic in place. The specific numbers aren't really important at this juncture.
But, realistically, if we are going by the standard of the crazy / hot matrix, where 5 is the minimum fuckable value, It's understandable that there are a number of octogenarian dudes who would fuck Hillary Clinton after tossing back a few beers. So, I'll let the 5 rating stand.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
That's kind of the point of this project. To figure that out scientifically. There was a thread in /v/TraditionalWives yesterday about the "value" of a girl that sparked this question in my mind because that "value" was never properly defined.
So, if you want an answer, help me compile some statistics!
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Oh, OK. Sarcasm doesn't translate well on the interwebs. This little project is going on /v/TraditionalWives when I'm happy with it.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I guess I don't understand what you are getting at here? Are you saying you want SJW nonsense mixed up in your programming language? Lack of SJW nonsense is a positive in my book.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
I haven't heard much of any SJW nonsense out of the D community.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
normalize shouldn't require any dependencies. It just normalizes a number based on a min and max value.
float normalize(float x, float min, float max){
return (x < min || x > max) ? 0 : (x - min) / (max - min);
}
Hotness and skin color are separate scalars, so they have their own calculate functions. They modify the final value in calculate_value()
As for assigning the value 'black', there really isn't anything useful about that. But, an albedo value provides a useful and objective scalar value.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Ummm... I think you are taking this too seriously dude. Go take a couple shots of Vodka and come back when you want to joke around a bit.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Secondly, it aint my fault your memory is failing, lol.
I'm not blaming anyone here. I mean, if you were my college room mate or something maybe I'd be a dick for forgetting you. But, If I'm not talking to someone every day online, that info just goes to the trash bin. I have other things to store in the brain. Like how many cows a Jennifer Lawrence is worth. You know... IMPORTANT SHIT!
Yes, I used to hang in preppers this much is true! :)
OK, cool. Sadly, I haven't seen much activity there lately.
how much is your woman worth?
Oh, that's easy. I bought my Waifu body pillow for $40.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
It's still a work in progress I can probably explain it better in code. But, basically, the calculation is supposed to be
of kids by your current husband minus the number of kids by former deadbeats.
So... Let's just say, Tanisha makes bad choices.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
got the prized Henry Corp flair... member
Was that you who gave me that? That's one of my proudest achievements!
Trolling /v/TraditionalWives is a weekly pass time for me, so you are going to have to be more specific. In fact, this is a /v/TraditionalWives troll in the works. I think it's important that women know what they are worth!
I mean, I kinda like /v/TraditionalWives, but I just can't help myself. Identity politics is identity politics and wherever it happens, I just gotta poke.
You invited me into the wild to rid myself of dreaded CCP for the sake of brevity.
Sorry, don't remember that. Was this on the /v/preppers subverse or something?
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Not my numbers dude. I just googled Hillary Hotness and that's what came up.
Same with the fertility numbers. They aren't mine, they are just something I quickly looked up and plugged in.
If you have a better heuristic, stop complaining about it and do a commit.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
You say this as if you remember me. Sorry, you are going to have to refresh my memory.
As for my "crazy wisdom" half of it is bullshit, so I don't know what to say about that. It was probably me just trying to get my CCP back down to reasonable levels. 3578 points is a lot of points to get rid of.
Anyway, things are good. I suppose I should ask the same but it seems awkward asking someone I don't remember. Sorry. Refresh my memory.
Anyway, this is for science! Post your info. You'll be making the world a better place.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
D
It's my go-to "Fuckin around and having fun" language.
Basically, it's C++ with the boost library built in and all the shit you hate about C++ removed.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
These are Tanisha's stats. Plug in your own and I'll crunch the numbers.
{
name: "Tanisha",
age: 25,
children: -5, // Your children from your current husband - children from previous deadbeats
hotness: 7, // range 0 ~ 10
skin_albedo: .05, //.05 really black ~ .6 Really White
net_worth: -10000, // amount of money you earned yourself and presently have
divorces: 5 // number of divorces you've had, duh.
}
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Well, she's supposedly got $45,000,000 in assets. So, that's a lot of cows.
But, if it makes you feel better, she's only worth 25 cows without the Jews giving her money.
But, go up to her and tell her she's worth 90,000 cows. I'm sure she'll be happy.
Comment on: I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
Surely, you can beat Tanisha.
I'm Writing a Program that Calculates the Value of a Woman in Metric Spherical Cow Units. If That Doesn't Peak Your Interest, I Don't Know What To Tell You Buddy.
66 111 comments 05 May 2019 03:18 u/Master_Foo (self.programming) in v/programmingComment on: Work as a C++ programmer
Technically, nobody cares about your CS degree, they care if you can produce results. Nobody has ever asked for my degree. The only time it was ever useful was to get a green card in Japan.
So, if you even slightly suspect you might want to spend a couple of years in another country, a 4 year degree is going to be a requirement.
That being said, let's say you are a homeboy and hate sushi. Whatever the reason, you never want to leave the country. College is still a good option for STEM. Why? Because you'll have professors throwing high paying jobs at you left and right. Recruiters don't bother with the classifieds, they know every CS professor at every college in every state. Each semester they are going to be calling your professor and ask him to send them his top 5 guys. If you are one of those top 5 guys, you are going to get hired.
Out of the gate, you will be making enough money to pay off your student loans in a couple of years. No big deal.
If you try getting hired without a degree, you'll be searching for a long time and the pay wont be super great to start. The better long term solution is college. It gives you a more aggressive head start. Head hunters should be contacting you, not you begging the head hunters to notice you.
Think of college as an intellectually stimulating vacation and when you are done with that vacation you come back to the real world making much, much more money than you were making before the vacation.
Comment on: I guess he prefers Ruby
It reminds me of the time my grandma knew I wanted a Transformer for my birthday and instead, she bought me a Go-Bot.
Comment on: Et tu, Gentoo? Horrible gits meddle with Linux distro's GitHub code
Hmmm. Microsoft buys Github, then this happens?
Comment on: I guess he prefers Ruby
Yeah, I've known a few Ruby devs in my day and they are all cry babies.
Comment on: Make an Android or iOS app using C# on Mac
Most of those words are still nonsense.
Comment on: Best Practice to Install and secure phpMyAdmin on LAMP stack
This is why I tell everyone that Linux Containers are about to turn the entire fucking industry on its head. You can find a preconfigured stack image pretty easily and then just fire it up. Maybe look at one configuration file that maps to each technology in the stack. BOOM, you have a reasonably secure system in just a couple of minutes.
Comment on: 'OK, everyone. Stop typing, this software is DONE,' said no one ever
If I've already decided to work on the project it's probably because I think the product is good enough to spend my time on it. So, put some company stock on the Pizza and I'll be happy.
Comment on: 'OK, everyone. Stop typing, this software is DONE,' said no one ever
#! /bin/bash/python
print("DONE")
Comment on: How many of you can still read your own code you created years ago?
No, that's why, over the years, I've developed some techniques that help to make code understandable.
-
This seems backwards, but NO comments. If code is so complicated it needs to be explained, it is a good indication that it needs to be broken up into smaller pieces. So break it up into functions and literally name that function what you would have said in the comment.
-
No code longer than 1 page scroll (This is a loose rule). If you can't see everything that needs to be understood on 1 page, again, it's a good indication that it needs to be broken up into logical families, like classes. Furthermore, classes can usually be broken down further into an MVC or other similar paradigm so, you aren't bombarded by unnecessary information (like the view) when you are working in the model.
-
Always use long descriptive variable names. Never abbreviate unless the variable is a temporary variable or an iterator. Ex. tmp, or i
-
Keep it bone DRY. DRY requires breaking code up. Breaking code up means descriptive class and function names. The code is literally readable because it is telling you exactly what it is doing.
Comment on: What tools or techniques do you use to come up with estimated time of software development?
My metric is,
"It will be done when I'm finished with it. And if you don't like that answer, find someone who can do it faster than me."
Then I toss the tables and tell the marketers to get the fuck out of my Temple.
Schedules are ropes for pointy haired bosses to hang themselves with. Smart programmers don't play that game. The only truely useful metric is
"Are my team members working at a reasonable pace?"
If the answer is yes, then "It will be done when it is done" is a completely reasonable answer. Want it to be done faster? OK, don't worry about how much time it will take. Worry about how much stuff needs to be done. Is that particular module really necessary for a minimum viable product? No? OK, then take it out.
Comment on: Showerthought: What if SJW-infested github is equally corrupt as reddit and secretly edits code repositories?
And yes this is related to programming. Git is a vital part of modern programming.
Git might be considered programming related. Github drama is not. We had this conversation in this subverse over a year ago. It's old news and has been settled. Drama belongs elsewhere. Post drama in a drama subverse.
And don't tell me that Git is this magical thing that no one can modify behind your back
It's not magical there is a cryptographically secure chain of provenance built into git. No one can modify a git project without leaving evidence of that change. Github can do nothing to get around this. If you want to assert that they can, do the work and publish an exploit. Otherwise, people who actually understand how Git works will treat you like a conspiritard.
Anything that is "digital" can and will be broken.
Put your money where your mouth is and publish an exploit. If you can break the hashes used by git, you will be famous. If Github could do this, they would be doing much more than just editing files. They'd be stealing everyone's Bitcoins and hacking Russia's nuclear missile silos for the CIA.
Comment on: Showerthought: What if SJW-infested github is equally corrupt as reddit and secretly edits code repositories?
This land whale neckbeard fagit actually understands how git repositories work. Listen, Son, I've been around these parts a lot longer than your 8 days. This whole Github drama bullshit was put to rest well over a year ago.
Comment on: Showerthought: What if SJW-infested github is equally corrupt as reddit and secretly edits code repositories?
That's old news and nothing compared to what OP is implying. They can remove a project. They can't ninja files into the project without record of that happening.
Also, the whole Github drama is specifically the whole reason rules #2 and #3 were added to this subverse. It doesn't really have anything to do with programming.
Comment on: Showerthought: What if SJW-infested github is equally corrupt as reddit and secretly edits code repositories?
If you are going to reach for a retarded conspiracy theory. At least grasp for one with plausible deniablity. It's a trivial matter to verify the provenance of a git project.
You are the reason for rule #3 on this subvoat. This is a place programming discussion. Do you even belong here? A person who uses Git should know these things. Are you lost or something? Maybe you made a wrong turn back in /v/fatpeoplehate or something? /v/conspiratards is probably where you are trying to post this stupid bullshit.
Comment on: For those who went from one language to another that were wildly different, how did it work out? Any advice/tips?
One might argue that these languages aren't "wildly" different, but I went from C++ to D and the results were fucking amaziballs.
Why? The core concepts of D isn't much different than C++, but the workflow is much more streamlined. Most of the things you absolutely HATE about C++ have been addressed. For instance, in C++ you are constantly reaching in the back of your mind to pull out some esoteric knowledge that only the greatest of greybeards possess. In D, for the most part, you can just do what you want without searching stackexchange for hours.
If you are thinking about trying new languages, I'd definitely look at D. Especially if you are using Java and hate it. It's basically a "better Java without a virtual machine".
Comment on: What programming language SHOULDN'T you learn?
Learn languages you'll be paid to use. If you do this then you will focus on the languages you SHOULD learn as opposed to the ones you shouldn't.
But my two cents here. Certain languages are dead and are probably not worth the effort for a hobbyist. Obvious ones are PERL BASIC, etc. Less obvious is PHP. These languages are used by Greybeards or by newbies who have a Greybeard as a boss. But, it's rare to find a modern project written in PHP, PERL, etc without the influence of a Greybeard.
The standard I like to hold is "If we were recovering from a zombie apocalypse and we had to become serious about choosing a language, which languages would make the cut"
C/C++, Assembly, Python, and BASH would be in. MAYBE javascript, but that is a stretch. Ruby would be out. C# and Java would be out.
Comment on: A conservative city for programmers?
Instead of tucking your tail between your legs, why not stay where you are and stand up for yourself? "My city is progressive" is kind of a cowardly reason for moving.
I mean, fuck, We are talking about whiny-ass progressives and you are out-whiny-assing the progressives.
I'll tell you a secret. I'm a programmer who lives in a conservative area. But I'm not going to tell you where it is because we don't like whiny-assed cowards here. That's what a progressive city is for.
Comment on: Outlaw programming languages that threaten the safety of the American people and work counter to our way of life. | We the People: Your Voice in Our Government
I don't know the reasoning behind the Author's distaste. But, I find Ruby to be redundant. Why program in Ruby when I have a perfectly good Python right here?
People who adopt Ruby generally do it for the wrong reasons. I.E. "I want my code to read like a haiku." It's the hipster of programming languages. All presentation but with little substance.
Furthermore, when people say, "I'm a Ruby programmer" what they are generally saying is "I'm a Ruby On Rails cargo-cultist". Sure, they might be able to use Active-Record, but the vast majority of "Ruby (on rails)" programmers would not know the first place to start if they actually had to implement their own version of Active Record.
Not that I agree with the idea of the petition. But Ruby deserves more hate than it gets.
Comment on: (Brian Will) Object-Oriented Programming is Garbage: 3800 SLOC example
I watch these videos with an open mind because I'm always interested in learning something new. However, I think I'll stop because his arguments always seem to be "I don't like this style of programming". Which is rather ideological as opposed to actually USEFUL.
What specifically are the performance gains? THAT'S the 300 pound gorilla in the room. Writing smart OOP VS smart procedural, you will be hard pressed to get much of anything.
The whole sub-function to minimise the footprint of the library is a superficial point which can be solved using private functions. Public functions are the only thing someone needs to be aware of. Making a private function into a sub-function doesn't solve anything. It just moves code around. On a related note, D language has the sub-function use case he is looking for in a language.
I'm not on Team OOP, or Team procedural. But, I don't think I'll be wasting my time on Brian Will any more. Not that he's WRONG by any measure. It's just that he doesn't have much of substance to say.
Comment on: activate-power-mode
As much as I absolutely abhor Atom, I had to try this.
Installed it... Didn't work.
Fucking Atom, I hate you.
Comment on: Alternatives to notepad++
Abandoned? There was an update for it just last week...
I tried Atom for a while. I don't give a fuck about their CoC. I mean, who cares about SJW Hipster programmers? But Atom is slow as fuck and hogs all the resources. Atom is what happens when Cargo Cult Web Developers decide they are going to write a native app.
Comment on: Most versatile language?
There really isn't a "Most Versatile". Generally speaking, any "Turing complete" language should be able to do what any other Turing complete language can do.
The question then is, "Which language does it more efficiently / easiest" Compiled languages like Assembly / C / C++ / D are very efficient. Some scripting languages (Python / Ruby / Javascript) are very easy.
D is probably the best middle ground, but, it's a lousy first language. Python is likely the better language to start out.
Comment on: How to design a website without hiring a Developer
7 downvoats, eh? @EmmaPage, here's something you might be interested in:
How to SEO without hiring a complete fucktard
Because you are the fucktard and your clickbait links are obvious trash. Go shitpost somewhere else.
Comment on: I want to learn Python.
If you want to learn Python, start by solving these problems.
Comment on: Java: Object-oriented Programming Language
Now that Core and MSBuild is open source .Net isn't "Microsoft" anymore. Don't keep putting Java on life support. Use C#.
You sound like a fucking cuck. Or perhaps a pointy haired boss. Could possibly be both. But one thing is true. Only cucks and pointy haired bosses put C# on the table when work needs to be done. Don't get me wrong. Java is the same story. Cucks and pointy haired bosses love Java too.
But, don't replace one retarded language with an equally retarded language. It betrays your cuckiness and pointy hairedness.
Comment on: Your opinion about Java: now and in the future on the labour market
There will be Java jobs for a long time to come.
Hell, PHP is dead and there are still people hiring. You'll see the same thing with Java. But, the language is ageing. People don't use Java because it's a good idea. They use it because everyone else is jumping off the cliff.
In 10 years we'll regard Java exactly the same as we regard Brittney Spears. I mean, who the fuck is Brittney Spears?
Comment on: Programming for a Year and Need Direction
Used 20 years, on 7 billion devices...
Wait... are we talking about Java? Or Britney Spears' vagina?
Comment on: I am working on a project and I need tips (JavaScript/Html)
Presuming you are only programming for the front end... and presuming "store lots of data and call it" means you are storing "state" variables.
As for defining the places, monsters, etc... Just create a class for those. JSON is literally "javasript object notation" which means it's a text version of an object. You might as well just make a class and use it.
Comment on: PHP 7 Released
PHP6 was never actually a thing. Kind of like Windows 9.
So, the version in your repository is probably the latest stable version.
Comment on: Building .NET Applications on Linux and Mac
I was mostly joking. There's nothing really wrong about learning C#. You'll probably learn some techniques that are universally useful in all langauges and you can probably apply those idioms to better programming environments. So, it's not like learning C# is a waste of time.
But seriously, be suspicious of the motives of anyone who brings C# up as a viable solution for a problem. Because C# doesn't really fill any unique ecological niche which can't be solved by a different language in a "free" ecosystem. Look closely and you'll find a pointy-haired boss somewhere in the decision.
More to the point. Try and find out why your college has a C# class. (Assuming you "signed up" for a college class). Is C# a major focus of the path to your degree? If so, I bet Microsoft has given your CS department a major grant to push .NET. Why? Because Microsoft wants YOU to be the Pointy-Haired boss of the future and that's possible if you "only learn Excel".
If your college just has C# as a one-off course, your college has probably not been corrupted. Like I said, there's nothing really wrong with learning C#. (Just don't insist on using it)
Comment on: Building .NET Applications on Linux and Mac
You'd have to be a real cuck to ever think this is a good idea. I can only imagine some pointy-haired boss who drank MS's coolaid going down this path.
Here's how it goes down: Pointy-haired boss only ever learned how to use Excel. He can't be bothered to learn anything else let alone a programming language. So, naturally, he vendor locked himself into Windows. As such, he insists everyone else use windows. So, everyone rolls their eyes when they are forced to use Windows Server, MSQL, C#, etc.
Nobody uses .NET because it's a good idea. The only reason anyone uses it is because there is a fucking moron somewhere up the chain of command.
Comment on: These Are the Highest-Paying Programming Languages (do you agree?)
Yeah, I get that. I'm not proposing that you'd jump into the engine right away. I'm just offering it as a goal. In the mean time, I could probably find some simple jobs that you could accomplish given your skill level, perhaps unrelated to the engine itself.
For instance, try solving some https://projecteuler.net/ problems.
If you are just beginning, it's probably best to try python before C or C#, but whatever floats your boat.
Comment on: These Are the Highest-Paying Programming Languages (do you agree?)
Fair enough. I guess you are going to have to ask "Why are sysadmins using Python and not Ruby for their work?"
If we were to compare Ruby web devs with Python web devs, they'd probably get paid the same. But Python is more flexible so the Python tide rises higher and lifts the Python boats higher than the Ruby tide can lift the Ruby boats.
Keep in mind. Employers don't actually pay according to language. They pay according to how important the job is. Sysadmins just get paid very well and they generally choose Python to do their work.
So, yeah, you are right the numbers are skewed in that regard, but this post is looking at the problem a different way and is assigning value to a language not a job.
Comment on: These Are the Highest-Paying Programming Languages (do you agree?)
You should probably focus on finding a music related programming job. Like for a game company or something. That way your previous experience is worth something.
If I were hiring you for a "generic programming" position, I'd be like "Yeah, congrats on your MA, but can you tell the difference between a spin-lock and a semaphore?" I bet you can't, right?
If you want a project to work on, I'm making a open source game engine. It's in hiatus right now while I focus on more important tasks. But I plan on making it active again when I have this current project behind me. I'll be willing to mentor you if you would like to contribute. Maybe you'd be interested in the Music and SFX engine.
PM me if interested. I'll give you level specific tasks until you are proficient enough to contribute to the project.
Comment on: These Are the Highest-Paying Programming Languages (do you agree?)
Education is the same thing as experience. When you see a person with 10 years of "experience" in C what you are really seeing is "a person who has been learning C for 10 years".
I have a BS in Computer Science. Nobody has ever asked for my degree. In that regard it is pretty much a useless piece of paper.
Having said that, I don't regret having it. Experience starts somewhere and a College / University is a valuable resource. I think of it this way, a degree is a good litmus test to determine if someone can stick with a goal and complete it. 4 years of school isn't easy. Someone with a degree already has an advantage over someone with a person without a degree, but with similar experience. Just because they stuck with it and achieved a goal.
If you don't have a degree, you'd better have a Github account full of verifiable, completed projects to demonstrate your ability.
Comment on: These Are the Highest-Paying Programming Languages (do you agree?)
How is that skewing the numbers? If someone is using a language to do something, shouldn't that be recognised?
I mean, sure, sysadmins aren't true scottsmen, but how is that even relevant? We aren't talking about scottsmen. We are talking about languages and what people get paid to use them.
Comment on: C++ IDE Improvements|C++ Programming
Don't worry, it's Visual Studio. The only improvement we can possibly hope for is that the IDE would be unusable.
Comment on: Is having a Documentation Manager a good idea?
This is largely what I do. Although documentation is a small subset of my overall duties.
Documentation is the job of whoever is in charge of the spec, who is probably a manager of some type already. A necessary requirement of having a spec is being able to communicate that spec to everyone else.
Comment on: How do I refine my programming?
Thanks for the vote of confidence!
Comment on: How do I refine my programming?
I've been programming for decades and I'm still learning new techniques everyday.
The best thing to do is 1) Find a mentor who will give you small projects which will expand your skill set. 2) ABC: Always Be Coding. 3) Become a mentor for someone who is less skilled than you.
If you are interested, I'm building an open source game framework. There are a couple other people helping me out. You can join the group if you want an interesting project to work on. There's little obligation to join. If you find you have a few hours on the weekend here and there, you can probably find something productive to work on and finish.
Send me a PM if interested.
Comment on: 13 steps to make TDD actually work
You're welcome!
Comment on: 13 steps to make TDD actually work
BTW, I actually agree with your premise, in general.
I just don't know why you chose to say it here, where it really has nothing to do with the article.
Comment on: 13 steps to make TDD actually work
Instead of being cryptic why don't you explain yourself?
Nobody expects or has insinuated that unit tests are free from logic errors. That's not the purpose of unit tests. All unit tests do is check that a code base is performing to spec.
There is always the possibility that the spec itself is incorrect. Solving that problem isn't within the scope of this article.
Comment on: 13 steps to make TDD actually work
Obviously I don't comprehend the purpose of the comment. It has nothing to do with the content of the article.
The article wasn't about using unit tests to minimize logic errors in unit tests. It was a meta-article about using unit tests in general.
Everyone knows unit tests can have bugs. It's code, just like everything else. So, what were you trying to accomplish by stating such an obvious and un-related thing?
Comment on: 13 steps to make TDD actually work
Somebody didn't read or comprehend the purpose of the article.
Comment on: I want to read a list of files from a Git repo and make them viewable via a web interface.
Assuming you are working from Github, this might not be possible. You'd be limited by:
-
The Github API
-
The capabilities of the browser to display an arbitrary file. Can a browser naturally display diagrams from Omnigraffe? If not, you are screwed. What happens when your client wants to display a file type that no browser supports?
Browsers aren't meant to display EVERY arbitrary file type. Sometimes Microsoft will go further than the standard and build functionality to read .doc files, but why would Microsoft spend resources to display Omnigraffle files?
There might be a plug-in that allows a browser to display a specific file (For instance PDFs), but this is something your client is going to need to install on a case by case basis on his browser, and not all browsers might have a plug-in for that file type. (If a plug-in exists at all).
This sounds like a case where your client would rather be stubborn and expect reality to conform to his wishes, as opposed to learning the proper way of working collaboratively. You probably won't be able to appease this person, so, one way or another he is probably going to get angry.
You might as well grow some balls and accept that he isn't going to like the "Realistic Solution" and then, when the Wookie calms down, teach him the "Realistic Solution".
Or, you can make promises you can't keep. See how that works out for you.
Good luck!
Edit: Send your client a link to this message and I'll be the one to break the news to him.
Comment on: Advice on building a portfolio on GitHub to show potential employers? Having a bit of trouble doing it by myself, so help is much appreciated
Every day you commit to a repository on github you get a green square. You have one green square because you committed some code on that day.
It could be on one of your projects, or a collaborative project with someone else. As long as you are committing code to Github, you are creating a provable record of work. Employers like to see that.
Comment on: Advice on building a portfolio on GitHub to show potential employers? Having a bit of trouble doing it by myself, so help is much appreciated
See that one green square on your "public contributions"? That's not good enough. The WHOLE block should be green.
Otherwise, just work on whatever you are interested in. Eventually, you'll have a portfolio.
Is this the guy who made Terraria? Because, that seems like a simple solution, but it's a bit naive. You still need to continue the clock for each object off screen in case it needs to send a signal to the event coordinator. Maybe Terraria doesn't require this. I haven't played it.
In my implementation, there is a "Global Event Queue". It's basically an array of time stamps with a pointer that points to the object that needs to send an event signal. So, if an object needs to send a signal in, say, 2 minutes, it logs itself into the signal coordinator. There is an event loop each frame that finds each object that needs to signal this frame and tells it to fire. This way, an object stays "alive" when it's off screen but the expensive procedures like draw() aren't called.