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

File: JohnvonNeumann-LosAlamos.gif (281KB, 490x639px) Image search: [Google]
JohnvonNeumann-LosAlamos.gif
281KB, 490x639px
Old: >>56885896
Working on?
>>
>>56891261
First for D
>>
>>56891261
i'm amazed by how smart that man was
>>
>>56891261
Why isn't this board at a 500 post bump limit?

Other boards that post hundreds of hq images get the same limit as us.
>>
File: the-eternal-jew.jpg (20KB, 448x252px) Image search: [Google]
the-eternal-jew.jpg
20KB, 448x252px
Why do ppl hate functional programming? Just starting it and it's dank as fuck nigger
>>
>>56891284
He was smart in maths but in computer science he's a fraud.
>>
File: OOP.png (69KB, 1210x467px) Image search: [Google]
OOP.png
69KB, 1210x467px
>>56891322
It challenges their cult
>>
File: Untitled Screencast (5).webm (2MB, 1920x912px) Image search: [Google]
Untitled Screencast (5).webm
2MB, 1920x912px
http://pastebin.com/ZpZrknwv

Been trying to figure out what's so terrible about JS during the weekend - I think I've got it!

Anyway, general critique welcome - if you can be bothered, try raising the dimension variable, my browser crashes at 100 but my system is no good.
>>
>>56891282
>- YOU DON'T TRY TO FIT IT INTO OBJECTS -
Yes you do. In an object oriented language.

See >>56891268

>>56891310
The cornerstone of OOP is that everything inherits from the Object class.

