[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 325
Thread images: 36

File: shiggy382.png (481KB, 611x508px) Image search: [Google]
shiggy382.png
481KB, 611x508px
old thread: >>60947113

>his degree says "computer" on it
I seriously hope you guys don't do this.
>>
first for go
>>
File: learnc.png (2MB, 1058x1600px) Image search: [Google]
learnc.png
2MB, 1058x1600px
>>60952630
What do you guys think of working for big tech companies?
>>
>>60952645
>go
away
>>
>>60952645
https://github.com/ksimka/go-is-not-good
>>
>>60952653
Cuck tier.
>>
Give me one reason why you haven't pasted the quake source into a typing tutor
>>
>>60952687
Because nobody composes code at the same rate you would compose text.
>>
>>60952653
>forced to give up copyright on all side projects
>the company becomes your sole form of income
>"this is just standard stuff anon, also pls sign this no-compete agreement"

It shouldn't come as a surprise why i'm still a neet.
>>
File: 1471897790781.jpg (147KB, 640x960px) Image search: [Google]
1471897790781.jpg
147KB, 640x960px
>>60952630
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
>>
>>60952726
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.
>>
>>60952764
>he needs permission to be granted copyright on his own inventions

AMERICA
>>
File: 1497427613154.png (126KB, 800x769px) Image search: [Google]
1497427613154.png
126KB, 800x769px
>>60952755
Has to be prego, has to be, gotta be, must be. Which makes my erection troubling.
>>
>>60952764
This. (and not only big companies)
>>
File: yandere.jpg (178KB, 1280x720px) Image search: [Google]
yandere.jpg
178KB, 1280x720px
>>60952674
Why?

>>60952726
>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.

>>60952764
Interns like me can't use IARC though, which sucks. I basically can't do anything the whole summer.
>>
>>60952630
>>his degree says "computer" on it
>I seriously hope you guys don't do this.

What's the meme on this one?
>>
>>60952764
>>60952806
God fucking damnit, I refuse to put up with this bullshit.
I'm never getting a job.
>>
>>60952786
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
>>
>>60952783
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.
>>
>>60952835
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 <stdio.h>
#include <stdlib.h>

//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)
>>
File: go-lang-ng.jpg (48KB, 600x572px) Image search: [Google]
go-lang-ng.jpg
48KB, 600x572px
I can do anything you can do better (with go!)
>>
>>60952864
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.
>>
>>60952852
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.
>>
>>60952869
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.
>>
>>60952870
Don't forget the C++ Programming Language by none other than Bjarne Stroustrup himself and C++ Primer
>>
>>60952852
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.

>>60952901
You kind of dodged the question there.
>>
>>60952902
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):
<http://some adress> (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.
>>
>>60952927
>You kind of dodged the question there.
I live off government money right now. I'm currently a CS student.
>>
>>60952936
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?
>>
>>60952960
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)!
>>
>>60952927
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.
>>
>>60952981
I don't have any friends so it doesn't bother me
>>
File: portal.jpg (91KB, 511x768px) Image search: [Google]
portal.jpg
91KB, 511x768px
>>60952943
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.

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

>>60952988
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.
>>
>>60953020
Are you infrastructure or user-facing? I used to be on an infrastructure team, and it seemed like testing habit were a lot worse.
>>
>>60953030
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.
>>
>>60953039
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.
>>
>>60953042
Don't they pay you when you're a grad student?
>>
>>60953020
>You can work on the east coast too.
Looks like only in NYC and Boston, though.
>>
>>60953066
Yeah, my teaching assistantship covered tuition and living expenses for my master's. On the downside, it kind of made me dumber.
>>
>>60953042

>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!
>>
>>60953109
For some reason I misread stipend as squirrel at first
>>
>>60953109
I love you
>>
>>60953082
Yeah, the NY office is apparently Google's second largest, however.

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

>>60953116
He might have to pay tuition but he got a free squirrel
>>
>>60952839
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
>>
>>60953063
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.
>>
>>60953131
Crossing the Mason-Dixon line would be very uncomfy for me anon, hope you understand
>>
>>60953151
https://i.4cdn.org/gif/1496903066635.webm
>>
>>60953151
Obesity tends to feminize men a little by lowering testosterone levels IIRC.
>>
>>60953131
>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...
>>
File: 1491831681781.png (402KB, 468x439px) Image search: [Google]
1491831681781.png
402KB, 468x439px
>>60953176
What the fuck is wrong with you
>>
>>60953201
Closest thing to a cute overweight passable trap I've seen.
>>
File: img_097.png (116KB, 402x344px) Image search: [Google]
img_097.png
116KB, 402x344px
>>60953151
Only exists in 2D I'm afraid.
>>
>>60953116

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

