[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: 321
Thread images: 40

File: pair_programming2.jpg (298KB, 800x650px) Image search: [Google]
pair_programming2.jpg
298KB, 800x650px
Daily Programming Thread

What are you working on, anonymous ?

# New & Revised /dpt/ Code of Conduct #
We want to ensure that the /dpt/ community, while large and diverse, remains
welcoming and respectful to all participants. To that end, we have a few
ground rules that we ask people to adhere to.

- *Be friendly and patient.*

- *Be welcoming.* We strive to be a community that welcomes and supports
people of all backgrounds and identities. This includes, but is not limited
to members of any race, ethnicity, culture, national origin, colour,
immigration status, social and economic class, educational level, sex,
sexual orientation, gender identity and expression, age, size, family
status, political belief, religion, and mental and physical ability.

- *Be respectful.* Not all of us will agree all the time, but disagreement
is no excuse for poor behavior and poor manners. We might all experience
some frustration now and then, but we cannot allow that frustration to turn
into a personal attack. It’s important to remember that a community where
people feel uncomfortable or threatened is not a productive one. Members of
the /dpt/ community should be respectful when dealing with other members as
well as with people outside the /dpt/ community.

- *When we disagree, try to understand why.* Disagreements, both social and
technical, happen all the time and /dpt/ is no exception. It is important
that we resolve disagreements and differing views constructively. Remember
that we’re different. The strength of /dpt/ comes from its varied community,
people from a wide range of backgrounds. Different people have different
perspectives on issues. Being unable to understand why someone holds a
viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to
err and blaming each other doesn’t get us anywhere. Instead, focus on
helping to resolve issues and learning from mistakes.
>>
First for Rust is best
>>
me on the right
>>
>>55866493
Which waifu would you want to pair program with?
>>
File: Untitled-2.jpg (2MB, 6000x3000px) Image search: [Google]
Untitled-2.jpg
2MB, 6000x3000px
Nekopara card matching game in unity
>>
File: popefrancis.jpg (3MB, 4256x2832px) Image search: [Google]
popefrancis.jpg
3MB, 4256x2832px
>>55866501
No you're just wrong. I'm not gonna waste time with you, you're just a retarded faggot. Now leave this site, you won't be missed.

>>55866493
Did I strike your CoC hard enough you homo numale?
>>
File: 94c25d_5728895.jpg (213KB, 960x1440px) Image search: [Google]
94c25d_5728895.jpg
213KB, 960x1440px
>>55866511
R
>>
>>55866493
these ops just get funnier every time
>>
>>55866623
weeb
>>
Should I learn Python or Nodejs first?
>>
>>55866641
golang is good
>>
File: satoshiuematsu.jpg (141KB, 962x691px) Image search: [Google]
satoshiuematsu.jpg
141KB, 962x691px
>>55866623
>age, weight and precise height
Those weebs are definite perverts...
>>
hi, guys, i'm new at programming... I have learned HTML5, CSS3 and JS (Mostly),but I want to learn other programming languages as C, C++, Ruby, Python, etc. Which you recommmend me and what can I use it for?
>>
If I plan to sell my program, can I include the fonts that come installed with Windows in it? Or are they copyrighted?
>>
>>55866737
Haskell
>>
>>55866691
>precise height
In Europe we just call those 'height'.
>>
>>55866768
Throw your program in the garbage
>>
>>55866768
they most probably are. wikipedia will probably tell you. if not, just use a search engine.
you can use some free fonts, like DejaVu Sans/Serif, Liberation Sans/Serif, FreeSans.
>>
File: 1454457303401.png (54KB, 328x396px) Image search: [Google]
1454457303401.png
54KB, 328x396px
>>55866808
That doesn't answer my question.
>>
>>55866737
C; you can use it for anything and everything
>>
File: 1448669112662.jpg (3MB, 2560x2880px) Image search: [Google]
1448669112662.jpg
3MB, 2560x2880px
>>55866827
yes it does
>>
>>55866597
Why all the extra new lines?
>>
>>55866834
Can i design or create desktop windows apps with C?
>>
>>55866834
Yeah, if your fucking autistic.
>>
>>55866848
Yes
>>
>>55866848
which part of "anything and everything" is giving you trouble?
>>
>>55866848
Yes but you should use C#
>>
>>55866768
If the fonts are bundled with Windows then why do you even want to include them with the program? You can load them just fine without the files in the folder.
>>
>>55866834
If your time is worthless that is.
>>
Daily reminder that Java is all that matters in 2016.
>>
>>55866887
I meant using them in logos and shit.
>>
>>55866976
>/g/
>logos
every tiem!
>>
>>55866493
I'm working on a shit game based on C++.
I just do it to practice since I'm new to the language and to programming overall, it's being really fun. Motivates me a lot into continuing it
>>
>>55866959
>2006
ftfy
>>
File: programming languages 2016.jpg (472KB, 960x1440px) Image search: [Google]
programming languages 2016.jpg
472KB, 960x1440px
>>55866623
Fixed.
>>
File: 1469050338982.png (2MB, 1696x2467px) Image search: [Google]
1469050338982.png
2MB, 1696x2467px
is it true that you code better while crossdressing?
>>
learn you a haskell
>>
>>55866493
>no cute anime gf to suddenly tickle you while programming
>>
>>55867011
don't know about crossdressing, but I'm lubing up for my coding dildo
I got it for free when registering as an Apple Developer
>>
File: cd1.png (113KB, 755x622px)
cd1.png
113KB, 755x622px
>>55867011
>>
>>55867039
>tfw no cute anime gf to sit on my lap and wiggle her butt while we program together
>>
>>55866623
Why do the shittiest languages have the best girls?
>Ruby, PHP, Javascript, VB, Scala, Actionscript
I would marry them all ;_;
>>
>>55866858
>>55866871
Ok, I'm planning to try Visual Studio 15, should I use it or should I use Visual Studio Code or other?
>>
>>55867087
Visual Studio unless you computer is a literal toaster.
>>
>>55867087
>Visual Studio
Shit, it does not even have a proper C compiler for fuck sake. If you want to program in C do not use VS.

>Windows
Are you sane?

>>55866871
C is better
>>
>>55867106
Then what do you recommend me?
>>
>>55867132
Most people use gcc as a compiler.
As for editor, use any editor of your choice, could be Emacs, Vi(m), kate, nano, etc
>>
>>55867132

Use CLion and Mingw-w64 :^)
>>
>>55867106
VS includes a C compiler, retard.
>>55867132
Visual Studio for C projects, geany for tinkering with simple code.
>>
>>55867132
install arch with no gui and use the terminal

