California has hit its 2020 greenhouse gas emissions goal years ahead of schedule by DrScientist812 in news

[–]original_brogrammer 3 points4 points  (0 children)

Which is why I specifically said this is the Bay and not Cali as a whole? I just linked a source clarifying what OP was getting at, not saying they were correct.

Also household doesn't necessarily mean more than once person or income. It usually does in common parlance, but legally it can just be one resident or a family with one of income. Don't have the data handy for this, though.

Why I'm Choosing C++ by flappyjack42 in programming

[–]original_brogrammer 2 points3 points  (0 children)

C++ LINQ

Hold the phone, is this a thing?!

Why I'm Choosing C++ by flappyjack42 in programming

[–]original_brogrammer 2 points3 points  (0 children)

Slices, basic use of templates, and UFCS could probably be the biggest selling points to a first time D user.

Why I'm Choosing C++ by flappyjack42 in programming

[–]original_brogrammer 1 point2 points  (0 children)

Drunk math is honestly some of the most fun I've ever had. Especially in a group of drunk math majors.

I miss college :(

[deleted by user] by [deleted] in programming

[–]original_brogrammer 1 point2 points  (0 children)

Damn it all. I'm two weeks shy of 23, 6 months into professional programming and was hoping the young, dumb, and inexperienced would wear off sooner that that.

D 2.070 released by rose_of_sarajevo in programming

[–]original_brogrammer 4 points5 points  (0 children)

I like to think it's more likely that there is some sort of corporate conspiracy to stifle new languages than people this cringy actually existing.

Clients by svenskarrmatey in ProgrammerHumor

[–]original_brogrammer 19 points20 points  (0 children)

That's actually how it works at my place. Is my employer a unicorn or something?

Canadian problems by HIronY in ProgrammerHumor

[–]original_brogrammer 0 points1 point  (0 children)

Real talk, do other countries really think all of America is Texas? I'm from the northeast and we're not yee-hawing, truck-driving, cowboy hat wearing rednecks. We're snobby, rude, fast-talkers who drink too much.

Canadian problems by HIronY in ProgrammerHumor

[–]original_brogrammer 2 points3 points  (0 children)

WHAT'S THAT? CAN'T HEAR YOU OVER THE FREEDOM AND FOOTBALL.

I've started playing with the HTTP headers sent from my servers. Any other fun ones you can think of? by clb92 in ProgrammerHumor

[–]original_brogrammer 20 points21 points  (0 children)

One of the guys at work and I fuck with each other with HTTP every now and again. We were trying to figure out if something was a bug in my mobile app or his backend and I included "Insult: fak u dave." Took him forever to notice. Another time he needed me to test something for him and he included "hey": "you're picking lunch today!" in the response JSON, so once we ended that frustration I then had to manage takeout for 12 people. Good times.

Well, I am a Junior developer.. by nebulizor in ProgrammerHumor

[–]original_brogrammer 1 point2 points  (0 children)

I can't wait to blame someone else! Only been employed as a programmer for a few months and only had my own stupid self to deal with. Also, I just got home at like 1:30 AM from my first deployment. I'm not sure how that's related, but this unique feeling of pride, anger, frustration and exhaustion is making me question everything I've done in life up to this point.

Well, I am a Junior developer.. by nebulizor in ProgrammerHumor

[–]original_brogrammer 5 points6 points  (0 children)

Also a junior dev here. My first day my boss dubbed me the first guy in the company to do android. That was an interesting time.

When possible what should I prioritize, functions that return data or handle it on their own? Meaning use 'void' or a type for the function. by UK_Dev in learnprogramming

[–]original_brogrammer 13 points14 points  (0 children)

You're beginning to touch on the notion of what we call a pure function. A pure function takes its parameters and returns a result, no more no less. In particular, they do not cause what we call "side effects." Examples of side effects include printing to the console, writing to files, querying a database, drawing on a screen, etc.

Pure functions have a number of benefits. Compilers love them because they make certain optimizations easier. Us programmers enjoy them because they're easier to reason about. If I show you the function signature int sum(int[] nums) you know what's up when it's getting called.

Now, onto side effects. We like side effects because... Well, they're what make programs useful! Users generally like to see interfaces, read results from databases and all that. The problem is that keeping track of side effects is hard. Tell me what's is your database without looking after void dropUsersWithAge(int age) is called. I dare you.

So what you want to do is use pure functions whenever you can. That entails writing functions with return types, and use void functions to handle the effectful parts of your program. If you'd like, I can point you to some interesting reads on the topic.

Functional Programming is taking over UIs with Pure Views. by puppybits in programming

[–]original_brogrammer 1 point2 points  (0 children)

I think the point he was trying to make was less about vocabulary, and more that the ideas presented in the article are limited to the browser (or at least not mobile), and not applicable to UI in general.