>>60953131

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.
>>
>>60953255
>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
>>
>>60953176
I don't get the appeal of chastity cages, especially when you're alone.
>>
>>60953296
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!
>>
>>60953296
Even when alone, it still probably helps to put you in a submissive state of mind.
>>
>>60953176
a maid outfit and a little makeup go a long way
>>
File: guesswho.gif (786KB, 300x168px) Image search: [Google]
guesswho.gif
786KB, 300x168px
>>60953156
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.

>>60953199
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.

>>60953152
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.

>>60953255
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.
>>
>>60953339
It's purely about the weather, anon. I don't want to endure any more northern winters. But your cultural sensitivity is noted.
>>
>>60953342
big projects have their own git servers, with their own mailing lists, IRCs, or slack servers depending on what decade they started in
>>
>>60953376
Oh, I was joking. I had to look up what the Mason-Dixon line was.

>>60953342
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.
>>
>>60953433
>I had to look up what the Mason-Dixon line was.
You're joking, surely?
>>
>>60953339
>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.
>>
File: 1497748222996-ck.jpg (25KB, 480x526px) Image search: [Google]
1497748222996-ck.jpg
25KB, 480x526px
>>60952755
Lisp is gonna outlive all of these fuccbois
>>
>>60953151
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?
>>
>>60953479
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
>>
>>60953503
https://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
>>
>>60953539
forgot my (You)
>>60953511
>>
>>60953551
I'm a bretty gud programmer, but I have ochlophobia so I live in the middle of nowhere
>>
>>60953518
Do you really need this many books on C?
>>
>>60953518
thanks bunches
>>
>>60953600
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.
>>
>>60953692
anime website, summer fag.
>>
>>60953398
>>60953433
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.
>>
>>60953771
I've been on /g/ for years. This will never happen.
>>
File: pokemon.png (762KB, 699x1003px) Image search: [Google]
pokemon.png
762KB, 699x1003px
>>60953445
Nah, I was always terrible with history.

>>60953452
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...

>>60953753
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.
>>
>>60952630
at least i could understand whats written on this https://en.wikipedia.org/wiki/Automata_theory
>>
File: nani?!??!.jpg (270KB, 1920x1080px) Image search: [Google]
nani?!??!.jpg
270KB, 1920x1080px
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++?
>>
>>60953954
Just compile it all as C++, dont be autistic and make more work for yourself for no reason.
>>
>>60953995
I write a lot of C that isn't accepted as C++, this isn't an option.
>>
>>60954007
>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++?
>>
>>60953954
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.
>>
>>60954033
He's not casting the return value of malloc
>>
>>60954033
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.
>>
>>60953954

>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.

>>60954033

Lots of valid C11 isn't valid C++. Mixing C with C++ is pretty simple as long as you're using extern "C".
>>
>>60953498
I think that might be the funniest thing that has ever slightly turned me on.
My dick is laughing.
>>
>>60952786
>Has to be prego
actually i think it's breyers
>>
>>60954085
a lot of those are some bad habits but fair enough.
>>60954086
apparently, its bee n awhile since ive used both though.
>>
>>60954111

What build system do you typically use, Make? CMake?
>>
>botfags
>>
>botfags
>>
>botfags
>>
>botfags
>>
File: tumblr_of8ak1RPX01r5kws5o1_1280.jpg (77KB, 474x945px) Image search: [Google]
tumblr_of8ak1RPX01r5kws5o1_1280.jpg
77KB, 474x945px
I'm trying to get into chatbots. Have studied a bit of theory, but looking for resources to help me get moving. Any links/ recommendations?

Am writing in python primarily. C++ and Java experience.
>>
>>60954362
I dont use C/++ anymore so i use neither.
Used make for both though.
>>
>>60953376
I thought you were implying you were black, lmao
>>
(((struct)))
>>
>>60954094
For you https://exhentai.org/g/1027902/6a6810f485/
>>
File: aleve.png (127KB, 593x245px) Image search: [Google]
aleve.png
127KB, 593x245px
>>60954426
I don't have any good recommendations, but I just wanted to let you know that the state of the art today isn't that great, for chatbots in the "conversational" sense. Nobody has it figured out. It's funny, cause we have amazing TTS and speech recognition software today but not that much to do with it. But you probably knew that already.