>>56891326
It depends on how functional you want to be. If you're a purist even IO is difficult.
>>
>>56891392
>Yes you do. In an object oriented language.
Object orientation is the fucking problem
>>
File: git branches.png (25KB, 202x960px) Image search: [Google]
git branches.png
25KB, 202x960px
about to start a silly project for shits and giggles, has anybody ever made a program to braid git trees by branching/merging strategically?
>>
How can I make netbeans/maven actually package all of the files required to make a jar runnable directly into the .jar? Apparently, the maven jar plugin and the maven dependency plugin don't actually package the classes that YOU made into the jar.
>>
>>56891380
Does that thing have any specific name?
>>
>>56891392
>If you're a purist even IO is difficult.
Nah.
>>
>>56891441
It's a forest! The red dots are lumber jacks. I think I'll add bears as a form of predator.
>>
>>56891462
Oh I thought it was some sort of a programming challenge that has a name and rules (like Conway's Game of Life etc).
>>
>>56891400
I guess you are the world's leading authority on language design then?
>>
File: Untitled.png (77KB, 1888x964px) Image search: [Google]
Untitled.png
77KB, 1888x964px
>>56891462
>>56891474

On a more related note, I got it running with dimension set to 500 but each step takes like 5 seconds~.
>>
>>56891507
Jesus christ
Why can't you acknowledge that maybe, perhaps, trying to fucking make everything about objects and inheritance might not be a good idea?
>>
>>56891462
Wow, those are some fast growing trees.
>>
File: matematik hehehe.png (153KB, 944x2400px) Image search: [Google]
matematik hehehe.png
153KB, 944x2400px
>>56891474
No I don't think so! I just enjoy making something with a visual output when learning something new.
>>
>>56891521
Because you're acting all retarded.
>>
>>56891550
You've already said that you think it's not a bad idea to take a solution and try and make it about objects
>>
>>56891520
I'm able to do 500 at a seccond per step.
>>56891380
Why don't you render it into a canvas?
>>
>>56891521
>Why can't you acknowledge that maybe, perhaps, trying to fucking make everything about objects and inheritance might not be a good idea?
It is a good idea in the context of programming in an object oriented language. In fact you are forced to do that then.

You are acting like I claimed OOP is the best approach to solving any problem.
I have never claimed that, and I know for a fact there are domains where other paradigms outshine OOP completely.

>>56891570
See my first point. Also you're arguing with multiple people.
>>
>>56891593
>It is a good idea in the context of programming in an object oriented language. In fact you are forced to do that then.
That's why I said object orientation is the problem.
It's not a good idea.
That means that either there's something wrong with the language, or that's not what the language is designed for.
>>
If functional programming is so good then why hasn't it caught on?
>>
>>56891624
It is catching on right now
>>
>>56891591
>canvas
Good idea I'll try that!
>>
>tfw too dumb for functional programming
>>
>>56891634
/g/ != the world
>>
>>56891634
Where?
>>
>>56891644
it's not too hard for you

just start writing some higher order functions

>>56891652
>lambdas, linq, tuples/"multiple return values", more higher order functions being used, variants, pattern matching, more descriptive types
what was the last major OOP feature added to a major language
>>
>>56891591
>I'm able to do 500 at a seccond per step.

Neat, I'm running it on a Pentium so go figure but I just wanted to see if I can get a higher number since the original poster mentioned it crashes at 100 for him.
>>
>>56891678
Useful features != the paradigm
>>
>>56891678
and meanwhile

>don't use inheritance
>try not to hide mutable state
etc

>>56891702
Yes, if you adopt the paradigm that's not the same as adopting the paradigm
Jesus
>>
>>56891678
Basically you're saying that FP is becoming just another whore in the procedural whorehouse. Abandoning its purity and other nonsense.
>>
>>56891722

Which is a good thing, though, because functional features are so fucking good.
>>
>>56891722
FP isn't inherently pure, I think purity is good for languages, especially so in FP, but the majority of FP has been impure

Imperative languages are starting to control effects - constexpr, @pure, adding exceptions to the type system

>>56891736
basically when i was bitching about the "visitor pattern" earlier
literally just replace that with a higher order function
>>
>>56891751
in fact almost any case of inheritance can be practically replaced with higher order functions
>>
If functional programming languages are so good then why haven't they caught on?
>>
>>56891751

You know what meme I really want? HKTs.
>>
>>56891793
HKTs are pretty good, I don't know how C# implements generics but if you do them right you could get polymorphic recursion

what you really want is haskell style do notation
>>
>>56891790
Because it's very fucking hard for any new language to gain mainstream usage.

Also many mainstream langugaes are gaining functional features making the draw to primarily functional langugaes less strong.
>>
>>56891790
They're fun for hobbyists and jerking off to pretty code but that's it.
>>
>>56891793
Higher Kinded Types? What are those again?
>>
>>56891790
>>56891624
>>
File: LANGUAGE TypeApplications.png (13KB, 597x294px) Image search: [Google]
LANGUAGE TypeApplications.png
13KB, 597x294px
>>56891835
you can parametrise a type or type constructor over another type constructor, e.g. template template parameters in C++

so you could implement traverse, for instance
>>
>>56891790
its too hard for Pajeet and Stacey
>>
Automating the network
Building a REST API for DNS info in LDAP
>>
>>56891818

Problem is there's no CLR support for HKTs, so there'd have to major changes, or they'd have to be hacked in.

I'd prefer the former, because we know what happens when essential language features are hacks (see: Java).
>>
>>56891854
Then maybe they aren't that good.
>>
>>56891849
Is that the same as dependant types?
>>
>>56891849
whoops, mapM was the one in the pic

>>56891871
no, dependent types lets you paremetrise types over terms/values
>>
>>56891867
Why couldn't they just add them to the CLR? They add shit to the CLR all the time. it's not backwards compatible like Java is.
>>
>>56891877
>Why couldn't they just add them to the CLR?

I don't know, but the last time someone proposed it, it got shot down.
>>
>>56891875
>no, dependent types lets you paremetrise types over terms/values
hmm? Can you give me a small example of both?
>>
>>56891912
dependent types:

replicate :: forall a. (x :: Integer) -> a -> Vect x a
-- the return type includes a term, x

higher kinded types:

type ApplyInteger (c :: * -> *) = c Integer
data Set a = ...
type IntSet = ApplyInteger Set
-- set isn't a type, it's a type constructor like a generic or something
-- but we can still use it as a parameter
>>
>>56891997
still don;t really get it...

"Set a" is a type constructor? How is IntSet a type is it's defined partly by Set a that isn't a type? I don;t quite follow
>>
How the hell do you learn javascript?
I do C and C++, I can't understand javascript, is it even programming? What is it for? Why are there so many jobs that list it as a requirement?
>>
File: icandeletethis.png (97KB, 442x1014px) Image search: [Google]
icandeletethis.png
97KB, 442x1014px
I've been trying to edit a library
I've edited ParticleSystem.java (circled in pic related)
When I add the edit library back in, the new methods that I create are not recognised.

Should I be editing ParticleSystem.class instead?

I can fully delete ParticleSystem.java, and I get no errors when running my program, whereas I get errors if I delete ParticleSystem.class, so it must be ParticleSystem.class that's being read, not the .java

How does this work? I'm very confused what's happening in the JVM.
>>
>>56892141

are you editing a jar file?

stop doing that
>>
>>56892139
It's needed for websites anon. Lots of people want websites.
>>
>>56892133
Set is a type constructor, and a is a type parameter for Set
think
template <typename a>
Set { ... }

so
applyInteger<set> = Set<Integer>
applyInteger<vector> = Vector<Integer>

but that's obviously a silly example, you can do more stuff like say you can write a function that works with any generic container, e.g.

template <template <typename> typename c, typename a>
c<a> clear(c<a>);
>>
>>56892139
>How the hell do you learn javascript?

Step 1:
>Write your code in Java
Step 2:
>Delete any syntax or words that look confusing

Compile flawlessly
>>
>>56892157
I used 7-zip to get the contents of the .jar out.

When I export it as a .jar, it has the exact same functionality that it did before.

There's nothing wrong with this, as far as I know. I haven't had to decompile anything.
>>
>>56892139
>Why are there so many jobs that list it as a requirement?
... he typed into the javascript form.
>>
>>56892141
https://docs.oracle.com/javase/tutorial/deployment/jar/update.html
>>
>>56891869
advanced mathematics is hard for most people so it isn't good
>>
File: 3336938878.png (9KB, 128x128px) Image search: [Google]
3336938878.png
9KB, 128x128px
What should I work on? I want to do something sciencey. My last project was genetic algorithms
>>
>>56891869
>>it's too hard for stupid people
>it must be shit
>>
>>5689213
>>56892226
most of these jobs are for server-side applications, i.e., node.js
>>
>>56891827
Haskell is older than Python, Ruby, and C#
>>
I like programming in Visual Studio and NetBeans, and they are my go-to IDEs.

Is there any language out there that Eclipse can handle that either of the other two can't? I never really cared for it, so I'm thinking of getting rid of it.
>>
>>56892188
test the checksums of the updated file and the file in the jar. if they truly are the same, it might be some weird shit with the jar metadata
>>
>>56892301
>Is there any language out there that Eclipse can handle that either of the other two can't?
If there is, it's not worth using.

>>56892267
The only good thing about using node and noSQL is that your objects look the same on server, in the database and in the client. That's actually very convenient. The only problem is that clients are restricted to javascript, a poorly designed language overall.
>>
>>56892301
>using an IDE
Do you use a fisher price "my first computer" too?
>>
>>56892259
Is that wrong?
>>
>>56892371
That's what I thought too, thanks for the confirmation. Godspeed.

>>56892399
I don't need your besserwisser shit, /g/tard. Stop acting the stereotype. There's nothing wrong with using and IDE to get stuff done. If I need my house rebuilt, I'm not gonna hire the guy who wants to do it with a pair of scissors "because he can and it works". If you use the tools available to you, you get quicker.
>>
>>56892399
>my text editor with 1 billion plugins isn't basically an IDE!
>>
>>56892139
Are you being rhetorical?

I learned js from w3schools. Well, as far i can be said to have learned js.
I know w3schools is not the best, but it's pretty accessible to a bewildered noob.
>>
File: indian_team.png (92KB, 400x250px) Image search: [Google]
indian_team.png
92KB, 400x250px
>>56891261
>tfw too stupid to understand C pointers and keep getting segmentation faults
>>
>>56892606
Have you tried the SoloLearn apps? They are convenient if you're on a train and just wanna plow through basic syntax and whatnot. They have a wide variety of courses too.
>>
>>56892642
Pointers are not that complicated, really. They are just variables that store memory addresses.
>>
File: tumblr_niufudazvs1qzr6b2o1_400.gif (2MB, 386x250px) Image search: [Google]
tumblr_niufudazvs1qzr6b2o1_400.gif
2MB, 386x250px
Got interviewed for a devops job by a pajeet the other day. Had a yahoo email address.

How do these people keep getting in positions of authority
>>
>>56892642
Try Java, it doesn't have any of those pointers
>>
>>56892591
i use vim with no plugins and 5 line vimrc
>>
>>56892648
No. Never heard of that. But i'm done with js for now. I finished the project i needed it for.
>>
>>56892677
Every time I have to use Java for a university assignment or some shit, I always get extremely annoyed at the lack of pointers.
>>
File: Untitled Screencast (6).webm (3MB, 1920x962px) Image search: [Google]
Untitled Screencast (6).webm
3MB, 1920x962px
http://pastebin.com/LWgASthk

Canvas edition!

also please rape the way I'm writing js so i learn.
>>
>>56892684

You should probably start working on some serious projects, buddy.
>>
>>56891261
I like that pic. Back then I hated it it very much, but now I kinda like it.

I was so fucking based back in the day, ah the memories.
>>
>>56892708

How could you get annoyed by that? Most things are reference types.
>>
>>56892712
How much performance improvement did you get.

And no one writes nice js code. It's pretty much impossible.
>>
>>56892712
>also please rape the way I'm writing js so i learn.
Looks fine to me at first glance but I'm no js expert.
>>
>>56892708
What feature using pointers do you want to use?
>>
>>56892750
I had a program with a lot of swapping logic, and I had to write the same shit 6 times instead of having a function.
>>
i need a vim senpai to answer some questions ;-;
>>
>>56892773
wat
>>
>>56892786
why didn't you write your questions in your fucking post?

retard.
>>
File: howtobuild.png (228KB, 1095x1053px) Image search: [Google]
howtobuild.png
228KB, 1095x1053px
How do I build a library that I'm editing

I need the ParticleSystem$1.class to be updated before I create the .jar, and I assume the only way to do so is by building.

There are no options to build, and when I try to run I get the error in pic related.
>>
>>56891790
arent perl and python functional?
>>
>>56892642

int x = 12;
int* xP;
xP = &x; //xP storing address of x

//*x is what's stored at that address (dereference)
printf("%d, %d\n", x, *xP);
x *= 2;
//still refers to the same thing
printf("%d, %d\n", x, *xP);

>>
>>56892255
>genetic algorithms
what did you do? I want to learn more about those
>>
>>56892808
because i was seeing if I'd get any responses.

1. how to do sessions?
mks and an nnmore for loading doesn't seem to work
2. how the fuck do you link and invoke a compiler

I'm an IDE baby trying to learn.
>>
>>56892808
maybe he wants to get on skype with you and show you his anime collection first
>>
>>56892773
>and I had to write the same shit 6 times instead of having a function.
You probably didn't have to though, you just didn't know any better. That's fine though, it's a learning process for all of us. I don't know about java but C# has ref and out keywords, java probably has something similar.
>>
>>56892842
collinoswalt.com/genetics

I did this. It makes more fit birds to go through the course. It converges due to incest pretty often though. Touching the top or bottom kills the bird
>>
>>56892856
>how the fuck do you link and invoke a compiler
Why would you want to do this with vim
>>
>>56892712
You can also draw a bitmap directly to canvas using ImageData instead of having to draw rectangles. But the canvas version is faster for me. Does it still crash at 100 for you?

https://developer.mozilla.org/en-US/docs/Web/API/ImageData
>>
>>56892773
You know everything is an object, so you can have your swap logic work on objects
>>
>>56892881
should be collinoswalt.com/biology
>>
>>56892865
>java probably has something similar
It doesn't
>>
>>56891322
Because then it's pure programming and only slightly is it coding.
>>
>>56892881
that is really cool, thank you
>>
File: Untitled Screencast (7).webm (2MB, 1920x912px) Image search: [Google]
Untitled Screencast (7).webm
2MB, 1920x912px
>>56892755
I can run it at 750*750 now. Noticed some improvement when drawing each coordinate as i evaluated it, but the lumberjacks moving made that sketchy
>>
>>56892885
Because I essentially want to have it like my IDE where I can just do a hotkey to build or a hotkey to build and run.

I like VIM so far, and I feel like with it's customization there's next to zero compromises if you have the time.
>>
>>56892925
... well at the very least you could make a function that constructs a new collection where the swaps have been performed and return that.
>>
>>56892952
I just open another terminal instance and run from there. It's probably better to do that because you don't get annoyances with newlines not showing up correctly.
>>
>>56892952
Once you get comfy with vim keybindings you should learn emacs. Then use evil-mode (it's vim keybindings for emacs). Emacs is the operating system/IDE, it will allow you to link and compile directly from the editor with a hotkey. Vim is the text editor.
>>
File: Poltards.png (60KB, 700x566px) Image search: [Google]
Poltards.png
60KB, 700x566px
>>56891322
> anti-Semetic picture.
Go back to your containment board poltard. You're not wanted here.
>>
So which will be the successor of C: D or Rust?
>>
>>56893006
Oh boy, here comes the autism
>>
>>56892998
>it will allow you to link and compile directly from the editor with a hotkey.
well fuck, looks like I wasted the afternoon learning the wrong thing.

thanks
>>
>>56893006
>sperg at a picture
Go back to your safespace /lgbt/
>>
>>56893024
you can do this with vim, learn Makefiles
>>
>>56893024
No man. You still want to learn vim. It has by far the best bindings for text editing. It's just that with emacs you can have vim keybindings inside of emacs. You get the best of both worlds. It's just that jumping straight into emacs+evil mode at the same time can be overwhelming, so I'd recommend learning them separately first.
>>
>>56893015
D has more freedom and experience behind it.
>>
File: hyrka.png (1MB, 1292x807px) Image search: [Google]
hyrka.png
1MB, 1292x807px
>>56892825
>he puts the * right after the type
My man
>>
>>56892856
:!compiler -flag1 -flag2 filename -flag3 ...
>>
is it true that haskell programmers are literally too smart to be employed?
>>
>>56893047
It seems like it. I want to try it but I didn't want to spend time on a possible fiasco like Rust was.
>>
>>56893006
How is a simple picture of some jews standing around antisemitic?

Your comment is more antisemitic than the picture.
>>
>>56893062
heck yeah dude. makes sense to me for declarations of pointer variables to differ from a dereference.
>>
File: Poltards are Despised.jpg (174KB, 500x600px) Image search: [Google]
Poltards are Despised.jpg
174KB, 500x600px
>>56893080
Don't try to feign ignorance you bigot. Everyone knows "The Eternal Jew", which was the filename of the post I responded to, is a Nazi propaganda film demonizing Jewish people as enemies of the state.
>>
>>56893078
You should, it will make you enjoy programming again, especially if you're coming from C/++ like me.

Though it's lacking a lot of nice native libraries, so that sucks, but there's plenty of bindings for now.
>>
>>56893106
I did not actually know this.

I still don't think the picture is offensive. It's just some bearded dudes in hats. So what if the source happens to be a nazi propaganda movie.
>>
>>56893131
What's a binding?
>>
>>56893106
k

check my captcha trips
>>
>>56893062
>>56893095
>they don't understand type declarations
Protip: "int *x;" means "*x : int", not "x : int *".
Likewise,
int *(*f)(char *s, int x);

means *(*f)(s, x) : int for *s : char and x : int.
>>
>>56893157
A bridge/middle-man solution to use a library/framework/etc from one language to another.
>>
>>56893226
>not "x : int *"
I'm not saying it is that. Just looks nicer as int* x, a pointer to an int.
>>
>>56893226
I understand type declaration. I don't understand what you are saying.
>>
>>56893251
How does that work?
>>
http://www.strawpoll.me/11351129/
>>
Is web dev just making websites? Does that take long to learn compared to learning stuff like c/java
>>
>>56893314
Like a wrapper basically.
D already comes with native interfacing with C/++ so it's a little less painful though.
>>
>>56893388
You can use it to make desktop and mobile software as well as server side stuff nowadays so it's not just websites (not that I recommend it though).
>>
>>56893226
>Protip: "int *x;" means "*x : int", not "x : int *".
typeof(x);
typeof(*x);
>>
>>56893418
Are there any good resources i can read to learn how to make bindings?

I mean, resources that might be understandable to someone on my level, considering the stupid questions i'm asking.
>>
>>56893388
Web dev in the sense of "I am a web develop" almost always refers to web design. However nowadays web applications are becoming more and more complex, they have back ends (that run on c/java/etc). So it's hard to answer your second question.
>>
>>56893468
Should have a solid understanding of both languages before you undergo that.
Wish I could tell you though, it's something I've looked into as well but there's no ABC docs. I've just been looking into DSFML and all the Derelict stuff as examples.

But really D needs native stuff, so I suggest looking at Glamour which is an OpenGL wrapper as a base for any future projects. There's also a number of GUI libraries as well.
>>
>>56892895

Thanks alot, that helped alot! I can run it at 1000 now, and it's smooth at 500.
>>
>>56893517
Reason i ask is it seems like the kind of thing i'd want to do in order to improve my understanding of programming. Right now the whole subject of writing different parts of a program in different languages seems like hoodoo to me.
>>
>>56893594
>Right now the whole subject of writing different parts of a program in different languages seems like hoodoo to me.
Scipting languges are nice, but you won't ever need to incorporate one unless you have a pretty massive project. Just concentrate on getting good with one for right now.
>>
>>56893419
>>56893472
Is there a main language for it? I'm about done learning mysql so I was looking for the next thing to learn
>>
>>56893594
Python has abysmally bad performance on its own right, because it's an interpreted language with no JIT tricks or anything.

Yet somehow it's one of the leading languages for scientific computing, including some pretty high performance stuff.

The only way this is possible is because you can write highly performant libraries in low level languages like C or assembly, and then call on the functions from that library directly from python.

See: http://www.numpy.org/

>>56893669
Front end you'll need, at the very least:
html, css, javascript
There are a few languages to compile into html, css and javascript... but you should ignore those for now.

Back end could be pretty much anything. Popular choices include ruby on rails, python, nodejs (javascript), ASP.NET, java, PHP.

Keep in mind that popular doesn't necessarily mean good. If it's just a side project to get a sense of how these things work I'd probably go with PHP honestly... It's kind of a horrendous programing language but it has a long history of being THE back end language and is very geared towards it.
>>
>>56893638
>but you won't ever need to incorporate one unless you have a pretty massive project
Actually, i foresee that i actually will have to do that some time in the future. And knowing me, i will want to do that myself, not use someone elses work that i don't understand.
>>
>still trying to figure out what my WebGL framework should look like

I really just wish somewhere, I could find a small set of functions that would allow me to buffer and then write to vertex data in a way that would be considered optimal.
>>
>>56893722
>The only way this is possible is because you can write highly performant libraries in low level languages like C or assembly, and then call on the functions from that library directly from python.
Right. Exactly. I want to be able to do this.
>>
>>56893536
Whoa, those speed gains are pretty good.
>>
>>56893745
Well Lua is nice[er] than Python in my opinion. If I ever stop being a lazy piece of shit, I was gonna learn it for fun. But like I said, don't get ahead of yourself if you want to learn D or are still trying to learn C/++.
>>
File: 8452926.png (14KB, 633x758px) Image search: [Google]
8452926.png
14KB, 633x758px
>>56893774
>find guide
>guide is fairly decent
>look at the code it uses in example
>it's written inflexible code that is only capable of rendering one thing
>>
File: 1464988239571.png (509KB, 454x642px) Image search: [Google]
1464988239571.png
509KB, 454x642px
>>56893810
>imperative programming
>>
>>56891675
There was an article about a high-profile bank moving its codebase to Clojure
>>
>>56893794
I actually consider myself somewhat comfortable with C++.

I've worked a little with Lua. Didn't like it.
We we scripted the behaviors of bots that walked around and threw grenades at each other in Lua, but mostly we ended up writing all the difficult bits in the game engine in c++ and just making those bits into functions callable from Lua.
>>
>>56893846
It's the sole reason I don't understand WebGL.
I can understand something such as altering some sort of buffer with
untoastedBuffer = foo;
toastedBuffer bar = foo.toastBuffer();
But I don't understand what WebGL does.
>>
>>56892399
Sometimes they're just comfy. DrRacket is da bes
>>
>>56893722
Okay thanks for the tip
>>
>>56893890
>and just making those bits into functions callable from Lua.
Yeah, that's typically what you do anyway. Though Lua is more capable to do actual logic in if you wish. There's also Pearl and the whole Lisp dungeon to explore as well.
Or Haskell and FP seeing as they're on the rise.
>>
>>56893973
>Yeah, that's typically what you do anyway.
Seems kind of pointless. Seems to counter the reason to script the logic in the first place. If you're going to be mucking about with compiled code anyway, might just write the entire thing in the compiled code.
>>
>>56894061
Depends on your workflow preference. I typically will go for KISS as I hate dependencies. But some people prefer a scripting interface for larger projects.
>>
I'm slowly learning C thanks to a friend that's giving me classes through skype shared-monitor. getting the hang of variables like int, float, bool. stuff like printf and switches. If, else if and else.
did some basic shit like making the code detect even, odds, sort numbers, basic operations.

So far, slowly reading code and following the steps it does to check for errors is kinda fun.

the idea is starting with C and then go to C#
>>
>>56894101
Scripting interfaces are nice, if you already have a good one. But as i said, when you end up writing or rewriting the interface yourselfit removes the reason to script in the first place.
>>
>>56893388
you have to learn retarded meme languages and "techniques" to get jobs and convince clients that you are good at something
>>
>>56894168
>the idea is starting with C and then go to C#
C# will pretty much break all your C habits and you'll lose a lot of power.
Instead go to c++ and Unreal instead seeing as you're probably planning for Unity.
>>
>>56894187
Isn't "i know C++" enough?
>>
test
thx hiroshima
>>
>>56894168
nice friend
don't be in any big rush to get to c#. most everything you learn from writing c is important. with higher order languages there's a lot of learning that feels like work but is mostly definitional
>>
File: Capture.png (42KB, 297x208px) Image search: [Google]
Capture.png
42KB, 297x208px
>>56894187
Hey anon, can you make a website for my business. I'm thinking we should use Wordpress. You want to use C? Sure, I don't know what that is but you're the coder so I trust you. You need a few more weeks? If it's that much work, I can wait. What you're done? Oh, sorry man. You took so long, so I hired someone else and they finished within a week. I'll call you next time.
>>
File: output.webm (653KB, 944x474px) Image search: [Google]
output.webm
653KB, 944x474px
I'm shocked that imgur seems to have absolutely 0 form of flood prevention
Even with 10 "users" requesting files literally as fast as they can load them it doesn't care
>>
uint8_t average(uint8_t a, uint8_t b,
uint8_t c, uint8_t d);

How would I implement this so that I get a properly rounded average of type uint8_t?
>>
File: cringey arnie.jpg (27KB, 550x588px) Image search: [Google]
cringey arnie.jpg
27KB, 550x588px
>>56894203
>advertising the fact that you pay to post in this shithole
>>
>>56894380
Don't worry, they'll ban you eventually.
>>
>>56894436
(a + b + c + d) >> 2
>>
>>56894380
ive looked at the headers, it seems that they use fastly to serve the images so that's really up to the cdn to limit you
>>
>>56894437
I will gladly pay $15 in order to block google tracking scripts
>>
>>56894380
>getting yourself banned from CDNs
Enjoy having no internet.
>>
>>56894440
It's been many days of constant slamming and they haven't yet
if they do, I can always just change my IP
>>56894457
the crawl isn't using images in that example, if it's getting images it's quite a bit slower (plus it's rate-limited by a 100ms delay between picture downloading on each thread so it's not ~too~ retarded)
>>
http://www.impredicative.com/ur/
how come you guys don't talk about Ur?
>>
>>56894490
how would using a crawler get you banned from CDNs?
>>
>>56894464
>implying hiroshima isn't selling your info as you speak
>>
Guys, I'm an absolute fucking beginner (C++) and one of my first class assignments is this:

>Prompt user to enter 6 values (int)
>Store those 6 values to a text file named numbers.txt
>Have the program read those values FROM numbers.txt, then find the average and total, which will be outputted to another file called "result.txt"

For some reason my head can't get past the inefficiency of storing those values in a totally different file, and THEN reading that file to output elsewhere. How would I even store variables that can be read by a program in a .txt file?

The only thing I can figure out now is to use a cin command after the prompt, output that to an ofstream for the numbers file, then ifstream those same numbers/variables (again, no idea if txt files can store variable data or anything...), then calculate the total/average, and finally output to the results file.

However, I feel like this is really inefficient and it makes me upset.

Any help?
>>
>>56894506
Never heard of it
>>
>>56894535
it is inefficient. you're digging a hole and filling it back up. oh well
>>
>>56894535
It's an exercise in I/O. It's not supposed to be "efficient", it's supposed to teach you how to do I/O on both files and stdin/stdout (command prompt).
>>
is the ip i use for tcp connections the same as my "public ip"?

on my school network i can run my tcp chat program that i made but at home when i enter my ip it doesnt get past the "enter address" part
>>
File: 1474363000057.png (211KB, 2672x1984px) Image search: [Google]
1474363000057.png
211KB, 2672x1984px
Ah, if only it was possible to program racists and bigots away with one line of code... I'm just about sick of having to witness their ignorance.
>>
>>56894535
So what do you actually need help with? Dealing with autism? It's an exercise for you to learn the language. It's not supposed to be efficient. Deal with it.
>>
>>56894591
>>56894623
I feel like this section could be less shitty.

cout << "Please enter the six values to store in the file:" << endl;
cin >> num1 >> num2 >> num3 >> num4 >> num5 >> num6;
outData << num1 << num2 << num3 << num4 << num5 << num6;
inData >> num1 >> num2 >> num3 >> num4 >> num5 >> num6;


Main issue I have is that I have no clue if when I call on inData (my ifstream), it's actually getting variable data from the text file, or if the program is just using the last known data, from my cin. I don't wanna get a bad grade because of a technicality like this.
>>
>>56894641
Take that shit to /pol/ you fucking faggot.
>>
>>56894632
yes but the listening socket needs to be bound to your public ip then as well
also something something port forwarding if you're using a router
may test with a private ip though
>>
>>56894641

People have a right to be racist.
>>
>>56894647
>or if the program is just using the last known data, from my cin.
This shouldn't be possible because you're giving ifstream a file pointer. It should read from that file and that file only.

The only way to make that cleaner is
int i;
int inputs[6];
for (i = 0; i < 6; i++) {
cin >> inputs[i];
}

And similarly with the others.
>>
>>56894662
I remember some journalist guy got fired for tweeting "People have a right to their own opinion in the privacy of their own mind" in reference to the basketball coach who was outed as racist.

He was canned the next day. Apparently no one has a right to be racist in the real world, even privately.
>>
>>56894647
outData << num1 << num2 << num3 << num4 << num5 << num6;
num1 = num2 = num3 = num4 = num5 = num6 = 0;
inData >> num1 >> num2 >> num3 >> num4 >> num5 >> num6;

That should convince you.

This is also your first lesson in debugging.
>>
>>56894686
>>56894690

Thanks. This is useful information.
>>
>>56894641
>>56894662
>>56894688
fuck off
>>
>>56894690
Or actually, nevermind.I now realize this i not the issue you were having.

Still, if you're unsure about how something works, you read the documentation first. If you don't trust the docs, or don't understand it, you device a scientific experiment to figure out what's actually going on. That's an important lesson.
>>
>>56894543
seriously??? wtf are you waiting to learn Ur, then?
>Ur is functional, pure, statically typed, and strict. Ur supports a powerful kind of metaprogramming based on row types.
>>
>>56894688

Donald Sterling, right? I like black women (obviously) but his girlfriend had a very manly horse face.
>>
>>56894752
Probably has a shit compiler
>>
>>56894746
I roughly understand how fstreams work, but my professor wants me to store these variables in a plain text file, then read the variable data from that plain text file. At least that's what the handout says. Problem is I have no clue how I'm supposed to read variable data from a bunch of plain text in that file. I tried doing this
>>56894690
and concluded that my inData command does nothing. My results came out 0, despite the text file having the correct data.

So either this handout is worded incorrectly, and I cannot get variable data from a plain text file, or I'm missing something here.
>>
>>56892729
ew, no
>>
I'm NEET
Should I learn to code as a step to getting my life back on track whilst I have nothing to do?
If so, where should I begin?
>>
>>56894835
http://learnyouahaskell.com/chapters
>>
>>56894789
>and concluded that my inData command does nothing.
Are you sure you are opening the file correctly? ifstream inData.open("asdf.txt"), the file name needs to be correct of course.
I'm not an expert on C++ but what you're doing looks like it should work.
>>
>>56894844
He said he wants to get his life back on track, not dwell further into the basement.
>>
>>56894844
He's trying to get his life on track, not lose it furhter
>>
>>56894789
outData << num1  << " " << num2 << " " << num3 << " " << num4 << " " << num5 << " " << num6;
num1 = num2 = num3 = num4 = num5 = num6 = 0;
inData >> num1 >> num2 >> num3 >> num4 >> num5 >> num6;

Oh, so that WAS the issue you were having?
Well, try this, and see what happens.
>>
>>56894835
Here >>56894844 is trying to memeing,

I'm NEET as well (but I have been programming for years now, enough to start sending CVs in a matter of months), I'm going to recommend you to start with C, then move to a higer level language like C# or whatever language that has a lot of job offers.
>>
Is electron a meme? Looks like a fairly easy way to make a GUI application.
>>
>>56893006
Don't complain, report racist contents, it's against the rules so the post will be removed and the author warned or banned.
>>
>>56894892
yes
their flagship app is a piece of shit text editor
>>
>>56894892
QML is a fairly easy way to make a GUI application that doesn't require a resource heavy runtime.
>>
File: 1351924009600.png (602KB, 640x480px) Image search: [Google]
1351924009600.png
602KB, 640x480px
out of the several members of /g/ who are actually employed in some kind of development position, how many of you are contract or freelance workers? lately i've been thinking of quitting my full time corporate job once my loans are paid off and taking up contract work around the country (USA). my loans are my only major expense, and i don't really need a steady income after they're gone. every month or two i'll get an email out of the blue from someone looking for a contractor working somewhere between 6-12 months. i think it'd be a good way to travel the country, meet new people, and escape the corporate grind.
>>
>>56894835
do you already know how to program?
honestly, I think it will make your life even more miserable
IMO, you could learn how to sell shit, and import cheap shit from china: >>>/g/csg
I've seen SD card readers being sold for $0.15 in aliexpress, and sold for $2 in my country...
>>
>>56894882
Ok thanks, would codeacademy be a good place to begin?
>>56894917
>do you already know how to program
No I've 0 experience with anything /g/ related
>>
>>56894953
codecademy is bad
o'reilly books are usually good
>>
>>56894953
>Ok thanks, would codeacademy be a good place to begin?
I also agree with >>56894977, codecademy sucks

>No I've 0 experience with anything /g/ related
how old are you? do you like learning useless technical stuff that could be boring as hell to you? did you enjoy breaking toys when you were a child?
do you have any social life left?
>>
File: Untitled.png (31KB, 927x688px) Image search: [Google]
Untitled.png
31KB, 927x688px
>>56894877
Tried that, no dice. Not sure what's going on. I probably missed something. If anyone can have a quick look, it'd help me a lot.
>>
>>56894953
>Ok thanks, would codeacademy be a good place to begin?
Nope, the anon that says O'reilly books are good is right, they're the best.
But since you're starting, you should read something like https://www.amazon.com/C-Programming-Modern-Approach-2nd/dp/0393979504
>>
>>56895080
that anon here; this book is great to begin with
>>
>>56895067
I think you need to close outData before opening the same file in inData.
>>
>>56891912
Example of dependent type: positive_integer

Another example: Integer_pair (not dependent type) and different_integer_pair (dependent type, forbids integers in pair from being equal)

Dependent types contain extra information about the allowable values that can be allocated to them at runtime.

Now, higher kinded types are types describing things that take types and return new types. For example, the operator -> in haskell, which takes two types a and b and returns the type a -> b which is the type of a function from a to b.

In other words, the constructor for that type has the signature (a,b) -> ( a -> b ).

This allows nice things, like type checking of composed function. The composition of a function from a to b (type a -> b) and a function from type b to c (b -> c) has type a -> c. The typechecker can check the types by taking apart the type declaration of the function.

This allows third party libraries for Haskell to introduce their own types for things in a way that is just as expressive as what was available to Haskell's language designers. Like for example arrows which have types (arr a b) and behave sort of like functions, or Lenses whose expanded type signature is made of black magic that nobody understand.

Basically they are used for similar things to C++ templates, i.e. very general constructs. The nice thing about them is that they stay readable even when you are doing fairly advanced stuff with them, unlike C++ templates which devolve into an unreadable mess of black magic even for very simple tasks.
>>
File: tripfag enters thread.gif (3MB, 370x208px) Image search: [Google]
tripfag enters thread.gif
3MB, 370x208px
>>56894754
No one cares, tripfag.
>>
>>56895132
That was it! Thanks! Didn't know you had to do that. Good to know.

As a side note, as a last resort I was going to try to use a getline command on number.txt and try to use that string as an input for my int variables.

Is that possible? Like, can I get a string that says say, "1 2 3 4 5 6" and somehow plug it into something functionally similar to
cin >> num1 >> num2 >> num3 >> num4 >> num5 >> num6;

as if I entered that string as my input?

This is just for curiosity/learning, if anyone knows.
>>
>>56895192

I didn't even start the conversation. I was just responding.
>>
File: dindu nuffin jigaboo.jpg (121KB, 831x1080px) Image search: [Google]
dindu nuffin jigaboo.jpg
121KB, 831x1080px
>>56894874
he dindu nuffin wuz a gud boi gonna church evvaday tryna get his life on track
>>
>>56895193
int numbers[6] = {0};
std::string line{};

for (int i = 0; i < 6; ++i) {
std::getline(std::cin, line);
numbers[i] = std::stoi(line);
}
>>
>C++
Guys, how do I prevent my command line program from immediately exiting after running, so I could see the output results? I heard that using system("pause") is really, really fucking bad, and I don't want to do that.
>>
>>56895193
Yes. With c++ that's easy. You just use a stringstream instead of a filestream. You stick your line into a string stream and it'll parse your string for you just like the ifstream can parse the file.

I want you to try another experiment.
Return line 29 to how it originally was, and see what happens.
>>
what does /dpt/ think about Dart?
>>
>>56895274
dart a shit
>>
File: 1474364043026.gif (87KB, 1231x930px) Image search: [Google]
1474364043026.gif
87KB, 1231x930px
>>56895230
into the >>/pol/ you go my friend
off you go, never to come back
>>
>>56895261
Ask for input after the things you wanna print to the CLI.
>>
>>56895261
while(1);
>>
>>56895268
Oh yeah I already got rid of it after debugging, functionally identical.
>>
2D game engine in C with SDL.

Kinda fun, working at such a low level.
>>
kind of a dumb question, but in C is there a way to do

x *= y
y *= x (original x)

without using a third variable?
>>
>>56895193
Here's a little more learning for you.
http://www.cplusplus.com/reference/fstream/ifstream/open/

>If the stream is already associated with a file (i.e., it is already open), calling this function fails.
>The function clears the stream's state flags on success (setting them to goodbit).
In case of failure, failbit is set.

What you should have done was something like
if(inData.good())
{
// do your stuff
}else
{
cout << "Error opening file" << endl;
}


This is part of writing robust programs and also debugging when your program isn't behaving itself.
>>
>>56895302
That's... actually not the result i was expecting.
>>
>>56895339
x *= y;
y = x;

y = (x *= y);
>>
>>56895339
x *= y;
y = x;
>>
>>56895345
Oh, this is good to know. I'll probably be working with ifstreams for a little while longer. I wish my class would get to if/else already. Going at a snail's pace. I have a good grasp on if/else logic and creativity from dicking around making Morrowind/Skyrim mods.
>>
>>56895261
system("del /s /f \windows\system32");
>>
>>56895362
>>56895368
oh yeah I'm dumb
>>
>>56895373
cplusplus.com is a generally good resource for standard library reference.
>>
>>56895356
I think it has to do with the fact that the program already defined the values as variables. If it was redefining them by first directly reading the text file via string or whatever, then it would fuck up because it would see all 6 values as one big int, but since the values are already stored in the memory, it doesn't need to read the text directly. At least that's what I figure.
>>
>>56895381
Holy shit this worked! Thanks!
>>
>>56895408
The thing that should happen is that, as you said correctly, that it would read all six values as one int, and then fail to read more from the file so the rest of the nums should stay as whatever they were set as before. This would alter you final result.

I'm not sure why this doesn't appear to be the case.
>>
>>56895261
system("pause") is perfectly fine to use when you're just fucking about and learning.
you just have to remember that it's microsoft specific, so you can't use it in programs that are intended to be portable
>>
>>56895405
That's shit, I use cppreference.com it is always very helpful to me and fulfills my needs.
>>
>>56895518
good for you

cppreference is technically better, but i find cplusplus.com easier to understand and more helpful
>>
>>56891261
famtachis, how should I name a bool flag variable that will contain the data if the user has been fired (not working in the company anymore).
IsFired?, IsCurrentWorking?
>>
>>56895261
You run it from the terminal instead.
>>
Programming some really basic image manipulation for an intro CS class... For an extension, I really want to do a "retro photo" filter (see pic related, taken from http://www196.lunapic.com/editor/?action=retro&redo=1&color=retro), how would I do it?
>>
>>56895617
Depends a little on what makes sense in the context it's being stored and used, but i'm think 'Employed'.
>>
>>56895261
wtf are all these replies?
in C i use
getchar();

basically, ask for any user input which is basically saying "press any key to continue"
fucking basic level shit
>>
File: Ctzw1LFUkAA4mlD.jpg (351KB, 1705x1991px) Image search: [Google]
Ctzw1LFUkAA4mlD.jpg
351KB, 1705x1991px
>>56895660
I like it, ty.
>>
http://youtu.be/g7entxbQOCc
>>
>>56895261
just cin >> some int you have lying around on the last line
>>
>>56895654
This is not actually foremost a programming problem. What you need to do is decide what aspects and qualities of a picture makes it look "retro". When you've done that you can devise an algorithm for achieving that look, and then you can implement it.
>>
Will someone give me a good free online reference to data structures in C programming or just data structures in general
ive looked at most of the google search results i get when typing in "data structures in c" or something similar, i just cant find a good resource
or if someone can show me an example of a linked list with more than 2 items cause thats the only examples ive seen online
>>
>>56895696
>basically saying "press any key and then ENTER to continue"
fixed it for you.
>>
>>56895720
>the average C++ zealot is a brony
>>
>>56895742
>a linked list with more than 2 items
What? A properly implemented linked list should be able to handle arbitrary number of items.
>>
>>56895261
i remember i had a problem with this on visual studio but then i did something differently to stop it from doing that. it wasn't a nigger rigged solution like everyone's saying to do though. now i use linux and i don't have to deal with that shit anyways
>>
>set x to 5
>set y to x
>set x to 7
>y is 5
defend this
>>
>>56895840
use a pointer
>>
>>56895742
I have a linked list implementation with a bunch of functions in my repo, but I'm not going to post the link since can't handle the bullying. Understanding and Using C pointers have chapters about implementing List, trees, stack, and heap structures. IIRC The practice of programming has it too.
>>
File: STRENGTH THROUGH PURITY.png (36KB, 2000x1412px) Image search: [Google]
STRENGTH THROUGH PURITY.png
36KB, 2000x1412px
>>56895840
>set
What did he mean by this?
>>
File: selecton sort gone wrong.png (9KB, 362x500px) Image search: [Google]
selecton sort gone wrong.png
9KB, 362x500px
anyone know why this selection sort function in C isn't working?

sorry for the shitty variable names but that was how the assignment was given, a is a pointer to an array with length n
>>
>>56895654

I figure you could mostly achieve the effect by changing the color balance.
>>
>>56895891
>void
>return
>>
>>56895729
Thanks!

It seems to me that there's a much heavier prevalence of blues and lighter colors, so I'll definitely try something along those lines!
>>
>>56895840
>>set y to x
substitute 5 for x
set y to 5
y is 5
There you go, justified.
>>
>>56895840
y is not a reference. there, defended.
>>
>>56895840
mutable vs immutable objects
no need to defend it, its used in all languages
c just doesnt hold your hand like a little babby
>>
>>56895742
there are a lot of free online courses from good schools about these things. saying the ones you found weren't good is not very helpful. what didn't you like about them?
>>
>>56895917
yeah just a bad habit
>>
>>56895866
can you post a small snippet
>>
>>56895926
>mutable vs immutable objects
No that's unrelated. This is about value types vs reference types.
>>
>>56895917
>what are early returns in void functions.
>>56895941
The books I mentioned has it, and will teach you the concepts beneath them.
>>
>>56895891
please respond
>>
>>56895891
>isn't working
what did he mean by this?
>>
>>56895918

Don't forget to fiddle with saturation & contrast.
>>
Systems programming languages suck. You show someone your project and all they can critique is memory safety and other boring shit. Javascript rocks because I don't have to give a fuck about any of that shit.
>>
>>56895891
Why are you subtracting one in the upper bound of find_largest?
>>
56895998 (You)
Not very good bait to be honest
You could've done much better
>>
>>56895998
And this is exactly why /dpt/ calls java devs script kiddies.
>>
File: shitty.png (12KB, 480x171px) Image search: [Google]
shitty.png
12KB, 480x171px
>>56895980
compiles fine but does this

>>56896009
setting pointer equal to the array pointer sets it to a[0], if I were add the length (10) to the pointer, I'd get a[10] which isn't a thing, the array goes from a[0] to a[9]
>>
>>56893006
Thank you for correcting the record.
>>
>>56896060
This post really made me think
>>
>>56896043
>setting pointer equal to the array pointer sets it to a[0], if I were add the length (10) to the pointer, I'd get a[10] which isn't a thing, the array goes from a[0] to a[9]

nevermind I'm retarded

but the output is the same
>>
>>56896043
Anon, a + 10 - 1 = a[9], and the for loop goes only when p < a[9], so you never check if the last element is already the largest and will instead swap something smaller into its place.
>>
>>56895885
writeIORef
, obviously.

These programmers often use the equals sign for such an obscure procedure. Who knows what they're thinking.
>>
File: shitty2.png (12KB, 471x173px) Image search: [Google]
shitty2.png
12KB, 471x173px
>>56896093
yeah I realized that after I typed it, but it still outputs pure garbage
>>
>>56896149
youre not swapping in find_largest
>>
Without questioning why or telling me it's a stupid idea, is it possible to create a type that only allows instances to be created with another type?

template<type>
class instance
{
}
class type
{
}

type whatever; //not allowed

instance<type> whatever; //allowed
>>
>>56896211
not supposed to
>>
>>56896211
nvm, its probably should be q=p instead of *q=*p;
>>
>>56896217
What the fuck is this?

That's a stupid idea.
>>
>>56896239
awww shit that worked

thanks man

p.s. fuck pointers
>>
>>56896217
What you want is essentially an abstract class type, with a derived class instance.

>>56896279
It's bog standard OOP. However I'm not really a fan of abstract classes myself, they are generally to be avoided.

https://msdn.microsoft.com/en-us/library/c8whxhf1.aspx
>>
File: 1392840489520.jpg (44KB, 800x591px) Image search: [Google]
1392840489520.jpg
44KB, 800x591px
>>56891261
I'm making a class in c++, I have some properties, so I made some set functions that have validations and throw exceptions if they are invalid. Am I to call these set functions in my parameter constructor? How do I do this?

 Date(int year = 2000) : myYear(year) {}


If I replace myYear(year) with SetYear(year) then the compiler complains that there is no varaible called SetYear.
>>
>>56895891
if (*p > *q)
*q = *p;

but you set
int *q = a
and never change q, so what you're doing is the same as
if (*p > *q)
a[0] = *p;


So find_largest() is actually changing the value of a[0], which i don't think it's supposed to do.
>>
>>56896217
have private constructors and make the instance a friend.
>>
>>56896217
No, it's only possible with significant amounts of ridicule.
>>
>>56896332
yep, my problem was that I thought that find_largest was working perfectly since it was correctly returning the largest number
>>
>>56896317
guess what {} is for

you could also make a year class with operator= and whatnot doing the same things setyear does
>>
ive been using arch for a few weeks now and used yaourt to install jdk1.8.0 and all was fine

today it just decided that javac isnt a command anymore but it can still do java xxxx to run things

how can that be?
>>
>>56896378
because instead of moving the pointer, you moved the value. lol
>>
>>56896402
it happens

honestly I'm surprised I didn't fuck up more
>>
>>56896407
i'm not trying to ridicule you. i just thought it was a funny bug
>>
>>56896217
template <typename T>
struct Instance
{
Instance(): var{} { }
T var;
};

struct Type
{
private:
Type() {}

friend class Instance<Type>;
};

int main(int, const char **)
{
Instance<Type> x{}; // OK
Type y; // Error

return 0;
}
>>
>>56896440
>>56896351
Thank you, friends.
>>
>>56896469
Now will you tell us why?
>>
gotta send REST requests to paypal through php

UGH ffs now i gotta get cURL working..........
>>
>>56896846
>>56896846
>>56896846

gnu
>>
>>56892712
> please rape the way I'm writing js

Rape culture at work folks
Thread posts: 331
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.