/dpt/ - Daily Programming Thread

old thread: >his degree says "computer" on it
I seriously hope you guys don't do this.

Other urls found in this thread:

github.com/ksimka/go-is-not-good
i.4cdn.org/gif/1496903066635.webm
shodan.me/books/Programming/C/
en.wikipedia.org/wiki/Automata_theory
twitter.com/SFWRedditVideos

first for go

What do you guys think of working for big tech companies?

>go
away

github.com/ksimka/go-is-not-good

Cuck tier.

Give me one reason why you haven't pasted the quake source into a typing tutor

Because nobody composes code at the same rate you would compose text.

>forced to give up copyright on all side projects
>the company becomes your sole form of income
>"this is just standard stuff user, also pls sign this no-compete agreement"

It shouldn't come as a surprise why i'm still a neet.

Daily reminder if your language is not on this list, your language does not matter at all

>C
>C++
>C#
>Python
>Any variant of JavaScript

It's a pain in the ass, but I've been granted exclusive copyright to all my side projects at Google. There's the easy process, Google Open Source (in which Google owns the copyright), and the hard process, IARC (Invention Assignment and Review Committee), in which Google disclaims ownership of your idea.

In the IARC process, you send them a description of the idea, a lawyer reads it and checks if it counts as "competing with Google", and if not, they either ask you a few questions or just approve the project. It's really not that bad.

The thing that really sucks about working at big companies is how they drain your motivation to write code on your own time, at least for me.

>he needs permission to be granted copyright on his own inventions

AMERICA

Has to be prego, has to be, gotta be, must be. Which makes my erection troubling.

This. (and not only big companies)

Why?

>forced to give up copyright on all side projects
Not all, but it's pretty restrictive... Most companies (like mine) have processes to register your project so it's separate.

Still though, NEEThood is a bit far lol, you can find plenty of places that don't have these kinds of intellectual property agreements.

Interns like me can't use IARC though, which sucks. I basically can't do anything the whole summer.

>>his degree says "computer" on it
>I seriously hope you guys don't do this.

What's the meme on this one?

God fucking damnit, I refuse to put up with this bullshit.
I'm never getting a job.

Nah. It's just feeder porn.

If you don't know what that is, it's when people get off on people getting fatter.

Really that's one of the only good pictures of her

Yeah, but I also make >$200k / year in salary + stock + 401k match, and get to learn a lot about Google's internal architecture, and software development at scale. It sucks that copyright works the way it does, and the motivation drain really sucks, but if I didn't think it was worth it, I'd quit.

I'm also in the process of adjusting my sleep schedule so I wake up at ~4am, and can work on the business I'm starting with my best friend before heading to work. Hopefully that'll help solve my motivation / fatigue issues.

How do you survive? Where does the money for the food you eat come from?

The effort required to fill out those forms dwarfs the effort of the side project, you know.

I found this on an old PC I was formatting. I wrote this 15 years ago.

#include
#include

//i hope you have a seizure

int main(void){
char A1[] = ("color 0A");
char A2[] = ("color 0B");
char A3[] = ("color 0C");
char A4[] = ("color 0D");
char A5[] = ("color F0");
char A6[] = ("color D0");
for (;;){
printf("PARTY HARD PARTY HARD PARTY HARD PARTY HARD PARTY HARD PARTY HARD\n");
system(A1);
system(A2);
system(A3);
system(A4);
system(A5);
system(A6);
}
getchar();
return 0;
}


The fuck.

Is this a good list for learning C++ if I already know a few other languages?

>Accelerated C++ (Koenig and Moo)
>Effective C++ (Meyers)
>Effective Modern C++ (Meyers)
>Modern C++ Design (Alexandrescu)

I can do anything you can do better (with go!)

There is no point in living if you can't even have freedom.
Freedom is the single most important thing that a Human must have.

I've heard so many stories of open source contributors being hired at google, and they slowly drop out and stop contributing to open source altogether, drop all their projects and they become automaton zombies who only care about google and moving up the company ladder.

I wonder why I put a getchar() if it was an infinite loop.
Also I didn't remember I used to write
int main(void)

Guess good habits actually do die.

Don't forget the C++ Programming Language by none other than Bjarne Stroustrup himself and C++ Primer

Hey, can I ask you an anonymous question about your project at Google? How often do your submits fail due to flaky tests, and how often is your project build broken? For me it's really hard to submit sometimes.

You kind of dodged the question there.

You're just mad you're not a Googler(tm). Have a look at this document to see the benefits of being a Googler(tm):
(sorry, Googlers only!)

But seriously, I remember someone posted a thread last month about people who dream of being a "googler", everything they do is towards getting a job at Google. "Can't commit myself to this, what if Google hires me?", and so on.

>You kind of dodged the question there.
I live off government money right now. I'm currently a CS student.

tbqh google sounds like a bit of a shit company to work for

I get paid almost as much working somewhere on the east coast, with a lower cost of living, shorter commute, and a more fulfilling job

How fast is Scala native? And is there any scala-llvm compiler?

But you don't have the privilege (whoops, can't use that kind of language here!) to tell your friends (as if you actually have any) that you work at Google (tm)!