>>60954546
>my penis attack is ineffective :^(
That's the secret, you wouldn't expect it but the weak point is in not the front, but the back - you just need to come around jam it in from behind.
>>
***class***
>>
>message passing
>>
>something something language something shitposting something
>>
>positive thing about language i like
>>
File: trex.gif (1015KB, 475x475px) Image search: [Google]
trex.gif
1015KB, 475x475px
>>60954799 >>60954858
>>60954861 >>60955005 >>60955033
What are you doing?
>>
>>60955061
did he ded?
>>
>>60955061
Message passing > structs > classes
>>
File: holyshit.MOV.webm (695KB, 1280x720px) Image search: [Google]
holyshit.MOV.webm
695KB, 1280x720px
HOLY SHIT. LOOK WHAT I MADE
>>
>>60955065
absolutely patrician post
>>
>>60955148
my hands are shaking too
>>
>>60955148
now have sex with it
>>
>>60955174
That just looks worse than it is desu, because of the 50mm lens. Was too lazy to switch it
>>
>>60955148
Is that an ATmega328
>>
>>60955183
yes. to be exact a 328p
>>
File: sachiko.png (323KB, 784x1008px) Image search: [Google]
sachiko.png
323KB, 784x1008px
I wrote a makefile that can indiscriminately accept C and C++ source code and link it without additional changes, it works really well.

Do you think this is is overkill?
$(filter $(wildcard $(patsubst $(OBJ)/%.o,$(SRC)/%*, $@)), $(INPUT))
>>
>>60955189
Nice. You didn't pussy out and make a breadboard Arduino setup, did you? Is that deployed with avr-gcc and avrdude?
>>
>>60955219
Yes it is.
I rarely use arduino nowadays, but nevertheless arduino is a very very good way to start embedded, I think.
I went from raspberry > arduino > pure avr + C
feels comfy.

Just got new breadboards yesterday and thinking about what I could do next lel, but got no ideas right now.
>>
>>60955264
I'm half teasing, I actually started with Arduino before going bare bones too. I don't think I would have made it as far as I did without Arduino existing.

I hear these days there's been a trademark/IP schism because some dude got greedy or something. Shame the brand is self destructing.

And yeah, I feel your pain. Lots of stuff from Digi-Key and then blanking on ideas.
>>
File: sweat frog.png (209KB, 604x613px) Image search: [Google]
sweat frog.png
209KB, 604x613px
How do I make sure I don't get cucked out of my home projects if I start working somewhere new?

Is it purely a Clapistani thing? I work in a bank in Estonia and many of our employees have side projects/businesses.
>>
>>60955456
Save up money and invest in shit instead. Why would you want to work for free
>>
>>60955494

Because I still have a dream of scoring big good goy points with one of my own projects so I can quit my day job.
>>
>>60955507
It better be one goddamn good project.
>>
File: Pepper Slayer.webm (3MB, 799x410px) Image search: [Google]
Pepper Slayer.webm
3MB, 799x410px
It runs at 60 FPS, but my screen capture is shit.
>>
>>60955541

Right now I don't have anything worthwhile, but I don't want to get cucked by some (((contract))) if I do.

Do companies straight up refuse to hire you if you don't sign an NCC or give up your home projects to them?
>>
>>60955571
I'm sure some do. Don't sign anything without negotiating first obviously. Anything is negotiable.
>>
>>60955456
dumb frogposter
>>
>>60955548
>html
I think you should leave.
>>
>>60955643
Dumb dumbposter
>>
>>60955650
>ignoring the fact that I just wrote an entire game engine from scratch
k
>>
File: 1489911722053.jpg (123KB, 2048x1025px) Image search: [Google]
1489911722053.jpg
123KB, 2048x1025px
>>60955584
>tfw living in first world European country and not some third world shithole like California or Clapistan
>>
>>60955677
>an entire game engine from scratch
That's stretching it quite a lot. Still the guy is retarded.
>>
>>60955456
Just read your damn contract for once

You're literally signing your life to a corporation for fuck's sake, there's only a few parts you need to pay attention to and the rest you can skim
>>
File: 1486546054409.png (206KB, 1110x744px) Image search: [Google]
1486546054409.png
206KB, 1110x744px
>tfw half of your codebase is a messy holdover from when you were a newfag but you won't refactor it because it just worksâ„¢
>>
File: 54e0a11ac9176.jpg (62KB, 510x482px) Image search: [Google]
54e0a11ac9176.jpg
62KB, 510x482px
They trick retards into signing away all of their rights because they're absolutely overwhelmed that they were just offered a job after hundreds of failed interviews and they don't want to fuck this up.
>>
>>60955851
dumb frogposter
>>
>>60955456
just look up the laws in the country you want to work in and you can usually negotiate the terms of the contract if they need you more than you need them
>>
>>60955899
>f they need you more than you need them
haha

if you try to negotiate they'll show you the door and bring in one of the other 2000 people who applied, and they won't negotiate.
>>
>>60955957
t. accepts lowball one-sided offers without a second thought
>>
>>60955857
Most companies here (Europe) don't mind ditching the clause of personal projects.
>>
>>60955957
t. expendable code monkey
>>
>>60952653
sauce?
>>
https://www.youtube.com/watch?v=olbTX95hdbg
>Rust could have had quasi-dependent types/contracts
>Rust could have had structural typing
>Rust could have had green threads
>Rust could have had a GC
Wew, we've dodged a lot of bullets here.
>>
>>60956195
B... but muh evil gc.
>>
>>60956195
not enough of them
>>
>>60955213
>makefile
>in the year of 2017
Take your pills, granny
>>
>>60952630
Should I choose Scala or OCaml as my pet programming language?
>>
>>60956292
>Not using a makefile
>In the year 2017
>>
>>60956339
lisp
>>
>>60956355
>1100 pages
No
>>
>>60956339
Clojure
>>
>>60956364
what is 1100 pages
>>
>>60956389
CL book
>>
>>60956394
lol just read the hyperspec
>>
>>60956364
Learn Scheme then, its standard is only 70 pages.

Even Common Lisp is easy to learn lmao.
>>
>>60956339
OCaml my sis
>>
>>60956195
>not having a CG
>dodging a bullet
Lmao the state of rustoddlers everyone
>>
>>60956436
>tfw paid to be a OCaml developer.
>>
>>60956456
Ocaml a shit, prove me wrong.
>inb4 proof of burden
>>
>>60956339
Why not Haskell? It's as useless as OCaml but at least it's aesthetic and pure.
>>
>>60956464
>1100 pages
No
>>
>>60956464
>useless as OCaml
So not useless?
>aesthetic
No
>pure
No + irrelevant
See me after class.
>>
>>60956474
>can't read
>wants to learn
lmao
>>
Reminder that the only objectively aesthetic languages are C and Pascal.
>>
>>60956482
>Pet language
>Takes more reading than the right hand language
Nah nice try
>>
>>60956462
Caml is the sole language that made recursiojn explicit.
Caml has no implicit conversion.

Caml is the superior language.
>>
>>60956491
>C
********void **C your &&&life
>>
>>60956494
>explicit recursion
benfits?
>no implicit conversion
?benefits

>superior language
benf?its
>>
>>60956492
Any language worht a salt has bulky documentation.
>>
>>60956494
What is an ``explicit recursions"?
>>
>>60956516
I didn't disagree
>>
>>60956523
If you want to do recursion you must explicit the recursion:
invalid
let fact n = if n = 0 then 1 else n * fact (n - 1)

valid:
let rec fact n = if n = 0 then 1 else n * fact (n - 1)
>>
>>60956524
I didn't agree or disagree.
>>
>>60956531
What are the benfits, you fucking moron.
I bet that's required because it'd be easier for the compiler to generate code.
>>
>>60956531
So a keyword is an ``explicit recursions"?
>>
>>60956541
>What are the benfits, you fucking moron.
Go back to your C++.

>>60956554
``rec'' is used to do recursion.
>>
>>60956568
So ``rec" is an ``explicit recursions"?
>>
>>60956531
Disgusting trash.
>>
>>60956531
lmao, in haskell this is just
factorial n = product [2..n]
>>
>>60956494
Is it Turing-complete?
>>
>>60956573
It's the keyword to declare recursion.

>>60956578
OK. Please show me (ie. I want a proof) the complexity of your algorithm.

>>60956581
Of course.
>>
>>60956585
>OK. Please show me (ie. I want a proof) the complexity of your algorithm.
O(1) since there is a single instruction
>>
>>60956578
return n>1 ? n*fact(n-1) : 1;
>>
File: 1494111223417.jpg (107KB, 879x623px) Image search: [Google]
1494111223417.jpg
107KB, 879x623px
>>60956585
>Of course.
Not interested then.
>>
File: Screenshot_20170618-130832.jpg (20KB, 1440x326px) Image search: [Google]
Screenshot_20170618-130832.jpg
20KB, 1440x326px
help please
>>
>>60956578
I have been using Haskell for awhile now, and this is what I have found wrong with the language:
>horrid macro system
>modules are deficient compared to the module system of OCaml or the package system of Common Lisp
>partial functions pervade the language
>broken records (ugly hacks are needed to get around their deficiencies, leading to overengineered libraries like lens)
>most libraries are in alpha and look like a college student's summer project
>library authors tend to pepper their libraries with ugly, meaningless, custom operators, contributing to the overall ugliness of the ecosystem
>String as [Char]
>easily subverted type system with unsafe functions
>laziness makes it a chore even for experienced programmers to reason about algorithmic complexity
>in 30 years of existence, Haskell has yet to become a proven asset in industry
>>
>>60956612
Unreadable, no optimized tail recursion.
>>
>>60956617
>>
>>60956617
But look how pretty this is.
abs n | n < 0 = -n
| otherwise = n
>>
>>60956645
>otherwise
It's pretty ugly actually. The rest is fine though, expect for the lack of a type signature.
>>
>>60956623
Not unreadable, and making a one-liner was more important than speed.
>>
I fell out of love with Haskell, but I seriously find it helpful to think in Haskell.
Solutions come to me just like that.
Thanks Haskell!
>>
>>60956645
firstTruthy :: Monad m => (a -> Bool) -> [m a] -> m (Maybe a)
firstTruthy f = foldr
(\x r -> x >>= uncurry (bool r) . (return . Just &&& f))
(return Nothing)


so pretty :3
>>
>>60956770
That's just right wing propaganda against Haskell.
Look at this
qsort [] = []
qsort (x:xs) = qsort s ++ [x] ++ qsort b
where (s, b) = partition (<x) xs
>>
>>60952630
My penis for a worshipper.

Okay, my assignment tells me to create a shortened constructor for greytones in a RGB coloring class.

What do they mean by that?
I did insert some conditions that should slowly ensure that all colors are equal for DAT GREY inside the constructor.
I have some unsure feelings that wasn't what was actually asked, right?
>>
>>60956810

You're the guy from before right?
Grey colours have equal RGB values.
So in addition to your full constructor which takes RGB parameters, you should have a secondary constructor which takes a single parameter and sets this.red, this.green and this.blue to that value.
>>
>>60956800
Haskell is a form of anime and thus is strictly right wing.
>>
>>60956800
Please insert complexity of qsort.
>>
>>60956800
>Not in-place
That's not even quicksort.
>>
File: scr.png (33KB, 647x409px) Image search: [Google]
scr.png
33KB, 647x409px
Here is the latest and greatest iteration of my Scrabble Value Calculator program, now complemented with a lookup table for blazing-fast computational efficiency. It also displays some more statistics to the user upon exit.

https://pastebin.com/BupUwhds
>>
>>60956918
O(n!)
>>
>>60956800
>Picks the first element as the pivot
qsort [1..100000]
>>
>>60952630
Any SICP reading grou presently? Just started reading it and would like to have some company. If yes, link me to discord, irc or whatever you're using.
>>
File: 1485127028587.png (145KB, 615x603px) Image search: [Google]
1485127028587.png
145KB, 615x603px
>>60957121
>discord
>>
>>60957121
I just read the lisp hyperspec.
>>
What the fuck is a future?
>>
>>60956682
return n>1 ? fact(n-1,n*acc) : acc;
>>
File: 1497471142770.jpg (10KB, 400x400px) Image search: [Google]
1497471142770.jpg
10KB, 400x400px
>>60957147
Something you don't have.
>>60957121
>discord
stop that
>>
>>60957147
One you don't have :^)
>>
>>60957147
It's a trait, https://docs.rs/futures/0.1.14/futures/future/trait.Future.html :
pub trait Future {
type Item;
type Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error>;
//Lots of pre-defined methods here
}
>>
>>60957147
abstract bullshite you will never comprehend
>>
>>60957147
it's a gay
>>
>>60957171
wtf is this shit
>>
File: assembly-language.jpg (33KB, 800x400px) Image search: [Google]
assembly-language.jpg
33KB, 800x400px
any one here good with assembly that can explain this shit to me.
im currently looking over some optimized output and noticed these two lines right after each other
mov rax, qword ptr [rsp+50h]
mov qword ptr [rsp+50h], rax

why does it write back the same shit it literally just read? or am i missing something
>>
>>60957066
And? All qsort have that default.
>>
>>60957196
the result of affirmative action
>>
>>60957121
I would like that tbqh, on chapter 2 myself
>>
>>60957218
dear god why would anyone need this, isn't the main functionality of C and C++ enough?
>>
>>60957207
No they don't, idiot. Picking the first/last/whatever element is well known to be fucking stupid. That's the sort of shit which leads to O(n^2) runtimes for very common situations.
Median-of-three is a much better and more commonly used way of picking the pivot.
>>
>>60957196
Apparently, it's the best way to do async stuff in Rust.
>>
>>60957166
>>60957126
I don't personally use it but every reading group I've found on lainchan and /sci/ has been using it.
>>
>>60957204
>>
>>60957204

mov eax, 5

destination before source anon and yes it literally writes into rax and then writes itself again through rax
>>
>>60957149
>>60956682
>>60956623
>>60956612
WIth -O2 it makes no difference to gcc.
>>
>recursion
hahah, any serious programmer just uses loops, and no it's not because they don't "understand" it you dunning-kruger summerfags
>>
>>60957286
Do NOT respond to bait.
>>
>>60957263
i know, but what im curious about is why it does it.
ive found it a few places in the code so far and wandering if theres a good reason for this... idiom?
it seems really wasteful to me
>>
>>60957286
the universe works through recursion
>>
>any serious programmer just uses loops
Any serious programmer wouldn't touch Turing-complete garbage.
>>
>>60957286
Can confirm.
t. serious programmer
>>
>>60957306
So that the code would take more CPU cycles to execute so that you would need to buy a faster CPU.
>>
>>60957147
A way to simplify getting back values from async operations:

cat futures.cpp && g++ futures.cpp -std=c++1z -pthread && ./a.out 
#include <future>
#include <iostream>

int main()
{
using namespace std::chrono_literals;
std::future<int> f1 = std::async(std::launch::async, []() {
std::cout << "started\n";
std::this_thread::sleep_for(10s);
std::cout << "finished\n";
return 1;
});
std::this_thread::sleep_for(1s);
std::cout << "before wait\n";
f1.wait();
std::cout << f1.get() << " after get\n";
return 0;
}

started
before wait
finished
1 after get
>>
>>60957252
just because everybody else likes to rub liquid dog shit on their faces, doesn't mean you should
>>
>>60957345
>C++
Fucking disgusting.
>>
>>60957345
>never used iostrim
>never will
>>
>>60957353
>your mom
fucking disgusting
>>
>>60957252
>reading group I've found on lainchan and /sci/
Such as?
>>
>>60957347
It's not liquid dog shit and the point of a reading group is to have other people to discuss it with, if everybody's just using that they're not going to change because I prefer IRC.
>>
>>60957383
Recently in lainchan, there was one for learning machine learning and general AI talk. It's probably in the ML thread
>>
>>60957387
It is liquid dog shit, and a reading group is not reason enough to rub liquid dog shit on your face.
>>
>>60957338
how does one qualify for a serious programmer?
>>
>>60957402
You're obviously just a poser that overreacts about some piece of software because you wish to signal how much of a special snowflake you are.
>>
>>60957434
lie to an employer until they start giving you money
>>
>>60957345
>>>/trash/
>>
>>60957437
>You're obviously just a poser
What exactly is he pretending to be here? You have to be delusional to be surprised at someone despising discord.
>>
>>60957474
>>60957298
>>
>>60957235
>Median-of-three is a much better and more commonly used way of picking the pivot.
You didn't change the complexity of the algorithm. Please shut up filthy ignorant.
>>
>>60957474
Can't you read? I said he's exaggerating, there's no good reason to feel so strongly about discord.
>>
>>60957507
It doesn't change the big O complexity, but it does stop a very common case (sorted or reverse sorted list) from being the worse case, and stops an actual n^2 worst case from happening.
>>
>>60957437
you may as well fuck off to reddit you fucking faggot
>>
>>60957121
jesus christ what are you a 50 yo soccer mom? you seriously need someone to socialize with while you read a programming/cs textbook?
>>
>>60957514
>there's no good reason to feel so strongly about discord
Perhaps for someone with extremely low standards.
>>
>>60957514
If you're used to non-bloated free software, you would probably feel strongly about discord.
>>
>>60957542
>stops an actual n^2 worst case from happening.
No. Clearly you're an ignorant. Please shut the fuck up.
>>
File: 1457893150114.png (278KB, 706x412px) Image search: [Google]
1457893150114.png
278KB, 706x412px
>>60952630
Why are all these poor souls using such a bad language as Shitkell? Are they being forced to do it?
>>
>>60956800
sort :: (Ord a) => [a] -> [a]
sort = sortBy compare

sortBy :: (a -> a -> Ordering) -> [a] -> [a]
sortBy cmp = mergeAll . sequences
where
sequences (a:b:xs)
| a `cmp` b == GT = descending b [a] xs
| otherwise = ascending b (a:) xs
sequences xs = [xs]

descending a as (b:bs)
| a `cmp` b == GT = descending b (a:as) bs
descending a as bs = (a:as): sequences bs

ascending a as (b:bs)
| a `cmp` b /= GT = ascending b (\ys -> as (a:ys)) bs
ascending a as bs = as [a]: sequences bs

mergeAll [x] = x
mergeAll xs = mergeAll (mergePairs xs)

mergePairs (a:b:xs) = merge a b: mergePairs xs
mergePairs xs = xs

merge as@(a:as') bs@(b:bs')
| a `cmp` b == GT = b:merge as bs'
| otherwise = a:merge as' bs
merge [] bs = bs
merge as [] = as
>>
let insert le x l =
let rec loop accu = function
| [] -> List.rev_append accu [ x; ]
| y :: ys as l ->
if le y x then
loop (y :: accu) ys
else
List.rev_append accu (x :: l) in
loop [] l
;;

let sort le l =
let rec loop accu = function
| [] -> accu
| x :: xs ->
loop (insert le x accu) xs in
loop [] l
;;
>>
>>60957754
>unbloated
Meme buzzword that means nothing and is just used for /g/tards to circlejerk and point to trivial problems that don't manifest in any way to the user.

Also, all my chatting is done on IRC.


>>60957694
Stop larping as being this autistic you fucking moron.
>>
>>60957846
they're hipster code artisans, they're too good for the popular languages
>>
>>60957887
fuck off to reddit discord shill
>>
>>60957896
>they're too good for the popular languages
I think you meant this as a joke, but that's probably true. Which makes me wonder why they would use such a bad language.
>>
>>60957887
>Meme buzzword
Fuck off to some other board. Your kind isn't welcome here. I suggest >>>/v/ since you seem to like "discord" so much.
>>
>>60957896
so ruby and php coders can't actually call themselves code artisans :thinking:
>>
>>60957907
>shill
Another buzzword. I only browse this board ironically, do know you're universally known for being tech illiterates.
>>
File: java.jpg (31KB, 750x422px) Image search: [Google]
java.jpg
31KB, 750x422px
>>60952630
Is there any way in java to have an enum checked against multiple types like this:

this.__Enum == (_Enum.Type1 || _Enum.Type2)


or do I actually have to go the full way:

this.__Enum == _Enum.Type1 ||
this.__Enum == _Enum.Type 2
>>
Can anybody suggest a language that is strictly better than Haskell?
>>
>>60957934
>Say I don't use discord
>Point out that I only use IRC
>Retarded /g/ baby somehow misinterprets this as shilling discord and liking it
Typical /g/ retards.
>>
File: hipster fedora.jpg (18KB, 236x354px) Image search: [Google]
hipster fedora.jpg
18KB, 236x354px
>>60957939
>I only browse this board ironically
>>
>>60957947
Coq.
>>
>>60957939
>I only browse this board ironically
Fuck off to some other place then. Your kind isn't welcome here.
>do know you're universally known for being tech illiterates
This is common knowledge.
>>
>>60957947
Agda. Idris.
>>
>>60957948
you're just as retarded as everyone else ITT. kill yourself.
>>
File: 1494922328131.png (194KB, 562x389px) Image search: [Google]
1494922328131.png
194KB, 562x389px
>>60957948
Who are you quoting?
>>
>>60957947
Forth with dependent types.
>>
>>60957939
>>60957298
God damn you idiots.
>>
>>60957950
I said that ironically too, dumb faggot.
>>60957961
>Your kind isn't welcome here
Wittle /g/ toddler is mad that someone who isn't super autistic is in their hugbox secret group board? You're so pathetic, lol
>>
>Wittle
>lol
Your IQ must be at least 30 to post in these threads.
>>
>>60958017
>/g/ toddler
>super autistic
>You're so pathetic
https://en.wikipedia.org/wiki/Psychological_projection
>>
>>60957946
switch with fallthrough
>>
>>60957973
Incoherent instances
>>
>>60958044
>https://en.wikipedia.org/wiki/Psychological_projection
https://en.wikipedia.org/wiki/Double_Psychological_projection_because_everyone_who_insults_me_is_really_just_insulting_themselves_lol
>>
>>60958047
C++ levels of ugliness.
>>
>>60958071
Yes, that too.
>>
>>60958052
you're delusional if you think you aren't autistic. no sane normal person would spend his time shitposting the way you do
>>
>>60958071
Haskell really is the C++ of functional programming.
>>
>>60958089
GHC Haskell*
>>
>>60958086
I'm not a /g/ toddler
I'm only autistic, not super autistic
I'm not pathetic

Learn to read what you accuse me of, you dumb faggot.
>>
Am I wrong in thinking I should use a map function (of any language that implements it) to try to copy the behavior of a "select value from table where x"?
>>
>>60958146
yes
>>
>>60958146
you're thinking of a filter function
>>
>>60958045
fallthrough meaning the default case?
>>
>>60958171
Thanks, that's the one
>>
>>60958135
You seem to be new here. All the *chan websites are born out of anime culture.
We apologize that seems to intrinsically trigger your plebbit sensibilities.
>>
>>60958178
https://stackoverflow.com/questions/188461/switch-statement-fallthrough-should-it-be-allowed
>>
>>60956770
That code was written by me with the intent of scaring off a python baby and is in no way representative of the Haskell community.
>>
>>60957887
It uses orders of magnitude more resources than an IRC client or teamspeak (or even both combined), the addtional features like le epic meme images are unnecessary for anyone other than a videogame playing toddler.
>>
>>60958045
Pretty sure Java doesn't have that.
>>
I'm prototyping collaborative filtering recommender system in Python.
>>
>>60958326
wrong
>>
>>60958325
don't forget the disaster of a privacy policy
>>
>>60958338
I must've been misremembering then. Sorry for the misinformation.
>>
>>60958362
you might be thinking of C# which disables switch fallthrough by default and makes you use goto
>>
Does anyone know of an IDE for C#? i struggling with a piece of code that i can't debug correctly.

I'm a newbie and im desperate cause im running out of time for an assignment, please help.
>>
>>60958337
>Python
Why not just shit on the floor? It's easier and more productive
>>
>>60958386
MSVC

Please be trolling, I don't want people who are actually this clueless to have degrees
>>
>>60958431
kys
>>
New thread:

>>60958476
>>60958476
>>60958476
>>
>>60958444
if it makes you feel any better im not from the US nor from Europe.

i've tried visual studio and it asks me for an account, then it gives me an error about cookies, i'm looking for something different than MS dev tools if it exists for C#
>>
>>60958484
Apparently there's this: http://www.monodevelop.com/

I don't know if it's any good
>>
>>60958146
in sql this is literally just
select value from table where x
>>
>>60958518
i tried that one too, but what i cant understand is how to target a debugger mode for testing.

i've been using the command line so far. Im sorry if im too clueless, im new to this.
>>
>>60956849
Yeah. I am very grateful for your input.
>>
>>60958484
Australia?
>>
>>60958567
Argentina, why?
>>
>>60958583
My parents warned me about Australians
>>
>>60958613
i need help please, you guys are the tech savvy guys, i don't know where else to ask, the assignment is due for today and i can't even test the code.
>>
New thread (English version)

>>60958621
>>60958621
>>60958621
>>60958621
>>60958621
Thread posts: 325
Thread images: 36


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.