thats how REAL programmers work

not this babby gui WANNABEE programmers
>>
File: fewasdf.png (327KB, 548x728px)
fewasdf.png
327KB, 548x728px
I have a bitvise SSH server running on my Windows PC, but whenever I try to "Invoke-Item" on a video file from my Linux laptop it doesn't work. It works for images, but not video files.

What gives?
>>
>>55867155
>VS includes a C compiler, retard.
What part of "proper" did you not understand?
It does not even support C99 yet.
>>
>>55867161
C99 is cancer anyway, which is why VLAs specific to this standard were remove in the next standard iterations.
>>
>>55867155
>VS includes a C compiler
it doesn't
>>
>>55867160
Nice catgirl, mind if I take her?
>>
File: 4533454354.jpg (1016KB, 1920x1200px) Image search: [Google]
4533454354.jpg
1016KB, 1920x1200px
Is JetBrains a meme company?

Are their IDEs just memes? I recently went back to Eclipse and actually like it a lot more.
>>
>>55867161

It's funny that you say that, because most people here decry anything newer than C89.

No matter what, you're just supposed to hate Microsoft.
>>
>>55867153
I already have MinGW installed

>>55867158
Thank you, but I prefer to see my progress as an app
>>
>>55867172
C99 does not only include VLAs, it includes tons of stuff.
Moreover, VLAs were not removed, only considered optional.
And finally, VS does not even support C11.
>>
>>55867160
It could be related to the fact that you're retarded.
>>
>>55866493
I'm working on a program called "Learn C with Tyrone"

The goal is to teach gangstas how to program in C, Because C is the most gangster language.

So far this is what i have:

//Learning C with Tyrone
//This program is free software all of the free dumbs are included

#include <stdio.h>
#include <unistd.h>

typedef char string[50];

int main(int argc, char *argv[])
{
if (argc < 2) {
printf("sheeit what you talkin bout nikka?\n");
printf("Next time tell me your name fool word?\n");
return 1;
}
printf("What up my nigga %s\n", argv[1]);
int murderCode = 187;
float f = 4.4;
char c[] = "sup";
string myString = "this is a string";
printf("This be an int my nugga: %d\n",murderCode);
sleep(3);
printf("Dis shit her be a float: %f\n",f);
sleep(3);
printf("Sheeit dis be a char array: %s\n",c);
sleep(3);
printf("Dis shit right her be a string: %s\n",myString);
sleep(3);
printf("Sheeit watch me bust mmy gat, Got 10 rounds in dis mo fucka\n");
sleep(2);
for (int i = 0; i < 11; i++) {
printf("Pop\n");
}
printf("Sheeit we missded dem fools\n");
sleep(2);
printf("back dis bitch up and let me reload tyrone\n");
while (1) {
printf("pop pop pop pop\n");
sleep(4);
printf("yeaaaa boi we got em\n");
sleep(2);
printf("we gots to get outta her main\n");
if (murderCode == 187) {
break;
}
}
sleep(4);
printf("We got a load of product we got to move to the west side\n");
sleep(2);
printf("Word?... Send that shit fool\n");
return 0;
}
>>
>>55867179
You're a meme.
>>
>>55867189
>app

get out
>>
>>55867186
>most people here decry anything newer than C89
First time I hear such a claim.

>No matter what, you're just supposed to hate Microsoft.
Because most of their products are shitty, however most of their fonts are fine I think.
>>
>>55867186
>most people here decry anything newer than C89.
I'd like to see your statistical data that backs up such a statement
>>
>>55867198
Are you retarded? VLAs are exclusively a C89 and C99 feature, its support was dropped in c90, added back in c99 and then dropped in c11
>>
>>55867186
>most retards here that were proven time and time again to not know what the fuck they're talking about decry anything newer than C89
ftfy
>>
>>55866848
>>55867189
>app
consider killing yourself, you don't belong here
>>
>>55867223
>VLAs
>C89
>tard
>>
>>55866871
>>55866871
https://www.youtube.com/watch?v=1S1fISh-pag
>>
>>55867223
Don't talk if you do not know C. VLAs were first added in C99, they were not in older standards.
They were NOT dropped in C11, if you do not believe me you can search for them in the C11 standard.
>>
>>55867219
>>55867222

You don't spend enough time here, then. I've seen it suggested that the newer standards are full of garbage abstractions for newbs.
>>
>>55867179

well, i havent really found anything better than PyCharm for large Python projects that is free

i find i need an IDE when i work in a team since it makes version control and merging easy, on my own a text editor is fine
>>
>>55867255
>1 or 2 people claim such a thing
>it's a fact now that /dpt/ hates them
>>
/wdg/ is dead so I'll shit up this thread with my filthy webdev peasantry:

Is there any alternative to styling components in react.js than inline styles? Shit feels a bit primitive after having separation of concerns hammered into me from the get-go
>>
>>55867209
needs more gangsta lingo
>>
>>55867209
wow, you are a terrible apper
>>
>>55867198
>VS does not even support C11
There's only a handful of c11 features one would use in their C projects. For most use cases the mixture of c90 and partial c11 features are enough for VS to be a viable option for clean C development.
>>55867254
Nope, they were dropped and no compiler worth its salt deserves to support them, good riddance because VLAs are cancer.
>>
>>55867279
Webdev has always been accepted here as long as it's not about HTML or CSS, the person who started those /wdg/ threads is an idiot who only divided /dpt/.
>>
>>55867275
>>1 or 2 people claim such a thing

/dpt/ is only 1 or 2 people anyway.
>>
https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-and-c99/

Now stop whining, if you're just gonna play around and/or learn basic c, visual studio is fine, but if you're gonna use the more advanced c shit, it might not be.
>>
>>55867300
>There's only a handful of c11 features one would use in their C projects
Which is wrong, considering that C11 includes all C99 features and VS does not even support them.

>Nope, they were dropped
You did not search as I told you, huh?