Our team has generally high quality tests. If the build is broken (or tests flaky), we discuss it at our dialing standup, and it is always fixed quickly. It's been broken twice in the 6 months since I joined the team, both by tests, once due to a dependency which didn't correctly invoke a presubmit, allowing it to silently break tests in our dependent code. The second time, it was due to a flaky integration test, in this case a simulated load test, which is obviously a more likely test to become flaky.

I don't have any friends so it doesn't bother me

Well, that's not going to last forever. What I can tell you is the 9-5 life isn't ideal for me either, but I'm currently earning multiple times more freedom per hour than I ever have in my whole life, and I've heard you have a lot of flexibility to switch projects at Google relative to other companies, if you feel you need a change.

There are lots of Google offices, you know. You can work on the east coast too.

Holy shit, that's a whole different world than my project. No wonder our pH is 1. I'm kind of jealous.

>I seriously hope you guys don't do this.
Master of Science, Computer Science.

I start my PhD in Computer Science in August.

Are you infrastructure or user-facing? I used to be on an infrastructure team, and it seemed like testing habit were a lot worse.

Hi ruby
When are you gonna get a real job?
Do you plan on becoming a professor?
Otherwise, i don't know how you expect on paying your immense tuition.

Yeah, pretty much that. You could say we face a very small number of really big users. Everyone on our team said our testing/build habits are that way because we're not really consumer facing.

Don't they pay you when you're a grad student?

>You can work on the east coast too.
Looks like only in NYC and Boston, though.

Yeah, my teaching assistantship covered tuition and living expenses for my master's. On the downside, it kind of made me dumber.

>Do you plan on becoming a professor?
Yes.

>Otherwise, i don't know how you expect on paying your immense tuition.
I've got a TA position that covers my tuition and pays a stipend!

For some reason I misread stipend as squirrel at first

I love you

Yeah, the NY office is apparently Google's second largest, however.

That's awesome, ruby. A lot of people give you shit here but I'm proud of you, you're smart guy.

He might have to pay tuition but he got a free squirrel

is it bad to want this to happen to a girl (male)
have you ever seen an overweight / obese trap who was still passable
on a scale of 1-10 am i insane yes or no

If you at all can, try to make a difference. Talk to your manager and see if you can dedicate yourself to improving project health for a quarter. When you're starting from so shitty, that kind of improvement can look really good on your promo packet. People recognize that it has a productivity-multiplying effect.

I don't know where most of your problems are, but Google has a lot of technologies for project health, so you should do some research. Ie, if you don't have hermetic integration tests, you probably should.

It'll also give you some diverse experience across the codebase, which puts you in a good position for coming up with new designs and leading major project efforts in the future.

Crossing the Mason-Dixon line would be very uncomfy for me user, hope you understand

i.4cdn.org/gif/1496903066635.webm

Obesity tends to feminize men a little by lowering testosterone levels IIRC.

>That's awesome, ruby. A lot of people give you shit here but I'm proud of you, you're smart guy.
But her favorite language is Ruby...

What the fuck is wrong with you

Closest thing to a cute overweight passable trap I've seen.

Only exists in 2D I'm afraid.

>squirrel
I once knew a tripfag who went by the name Squirrel, but she died of cancer about 6 months ago. RIP.

The decision wasn't too difficult to make. Professors may be under a greater workload, but they also have a greater degree of freedom in what they choose to work on. Research doesn't have to be profitable to be publishable, so I can put my talents to something more fun than writing CRUD web applications all day in a language and framework that I'll probably hate.

>something more fun than writing CRUD web applications all day in a language and framework that I'll probably hate.
That sweet moolah though, I plan on retiring early because I sure don't write CRUD for pleasure

I don't get the appeal of chastity cages, especially when you're alone.

It's an excuse for /r9k/.

>oh, I'd love to go out and get laid, but I can't because I'm locked up!

Even when alone, it still probably helps to put you in a submissive state of mind.

a maid outfit and a little makeup go a long way

Oh, completely. That's a really sensitive historical issue. Apparently there's offices in DC and NC as well, although DC is from past colonial times so I really can't tell how that factors into your location equation.

Well, I don't know much about Ruby the language, but I've seen his answers here and can tell he's generally smart.
>her favorite
Is Ruby a her? I never knew.

I could try... but the problem is the failures don't really come from my area of the project. Maybe once I feel I'm comfortable on time for my OKRs I'll look into some of the failures and see if I can help. It feels a lot... bigger than me, though.

By the way, it's really awesome to see another Googler in this thread. Just wanted to let you know.

Yeah, exactly, that's why I've wondered if I'll do something past undergrad... I really can't decide, but the endless 9-5 sounds really draining to me.

Is there a site similar to GitHub whose repositories aren't full of garbage and nonsense? By that I mean smaller communities that maintain software of higher average quality levels with regards to craftsmanship.

It's purely about the weather, user. I don't want to endure any more northern winters. But your cultural sensitivity is noted.

big projects have their own git servers, with their own mailing lists, IRCs, or slack servers depending on what decade they started in

