[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: 323
Thread images: 39

File: 1504773998486.png (351KB, 639x480px) Image search: [Google]
1504773998486.png
351KB, 639x480px
What are you working on, /g/?

Old thread: >>62330399
>>
First for C# is no better than Java.
>>
Second for C++ > C# > Java
>>
>>62336769
Working on overthrowing the government of the USA using LUA.
>>
first for good anime without sexual undertones
>>
>>62336805
This, they're basically the same language
>>
Preparing my project to be pushed to GitHub.
>>
>>62336834
Texhnolyze
>>
slow day huh
>>
>>62336834
Grappler Baki
>>
>>62336987
busy preparing for apocalypse here
>>
>>62336833
I'm sure you meant Lua.
>>
File: dab.png (449KB, 605x746px) Image search: [Google]
dab.png
449KB, 605x746px
I watched all of serial experiments lain and I still don't get it.
Why do you people keep recommending it?
>>
>>62337035
Same, preparing for the cyberpunk revolution.
>>
>>62337039
>Cute, troubled girl
>Technology
>Evil forces out to get the MC (fuel for /g/'s paranoia)
>>
>>62337036
Did I?
>>
>>62337087
Didn't you?
>>
>>62337100
No, I didn.t.
>>
>>62337035
>hurricanes destroy America
>India is not world programming superpower
>>
>>62337166
I'm sure you meant didn't.
>>
>>62337039
2deep4u
>>
>>62337231
That id id.
>>
What you program? Porns?
>>
>>62337269
I'm writing the engine for a slightly ecchi cyberpunk survival game. Will be closed source, I want some of those indie game bux.
>>
Does Doom 3 have the cleanest code in any videogame ever?
>>
>>62337321
post example
>>
File: 1490053598775.png (2MB, 1920x1080px) Image search: [Google]
1490053598775.png
2MB, 1920x1080px
>>62337039
If you don't care about it then forget about it. If you want to figure it out, break it apart. Watch an episode and after the episode you try to recap what you've watched (tell yourself the story then you'll notice what you didn't understand and actually figure some stuff out). Rewatch scenes you didn't understand and think again. If you still can't figure it out write down which scene it was and continue with the next episode. If you've done this you should have figured pretty much everything out. Maybe go back to scenes you still haven't figured out and with the knowledge you've gathered you might succeed and if not, go to /a/ and discuss there while explaining your ideas to be called a brainlet and get people to read your thread.
>>
>>62337321
The Minecraft source code is actually pretty clean and comfy, tbqh
>>
>>62336614
This is what I came up with:
for i in $r
do
echo $i
n=$(echo $i | grep -Eo '^([0-9]+)')
txt=$(echo $i | cut -d: -f2)
echo $txt > tmp1
grep -Po '".*?"' tmp1 > tmp2
len=$(cat tmp2 | wc -l)
echo $n
echo $len
yes $n | head -n $len > tmp
paste -d\| tmp tmp2
done
>>
File: yfw.jpg (101KB, 1280x960px) Image search: [Google]
yfw.jpg
101KB, 1280x960px
>>62337336
>mfw there's absolutely nothing to figure out but
>2deep4me
>>
>>62337394
>nothing to figure out
Oh yeah? What was the alien all about, then? Why was it spying on people? Why did it grin at Lain? Why did Lain later have its body?
>>
File: 1488821353595.jpg (2MB, 1920x1080px) Image search: [Google]
1488821353595.jpg
2MB, 1920x1080px
>>62337394
Oh, you just don't understand why people like it, I read you comment wrong. Well then it's obviously
>>62337086
>>
>>62337332
http://kotaku.com/5975610/the-exceptional-beauty-of-doom-3s-source-code
>>
>>62337039
it's not a romance, it's technology related, it deals with heavy subject matter, and the writing doesn't treat the audience like they're 12 years old
>>
>>62337449
>kotaku
pastebin that shit
>>
>>62337342
is the entire source out?Notch claimed he would release it if the sales dwindled enough. I think its bullshit though
>>
>>62337454
>heavy subject matter
Right...
>>
>>62337465
Nah, it's not. Doubt he'll release it now that Microsoft owns it.
>>
>>62337465
He doesn't own the source, microsoft owns mojang now.
There's also 3 separate codebases, the PC version written in java 8, the mobile version written in C++ and the console version written in C# and ported to at least 6 different consoles but missing tons of features.
At least it runs nicely.
>>
File: 1504483288458.jpg (225KB, 2378x1783px) Image search: [Google]
1504483288458.jpg
225KB, 2378x1783px
How do I get a gf like this?
>>
>>62337606
>gf
anon...
>>
I program in Java
>>
>>62337642
B-but they have an earring...
>>
>>62337449
I'm disappointed with an article. Author sadly seems to have gotten hung up on code style (brace style, whitespace) and the general downsides of the language (templates are awful to read, write and use &c.) rather than about code structure and any design choices.
>>
>>62337667
is there something that prevents men from getting earrings?
>>
>>62336834
Nichijou is the only anime this decade that I've felt "yeah I really want to watch another episode of this" about.
It's so good.
>>
>>62337680
being straight
>>
>>62337731
having it on one ear is socially acceptable, but I forget which one
>>
File: 9a1.jpg (67KB, 1024x730px) Image search: [Google]
9a1.jpg
67KB, 1024x730px
>>62337748
>>
>>62337748
>is socially acceptable
NO FUCK THIS. I'm making it socially unacceptable now. Stop. I can't stand earrings on women men should never have started.
You people are VILE.
>>
>>62337724
Nichijou was shit. Get some fucking taste.
>>
>>62337724
>Nichijou
where can I watch this cartoon?
>>
>>62336769
Could someone please recommend me a medium-sized project available to download source and written entirely in python 2? I need to test out some development tools
>>
File: 1385922039966.png (431KB, 640x478px) Image search: [Google]
1385922039966.png
431KB, 640x478px
>>62337775
>I can't stand earrings on women
What's your favourite programming language, brother?
>>
>>62337775
>triggered
Also is this really an appropriate topic for /dpt/?
>>
>>62337807
What about Danshi Koukousei no Nichijou?
>>
>>62337830
https://stream-4.fbi.gov/stream?show_id=490293&ep=1&title=Nichijou_Anime_%28Subbed%28&autoplay=false
>>
File: file.png (325KB, 1020x1007px) Image search: [Google]
file.png
325KB, 1020x1007px
generating fractals
>>
>>62337807
So all anime is shit? Interesting.
>>
>>62337843
This thread will die if we don't sustain it with off-topic discussion.
>>
>>62337855
>stream-4.fbi.gov
hmm
>>
>>62337877
That link makes me curious. I'm not following it, though.
>>
>>62337835
I'm tempted to say C but that's mainly because it's the part of my day to day I enjoy the most. I can't say I'm particularly pleased with any language sadly.
>>
>>62337877
don't think, just click
>>
>>62337853
Nichibros was great. It was actually funny.
>>
>>62337890
C is also my favourite, but I find myself working with C++ for large projects. Hell, I like you. You can come over to my house and fuck my sister.
>>
>>62337859
I remember my first CS course
>>
>>62337859
Are you the Legend of Zelda guy from yesterday?
>>
>>62337919
They're very similar anime. Both carry the same kind of humor.
Good humor is rare in anime.

I'd really want one more.
>>
>>62337924
Glad to hear it anon. Not particularly interested in coming over though.
>>
>>62337947
try aho girl
>>
>>62337467
damn you're so cool
>>
>>62337868
Then let it die, the thread doesn't deserve to be here if it's not getting enough traffic
>>
>>62337454
>anime
>not for 12 year olds
anime with 'heavy subject matter' is for people who are too lazy and have ADHD to read a book

and it's even worse nowadays when anime is so normie
>>
>>62337994
kys r*tard
>>
>>62337947
>They're very similar anime. Both carry the same kind of humor.
No they're not. Nichibros was actually a comedy series, that had actual jokes with punchlines. Nichijou was a half-assed SOL and a half-assed comedy, where neither particular part was good, and most of the jokes were just "LOOK AT HOW MUCH I'M OVERREACTING TO THIS" or "too japanese for you", and got stale incredibly quickly.
>>
>>62338003
>and it's even worse nowadays
luckily lain came out in 1998
>>
>>62338003
>nowadays when anime is so normie
Why is most anime these days either ecchi or moeshit?
>>
>>62338003
>is for people who are too lazy and have ADHD to read a book
off to /lit/ with you
>>
>>62338044
That's the only anime worth watching, everything "le mature" is a shitty rip-off of a classic novel. You may as well read the source material.
>>
>>62338083
ugh, you're really one of `those` people
>>62338074
>>
>>62338006
Why the flying fuck would you bother bumping a shit thread, that's not even discussing the topic it was created for?

It's not even tech related, take this shit to /b/ or /pol/ or some other shit board
>>
>>62338029
You probably just missed the jokes? They both had rather bizarre situations and jokes. Nichijou was slightly more grounded. But it excelled in building the scenes for itself.
>I'm overreacting
There's no way you've watched it if that's what you got out of it.
>>62337980
>Shonen with a dumb girl as a lead
>romance as a genre
I'm not sure anon.
>>
>>62338083
Good ecchi anime recs?
>>
>>62338118
>shonen
It's a deconstruction of the harem genre, you have an asshole MC surrounded with annoying women.
>>
>>62338115
*pulls down your pants*
>>
>>62338150
Ah. Well that's more interesting. I'll try it. Thanks.
>>
>>62338131
high school of the dead
>>
>>62338157
Behold, the cancer killing /g/
>>
>>62338191
*unzips dick*
>>
>>62338191
don't make me start posting frogs, buddy
>>
>>62338118
>You probably just missed the jokes?
I fucking knew what the jokes were. They just weren't fucking funny.
I've seen plenty of good SOL anime, and I've seen good comedy anime (although this is rare); Nichijou isn't good at either of them.

I've actually seen Nichijou twice, once around when it came out, and again a couple of years ago. Both times were a resounding "meh". The series is overrated as fuck.

If it wasn't for the kyoanus animation for the series, I bet people would have forgotten about it immediately.
>>
>>62338229
>overrated
Ah. Explains your attitude if you use words like that. But I sincerely doubt you understood the jokes if you think the reactions made any of it.
Danshi does have wider appeal though. Just like Gintama.
>animations
They are nice but they certainly don't carry the material in any way anon.
>>
This sounds like a lot of memory for just a node. Is it?
>>
File: file.png (347KB, 1005x1007px) Image search: [Google]
file.png
347KB, 1005x1007px
>>62337944
yes!
>>
>>62338440
Java isn't known for its efficiency with memory usage.
>>
Odds: I go to sleep
Even: REAL ALCOHOL HOURS LADS
>>
>>62338335
Jesus christ, you're such a fucking douchebag. Do we have an "anime expert" here?
Something can be rated highly, you think it doesn't live up to those expectations, so you think it's overrated.
>Danshi does have wider appeal though
Nichijou is the one that gets mentioned a lot, like it's some fucking masterpiece. I don't think most people know about Nichibros.
>They are nice but they certainly don't carry the material in any way anon.
I would argue that it entirely carries the series.
>>
File: 1504332037774.gif (358KB, 500x357px) Image search: [Google]
1504332037774.gif
358KB, 500x357px
>>62338578
Ahahahahaha god wills it
Gonna rev up that wine bottle
>>
Reading in a web page using Python, it is escaping literal \x hex characters from the page e.g. \x0f in the HTML source becomes \\x0f in the reader object when I open the URL using urllib.request.urlopen

Any way to stop this without just doing some regex subsitution for \\x -> \x?
>>
Where's the best place to put global variables in a C project? I'm trying to start splitting my projects up into separate files/headers, and from what I understand you put the function declarations in the .h file and the actual definitions in the corresponding .c file, but I don't know what to do with variables.
>>
>>62338769
Declare them extern in a header, implement them in implementation files.
>>
>>62338776
should I use the extern keyword in the implementation files?
>>
>>62338822
No.
>shit.h
extern int crap;

>shit.c
#include "shit.h"
int crap = 9009;
>>
Still working on my documentation generator
>>
>>62338769
dont use global variables
problem solved
>>
>>62338950
But how will I then access variables globally, anonski?
>>
>>62339023
you pass the variable to the function that needs it
>>
File: fc7.jpg (34KB, 375x306px) Image search: [Google]
fc7.jpg
34KB, 375x306px
Employed Haskell programmer here
>>
>>62339044
Do you dream in code too?
>>
File: CbHCbDUWEAA3WFm.jpg (19KB, 600x340px) Image search: [Google]
CbHCbDUWEAA3WFm.jpg
19KB, 600x340px
Say you found an algorithm or some such in a paper, and implemented it as part of a bigger whole which you ship as closed source. But the original contents of the paper have a licence/patent/whatever tacked on. Would anyone be able to sniff out your implementation and call you out and sue your shit?
>>
>>62339135
Yeah. If they're better hackers than you and really care.
>>
>>62339135
>Would anyone be able to sniff out your implementation and call you out and sue your shit?
theoretically yes
if you're using a language like c# it would be easy
if you're using a language that compiles to machine code like C++, it's still possible

if what you're doing is so interesting that people wonder
>Wow, how did he do that?
pretty much guaranteed people will find out eventually
>>
>>62338447
do mandelbrot
>>
test, I think some uptight mod on /lit/ might have banned me globally
>>
I'm trying to use x64dbg. I've set a breakpoint on the winsock recv and send calls, but they're not triggered despite the application using them. If I use API monitor they show up fine, but I can't even see any handles registered (not even a window handle, even though it's a GUI application)
Am I missing something? Am I just monitoring in one thread?
>>
>>62339041
That's inefficient and clutters up the code by having to pass down things deep into some call chain.
>>
>>62339314
4chan.org/banned works both ways newfriend.
>>
>>62339374
cuz global variables are a lot cleaner amirite?
>>
File: Facebook-c325ad.png (108KB, 500x487px) Image search: [Google]
Facebook-c325ad.png
108KB, 500x487px
>make game
>you fight a bear
>you choose your attack power, the bear attack is 2x yours
>You choose your HP, the bear attack is 3x yours
>get my brother in law gets to play the game
>He dies everytime
>mfw
>>
Is there any program language where all functions are of type void and do not take any arguments besides assembly?
>>
>>62339436
Yeah because if you have 500 variables that are going to be used often and in many different parts of the program, it makes a lot of sense to just put them on the stack with each function call.
>>
>>62339436
Yes, obviously.
>>
>>62339469
>where all functions are of type void
but why
>>
>>62339472
Just use a fucking pointer to a struct
>>
>>62339485
(You)
>>
>>62339509
It's how you usually do things.
>>
>>62339469
there are no good languages with values of type void
>>
>>62339552
C
>>
>>62339552
or not ones where you should be using said value

>>62339556
C "void" isn't void, it's unit
>>
Final step for today, struct field parsing
>>
>>62336834
Akira
>>
File: 04-Akari-Akaza-YuruYuri.jpg (72KB, 848x480px) Image search: [Google]
04-Akari-Akaza-YuruYuri.jpg
72KB, 848x480px
Friendly reminder that you should return reference to an object iff:
1. The object itself is passed to the scope as a non-const reference
2. If the object is created within the scope, it is static
3. In no other situation

Reminder that you don't also need multi-return functions, create the expected values first and pass them as non-cost references into the function. These are called out params.
>>
>>62339757
Dumb Akari poster
>>
>>62339757
why have singlar return values and multiple out params when you could just have multiple return values
>>
have several accounts on hacker news to defend google and go when the situation arises
>>
>>62339785
kek
>>
>>62339779
Technically you don't need a single return value most of the time as well
>>
>>62339531
Why would you use a pointer to indirectly access variables in a struct (Which we've already accepted are going to be accessed/manipulated OFTEN)) when you could just directly access it from static memory like a normal fucking person?

The overhead for pointer manipulation is pretty negligible, but you're still just making something simple and straightforward more complicated and unintuitive.

Also, if your instances of this so-called struct aren't going to be in static memory, where the fuck are they going to be?
>>
>>62339774
take that back
>>
>>62339819
I will not rest until I find and call every akariposter dumb
>>
>>62339757
>The object itself is passed to the scope as a non-const reference
Why? The caller already has the refrence.

>>62339757
>pass them as non-cost references into the function. These are called out params
outparams are ugly shit you tolerate because someone got a little too trigger happy with the profiling and found caller allocation is bit faster sometimes. Quad points if you take a refrence, mutate the referent, and then return the same refrence.
>>
File: 19601564.png (293KB, 700x618px) Image search: [Google]
19601564.png
293KB, 700x618px
>>62339757
Thank you based Akari poster
>>
>>62339845
>The caller already has the refrence.
Not all variables are shallow copied, in fact most of the variables are copied by values
>>
File: 1504959349847.jpg (67KB, 500x375px) Image search: [Google]
1504959349847.jpg
67KB, 500x375px
New here, can someone please explain this image to me?
>>
>>62339893
Some people dont like Java; most people hate Javascript.
>>
>>62339893
java is bad and javascript is worse
I'm sure you could have figured that out from the picture
>>
>>62339868
Everything in C is pass by value, that's why double pointers exist, to support passing a pointer by refrence. But in the case that a function takes a refrence there is exactly no situation where the caller doesn't have said refrence so returning that same refrence is stupid.
>>
File: 20622156.jpg (23KB, 476x395px) Image search: [Google]
20622156.jpg
23KB, 476x395px
>>62339850
>Forbidden love
>>
>>62337606
This looks shopped
>>
Correct me if I'm wrong but in games, fast objects move in much higher FPS while normal desktop stuff like moving cursors, windows is very laggy. A fast moving cursor stutters like shit.

Why is that?
>>
>>62339920
>LARPing christcuck
I'd beat you up but I'm drunk
>>
>>62339987
your desktop cursor moves at the refresh rate of your screen, the highest FPS possible
>>
>>62339561
>I just started learning category theory, about 2 blog posts in
>>
>>62339997
It's 60 Hz, isn't it?

Also what's the point of achieving 100FPS if the monitor can draw only 60 times a second?
>>
>>62339987
Are you on a Macbook?
>>
any phoenixfags here?
i know ROR and want to learn how the cool kids do it
>>
>>62340017
It's true for any OS/Window manager
>>
>>62340014
What does this have to do with category theory?
Are you that guy that gets triggered when people bring up types?
>>
>>62340016
>His monitor only redraws 60 times a second
My refresh rate is 144Hz.
>>
What's the best method/library for doing a lot of reading from files in Java? Is there anything like C++'s thing of clearing the variable that tracks the current location in the file?
>>
>>62340016
>Also what's the point of achieving 100FPS if the monitor can draw only 60 times a second?
there is none, but people have monitors that work faster than 60
>>
>>62340016
Games naturally have dips in performance during certain sections or whatever, so if your dips don't go below 60 FPS, people won't even notice.
Also, higher refresh monitors certainly do exist.
>>
Nothing, because I got fired. :(

I'm not sure I want to seek a coding job again... but on the other hand, unfortunately, it's the only skill I've got that's translatable into a steady paycheck.
>>
>>62339987
Fullscreened games take a faster renderpath to the screen. If you think about it a full screen video application can basically bypass the OS's windowing system, it can draw straight to the screen. The process of governing application writes to video buffer is non-trivial.

That said, in 2017 your OS should be able to draw your mouse to the screen at the monitor's refresh rate. Maybe you just have a really shitty low-res display that makes it look chunky?
>>
>>62339779
The return value is for the return code, it's "special" since return codes are more closely tied to the function.
>>
Hey. Quora is pretty nice
>>
>>62340077
why'd you get canned?
>>
>>62340127
the point is, it's needless complication to have two types of return value when you could just have one that fits any purpose
>>
>>62340146
Seems like everyone who replies is Indian, though. I (earnestly) wonder why.
>>
>>62339812
No, access the struct with a pointer, not the members.
https://softwareengineering.stackexchange.com/questions/148108/why-is-global-state-so-evil
>>
>>62340162
I wouldn't care if the answer is solid 2bqh
>>
Is there a way of doing this:
printf("%s", (x == value) ? "True" : "False");


In haskell? I tried doing pic related, but i'm getting a parse error. (Left is GHCi, Middle is code I'm loading, right is example from textbook)

module Greet2 where

greetIfCool :: String -> IO()
greetIfCool coolness -
putStrLn if cool coolness
then "Eyyy... What's shakin'?"
else "Pshhh..."
where cool v = v == "downright frosty"

>>
Does C++ use pointers as much as C?
>>
I'm a soon-to-be first year in CS.
How do I make friends
>>
>>62340016
If you render 60 frames per second (and your screen is 60 frames per second) each frame will be on average (1000/60)/2 = 8.33 ms old when it gets to your screen. Could be 0, could be 16.66, but frametime generally varies a few ms since it's not always equally fast.
If you render 120 frames per second, each frame will be less stale when it gets to the monitor. Also, many games have closely tied together engines, so if you render faster it also processes the mouse input faster.
>>
>>62340158
The only value you're supposed to return is the return code. Everything else should be an outparam, unless it's something very trivial where it doesn't make sense to do it this way.
>>
I don't know guys, it just doesn't "feel like" a smooth 60 FPS rendering performance.
https://my.mixtape.moe/wdzycr.webm
>>
>>62340247
way to miss the point
>>
>>62340157
General inability to get up to speed with my teammates, mistakes from lack of attention, poor foresight of impacts, slow to get my work done. All throughout my time there I felt like a backyard footballer suddenly thrust into an NFL team. I was surrounded by people far more competent, quicker, and more passionate than I was.

It was only a matter of time before something had to give. Unfortunately I was never able to pull myself up to cruising speed.
>>
>>62340270
it's a very small object moving very fast, what do you expect? cursors render at your refresh rate
>>
>>62340179
you need parenthesis around the if ... "
putStrLn (if 1 == 2 then "asdf" else "...")
>>
>>62340216
My school had two clubs, the computing club and the computer science and informatics society.

The computing club had 6 members, and took a semester to decide on a group project and then didn't start it in the second semester.

The computer science and informatics society was a drinking club that had a Facebook chat filled with people begging for coursework help and posting Python and CSS memes.

I joined the computing club and now 2/6 of my friends are autistic and 3/6 of them go on 4chan. One of the autistic guys is a Chinese manchild who has a superiority complex and copies all our coursework. I'm living with them all next year.
>>
>>62340316
>tfw all the computer science educations in your country are completely filled with normies
>>
>>62340216
>How do I make friends
have a social life outside of school unless you want to hang out with nerds, losers, and indians (all male)
>>
>>62340332
The computer science and informatics society was normie central. My shitty uni had a class of 160 students this year because they're hungry for tuition fees. Pretty sure a third of the class has dropped out or failed their exams now.
>>
>>62339922
it is
>>
>>62340353
We at least put all of the cheap and hard maths courses in the first year so some of the bottom of the barrel garbage will drop out, but it's still pretty bad.
>>
>>62340316
Sounds a lot like my situation. Now how the hell am I going to meet qt girls
>>
>>62340247
Lol, this is actually what Win32 does to people's minds
>>
>>62340216
Become friends with your computer, at least that's what I did.
>>
>>62340582
Can I become friends with alcohol too?
>>
>>62340316
Welcome to the CS department anon!

>>62340529
>how the hell am I going to meet qt girls
Take art or philosophy classes. Even if you could get the girls in CS you wouldn't want them.
>>
>>62340600
Ja.
Sprechen sie Deutsche?
>>
>>62340624
Ja. Ich nehme an, du lernst Deutsch momentan?
>>
>>62340600
>tfw college turned into an alcoholic
>tfw I found out like a year after graduating everyone knew I was drunk in most my classes but the professors liked me and put up with it
At least I don't have to save for retirement.
>>
>>62340624
>>62340639
>>>/int/
>>
>>62340616
>Take art or philosophy classes.
But I'm sexually deprived and I'm taking 3 CS courses this semester
>>
>>62340648
Ach Anon, halt einfach deine verfickte Murrikanerfresse.
>>62340642
Why did it take you a year to realize that?
>>
>>62340653
hire a prostitute
>>
>>62340639
I want to learn German but I've been a bit too busy to learn it lately. Both my parents speak German. ;_;

>>62340648
German is a language.
>>
>>62340670
That's no programming language
>>
>>62340653
Art is easy and phil is just a paper, audit if you have to. CS girls... well they're not _all_ autistic, but they are all something far worse.

>>62340664
>Why did it take you a year to realize that?
my friends didn't tell me until after we all graduated. Kinda shitty because I would have liked to know, but it probably wouldn't have changed anything
>>
>>62340576
It's clearly the most sane solution. Also, I've never programmed anything win32-related.
>>62340616
>Take art or philosophy classes.
Taking a class about something you're not interested in just to meet girls is disgusting behavior, and it's either parasitic or wasteful (or both) depending on who's paying for it.
>Even if you could get the girls in CS you wouldn't want them.
Why? Assuming they have an actual interest in it (e.g. are not Karlie Kloss type roastie whores), why wouldn't you?
>>62340529
You aren't, not in high school, definitely not now, and sure as hell not when you start working.
t. haven't spoken to girls since some time in middle school
>>62340665
Punishable by up to 2 years' jail time here
>>
I have some NFC RFID implants, I think I will remove right hand, buid a eletronic door for my dog's house and implant the NFC in his forehead.


Is that cruel?
>>
>>62340706
>Punishable by up to 2 years' jail time here
#KUCKED
>>
>>62340216
You don't.
>>
File: smug_comfy_pepe.jpg (12KB, 225x225px) Image search: [Google]
smug_comfy_pepe.jpg
12KB, 225x225px
>>62340706
>not living in a country with actually FREEDOM where you can hire a prostitute without consequence.
>>
>>62340670
Don't pressure yourself into learning just because your parents speak the language. Of course it's an incentive but only do what interests you. If you want to learn though, a good german youtube channel is:
https://www.youtube.com/watch?v=3UlIfK13-Bo
>>62340695
>but it probably wouldn't have changed anything
;_;
>>62340706
>hiring a prostitute is illegal in the states
I fucking hate this world
>>
>>62340739
Thanks bruh. I actually really am interested in German, it is very funny language actually.
>>
>>62340706
>Punishable by up to 2 years' jail time here
The fuck is that shithole
>>
>>62340733
I probably wouldn't get caught since our police is busy with other stuff, but I'm not desperate enough anyway.
>>62340739
It's kind of legal there, isn't it? You have sites like backpage.
>>
>>62340756
Sweden. Although you would likely just get a fine (and a criminal record) if caught, most people consider it morally as bad as rape.
>>
>>62340762
I'm no American but I heard it's only legal in Las Vegas because of the tourists
Well, still better than fucking a Jakuza girl in Japan and getting blackmailed by the mafia
>>
File: Prostitution_laws_of_the_world.png (50KB, 1427x628px) Image search: [Google]
Prostitution_laws_of_the_world.png
50KB, 1427x628px
>>62340762
>>62340739
>>62340706
>>62340789
If you live in a country that is red or orange you live in a cuck country.

>>62340789
It depends on the county in Nevada. Different counties have different laws regarding prostitution.
>>
>>62340706
>not in high school
all my friends in high school were girls

>definitely not now, and sure as hell not when you start working.
;-;
m-maybe i'll become gay and fuck this trap freshman i'm friends with
>>
>>62340807
>tfw living in the right side of the aus
>tfw still cucked by the overly SJW AOC laws and shit
>>
>>62340807
>tfw live in a green country but am a cuck
>>
>>62340807
>germany
>not a cuck country
>>62340811
Didn't meet a single girl during the entire of HS, much less become friends with one.
>>
What does /dpt/ think of the simulation hypothesis?

https://www.youtube.com/watch?v=3CyN8rYdX6g
>>
>>62340179
put if then else in parentheses
>>
>>62340845
Went to a small highschool, all the guys were idiots and stoners, made friends with some commies and bisexuals and this short asian girl. It was a simpler time, not everyone was a thot
>>
>>62340858
Infalsifiable and useless.
>>
>>62340789
Actually there's pretty good evidence most american prostitutes are imported for the purpose and using coercive means.
>>
>>62340858
pop sci bullshit
belongs in the trash along with all the AI memers
>>
>>62340895
>Infalsifiable and useless.
Do you think every true hypothesis is falsifiable? What do you think falsifiability means?
>>
>>62340869
>work as a line cook
>turbo sjw bi girl hits on me
>makes sex jokes and holds boobs onto me every shift
>tells me to lay her down and fuck her in the inventory room after the restaurant closes
>twice
>I avoid because I won't fuck degenerates
>she leaves the job
>regret kicks in
>fuck a nigger girl instead
>actually turning liberal these days
>>
>>62340858
We aren't the pinnacle of the universe. More than likely Earth is just a giant scientific experiment sandbox for whoever created us.
Simulation theory is shaky at best.
>>
>>62340858
simulating something with the required accuracy would take quite a lot of energy, probably more than the world would "consume"
if a lot of worlds are simulated this would take more energy than would be available
>>62340915
Every useful hypothesis.
>>
>>62340858
I think there's a very high likelyhood that it's true
but at the same time it doesn't impact my behavior at all, so it doesn't much matter
>>
>>62340901
Aren't most of them americans? Or do they get a comprehensive course in how to hide their Russian accent first?
>>
>>62340936
>More than likely Earth is just a giant scientific experiment sandbox for whoever created us.
no it's not 'more than likely' you delusional retard
>>
>>62340928
Why didn't you fuck her, I would've in a heartbeat.

I miss warm bodies. I haven't held a hand in months

>>62340915
It's infalsifiable, meaning that arguing about it won't actually get you any closer to figuring out if it's true.
It's useless, meaning that it wouldn't make any difference to us if it were true or not
>>
>>62340937
>Every useful hypothesis.
Does that mean you admit there might be true statements about the world that might not be falsified?
>>
>>62340982
Why not?
>>
decoding a comp sci graduate's resume:
C/C++
>can write a functional C++ program with an IDE
>doesn't know C
>doesn't know enough of C++ to realize how far away he is from knowing C++
Java
>can write a functional java program with an IDE
>doesn't know Java
Python
>knows python
>>
>>62340954
No, asians and hispanics are waaaay over represented in the sex industry. American prostitutes haven't been citizens for a decade.
>>
>>62340988
That may not be falsified or that might not be falsifiable?
Yes, but they're uninteresting as long as they're unfalsifiable.
>>
File: JohnvonNeumann-LosAlamos.gif (281KB, 490x639px) Image search: [Google]
JohnvonNeumann-LosAlamos.gif
281KB, 490x639px
What programming language would he use?
>>
>>62341012
matlab
> wrote 20 lines of it for that course that one time
>>
>>62340991
there's no meaningful evidence for or against it, so saying it's more than likely is just you interpreting your emotional biases as fact. it's a stupid theory because there's no way of proving or disproving it
>>
>>62340987
I was actually insecure about my dick.
She always brags about how she fucks big black dudes and how they wouldn't fit fully into her vag. Mine is only 6 inches (which is normal, apparently)

I should have smashed her regardless, now that I fuck a nigger regularly
>>
>>62341037
same with scheme, prolog, and haskell
>>
File: 1485652958941.jpg (131KB, 591x800px) Image search: [Google]
1485652958941.jpg
131KB, 591x800px
Have you loved Lain today, /dpt/?
>>
>>62341041
>She always brags about how she fucks big black dudes
you dodged a bullet lad, more than likely she was carrying disgusting shit.

3DPD, not even once.
>>
>>62340987
>I haven't held a hand in months
>months
Get out
>>
>>62341018
>Yes, but they're uninteresting as long as they're unfalsifiable.
So what about mathematical truths, do you think they're falsifiable? What is the falsification condition for the infinitude of primes?
>>
>>62339920
>>62340733
dumb frogposters

>>62339893
dumb niggerposter
>>
>>62341041
>She always brags about how she fucks big black dudes and how they wouldn't fit fully into her vag
wow dude why you'd turn down a girl like that
>>
>>62341035
C, of course

>>62341041
Ah. I guess I know that feel. I met a girl from another chan, but didn't fuck her because she kept talking about all her BDSM relationships from college and I got insecure about that.

>>62341055
Every day.
>>
>>62341066
Yes, they all are.
That you would prove it to be false, by proving that there are in fact not an infinite number of primes.
>>
File: 1501377756569.jpg (6KB, 236x231px) Image search: [Google]
1501377756569.jpg
6KB, 236x231px
>>62341041
>>62341083
OUT
>>
>>62341102
dumb frogposter
>>
>>62340858
Does it matter?
Our universe may not be "real" but it's real to us. I am a sentient being, I am aware of myself, how that consciousness exists is irrelevant.
>>
>>62341088
But it doesn't seem like negative proof is quite the same as a falsification criterion. Many questions in mathematics aren't proved one way or the other, but we don't have any test we can apply to them to figure it out. It's like like you can say "if no one is able to prove this theorem after 5 years then it's been falsified". Further some mathematical truths are unprovable, we can prove that no proof will ever appear. What of them? Do you consider Godel sentences to be unfalsifiable?
>>
>>62341012
what is the difference between c and functional c++?
>>
>>62339436
They're immensely cleaner.
You could even have them all packed in structs to act like namespaces. The issues with that are mild.
>>
>>62341041
Sounds revolting.
Why the regret?
>>
>>62341012
>>doesn't know enough of C++ to realize how far away he is from knowing C++
true for everyone
>>
>>62340168
>it makes program state unpredictable.
Having functions that'd alter the state of the structure you pass in sporadically is also very unpredictable.

The real problem with global state is that you can't opt out of having it in your namespace so you can't do triage efficiently on the code. It's not their existence. It's how they're difficult to detect.
If you were to stick them all in a struct you call 'GLOBALS' or whatever it's fine because you can easily search for it.
>>
>>62341277
There isn't. Functional C++ is C.
>>
>thought ternary operator was a c++ thing
>mfw it actually is a c thing
because of shit like this books are better than classes
>>
>>62341442
>>62341277
Functional and procedural are different.
C++ has more features supporting functional programming than C does.
>>
>>62341498
it's a CPL thing
>>
>>62341516
I'm pretty sure "functional" means "I can function in that language" here, rather than FP functional
>>
>>62341549
So it was just jab #326921 at sepples?
Lame.
>>
how am I supposed to learn java?
for c, c++ and c# there is some kind of consensus about good books, but I haven't found anything for java
>>
>>62341686
>but I haven't found anything for java
that should tell you something.
>>
Is there a good reason to use const char* const over const char *.

for you brainlets:
>pointer to constant char
>can be reassigned to a new value but not mutated
vs
>constant pointer to constant char
>completely const
>>
>>62341577
Yeah, the joke was pretty inarticulate. Hating CPP has become a meme, people do it who have never written a line. I guess it's just an easy way to signal that you're part of the in-crowd
>>
>>62341224
>it doesn't seem like negative proof is quite the same as a falsification criterion.
It is. If you can prove it false, then you've falsified it. You can't apply it 1:1 to mathematics since it has proofs and is much more theoretical than physics etc, but in some cases you can make a 1:1 analogy. For example, fermat's last theorem wasn't successfully proven for a long time, but people could see that it "probably" held true by proof by exhaustion. If they'd have found an a and a b so that a^x + b^x = c^x then they would have falsified it without proving it wrong. But you can't apply it 1:1 to mathematics, see https://en.wikipedia.org/wiki/Falsifiability#Mathematics.
>>
>>62341035
he actually despised programming languages and though people should program in binary, he said you shouldn't use the computer for "secretarial work"
>>
>>62341800
When you don't want to reassign the pointer you should use const char * const obviously.
>>
File: tip.png (51KB, 370x370px) Image search: [Google]
tip.png
51KB, 370x370px
Where my Rust homies at?
>>
>>62341811
>If you can prove it false, then you've falsified it
I point you back to my question about godel sentences then. As we know there are true statements in mathematics which are not provable (symmetrically they can not be disproved) within the system of mathematics. Do you deny such statements exist (we have a formal proof they do) or do you relegate them to unfalsifiability since their inverses can not be proven within number theory?

>For example, fermat's last theorem
Interesting you bring fermat's last theorem up. So in the time it took to prove FLT was it falsifiable? Or did it only become falsifiable once we found a proof that no consistent finding in mathematics should prove it false? That later would be a rather comic position, to say "a thing is falsifiable only when we know it can't possibly be falsified" yet the former seems to spell doom for your thesis that simulation theory is unfalsifiable.
>>
public listnode removehead(listnode head)
{
listnode temp = head.next;
head.next= null; // can I do head = null;?
head = temp;
return head
}

When removing the head from a link list does head.next = null and head =null do the same thing or does only head.next = null do it correctly
>>
>>62341911
Don't set next to null. If someone has a stale refrence to `head` (the param) then their list will become a one member list for no reason. Either pass a pointer so you can modify the input list and free the first element then and there OR don't touch the first element so anyone who still has a refrence doesn't get their list silently truncated.
>>
>>62341911
you want to shift the head off a list?
// raise a fuckyou-exception if head is null
listnode old_head = head
head = head.next
return old_head
>>
>>62341810
go to bed, bjarne
>>
>>62341903
I don't know enough about mathematics, but as I said before, unfalsifiability isn't exactly applicable there like it is in physics, so I don't know why you bring up maths in a discussion about physics.
>So in the time it took to prove FLT was it falsifiable?
Yes, since someone could find an a and a b so that a^x + b^x = c^x if it was falsifiable.
>>
>>62341911
Aren't you supposed to have head be a null pointer and the pointer to the first element? Because otherwise you'd just fuck shit up big time whenever you want to do something like that.
>>
>At Princeton he received complaints for regularly playing extremely loud German march music on his gramophone, which distracted those in neighbouring offices, including Albert Einstein, from their work.
>Despite being a notoriously bad driver, he nonetheless enjoyed driving—frequently while reading a book—occasioning numerous arrests, as well as accidents. When Cuthbert Hurd hired him as a consultant to IBM, Hurd often quietly paid the fines for his traffic tickets.
/our guy/
>>
Why is my university teaching us C++ and not a useful language like Java?
>>
>>62342116
>"The goys have proven the following theorem…" (Statement at the start of a classroom lecture, as quoted in 1,911 Best Things Anyone Ever Said (1988) by Robert Byrne)
https://en.wikiquote.org/wiki/John_von_Neumann
>>
>tfw brainlet that can't figure out how to implement photon mapping

Computer graphics were a mistake.
>>
File: 1503352309012.jpg (99KB, 720x720px) Image search: [Google]
1503352309012.jpg
99KB, 720x720px
>>62342117
>when your university does teach you mostly java
>and you get java internships
>>
>>62342152
java made me decide to switch focus from software development to cybersecurity
>>
Will doing the challenges on Project Euler, HackerRank and /r/dailyprogrammer/ make me a better programmer or are they pointless?
>>
>>62342219
are you just starting out?
>>
>>62342219
project euler will make you a better at mathematics
hackerrank will definitely improve your algo knowledge, assuming you don't just do the very easy problems
reddit i dunno
>>
>>62342227
Yeah, I've just finished K&R.
>>
>>62342090
I don't know, the problem just said to remove the head and I'm mostly java so I don't know pointer stuff much
>>
>>62342249
then probably. I did euler when I was starting out and I think it helped
>>
>>62342219
Yes.

>>62342235
>project euler will make you a better at mathematics
I wouldn't say that.
Having a mathematical solution to most problems there is easy.
The hard part is finding a solution that is efficient and feasible to compute which is more a CS problem than pure math.
>>
File: 1505009103245.png (231KB, 304x366px) Image search: [Google]
1505009103245.png
231KB, 304x366px
>>62342152
>stuck in a job that pays pretty good working on nauseating java codebase
vs
>stuck in a job that pays like shit because I am good at snowflake lang
Not so much a cry for help as indicator of insecurity and potential autism.
>>
>>62342368
>c++
>snowflake lang
>bad pay
k pajeet
>>
>>62342072
>unfalsifiability isn't exactly applicable there like it is in physics
I'm glad we agree on that point, and more generally that falsifiability is not a universal criterion for truth (mathematical truths don't need to be falsifiable, or "falsifiability" means something different in a mathematical context),

>so I don't know why you bring up maths in a discussion about physics
Were we discussing physics? I don't think so, as I recall we started by talking about simulation theory. Simulation theory is not a hypothesis in physics. And I'm glad you said this:

>>So in the time it took to prove FLT was it falsifiable?
>Yes, since someone could find an a and a b so that a^x + b^x = c^x if it was falsifiable.

since it means you agree that something which has not been falsified until now does not mean a thing is falsifiable. And indeed this is the case for simulation theory: we haven't conducted a falsifiable test of it up to now but this says exactly nothing about its status as falsifiable or not.

Therefore, pending proof that simulation theory is unfalsifiable I insist you retract your statement that it is unfalsifiable. All you can say so far is a falsifiable test has not been proposed yet for simulation theory.
>>
>>62342219
Project Euler focuses more on mathematics.
HackerRank is a meme.
/r/dailyprogrammer is just a bunch of faggots circlejerking each other over their one liners in an esoteric programming language.

If you wanna be a good programmer, get interested and that will keep you going. Think of something you want to do and do it, you will learn way more than solving some trivial puzzle on some meme website. You will only learn by making mistakes. If you are learning C, which I think you said here: >>62342249
then you will make TONS of mistakes using it if you are just starting out. Start programming things you want to do, read books, read web pages and eventually you will be good.
>>
File: 1497931039022.png (2MB, 3840x2160px) Image search: [Google]
1497931039022.png
2MB, 3840x2160px
>>
Is writing a game engine a bad project if I want to appeal to employers?
>>
>>62342504
no, but the impressiveness to amount of work ratio is not aligned
>>
>>62342541
Any suggestions for impressive projects?
>>
Can I get good enough at programming in 10 weeks to get a software development internship at a bank?
>>
>>62342550
sort of depends on the employer and what they are interested in
inventory system running on a server with a mysql backend is a good one
make an app that works with a barcode scanner/smartphone that pulls data from the server when you scan a product

that kind of thing goes over well because it uses a number of technologies at once
>>
File: bugs-bunny-king.jpg (25KB, 469x469px) Image search: [Google]
bugs-bunny-king.jpg
25KB, 469x469px
Any books or guides not to learn how to program but to git gud?
>>
Can anyone suggest a good physics engine that's free for commercial use? How are ODE and Bullet?
>>
>>62342753
bullet is great, no complaints
>>
>>62342753
Bullet is great. Easy to wrap, stable and fast. Documentation is a bit lacking though
>>
File: 2837123812.jpg (5KB, 300x168px) Image search: [Google]
2837123812.jpg
5KB, 300x168px
Help me lads. I've been trying to find a generic name for a project for like 4 hours now.
>>
>>62342990
Program a random name generator
>>
>>62342990
dumb frogposter
>>
>>62342990
Call it "GRANDE by Beztec".
>>
File: 1503203523686.jpg (36KB, 400x400px) Image search: [Google]
1503203523686.jpg
36KB, 400x400px
>>62343028
GOOD suggestion
>>
>>62343043
gay cuckfrog
>>
File: 1503332746886.png (70KB, 852x944px) Image search: [Google]
1503332746886.png
70KB, 852x944px
>>62343061
rude
>>
>>62343065

fuck .
>>
File: 1503287506422.png (47KB, 778x512px) Image search: [Google]
1503287506422.png
47KB, 778x512px
New thread when
>>
>>62343092
you gay
>>
>>62342990
YetAnotherProject.
>>
>>62343092
make it lad
>>
File: 1503203006747.png (49KB, 1809x1231px) Image search: [Google]
1503203006747.png
49KB, 1809x1231px
>>62343110
I deleted my anime girls folder
>>
>>62343122
use the one with fin pepe at the computer with the thumbs up.
>>
New thread!

>>62343140
>>62343140
>>62343140
Thread posts: 323
Thread images: 39


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