>and no compiler worth its salt deserves to support them
Funny, considering that only compilers worth their salt support them.
>>
>>55867286
It's a WIP, I'm going to put a socket example in it and pointers and a switch, That should show tyrone the basics.
>>
>>55867323
I don't need to search anything, because I know VLAs are NOT required to be supported and that's for a very good reason, besides even if you were to use VLAs that just says that you're a shitty developer who has no idea what he's doing or a freshman who found out about C standards an arrays.
>>
File: 1410982368303.jpg (54KB, 368x381px)
1410982368303.jpg
54KB, 368x381px
>>55866493
I would like to ask for your help with C#.

I have a form with 2 picturebox in it and a timer which moves them. Now the problem is with this.

At a certain location the timer must stop and show a messagebox, but it "forgots" to check it.

Here is a part of the code, writing from mobile in a toilet so sorry:

Random r =new Random();
int politicalhorse;
Int adbhorse;

..timer_tick(blablabla)
{
politicalhorse += r.Next(10);
adbhorse += r.Next(10);

//this block just sometimes get "read"

if(politicalhorse.Left ==600 || abdhorse.Left ==600){
timer.stop();
if(politicalhorse.Left == 600) Messagebox.Show("The President wins!!");

else{ MessageBox.Show("The Ambassador of Israel wins!!");
}

}
>>
>>55867315
The first part is about the C++ compiler, meaning that tons of C code will be invalid (even stuff like a simple malloc because they demand a cast)

>if you're just gonna play around and/or learn basic c
If you do want to do that then there is an even better reason not to use VS: It suggests for their shitty *_s variants of standard functions

>>55867343
>because I know VLAs are NOT required to be supported
Backpedalling, huh? At first you said they were removed and now that they are not required to be supported?
What if I told you that stdio.h is not required to be supported either?

>besides even if you were to use VLAs
Nothing wrong with VLAs, good job making shitty claims.
>>
>>55867363
You stupid?

r.Next(10) gives number from 0 to 10
So if politicalhorse is 599, it can end up anywhere from 600 to 609, meaning it will not be always equal to 600.
>>
>>55867363
you are checking ==, but adding a random number between 1 and 10. So it's possible for the positions to skip past 600. Just change == 600 to >= 600.
>>
>>55867366
Most compilers have it removed, some have it disabled by default which is as good as being removed, because nobody in their right mind would use them in real world development.
>Nothing wrong with VLAs
If your company requires you to overflow the stack on a daily basis, then by all means use them. Being a shitty dev isn't against the law.
>>
>>55867366
>The first part is about the C++ compiler, meaning that tons of C code will be invalid (even stuff like a simple malloc because they demand a cast)
That whole blog post is about which C99/C11 features they support and why.

>If you do want to do that then there is an even better reason not to use VS: It suggests for their shitty *_s variants of standard functions
#define _CRT_SECURE_NO_WARNINGS

problem solved.
>>
File: 1462575403827.jpg (26KB, 387x378px) Image search: [Google]
1462575403827.jpg
26KB, 387x378px
>>55867209
That while is pointless.

also
>typedef char string[50];
>>
>>55867407
>Most compilers have it removed
No compiler had it removed, but this was not the topic anyway.

>some have it disabled by default which is as good as being removed
Again, this is not the case.

Since you pretend to know that much, tell me, which compilers are these? (that's right, none)
Also, you ignored half of my post. Didn't you say that they were removed by the standard before but then backpedalled to saying that they are optional?

>overflow the stack
The C standard says nothing about stacks.

>If your company
Good thing I am not working as a code slave.

>>55867437
>That whole blog post is about which C99/C11 features they support and why.
...in their C++ compiler (which again will not compile most of C programs)

>problem solved.
It's not solved because no person who begins programming in C will know about it and will get tricked by their warnings.
>>
>>55867393
>>55867403
Oups sorry, I wrote it incorrectly.
It is hard to write when one takes shit.


The horses' movement values are already assigned at start.

So it looks like this:


politicalhorse= r.Next(10);
abdhorse = r.Next(10);

..tick(blabla){

politicalhorse_pic+=politicalhorse;

abdhorse_pic+= abdhorse;

// then the rest I wrote with the correction that the pictureboxex that represent the horses gets checked not the int
}
>>
File: 17476675.jpg (80KB, 588x437px)
17476675.jpg
80KB, 588x437px
>>55867462
>The C standard says nothing about stacks.
Do you even know what are the implications of using VLAs, friendo?
>Good thing I am not working as a code slave.
So you admit you're not even working as a dev? Your opinion is worthless, just stop posting, famalam.
>>
File: 1456525845882.jpg (23KB, 240x251px)
1456525845882.jpg
23KB, 240x251px
>>55867223
>thinks there's a difference between c89 and c90
oh wow what the hell are you doing in /dpt/
>>
>>55867363
>>55867489
do your own homework
>>
>>55867506
Are you retared? c89 doesn't even allow single line comments or declaring vars in loop. Fuck off, fag.
>>
>>55867459
It's not pointless, It's an example of a while loop, It's not finished anyway.

What's wrong with my string?
>>
>>55867462
>...in their C++ compiler (which again will not compile most of C programs)
It will compile any C program that does not use any unsupported C99/C11 features.
>>
>>55867502
>implications of using VLAs
have you even read the standard?
>>
>>55867517
Neither does c90 because it's the same fucking standard based retard
>>
VLAs are overrated. Let's all just go back to using alloca.
>>
>>55867531
Have you ever programmed in C?
>>
>>55867528
>any C program
>unsupported C99/C11
then it's not C
>>
>>55867502
>he ignored literally all of my arguments
kek, how does it feel getting owned?

>Do you even know what are the implications of using VLAs, friendo?
Sure I do, you do not need to free it at the end of the block and you may even use it in freestanding mode.
It like alloca but better and more portable. The standard however says nothing about stacks.

>So you admit you're not even working as a dev?
Yes, I am a CS phd student and plan to work as a researcher instead of a useless "coder" for a shitty company.
>>
>>55867528
>It will compile any C program
*sigh*
Did you not even bothered to read my post above? It won't compile any most programs that use malloc/calloc/realloc or void * in general.
>>
File: 1467391663410.jpg (126KB, 760x524px) Image search: [Google]
1467391663410.jpg
126KB, 760x524px
>>55867513
I am not an American """""student"""""", we don't get this kind of shit for hw, I just fuck around with this new language I learn.
>>
>>55867541
have you? how, if you don't know the language?
>>
>>55867547
What arguments? You keep bringing up the standard but keep ignoring the damage usage of VLAs can do. Just stop posting.
>>
>>55867582
>You keep bringing up the standard but I've never seen it
every time
>>
>>55867567
If you've ever used GCC you can get confused because the compiler adds its own extensions.
>>
File: 1461005231404.jpg (687KB, 826x1167px) Image search: [Google]
1461005231404.jpg
687KB, 826x1167px
What are you lads programming to?
https://www.youtube.com/watch?v=Zgjv0PQiJCs
>>
>>55866501
Is there a guide on how to not suck at error handling in Rust? I just use unwrap() everywhere but I need to know what the non-boilerplatey alternative is.
>>
>>55867596
>you can get confused
maybe you get confused, being incompetent and all
>>
>>55867160
Use either MSYS2 or Cygwin's sshd instead of properitsry bullshit. You got Jew'd on that one.
>>
>>55867595
Why should I need to read the standard? I don't have a job as a standard reader, nor have I graduated with a degree in standard reading.
>>
>>55867605
>the non-boilerplatey alternative
another language
>>
>>55867582
>What arguments?
Just for you, I will repost them.
1: You did not reply to what compilers have it removed
2: You did not say anything about your backpedalling (removed vs optional)

>but keep ignoring the damage usage of VLAs can do
1: I ignored no damage friend (I made it clear to you that the standard says nothing about stacks).
2: This was not the main topic anyway.
3: You actually ignored the positives of VLAs
>>
>>55867174
>mum, I'm retarded and I don't know that C is valid C++
>>
>>55867623
so you can get educated and stop making retarded statements; but carry on
>>
File: Capture.jpg (61KB, 1009x396px) Image search: [Google]
Capture.jpg
61KB, 1009x396px
>>55867563
>The first part is about the C++ compiler, meaning that tons of C code will be invalid (even stuff like a simple malloc because they demand a cast)
Which is wrong, if you create a file with a .c extension in visual studio, it will compile it in c mode.
Visual C++ isn't JUST a C++ compiler, it is also a C compiler.
>>
>>55867641
>You actually ignored the positives of VLAs
Which are?
>>
>>55867645
>I'm retarded
>C is valid C++
you sound retarded alright
>>
>>55867645
>this is valid C++
#include <stdlib.h>
int main (void) { int *a = malloc (sizeof *a); *a = 0; return *a;}


lol tard
>>
>>55867563
Certifable retard. At least bother to check MSDN, dumbfuck.
>*sigh*
Kill yourself.
>>
>>55867659
which compilers removed VLA?
>>
>>55867599
>Midnight nooses from boxcar cadavers

I find it hard to concentrate on my thought process with music that isn't very ambient or chill. I might be able to do it if it's a record I've heard a million times before, but mostly it just gets in the way for me
>>
>>55867489
This has the same error man. Let's say r.Next gives you 7. Every loop you are now moving it by 7. You are not guaranteed to land exactly on 600. Just change it to >= 600.
>>
>>55867678
Why are you replying with a question, dumbass?
>>
>>55867655
>it will compile it in c mode.
With the C90-only compiler.

>>55867659
Literally the post before that one that I posted in that reply chain, holy shit, are you that stupid?
Also, you are STILL ignoring my arguments.
>>
>>55867692
why are you dodging? did you just get rekt?
>>
>>55867694
>you do not need to free it at the end of the block and you may even use it in freestanding mode.
It won't matter if you overflow the stack, dumb retard.
>>
>>55867605
I've found the chapter in the rust book on error handling to be pretty good: https://doc.rust-lang.org/book/error-handling.html
>>
>>55867719
>if you overflow the stack
Again, the standard says nothing about any stack.
Also, you still ignored my argument.
>>
>>55867705
Your mom is dodging cum from cocks she serves at your local glory hole, fuccboi.
>>
>>55867741
>fuccboi
tumblr pls go
>>
>>55867738
So you can't overflow the stack in a C program, because the standard doesn't mention it?
>>
>>55867599
https://www.youtube.com/watch?v=ZRY7zrMGCi8
>>
>>55867758
I won't reply to your bullshit until you reply to my arguments. I am almost certain that you are trolling by now.
>>
>>55866599
>No you're just wrong. I'm not gonna waste time with you, you're just a retarded faggot. Now leave this site, you won't be missed.

Not him. Can you give any explanation other than "Not many people use it so no jobs lol" because that's just basically saying "it's new, so it's bad."
>>
>>55867778
Do you even know what a stack is and that there are different memory allocation schemes? How variables go onto the stack and get popped over the course of a runtime of C program? Using VLAs freely has a higher chance of corrupting or overflowing the stack and then your program gets fucked, retardo. So just stop posting if you've never even written any C
>>
>>55867818
Waiting for you to reply to my arguments, if you do I might reply to your bullshit.
>>
>>55867632
Rust has macros n' shit though.

You can presumably metaprogram the boilerplate away, with some restrictions.
>>
>>55867833
I'm waiting for your mother to suck my cock and swallow my cum. So let's wait together then, shall we?
>>
>>55867818
>I don't even know C because I'm too retarded to read the standard
>muh stack tho
just how mentally ill can you be?
>>
>>55867861
>you need to read the standard to know C
Most retarded thing I've read today.
>>
>>55867879
>I know C without learning C
>most retarded
got that right
>>
>VSfags
kek
>>
>>55867810
It has a CoC. Don't trust dem homos over here
>>
>>55867899
You learn C by writing code and reading books/examples of the Internet. You can do just fine with superficial knowledge of standard if you always use one standard.
>>
>>55867921
>examples from youtube
found the webshit
>do fine
>superficial knowledge
no, you're simply incompetent
>use one standard
which you don't know
>>
File: LAbPAuN.png (64KB, 1076x997px)
LAbPAuN.png
64KB, 1076x997px
>>55867599
Good taste.

Same as >>55867680 , I try not to use very interesting(?) music when I program.

Mostly more low-key prog-metal:
https://www.youtube.com/watch?v=C0Bc4pkSGfU

>>55866493
Is there an API for first/last names in the US by gender, or is a massive in-line list of possible names really the easiest way to do this stuff?
>>
>>55867942
>by gender
Should it include intersex, genderfluid, transgender, polygender, etc?
>>
File: Capture.jpg (76KB, 1000x462px)
Capture.jpg
76KB, 1000x462px
>With the C90-only compiler.
https://msdn.microsoft.com/en-us/library/hh409293.aspx#BK_CRT
>C99 Conformance Visual Studio 2015 fully implements the C99 Standard Library, with the exception of any library features that depend on compiler features not yet supported by the Visual C++ compiler (for example, <tgmath.h> is not implemented).

Here are some C99 features for you.
>>
>>55867338
>switch-blade
kek
>>
>>55867939
I use c11, I don't need to know what was in c89 or c90 other than the fact that I don't use VLAs, because there are much more safe ways than that. You can cocksuck over your knowledge of different standard without writing a single line of code like the faggot you are I don't really care.
>>
>>55867959
No, just masculine and feminine.

What are specific names for a transgender or genderfluid wolfkin?
>>
Trying to polish drivers for a laser projector DAC. Currently there is problem with syncing, after a while of playback frames start to get corrupted, with a frame starting and then mid-frame changing to data that should have been part of the next frame, not the current one.. Looks like frame buffers are being reused and overwritten prematurely, and such half-overwritten frames are being submitted. Trying to fix it using mutexes or something
>>
>>55867962
>_Fcomplex
Not standard C.
>>
>>55866493
Do you have a copy of pair_programming1.jpg that I could borrow?
>>
>>55867994
http://ilovewerewolves.com/wolf-names-and-meanings/
>>
>>55867976
>I use c11
how do you know if you don't know the actual language?
>don't need to know what was in c89 or c90
ok
>I don't use VLAs
ok
>your knowledge of different standard
we're talking only about the C standard here, and yes, I know more than you ever will, because you're a webshit that gets his partial C knowledge from youtube tutorials
>>
>>55867994
A lot of names are both masculine and feminine, like Alex for example
>>
>>55867962
>fully implements
>fully
>with the exception of stuff we don't implement
>fully tho
>>
>>55867976
>I use c11, I don't need to know what was in c89 or c90 other than the fact that I don't use VLAs
You did not even know that VLAs exist in C11.
>>
>>55868066
BTFO
T
F
O
>>
>>55867727
Thanks! I'll give it a look.
>>
>>55867919
>CoC
Calculus of constructions?
Code of Conduct?
>>
File: t.jpg (20KB, 480x514px)
t.jpg
20KB, 480x514px
>>55867599
>lads
Did you just assume our gender?
>>
coc me gee!
>>
where can i learn c++ online? i went through java codecademy and it was pretty good but they dont have c++
>>
File: fjkphqSqQfU6wyjFFwLBzqXp.jpg (440KB, 1920x1200px) Image search: [Google]
fjkphqSqQfU6wyjFFwLBzqXp.jpg
440KB, 1920x1200px
I have a weird question.

For the past few months I've been getting some weird hand/wrist pain that makes it annoying to type or hold my mouse for too long at a time. The point is that I'm learning to program atm but I'm worried that if I get a job doing this I'll be hindered by my injury.

So my question is, how much of a programming job is spent actually writing code? Would I be click-clicking away for 8 hours a day, or is it more like a 95% thinking and 5% typing kind of thing?
>>
File: A.aurantiaca-cover.jpg (105KB, 597x600px) Image search: [Google]
A.aurantiaca-cover.jpg
105KB, 597x600px
>>55867599
https://www.youtube.com/watch?v=bzRLZvtk1M0
>>
File: pair_programming.png (198KB, 640x480px) Image search: [Google]
pair_programming.png
198KB, 640x480px
>>55868006
>>
>>55867599
Sounds tight
If you haven't heard the stuff, you'd like mathrock
https://www.youtube.com/watch?v=SfFCiYtlQCg

I also enjoy bluegrass/dark country while programming
https://www.youtube.com/watch?v=3CmJFPSMxMI
>>
>>55868206
>Would I be click-clicking away for 8 hours a day, or is it more like a 95% thinking and 5% typing kind of thing?
The latter, depending on what you're writing and how familiar you are with what you're actually writing.

>Are things mostly planned out?
>Are you using libraries and STL functions you're already familiar with?
>Are you experienced with that language's syntax?
>etc.

The more Yes answers you have, the more writing and the less thinking you do, never really more than 30/70.
>>
>DAX

Holy shit, I'm going to kill myself.

This is cool and all being able to do this on the presentation layer, but fuck me if I'm doing this horribly wrong.

All to say either
>There is / host
>There are / hosts
depending on more than one.

ProblemHosts = IF((COUNTX(FILTER(SUMMARIZE(AvailabilityView, AvailabilityView[ESXname], "ESXHoursDowntime", SUM(AvailabilityView[Hours of Downtime])), [ESXHoursDowntime] > 100), [ESXHoursDowntime])) = 1, "There are " & COUNTX(FILTER(SUMMARIZE(AvailabilityView, AvailabilityView[ESXname], "ESXHoursDowntime", SUM(AvailabilityView[Hours of Downtime])), [ESXHoursDowntime] > 100), [ESXHoursDowntime]) & " hosts with downtime greater than 100 hours.", "There is " & COUNTX(FILTER(SUMMARIZE(AvailabilityView, AvailabilityView[ESXname], "ESXHoursDowntime", SUM(AvailabilityView[Hours of Downtime])), [ESXHoursDowntime] > 100), [ESXHoursDowntime]) & " host with downtime greater than 100 hours.")
>>
>>55868048
Alex isn't a full name, it's a unigender nickname of gender exclusive names: Alexander, Alexandra.
>>
>>55868345
>gender exclusive names
I'm a man named Alexandra. Come at me.
>>
Where does the PHP file execute when someone loads that page, on the server or the client? I've got a page that connects to localhost, so will it connect to the users machine or my server like I want it to?
>>
>>55868338
That seems extremely inefficient, recalculating this shit twice all the time.
>>
>>55868373
Luckily there isn't much data. I'm not sure if there's a way to declare/assign any sort of variable.
>>
>>55868368
Of course on the client side, just go to Facebook, hit ^U, get their DB passwords and sell them to the highest bidder. Don't tell anyone about it though.
>>
>>55868368
Currently the only thing that can execute client-side is JavaScript (in b4 TypeScript/CoffeeScript whatever, they're transpiled to JS).
PHP runs on server side. Connecting to localhost just means you are connecting to a server that's running on your machine.
>>
>>55868355
>male with female name
absoultely patrician
>>
>>55868048
Both Alex and Sasha are gay as fuck.
>>
>>55868394
>>55868407

Ah, that probably should have been obvious. Im totally ignorant to the web side of programming. My idea of securing a site is posting a couple angry armed men beside the server rack.
>>
>>55868426
>Sasha
I've never met a man or women named Sasha that I would choose to pick a fight with.

Men named Sasha are not to be fucked with.
>>
>>55868455
I met one
He was gay and sissy
>>
File: 1469367116087.jpg (75KB, 630x551px)
1469367116087.jpg
75KB, 630x551px
do you always write your best possible code when working as codemonkey?

let's say you have to implement a method and suddenly you get a brilliant idea. do you implement this or do you implement a method that is "ok" and keep your good ideas for yourself
>>
File: 1462106708767.jpg (254KB, 2048x1536px)
1462106708767.jpg
254KB, 2048x1536px
>>55867599
https://www.youtube.com/watch?v=I3ZZOmjO5Ww
>>
>>55868470

I bet you fucked him, homo.
>>
>>55868479
I never write my best possible code, for work or for play.

Sure, I could spend hours on one simple method ensuring that it's perfect and impossible to fuck with.

Alternatively, I could handle >95% of potential issues and move on.

Done is better than perfect.
>>
>>55868535
he was a girl
>>
>>55868455
>>55868470
Men named Sasha are usually in the Russian mafia, in my experience. :^)
>>
>>55868537
>I never write my best possible code
then how do you improve if you dont strive for your possible best?
>>
>>55868303

Cool, that's just what I wanted to hear, thanks.
>>
>>55868426
It seems like there are 4 types of Alex:
1. Second or Third generation Asian immigrant
2. Really quiet, usually wears glasses
3. Super badass-wannabe guy who is over compensating for the perceived femininity of his name
4. Goes by a different name or changed name as soon as possible
>>
>>55868571

Not that guy, but in general it's much more efficient to "settle" for a good result rather than a perfect one. To answer your question, you improve because it saves you time, and you can use that time to move on to new problems that teach you new things.

Perfectionists are never as productive as people with a more realistic/pragmatic approach, and this applies to pretty much any aspect of life tbqh.
>>
>>55868571
Because you don't need to do menial things to perfection ad nauseum.

You need to be creative and find interesting solutions to novel problems.

The more time you waste making a 'perfect' solution to one problem is time wasted that could be put to use fixing other problems well enough.
>>
>>55868688
Isn't this basically the purpose of libraries?
>>
>>55868688
>>55868620
but isn't finding interesting, creative and novel (eg better) solutions to existing problems what is it all about and the way to improve? and Im not talking of trivial problems or problems that are mathematically proven at its optimum.
and Im not talking of perfectionism but of the trying to find the best possible solution one can come up.
>>
>>55868767
Modern day programming solutions are almost always an amalgamation of various useful libraries.

>>55868773
>isn't finding interesting, creative and novel (eg better) solutions to existing problems what is it all about and the way to improve?
No, that's a way to be stagnant and frustrated.

From a cost-benefit perspective, my time is literally money. If the scope of work has particular deliverables, I deliver those items, and I deliver them well, and I deliver them on-time.

Money isn't made by wasting your time doing a 2% optimization in a non-performance-critical method. Sure, that may save the Azure subscription $30 of calculations or data transfer over 3 months, but that's $3000 of my team's time now, which could have been invested at around 4-6% APR compounded monthly for a net profit over the aforementioned cloud-hosting costs.
>>
>>55866493
I really want to go hard in learning C++, but I'm forced to use Java in AP COMPSCI next year, and people are all saying Haskell is god-tier... What do?
>>
>>55868887
C++ is like writing vomit.

Haskell is useless for most tasks you'd want to do.

>What do?
Kill yourself for using that phrase.
>>
>>55868905

>Kill yourself for using that phrase.
Out of bleach, try again later

What would you recommend?
>>
>>55868873
well you see it from a purely economical pov and then I agree in everything of course.
However, I was more kinda pondering when you code for yourself, for a foss project or just a thought experiment and money is irrelevant.
>>
File: image.jpg (101KB, 500x564px)
image.jpg
101KB, 500x564px
>>55868224
Thank you anon :)
>>
>>55868987
>I was more kinda pondering when you code for yourself
That's where "stagnant and frustrated" comes into play.

I get annoyed trying to handle all potential issues and trying to squeeze out a little more performance.

I'd rather architect the solution, and let someone else deal with optimization and sanitizing.

It's just personal preference.
>>
>>55868951

Take your java pill and deal with it. It's sadly one of the most common languages for jobs. Every programmer that seeks employment will more than likely deal with this paid torture at some point.

As for C++ it's in the same boat as java. Very good for employment and most people find it horrible to use. I'm being unbiased here. The language I've used most is C++.

As for Haskell.. Its a decent language to learn for "Pure" functional concepts. However, the users are mainly hardcore academics and it is rarely used for any large scale non toy projects.
>>
>>55868355
I already fancy you
>>
>>55868905
>Haskell is useless for most tasks you'd want to do.
bullshit
>>
>>55869090
but java is beautiful
>>
>>55869252
t. Pajeet
>>
File: 1310361413052.jpg (28KB, 400x365px) Image search: [Google]
1310361413052.jpg
28KB, 400x365px
>>55869263
how is being a neet?
>>
File: Projecting.jpg (29KB, 490x333px) Image search: [Google]
Projecting.jpg
29KB, 490x333px
>>55869280
>>
>>55869263
A leet neet pajeet from the designated street?


word.
>>
File: 1310474629972.jpg (21KB, 364x272px) Image search: [Google]
1310474629972.jpg
21KB, 364x272px
>>55869291
but you just said im a pajeet
>>
>>55866959
C# is pushing Java to the wayside
>>
>Java/C# fags arguing over who is the best worst language
>>
>>55869447

Better than FPfags arguing over who has the best useless language.
>>
>>55869467
usedless*
>>
>>55867010
Хeхeхe
>>
>>55866493

Working on www.beatfinder.net as the sole developer. Need a bro to work with soon yo :(
>>
File: dad_of_the_year.webm (2MB, 1335x720px) Image search: [Google]
dad_of_the_year.webm
2MB, 1335x720px
/dpt/-chan, daisuki~

Ask your much beloved programming literate anything (IAMA).

>>55868206
Get a kinesis advantage pro
>>
>>55869774
this show is still fucking going?

holy shit
>>
>>55869667

Hey If you want to work with me on this, find me ez pz go go
>>
>>55869787
It will never stop.
>>
I'm new to mongo anons, can someone tell me how could i import into collection data from .txt file
txt file looks like:
1461683174206.webm
1461683285264.webm
1461683622065.webm
1461683946858.webm
1461684126509.webm
1461684240213.webm
1461684761432.webm
1461686040678.webm
1461686311261.webm
1461686474611.webm
1461693042807.webm
1462129963893.webm
1462129988152.webm
1468196902784.webm
1468425541714.webm
1468955756148.webm
>>
>>55869975
>>>/b/
>>
>>55866493

>/dpt/ has a SJW tier code of conduct.

But what if I don't want to be friendly and call you a faggot kike nigger?
>>
>>55870032

It's a joke.
>>
File: Selection_005.png (61KB, 1052x281px) Image search: [Google]
Selection_005.png
61KB, 1052x281px
>>55869997
apologize
>>
How do you like my prototype for adding variety to NPC-speak in my rpg, /g/?
var synonymMatrix = [
["bad","terrible","no-good","poor","miserable","shitty"],
["good","lovely","excellent","extraordianry","fantastic"],
["ridiculous","proposterous","crazy","retarded"]
];

var commonWeights = [
[1,1,1,1,1,1],
[1,1,1,1,1],
[1,1,1,1]
];

var uneducatedWeights = [
[2,1,0,0,-1,1],
[2,0,0,-1,0],
[0,-1,1,0]
];

Each npc will have a unique dialect that will include different weights and also how much to multiply them by before taking them into consideration. Then the code loops through the handwritten dialogue and switches out words depending on the npc's weights.

Any obvious ways to simplify this before I expand on it?
>>
>>55870151
commonWeights = [for (table of synonymMatrix) [for (phrase of table) 1 ] ]
>>
>>55870269
Eh I might not want them all set to 1 if that's what you're getting at but I could use it as a default.

I probably want to find a way to automate this a bit if I'm gonna have a bunch of different words and weights.
>>
Reminder that Python is a language for babbies and non-programmers.

Reminder that go is a language designed for use by people who aren't capable of understanding a brilliant language.
>>
I keep hearing that error handling shouldn't be used as program structure.

But how does one do when it becomes necessary to close a socket that is blocking on read, before moving on to do something else?

.close() ing the socket is the only way to bread out of the .read() and this invariably results in an exception...
>>
>>55870378
but babies are taught real languages you faggot, its grown ups who learn idiotic shit like esperanto or japanese
>>
Num1 here50
Num2 here50
5050
Traceback (most recent call last):

if heh >= 59:
TypeError: unorderable types: NoneType() >= int()

I'm trying to check if heh is bigger than 59 after a user inputs two variables brought up in a def function. I understand the def function, but what I don't understand is why I can't use a variable within a def function with an outside variable, for example

def calc(num):

num1 = input('Num1 here')
num2 = input('Num2 here')
num3 = (int(num1 + num2))
print (num3)


heh('calc')
if heh > 50: #This is the line that errors out, why exactly can't heh be used in a conditional statement with the integer 50?
print 'see? does not work' #if it works this will print


>>55870378
I'm a babby but I plan on moving onto C and C++ after Python. I might dabble in Java and webdev as well
>>
>>55870397
In C there is no exception. Use a true language next time.
>>
>>55870409
You need to go cold turkey, otherwise you'll keep skipping back into Python.
>>
post your actual code, what you posted here makes no sense
>>
>>55870476
>>55870409
meant for this guy
>>
>>55870409
First you need to return a result from calc, so add:
return num3


Then you need to store the result in a variable, so:
heh = calc()
>>
>>55870378
Its not a language for babbos, its a language for snakes.
>>
>>55870496
but his error doesn't even make sense, it should throw a NameError for heh
>>
>>55870378
>incapable of learning python
>incapable of learning go
top fucking kek
>>
>>55870528
>anyone who doesn't like Python or Go is just incapable of learning it
This is how Python fags actually think.
They actually think their language is heaven on Earth.
If it had a dick they'd suck it like the faggots they are.
>>
>>55870485
T-That is my actual code...

Maybe I wasn't clear enough, what I'm trying to figure out is how to compare the variable num3 (The sum of both num1 and num2) with a variable outside of the calc function that I created using def. I did some google researching and found out that Nonetypes have no value, so how exactly can I point to the variable num3 within the created calc(num) function? The end goal is, one again, to compare it to a variable outside of the created function, e.g.
if num3 >= 50:
print 'something'
But that would result in an error about num3 not existing. I'm guessing that I need to do something about a global scope? I haven't gotten to that yet, but I reckon that's the path I need to take.

>>55870496
So, like this?
def calc(num):

num1 = input('Num1 here')
num2 = input('Num2 here')
num3 = (int(num1 + num2))
print (num3)
return num3
heh = calc()
print heh #testing
if heh >= 50:
print 'something
>>
>>55870553
>So, like this?
Yes but now that I think of it you should convert each input variable to an integer individually then add them together rather than converting the result of string concatenation.
>>
File: Screenshot_105.png (410KB, 740x418px) Image search: [Google]
Screenshot_105.png
410KB, 740x418px
>>55870553
>>55870496
>>55870575
>mfw it worked
Thanks Anon!
>>
>>55870553
you can take away the num parameter from calc too, you are not using it

the thing is if that was your code it should have thrown other exceptions before that one

first of all you hadn't declared heh, then you were doing heh('calc'), and only after that would the error you posted come up
>>
>scrubs fighting over best worst language
c/c++/asm are the only languages that matter
>>
File: Selection_006.png (107KB, 649x602px) Image search: [Google]
Selection_006.png
107KB, 649x602px
>>55870643
hi fag
>>
>>55870694
>require require require

Have you forgotten how to program?
>>
>>55870706
>reinventing the wheel

Is your time worthless?
>>
>>55870720
That wasn't what I meant, but that's another problem you have
>>
File: Selection_007.png (69KB, 682x603px)
Selection_007.png
69KB, 682x603px
>>55870706
>Have you forgotten how to program?
da
>>
How do I pick a random number between A and B, that is at least A + C and no more than B - C?
>>
>>55870550
>even simple languages are to hard for me to grasp
m8...
>>
>>55870694
dear god, please use module exports anonpai
>>
>>55870758
Hvilket språk er det?
>>
std::basic_ifstream<uint16_t> in_file("filename", std::ios::in | std::ios::binary | std::ios::ate);
long long filesize = in_file.tellg();
vector<uint16_t> data(filesize / 2);
in_file.seekg(0);
in_file.read(&*data.begin(), filesize / 2);
This only copies half the opened file into the vector, and every element of the vector contains only one byte of data.
Why am I even trying to make use of these shitty streams instead of time-tested stdio.h?
>>
>>55870769
local result

repeat
result = math.random(A, B)
until result >= A + C and result <= B - C
>>
>>55870786
nodejs
>>
>>55870780
I wrote a compiler for Python, and used Python professionally. I never want to do either again.
>>
>>55870758
theme name?
>>
>>55870694
nice job riding on c++'s dick
>>
>>55870805
Takk
>>
>>55870817
>nice job riding on c's dick
>>
>>55870830
c/asm are the only acceptable peens, fag
>>
>>55870811
seti
>>55870817
what is your point?
c++ is my 1st language boy
>>
>>55870849
>c++ as first language
WHY WOULD YOU DO THAT TO YOURSELF
>>
>>55870849
c with shitty extensions. sure c++ is ok, but c beats its ass everyday fag.
>>
>>55870797
The more suitable question would be:
>Why am I complaining about things that I do not understand at all?

Read the documentation, reevaluate your code, fix it.
>>
>>55870865
>>C++ as a first language
Are you retarded?
>>
>>55870865
>>55870889
not as bad as java/python as first language. useless shit.
>>
>>55870378

C IS THE ONLY PROGRAMMING LANGUAGE! IF YOU USE ANYTHING ELSE YOU"RE A FUCKING NEWB SHITTER! REEEE
>>
>>55870913
That's the most clever thing you say OSGTP but it's sarcasm. Like always you suck filthy code monkey.
>>
>>55870865
Not as 1st language learned.
I started in school with qbasic, then turbo c.
On 1st year of CS, i started with C in 1st semestar, then C++, Java OOP.
After that php, javascript, mysql
After that on masters c#

When i said, c++ is my 1st language, like language i like most and work with most.
>>
>>55870809
you sure did ;^)
>>
>>55870934
>php, c#
>>
>>55870913
I don't like to use C if I can avoid it.
>>
>>55870908
I think you misunderstood my post

There's literally nothing wrong with learning C++ first
>>
>>55870928

It's not clever at all. Using C for every problem is something that morons do.
>>
>>55870963
you're autistic, aren't you?
>>
Can somebody explain the MVVM design pattern using simple words that even a retard can understand and implement?
>>
>>55870989
And like always you failed.
I didn't say it was clever, I said it was the most clever thing you said.
I'm really sorry for you. It must not be easy to be retarded.
>>
>>55870989
I agree. The same applies to using Python or go for any problem.
>>
>>55871037
It's the 1990 pattern, in which you use C89 exclusively.
>>
>>55871047

I'm not disagreeing with you.

>>55871038
>I'm really sorry for you. It must not be easy to be retarded.

It takes one to know one. I guess I'll see you at the retard support group meeting.
>>
>>55871038
LEAVE SHARPY ALONE

HE CAN USE MEMELANGS IF HE WANTS TO

YOU'RE FUCKING A WHITE MALE
>>
File: 1426241641103.jpg (36KB, 607x608px) Image search: [Google]
1426241641103.jpg
36KB, 607x608px
>>55866493
>Code of Conduct

Go fuck yourself you dirty weeb
>>
>>55871062
Then please retract your insinuation that I think one should use C for all programming.
>>
>>55871092

What insinuation? I were just riffing, mate. It were bants, like.
>>
>>55871092
you're grating
>>
>>55871037
You have a model and a view and a view model which displays the model and the view.
>>
How to get random record from mongo?
i tried:
db.collection.find().limit(-1).skip(somenumber).next()

>>
>>55870952
>he hasn't used php
You know you have to be 18 to post here right?
>>
>>55871136
i've used php. it's fucking disgusting, and i hate myself for saying that i've used it.
>>
>>55871105
>it were bants, like
Escort yourself to the nearest council estate, chav. You know your curfew began at 9pm. I'll not have you sullying this public highway with your presence.
>>
>>55871146
Anyone here actually ever program or do you all just spout memes
>>
>>55871160
both, fag.
>>
>>55871160
I'm working as java/php/js programmer
>>
>>55871160
They all just spout memes. Actual programmers dont spend hours every day sending each others images of the same anime girl they all want to fuck.

Theyre here to memepost and circlejerk , nothing more.
>>
>>55871151

But if I'm in by 9, how am I supposed to smash heads at the pub?
>>
>>55866737
Assembly
>>
>>55871160
i'd say it's 99% memes and tutorials/homework programming

I've lost all faith that 4chan has any real people from any fields. The philosophers, programmers, writers, scientitsts on 4chan are all just couch surfers trying to prove themselves in the cyber world of decay.

someone write a program to kill me and end this horrible nightmare
>>
>>55871121
What's a view and what's a model?
>>
>>55871247
rm -f yourself faggot
>>
>>55871230
You have your own head and a wall in your flat, don't you? There's plenty of White Lightning in your fridge, too; I don't think you'll be left wanting for liquor.
>>
>>55871146
>php
>>
in lua there is the table function with tablename{} and table.insert etc. What is the alternative in python?
>>
File: mongo.png (29KB, 911x441px) Image search: [Google]
mongo.png
29KB, 911x441px
is mongo created by weebs?
>>
NEW THREAD!!!

>>55871316
>>
>>55871189
>I'm working as java/php/js programmer
Man, that right there is a combination that will make you think Java is a paragon of good language design by comparison.
>>
File: 1458509117171.jpg (67KB, 1280x720px)
1458509117171.jpg
67KB, 1280x720px
>>55867189
>app
>>
>>55867279
.....className son wtf?
>>
>>55871037
Model == A class to save data, example: A Customer.
View == The design of the Model, aka the User Interface for that part.
ViewModel == The class that hooks together the Model and the View, this is where the mayor part of your code is (saving, retrieving data, editing).
So basically the View consumes the functionality that the ViewModel exposes, and the ViewModel uses the Model to save data.
Therefore the ViewModel doesn't know that the View exists, the View doesn't know that the Model exists, and the Model is unaware of the View and ViewModel.
>>
>>55871286
I've always use famous programmers as examples in my programs, and Matz is between my favorites.
Thread posts: 321
Thread images: 40


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