Oh, I was joking. I had to look up what the Mason-Dixon line was.

Well pretty much all of these GitHub-type sites let anybody sign up and upload repos, since it's good for growth. Reviewing code is an expensive and time consuming process, so I wouldn't expect anyone to do that.

>I had to look up what the Mason-Dixon line was.
You're joking, surely?

>Maybe once I feel I'm comfortable on time for my OKRs
That never happens, in my experience. Or if it does, it's because you planned for too little, and need to take on extra work. If you don't make time for it, nothing under P2 will ever happen. And if you're not taking into account the time it takes to do good testing and monitoring when writing your OKRs, you're estimating them wrong.

>By the way, it's really awesome to see another Googler in this thread
Yeah, it's nice. There usually seems to be at least one or two Googlers in the thread.

I highly recommend keeping in mind how your team's project health impacts your productivity, satisfaction with your job, ability to tolerate dedicating so many hours of your life to Google, etc. It's pretty easy to transfer around inside Google. I was able to get a job in one of our smaller offices by schmoozing the right people (sent emails to all the TLs in the office, asking if they'd have any positions opening up soon. When they eventually posted the job listing on Grow, I was first on the list and got the job within a week).

Do what's best for your own career. If your team isn't addressing project health issues that are impacting your whole team's productivity, that's a really bad sign.

Lisp is gonna outlive all of these fuccbois

There was a manga on exhen where a girl (male) was pegging (inserting his cock) and femdomming (trapdomming) her (his) boyfriend that became obese as she (he) was trying to train and make him fit again.

Can someone please link me to some good C books?

This

>almost all the interesting jobs are in CA, NYC, Boston, or Seattle
Why? Why force your employers to move somewhere with high cost of living and/or bad weather?

You could move to the next state over and pay everyone $10k less and they'd be happier

shodan.me/books/Programming/C/

employers go where the talent pool is
talent goes where the employers are
that's also why it's so expensive

forgot my (You)

I'm a bretty gud programmer, but I have ochlophobia so I live in the middle of nowhere

Do you really need this many books on C?

thanks bunches

no. these are just for beginners. I would recommend read through Kerningham and Ritchie or the For Dummies book. They are a pretty good starting point though K&R is more of a general guide to C for more experience programmers.

>Anime
Hi.
Go to hell.

anime website, summer fag.

I'm not necessarily talking about gigantic first-tier enterprise stuff. Just useful stuff that isn't broken or never worked to begin with and consists of more than just "muh first binary tree". Now don't get me wrong I don't mean to denigrate new programmers as they have every right to publish their code, but I'm just looking for other public repositories with more interesting and thoughtful work.

The absolute most annoying thing is the incessant FORKING for no apparent reason. The pajeets especially are notorious for this and it fucks with my search results all the time. They have repos full of sometimes hundreds of forked projects completely unrelated to each other and in completely different programming languages and are never even updated after the initial fork. I don't know why the hell they're doing this because it's clear they're not contributing unless they actually need to compile all this software straight from source which I doubt they're doing either. Actually if there were a way to filter out all Indian repos it would make GitHub twice as good.

fuck anime

this board is technology, not vidya. keep your child-like interests on another board.

I've been on Sup Forums for years. This will never happen.

Nah, I was always terrible with history.

Thanks for the advice. Software is kind of like road demand in that the development expands to fit the time budget allotted, so it kind of makes sense. And yeah, it sounds like it's been this way for a very long time - at least as long as my host and his coworkers have been here...

Yeah, I hear your complaints. It's hard to browse GitHub when it's littered with shit. Usually I find the good repos from external links. I don't know of any better options though.

at least i could understand whats written on this en.wikipedia.org/wiki/Automata_theory

When mixing C and C++ code, should I mix object files together, or should I compile the C stuff as a library and call it from C++?

Just compile it all as C++, dont be autistic and make more work for yourself for no reason.

I write a lot of C that isn't accepted as C++, this isn't an option.

>that isn't accepted as C++
then change it, because thats the point of C++.
Sounds like youre desperately trying to cling to C when you know it should all be in C++ but your ego is clouding your judgement.

Also what are you doing that wouldn't be valid c++?

Is there a reason you wouldn't use object files? It just seems like making a library out of it is an annoying path to take, especially if you need to make revisions later.

He's not casting the return value of malloc

Last time I checked, C++ doesn't allow sparse selective assignment in initializer lists, anonymous structs and unions, implicit casting from void *, naming specific members to initialize in initializer lists, incomplete switch cases that abuse drop-through logic, etc.

>should I mix object files together, or should I compile the C stuff as a library and call it from C++?
Call C from C++, but not the other way around. Whether you want to compile to a library or just link in the .o files is your choice. Just use whatever requires less changes to your makefile.

Lots of valid C11 isn't valid C++. Mixing C with C++ is pretty simple as long as you're using extern "C".

I think that might be the funniest thing that has ever slightly turned me on.
My dick is laughing.

>Has to be prego
actually i think it's breyers

a lot of those are some bad habits but fair enough.
apparently, its bee n awhile since ive used both though.

What build system do you typically use, Make? CMake?