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

Alex Mahan(YandereDev) makes over $5,000 a month coding like

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: 317
Thread images: 52

File: 1504357736182.jpg (40KB, 512x443px) Image search: [Google]
1504357736182.jpg
40KB, 512x443px
Alex Mahan(YandereDev) makes over $5,000 a month coding like this:
http://pastebin.com/raw/hsqba0Pn

How do you feel
>>
>>62220183

I code worse and make more.
>>
File: heh.png (2KB, 78x50px) Image search: [Google]
heh.png
2KB, 78x50px
>if (Yandere.Armed == true && Yandere.Weapon[Yandere.Equipped].Suspicious == true || Yandere.Bloodiness > 0 && Yandere.Paint == false || Yandere.Sanity < 33.333 || Yandere.Attacking == true || Yandere.Struggling == true || Yandere.Dragging == true || Yandere.Lewd == true || Yandere.Laughing == true && Yandere.LaughIntensity > 15 || Private == true && Yandere.Trespassing == true || Teacher == true && Yandere.Trespassing == true || Teacher == true && Yandere.Rummaging == true || StudentID == 1 && Yandere.NearSenpai == true && Yandere.Talkin
>>
>>62220183
It's not that bad really. Quite consistent and clean.
>>
>>62220223
Hi Alex
>>
>>62220233
nope, just an unbiased person. I've criticized Alex many times on this game, I wonder when he'll stop milking it...
>>
>>62220212
would that be faster than nesting them? it might be slightly better if it's actually a one-off thing.
>>
>>62220212
Would it be better if he had gotten rid of all those '== true'?
>>
File: 2345337457.jpg (70KB, 479x720px) Image search: [Google]
2345337457.jpg
70KB, 479x720px
>look him up
>see his recent video
>years of lack of progress and promises
>merges with tiny build
>it's been getting worse
>promises of a kickstarter now to bail him out
>recent video
>he's going to take an entire indie company,already on its last leg, down with him
>https://www.youtube.com/watch?v=mxkPOeC4C9w
>now he's going to split the game into two concurrent game projects and maintaining two art directions at once
>all on top of failing his to meet all his previous promises
>game is banned on twitch
>dude has a lot of -actual- pedophelia reeking off of him
>previous volunteers stepping out against him
>does not pay his current volunteers, theyre stepping out with similar stories
>goes to anime expo begging for kids to come and give him gifts

>people making videos on him
>https://www.youtube.com/watch?v=ZD2mszTz6J4
>youtubers speaking out against him
>https://www.youtube.com/watch?v=ye8LhFcWqsI

>https://www.youtube.com/watch?v=jGBVZbn8n_4
>that fucking comment yanderedev made

where has this mess been all my life
>>
>>62220352
performance would still be shit considering how far in the nested if statements that is
>>
>i b4 the brainlet non-programmers come in with their "i dont see anything wrong with that code"
>>
File: 1480314713253.jpg (117KB, 480x389px) Image search: [Google]
1480314713253.jpg
117KB, 480x389px
>>62220183
>makes 5k a month and can't get his game out
>meanwhile a russian working for pennies has already done a full release for his yandere sim ripoff

http://store.steampowered.com/app/687750/Yandere_School/
>>
>>62221149
the tea
>>
>>62220183

> that amount of nested ifs
> cant even see the elses
How do you even manage things like that, by code folding a million things?
Holy fuck
>>
whenever this gets posted on v they always go "i dont see anything wrong with this" like the (((unity))) developers they are
>>
>everything is hard coded
>>
>>62220212
spot the guy who's missed boolean algebra classes
>>
>complains about performance
>the entire code from lines 755 to 4220 runs 60 times per second
>>
File: IOT ransomware.jpg (105KB, 740x651px) Image search: [Google]
IOT ransomware.jpg
105KB, 740x651px
How can i git gud as to not end like this guy?

SICP feels like a scam
>>
>>62223592
oop
>>
>>62220386
>does not pay his current volunteers
lrn2words
>>
>>62223451
Yanderedev never learned to code from a class. He learned from gamemaker. And all of that is in Unity-flavored javascript.
>>
>>62223592
極端優秀發帖
>>
>>62221149
Damn he released it? I am putting this on my wish list. Someone should tell V the real Yandere Simulator is out.
>>
>>62223592
install gentoo
>>
>>62220183
This is decompiled code with comments added, isn't it? I'd need to see the original.
>>
>>62226356
this is his original code you fucking dumb ass
not the decompiled one full of "this.vector4234"
>>
>>62220183
What do you expect? It's JavaScript lol
>>
This is excellent code compared to lugaru. Degenerates can't program and furries are worse than pedos.
>>
>>62221149
I may buy this.
>>
He's actually ported his codebase over to C#, so it might look less like shit.
>>
>>62226710
Spoiler: it's not.
The "new" code from his latest build is legit just the javascript one ported over to C# 1:1

https://pastebin.com/raw/ZNuk6NPa
>>
>>62226452
Where did it come from, then? He posted this somewhere? Provide citations to back up your bullshit.
>>
>>62220183
My i9 6900k will run it fine
>>
>>62220183
Make your own yandere game then

Idea is not free
>>
>>62220183
puking_girl.jpeg
>>
>>62227476
Someone already did it better.
See >>62221149
>>
>>62226785
>https://pastebin.com/raw/ZNuk6NPa
holy fuck

entire game is just an if tree

that nigga better switch to unreal engine wehre its impossible to fuck up this hard by design
>>
File: ayy.png (149KB, 828x801px) Image search: [Google]
ayy.png
149KB, 828x801px
does he never know enum or bitwise flag exist?
>>
Man... such great potential for a game, ruined by this greedy asshole...
>>
>>62228629
>does he never know enum or bitwise flag exist?

Do you even know english?
>>
if (Male == true)
{
CharacterAnimation[SadFaceAnim].weight = 1;
}

if (StudentID == 27)
{
ClubAnim = "sitRead_00";
}
else if (StudentID == 28)
{
ClubAnim = "f02_sitRead_00";
}
else if (StudentID == 29)
{
ClubAnim = "sitRead_00";
}
else if (StudentID == 30)
{
ClubAnim = "f02_sitRead_00";
}
else if (StudentID == 31)
{
ClubAnim = "sitRead_00";
}


Jesus christ why all these hardcoded stuff.
>>
He's an incompetent idiot how just got famous thanks to PewDiePie and is now milking the shit out of his shitty game. Disgusting.
>>
>>62228629
what are classes
>>
>>62220183
is this JavaScript
>>
>>62223592
Look at other people's code who already know how to program and see how they lay things out. Go through all your language's features and think long and hard about how each could make your life less horrible.
>>
>>62228736
Seems like it.
>>
>>62220183
$5k a month is really not much money at all.
>>
var Spooky = false;

function Spook()
{
if (Male == false)
{
MyRenderer.enabled = false;

ID = 0;

while (ID < Bones.length)
{
Bones[ID].active = true;
ID++;
}
}
}

function Unspook()
{
MyRenderer.enabled = true;

ID = 0;

while (ID < Bones.length)
{
Bones[ID].active = false;
ID++;
}
}


ok, I admit that made me laugh
>>
>>62220183
This is why I will never program a game. Ever.

Game makers are typical feature creeps that can't even take a 5 min break to think about HOW they should organize their code.

ECS is the only acceptable design pattern for something as feature-rich as a game, but nobody ever use it.

This is not just about yanderedev this is how all game makers code.
>>
how the fuck do you guys know for certain hes making 5k/mo?
>>
>>62229066
https://www.patreon.com/YandereDev
>>
Someone post this guy's picture. It gets me every time.
>>
How doesn't he know what a state machine is? I'm not even a competent programmer but I try to use them in my game.
>>
>>62220183
I've known this guy back in the day around 2008-2009 and its uncanny that he's still such an absolute faggot.
>>
>>62228916
Why does it make any bone of "not male" character "active"?
>>
>>62228850
I cannot agree with this more. Go on github, download some projects related to things you'd like to know. See how they do certain things. Learn how to use the libraries and tools they use. More people need to do this.
>>
>>62227365
This is NOT what decompiled code looks like. Someone must have leaked it. The other guy was right, decompiled code is a mess of generated names for things.
>>
>>62229044
>ECS is the only acceptable design pattern for something as feature-rich as a game, but nobody ever use it.
Except pretty much everyone uses it. At least everyone working with any kind of quality control, like pull requests.
>>
>>62228736
Yup.
>>
>>62220183
No wonder it runs like crap.
How was this released? Did someone working with the code leak it, or was it made public through his own incompetence?
>>
>>62227616
It's NOT better. Look at those fucking shitty modelings.
>>
>>62228685
>>62228629
>>62228916

What's the problem? Admit it, It's okay
>>
>>62220183
Yandere Sim is open source? I may have to try it.
>>
>>62229044
Pretty much everyone uses ECS and there are MANY people who make games that are actually good programmers. Specifically those who aren't too lazy to make their own engine.
>>
>>62229529
Leaked source, not open source.
>>
>>62229538
Can I compile it from the leaked source?
>>
>>62229506
Well he had volunteers so I'm guessing one of them leaked it.
>>
>>62229522
I hope you are joking...
>>62229547
You could, but you'd need to set up the project in unity with all the same assets and assign all the scripts to the right assets etc. A lot of work, but possible. You'd also need all the textures, models, sounds and whatnot
>>
>>62229568
Not an argument
>>
>>62220196
*sigh* I'm not sure if I should be proud or disgusted.
>>
>>62228895
it is if you're an incompetent retard
>>
>>62229511
At least they made them themselves instead of just grabbing them from somewhere.
>>
>>62229580
Okay, I didn't start this but let me go through each example...
>>62228685 :
Uses a bunch of if-else statements when comparing the same variable, could simply be done through a switch statement.
>>62228629 :
Uses strings for some reason which each take up a byte per character when their use could simply and more efficiently be replaced by an enumerator or bitfield. Also makes it so much easier to modify the code instead of changing whatever fucked up system he ha made to make it add strings in that specific order.
>>62228916 :
He used a while loop instead of a for loop, which is weird, he had no reason to do it and this also means that the variable "ID" is not deallocated after the loop, but instead after the if statement which is bad practice, in this case the if statement ends right after the loop so it doesn't matter.

So long story short, some things he does is inefficient and when you have a game processing thousands of lines of code EVERY FRAME it is very bad to have flaws like this. But most of the issues are just bad practice. He would never get hired for a programming position if an employer saw this shit.
>>
>>62229708
>He would never get hired for a programming position if an employer saw this shit.

employer doesn't give a shit if it makes money and doesn't break
>>
>>62229738
But it does break? It has lots of glitches in it.
>>
>/v/ shits on the guy for his code while claiming their code could cure cancer
>other board is indifferent to it and claims it's not that bad

What could this mean.
>>
>/v/ shits on the code
>/g/ shits on the code

I wonder what it could mean.
>>
>>62220183
>he gets free money for an unfinished proprietary game (that he plans to sell) whereas all he does is add easter eggs and trash existing dialogues and other resources.

I now understand somewhat why he does not foss it, it must be because he programs like crap.
>>
>>62220386
>>dude has a lot of -actual- pedophelia reeking off of him
Source?
Also, how is this supposed to be back?
I am annoyed that he is anti-mod and how he is butthurt when people try to modify the game.
>>
Why is he making $5000/mo via patreon or whatever. Is it a sex game? Wtf is the appeal if not? Somebody please fill me in
>>
>>62220183
Fuck off Eva.
>>
>>62229923
>other board
Which board? /v/ shit on it too.
>>
>>62230031
Don't forget the over million subscribers on youtube.
The real question is how do I accomplish the same thing?
>>
>>62230031
It's a meme game

The idea of playing a yandere anime girl coupled with a lot of mainstream anime "in jokes" appeals to a lot of people
>>
>>62228895
$5k/mo is a lot if you aint doing much to truly earn it.
>>
File: Screenshot_2017-09-03_07-51-39.png (43KB, 1174x639px) Image search: [Google]
Screenshot_2017-09-03_07-51-39.png
43KB, 1174x639px
>>62220183
>How do you feel
This is a masterpiece.
>>
File: 1486854463320.png (2MB, 1191x1684px) Image search: [Google]
1486854463320.png
2MB, 1191x1684px
>>62230000
Yandere simulator and cemu are both good examples of how being evil makes you more money on patreon.
>>
>>62230107
I want to worship Shiburin's feet.
>>
File: 1487856814730.jpg (132KB, 1024x768px) Image search: [Google]
1487856814730.jpg
132KB, 1024x768px
>You will never make a meme game with horrible code and get $5k a month because tons of Youtubers shilled your shit for the normies

Feels bad
>>
>>62230086
wtf
>>
>>62230064
Damn


>>62230080
What the hell is that?
>>
File: 1493236100554.jpg (115KB, 377x449px) Image search: [Google]
1493236100554.jpg
115KB, 377x449px
>>62230000
>proprietary game
>>
>>62220183
>>62230086

I have never seen anything like this OP. This is insane. There is no way this is a real file he maintains. Is this machine generated?
>>
>>62230122
>>62230107
Go hang yourself, pedo.
>>
File: 1497605773528.jpg (460KB, 800x1130px) Image search: [Google]
1497605773528.jpg
460KB, 800x1130px
>>62230189
What is wrong with paedophilia?
>>
>>62230172
I mean, he is using unity so I'm going to assume that he actually has those code spread among several files.
>>
>>62230216
Fuck off
>>
>>62230189
>Pedo
But she's 18?
>>
File: 1474855475858.jpg (368KB, 800x1014px) Image search: [Google]
1474855475858.jpg
368KB, 800x1014px
>>62230226
I would still give it to you if you asked politely anon.
>>
File: 1473283226573.jpg (362KB, 900x1271px) Image search: [Google]
1473283226573.jpg
362KB, 900x1271px
>>62230247
>>
File: 1475250449295.jpg (483KB, 810x1200px) Image search: [Google]
1475250449295.jpg
483KB, 810x1200px
>>62230268
Last
>>
>>62230226
Are you a bot? I'm seeing you everywhere posting the things every time.
>>
File: Screenshot_2017-09-03_08-11-25.png (67KB, 1360x712px) Image search: [Google]
Screenshot_2017-09-03_08-11-25.png
67KB, 1360x712px
>>62230218
>he actually has those code spread among several files.
Maybe some of it, but the Update function comprises most of the pastebin in OP.
>>
>>62230350
>stop == false
>>
>>62230350
>Yandere.EbolaHair.active == true
>Dead == false
lmao
>>
File: Screenshot_2017-09-03_08-17-01.png (49KB, 951x225px) Image search: [Google]
Screenshot_2017-09-03_08-17-01.png
49KB, 951x225px
>>62230350
Apparently this guy has worked for a company before. Take note NEETs of /g/
>>
>the first few hundred lines of var declarations right at the top are ordered by line length

jesus fucking christ the autism

can't organize code for shit but gotta order those lines by line length
>>
>>62220183
What I still don't understand is how the fuck does his Youtube channel has 1.6 million subscribers and his videos get hundreds of thousands of views when he never ever fucking delivers. All he does is make excuses and false promises.
>>
>>62230566
He probably thinks that it increases code readability. From what I understand, he is going to hire somebody to rewrite it? That guy might as well start from scratch, there is nothing worth keeping really.
>>
>>62230591
He has a giant army of shills and newfags.
>>
>>62229522
I expect you're memeing, but if not, it's a horribly executed set of conditionals. For example, if the insanity flag is tripped, then the game over reason is always insanity - why bother checking for every combination of weapon, blood, and insanity? It's a waste of processor time (though minimal) and it's harder to read in the source. Even of the results did vary, it would make more sense to keep each flag separate, then check for them in nested ifs, both from a computing as well as an organizational standpoint.

It's amateurish.

CAPTCHA: Adolescent collision
>>
>>62220183
I make close to times and a half that (46.50/hr) sitting on my ass watching Netflix and posting on 4chan during 3rd shift. Why would I be jealous?
>>
Can someone tweet asking him if he is planing to open source it?
>>
>>62221149
Faster, cheaper, and better.
Yandere sim get fucked.
>>
For all those states, why can't he just make an enum where he can assume that the first in the list will be the right one

i.e. do whatever function call assuming the right emotion as to kill off all this repetition
>>
File: 1479732369001.jpg (581KB, 825x1200px) Image search: [Google]
1479732369001.jpg
581KB, 825x1200px
https://yanderesimulator.com/about/
>Can I help you program the game?
>I know that these types of problems could be fixed by black-boxing or using source control software, but I would rather avoid those headaches altogether by simply being the only programmer working on the game.
He is an idiot who does not use a svc.

>When is this game coming out? How much will it cost?
> ...
So, if he gets money from kickstarter he will try to jew some more money by selling it otherwise he wont?

>>62230921
Still nonfree though.
>>
>>62231005
>Still nonfree though.
For $10 it's fun to inspect
>>
>>62230861
What do you do, Anon? Asking for a friend.
>>
>>62231029
Free as in freedom.
>>
Am I the only one who tries to avoid var types? When you know what the type is going to be, and it's an easy to spell class or default keyword, why name it var?
>>
File: 64296057_p0.jpg (623KB, 2480x3507px) Image search: [Google]
64296057_p0.jpg
623KB, 2480x3507px
>>62229147
girl's can't have boners
>>
I can code less and make more.

Whats your point?
>>
>>62230216
>Shirobako girl
>Loli
????
>>
>>62220183
Is that javascript? If so, why has he not killed himself?
>>
>>62231427
The clitoris does fill up with blood and enlarge slightly but I guess since it's so small you wouldn't call it a boner.

Beaner maybe.
>>
>>62220183

function  functionName() 
{
....
....
}


People who use brackets like this are irredeemable degenerates.
>>
>>62231558
Meanwhile you seemingly don't even know what this style of code formatting is even called
>>
File: 63853265_p0.png (1MB, 1200x1572px) Image search: [Google]
63853265_p0.png
1MB, 1200x1572px
https://yanderesimulator.com/about/
>I'm YandereDev! I worked at a video game company for 3 years, then left to become a freelance programmer and pursue my dream of becoming an independent game developer. In the past, I've worked on 5 console games (for Wii, 360, and PS3) and 5 mobile games (for Vita and iPhone).
Anyone have sources on where he worked and what games he worked on?
>>
File: feelsbadman.jpg (64KB, 900x900px) Image search: [Google]
feelsbadman.jpg
64KB, 900x900px
>>62220183
>go to random line
>hard-coded integers
>close tab there and then
>>
>>62231668
http://www.mobygames.com/developer/sheet/view/developerId,577512/

A bunch of dogshit, as you'd expect.
>>
He should make it FOSS so the community can help him out.
>>
File: 64238332_p0.jpg (902KB, 1200x872px) Image search: [Google]
64238332_p0.jpg
902KB, 1200x872px
>>62231752
but anon-kun then he couldn't sit on his ass and play screen games for hours while claiming to be working 24/7 because the competition created by making the game foss would allow for someone else to actually write good code and complete the game before him.
>>
>>62231792
>>62231668
>>62231427
>>62231005
>>62230288
>>62230268
>>62230247
Go hang yourself, pedo.
>>
>>62231792
The only thing he'd have to do is click the merge button.
>>
File: 62943298_p0.jpg (658KB, 1000x1343px) Image search: [Google]
62943298_p0.jpg
658KB, 1000x1343px
>>62231835
HAHA jokes on you I'm only 3 of those posters
>>62231853
That's assuming he'd be a competent project lead which I think we see enough here to say that he isn't even good at managing his own stuff
>>
>>62224058
Don't know about you, but here Boolean algebra is taught in high school.
>>
>>62231599
You seem to lack a point.
>>
>>62230189
Do I always have to post this also
>>>/r/eddit
>>
File: ou9w315bij7x.jpg (65KB, 269x260px) Image search: [Google]
ou9w315bij7x.jpg
65KB, 269x260px
>>62231906
forgot that
>>
>>62231877
>That's assuming he'd be a competent project lead which I think we see enough here to say that he isn't even good at managing his own stuff
If he's even too incompetent for leading his own project, someone else will eventually pick up that role and he'll be optimized away.
>>
File: 1498335528360.png (635KB, 860x609px) Image search: [Google]
1498335528360.png
635KB, 860x609px
>>62231926
and rip all those tasty NEETbucks
>>
File: decompiled.png (113KB, 898x600px) Image search: [Google]
decompiled.png
113KB, 898x600px
>>62229429
Not true. At least on Android, if you don't use an obfuscation tool, like Proguard, all line numbers and variable names are preserved in the bytecode. It's for better stacktraces.

I assume unity would work similarly.

Take a look of a picture I just took off Google. I think it's jd - the Java decompiler.
>>
>>62231961
He'd still be in control of his Patreon and any commercial release, so you'd only be making him rich with your work.
>>
>>62230268
I am feet fetishist but I sure would give a lot for a feet-job from her with these socks.
>>
>>62231961
He would still be the product owner, so there's no reason not to keep his Patreon.
>>
File: 62491647_p0.jpg (518KB, 2080x3307px) Image search: [Google]
62491647_p0.jpg
518KB, 2080x3307px
>>62232003
Well the original post in this chain said he should make it foss so if people are going to be doing all the work for him they might as well fork it and make money themself as I doubt yandere dev is going to share any of his profits
>>
File: 58393872_p0.png (555KB, 724x800px)
58393872_p0.png
555KB, 724x800px
>>62232055
this is of course assuming that he is making the assets foss (and that in this dystopian present he didn't steal all his assets)
>>
better than an inheritance tree 10 levels deep and having to use special casting templates to do anything (see: unreal engine)
>>
>>62231853
Then he could not sell it without other people getting their cut.
>>
>>62232217
Not really, he could let them sign a CLA so he gets complete control of the code.
>>
>>62229044
quake 1 - 3 wants a word
>>
>>62223592
read TPOP, SICP, doom, unix
>>
>>62232230
Well yes, if somebody doesn't then he can't sell shit though. And most people won't do it for free for him to make money.
>>
>>62232489
You'd be surprised. Many people just want the game to come out.
>>
>>62228685
So this is why it takes him so fucking long.
>>
reminder: https://kiwifarms.net/threads/evaxephon-yanderedev-alex-mahan-alexander-stuart-mahan.19311/
>>
Pajeet here. What should I do so I don't code like this ? What is wrong with this code except extreme inefficiency, and what is the alternative ? how would you have coded it ?
>>
>>62231835
calm down roasty bot.
>>
>>62231994
> Comparing Java with C
>>
>>62231883
Meanwhile I get partners in a 2nd year EE lab who couldn't explain to my TA during a final fucking assignment what a binary upcounter does.
>>
>>62230143
/v/ should really stop encouraging indie developers
>>
File: 1474467225093.jpg (40KB, 638x749px)
1474467225093.jpg
40KB, 638x749px
>>62231877
>HAHA jokes on you I'm only 3 of those posters
I am the rest :3
>>
File: 1499115582344.gif (2MB, 254x196px) Image search: [Google]
1499115582344.gif
2MB, 254x196px
>>62221149
not enough polish

the game looks hideous
>>
>>62234877
idk why this anon call you guys pedo.
when not being exposed to girl culture, being inexperienced in how gurls work.
>>
>>62229044
>ECS
Whats that? Already tried googling it
>>
>>62231005
What's a svc?
>>
>>62229044
What's ECS?
>>
>>62235791
Source version control

>>62229044
>>62229533
Most game makers are retards who have no idea of actual CS.
>>
>>62235613
>>62235807
Entity-Component-System

Entity and component are pure-data structures and Systems hold all the logic.
>>
>>62232055
cute
>>
>>62220212
the dev used a Karnaugh map to reduce runtime. You faggots would have known this if you weren't """self-taught""" programmers
>>
>>62235916
Pajeeting.
>>
>>62235810
>>62235916
Thanks
>>
>>62228916
Lol! If that's JavaScript the while loop will lock up the event loop. Does he even know the for loop exists?
>>
>yandayray
I mean, I get it, he's a retarded weeb but isn't it a good idea to at least learn how to pronounce the shit you're selling
>>
>>62233739
Inefficiency isn't a problem in this code -- people see a thousand conditional statements in this game and think "that must be inefficient", but all games are just a bunch of hundreds/thousands of mundane conditional statements running in a loop, something that is more obvious here than elsewhere because all of these statements are seen in immediate succession in the code listing.

The problems with this code are that it is not at all idiomatic and not at all organized, and will surely be a pain to revisit (or for anyone else to visit) once it's out of his short-term memory. The lolcow crowd aren't coming up with valid criticisms of his code (e.g. "oh my god I can't believe he put the block on the same line as the if statement") because they are not themselves programmers.

For the most part there is no semantic problem with the code, it's just a mess with a peppering of strange constructs that come from not knowing the language.
>>
File: 1484407996097.jpg (127KB, 1280x720px) Image search: [Google]
1484407996097.jpg
127KB, 1280x720px
Which one of you replied to my youtube comment just now?
>>
>>62236194
>If that's JavaScript the while loop will lock up the event loop.
What?
>>
>ITT: fake programmers
>>
>>62232106
So where did he stole the assets from?
>>
>>62236325
Events are used heavily throughout JavaScript. When you use a while loop you end up blocking the event loop which means that no other events can be processed until the while loop has finished. This may not e an issue if the while loop exits quickly even then though I'd wager a for loop would be faster considering the behaviour of the loop in question. The while loop is seldom used in JavaScript.
>>
>>62236480
What event loop? You're aware this is Unity and not browser JavaScript aren't you? I admit I'm not familiar with Unity.

Anyway, events should be processed once at the beginning of a frame, not by some greasy asynchronous contrivance.
>>
File: 61494292_p0.jpg (1MB, 2480x3479px) Image search: [Google]
61494292_p0.jpg
1MB, 2480x3479px
>>62234877
I appreciate your posts anon but please try to say something meaning full with your posts it gives anime posters a bad rep
>>62235940
Thanks
>>62236454
Unity asset store, people on deviantart, etc under the guise of "place holder"
>>62235026
It's ok us anime posters need to better our representation
>>
>>62236592
Any event based system has an event loop. There's no magical system that just picks events up by spooky action or w/e. A logic runs every X ms checking for events
>>
>>62236285
I see. Wouldn't making it modular with specific functions and cutting back on shitty if-else's with some loops/switch make it faster ? I also see some hard coded variables which seem like a bad idea for a game. What could he have done to improve it ? I use comments and try to document changes but still if I take it up after a few weeks it seems I'm lost for a while.
>>
>>62220183
Thats some disgusting code but you have to admit, the dude gets shit done. Have you seen the pace at which development for this game progresses? He does that plus very frequent videos, honestly I respect the guy for how busy he is.
>>
>>62236618
void
frame(void)
{
checkevents();
refresh();
}


Explain to me how a while statement interrupts this serial thread of execution (and how, as you seem to be implying in your posts, a for statement does not).
>>
>>62236621
Almost any place he puts a comment would be a good place to start a new function. So "// daily schedule" becomes a new function named something like "DailySched" which is still, sadly, a very large function. Splitting this code into more functions would not make it faster but more legible.

Switches may be marginally faster but that's irrelevant. They're to be used for legibility and terseness.

As for comments, almost every bit of code in this file is already self-explanatory. It just needs to be organized and idiomatic (e.g. using bitwise operations instead of this weird 'Witnessed = "Weapon and Blood and Insanity"' idea he came up with).
>>
>>62236715
My bad it seems I'm mistaken. I probably shouldn't be jumping to conclusions when I'm tired and only glanced at the piece of code (I'm not familiar with the intricacies of the code base).

A for loop could still improve the performance of the loop though since for loops are pretty good at iterating over arrays. A non-blocking for loop is possible though through the use of setInterval and setTimeout (although it does look a mess so third-party libraries should be preferred).

Anyhow I wasn't aware this was using Unity so everything I said could be invalid anyway since I don't know how it handles events and the event loop (is it the same as the browser?).
>>
>>62223506
And it's most likely like for all entities in the game
>>
>>62230350
Christ alive, I didn't even notice that... if the entire game is all in one file then maintainability is out the window. No wonder he's struggling to fix bugs.
>>
>>62237006
>>62223506
>3,465 lines, much of which will be bypassed by the control flow
That's on the lower end for an optionally player- AND computer-controlled entity in a video game you fucking nogrammers, you're just surprised because that shitty code puts it all right in front of you in one big blob. Do you think that, just because you've hidden it behind layers and layers of inheritance or object composition, that you can escape writing and executing code that actually does something?
>>
>>62234466
He tried to shill it on 8/v/, but they have no tolerence for shills unlike our /v/
>>
>>62237178
Right? We only speak of Persona, The Witcher, Final Fantasy and Metal Gear Solid on /v/. Everything else is shilling and must be stamped out.
>>
>>62220183
its weird that some retard pays so much to type text on a computer.
>>
File: 53121310_p0.png (481KB, 500x686px) Image search: [Google]
53121310_p0.png
481KB, 500x686px
>>62237178
actually they jacked him off for a bit even had dedicated threads and a banner on 8/v/
see https://pastebin.com/raw/x65sckcy
>>
File: 1504131292045.jpg (123KB, 963x718px) Image search: [Google]
1504131292045.jpg
123KB, 963x718px
>tfw everyone on your team makes twice that and codes just as badly
>>
>>62237322
What a story
>>
>>62229533
>too lazy to make their own engine
Making an engine is a major effort you could spend actually making a game. If you don't have a big team and an actual budget it's a complete waste of time with the amount of good engines around for fucking free. Almost everyone falling for the enginedev trap never finishes.

>>62229044
desu that happens in every non-trivial program when nobody bothers structuring. Refactoring is the main part of programming, etc.
>>
>>62229533
>Specifically those who aren't too lazy to make their own engine.
Do you even know the first thing about designing the components of a modern game engine? 99% has nothing to do with implementing any game logic. The guys who make games aren't the guys who make engines, they're basically living in two different worlds.
>>
>>62230895
No point making a product open source if he is trying to sell it.
>>
>>62231994
Hmm, I think unity does some work to hide the users code to protect their work but I think you're right and I'm wrong. I totally forgot it was written in JavaScript (I'm used to C & C++). So yeah, maybe there is some way they retrieved the file. I also did a little lookup and typically JavaScript isn't even turned into bytecode or anything, it's human readable until it is processed at runtime.
>>
>>62235810
Not true, it seems like this is coming from emotion and not facts. I'd agree with you if you meant the modern indie developers who shit out a mobile game every month, but if you're talking about the professionals in the AAA game industry then that is very much wrong... for the most part....
>>
>>62235955
We're mocking the lack of readability and maintainability.
>>
File: 1501349483016.png (222KB, 1674x906px) Image search: [Google]
1501349483016.png
222KB, 1674x906px
>>62238312
>I think unity does some work to hide the users code to protect their work
Wrong
>>
>>62238470
My mistake, I just assumed they would since people are trying to make money from their work.
>>
>>62238544
Bear in mind this example is C# from a highly successful commercial game made with the commercial version of Unity
>>
>>62237701
>>62237988
Many people make their own engines within weeks, it allows them to not have unnecessary functionality in their games that they will never use and just takes up space. I know many who have created their own engines (usually these are teams of 4-6 people) and they would all tell you it is worth it. It helps a lot knowing the ins and outs of a system and if there is any problem with the engine, they can fix it themselves instead of waiting several weeks for some half-arsed developer to release an update. Making an engine is not that hard of a task unless you are making one that is designed for a AAA game that will be reused for several vastly different games that require a lot of functionality.
>>
>>62238628
Sure, that's a fair point for indie 2D games if you know exactly what do you want to end up with.
I'm fine with someone making a fighting game making his own engine, but if you are making a 3D game with lots of physics it's not really worth the time without a big team.
>>
>>62238432
>but if you're talking about the professionals in the AAA game industry
The only one that I know of who has a clue is Carmack. I bet the majority of the rest don't even know what free software or Haskell even are.
>>
>>62238628
just fucking stop
>>
File: 1503090286710.jpg (63KB, 600x620px) Image search: [Google]
1503090286710.jpg
63KB, 600x620px
>>62237322
I spent most of those years in a heroin induced delirium so outside of lurking /h/ and here I was not aware of anything that was going on around me. Even GG was just background noise so I have never heard anything about this before.
moar??
>>
>>62237988
>The guys who make games aren't the guys who make engines
True, after all the people who make games are just clueless pajeets.

>>62238628
>they can fix it themselves instead of waiting several weeks for some half-arsed developer to release an update
Which is why you should not use nonfree engines.

>>62238810
Kys, push that censorship up your ass.
>>
>>62238810
Why? Struggling to come up with good retorts? I'm up for a good discussion about this and I'm sorry if I'm coming across as arrogant or rude. Maybe I'm getting too into this..

>>62238565
That's pretty messed up, guess there is always a price for convenience though.

>>62238656
I agree if the engine is to be a very well crafted and reliable one, but a small group of bright individuals could easily make one that does the job. There are good resources and libraries out there to help push you along so you don't have to do EVERYTHING from scratch. Regardless, it's not something I could easily do, but you'd be surprised how good some people are.
>>
Remember the most important thing when developing your game. Make it youtube bait and a popular youtuber will shill it for free and you'll make millions.

>>62237322
8c were so desperate for users, anyone who openly posted on a board with even a modicum of internet fame they paraded around like trophies. It was pretty pathetic. Imagine being that excited over a dev who made a meme game in unity with assets he bought off the store.
>>
File: 63672730_p0.jpg (673KB, 788x800px) Image search: [Google]
63672730_p0.jpg
673KB, 788x800px
>>62238871
Im commiting the sin of phone posting right now but you can read more at the thread that >>62233622 posted.
In terms of what I know that you may or may not find on the thread is that I can say a thread on 8/cow/ for yandev was shutdown by the mod for lack of interesting content and that overall most weren't interested on digging shit up at the time.
>>
>>62220183
what do you expect

of course someone who doesnt even earn 5k a month is a garbage programmer. an actually competent programmer would earn at the very least 150k a year and a truly good one much more. I know one who works as consultant and earns millions

the problem is that the vast majority of programmers are shit because they lack the genetic intelligence to be good at it. few high IQ people work as programmers
>>
>>62239231
Thank you anon, I've been reading that thread since you've replied. Great replacement for GoT tonight.
>>
>>62239231
>766 pages
absolute fucking autism, maybe kiwifarms is where lolcows go to vent their frustration by forcing lolcows of others
>>
>>62239619
Well yandev is constantly having tism spits left and right so there's alot to post about as stuff unravels such as how he always gets on youtubers for not playing his game the way he wants or refering to it wrong.
>>
i'd not cared much about YandereDev until a couple weeks after his twitch ban video. (https://youtu.be/hS6GLrM0mVA?t=540)
in the video he'd suggested "those people" were an influence on his game being twitch banned. it was one point among many, and not the whole message of the video, but apparently it genuinely pissed off the fabled "those people."
about 2 weeks after the video and its followup were published, a friend of mine involved with "those people" linked a kiwifarms video documenting YandereDev's lazy development practises, his personal perversions and his excessive holiday-taking. i asked why someone cared enough about him to make a smear video and he specifically mentioned the twitch ban video. "those people" were apparently linking the smear video on YandereDev's usual hangout spots with the goal of "destroying his safe spaces," and literally planned to recreate his entire game (since, as we've seen, he's not a well of creativity, he's just the only sperg willing to put some unity assets together).
it's quite spooky now seeing that it actually happened. don't piss off "those people"
>>
>>62239747
it seems "those people" are addicted to a sense of power
>>
>>62220183
He is paid for the product he is making. Nobody pays him for his code. His audience doesn't care about the code quality as long as the game works. That said, when your code quality is this bad you may sooner or later be forced to invite a professional to refactor it (if you have at least some clue) or simply fail under its weight.
>>62228736
It's fake, almost compatible JavaScript.
>>
>>62220183
I honeslty don't know how to code (I want to and I am not counting HTML) but this guy is a fucking joke. He has no sense of confidence in any decision he makes and he has to always ask his community for input and when he has a decision he does it in the least efficient way possible.

Ex, "I want to make a small town part of yandere sim to add new complexities to the game"
>Okay
"It will take me a year to do so"
>How, just make a few grey/tanned blocks with a few of them being intractable.

I have gotten much farther on my failed Roblox games than this idiot has on his crowd-funding scam.
>>
>>62239747
I mean I don't care to do anything about it but honestly I wish this guy the worst. He never listens to criticism and doesn't care about his volunteers, to the point where he was basically offering as much money as the person wanted to keep them on the team and still not fix or address the issues the volunteer had with what he was doing. The fact that he has spaces that turn a blind eye regardless of whatever he does. I mean he could be a serial rapist and no one would care for he's yandere Dev.
See https://archive.fo/Lvc0Q
>>
>>62240318
Same poster
It just makes me beyond mad man
>>
>>62231728
Complete Shovel Wear.

>>62229044
What is ECS?

>>62236611
I thought they where all MMD models. I can swear I saw miku in the earlier versions of his game back in 2013.
>>
>>62240318
You seem like a spiteful, obsessive and probably autistic twat. The fact you've been present for hours and hours in this thread says to me that you probably have an account on kiwifarms and shitpost for days about a stranger you don't like. Maybe you should start tripping so we can build a lolcow profile about you.

Sincerely, fucking sort yourself out.

>spaces
Ah you're one of Those People.

>>62240445
ECS is Entity Component System, which is a bit of a meme but pleasant as far as design patterns go.
>>
>>62240555
Im looking around an I am confused. Is it like Minecrafts ID system or is like a list of properties for an object.
>>
>>62220183
>tfw RPCS3 (Playstation 3 emulator dev) earns less than 3K with his project
>1k milestone (I will work full-time on RPCS3 as a core developer.)
>3k milestone (kd-11 will work full time as a graphics developer.)
Damn, things are really twisted to the weeb side
>>
>>62240555
t. Alex
>>
>>62240555
The real reason ive been here is that I find this shit funny and im hoping for more stuff I haven't seen. It makes me mad that Im not him honestly, although I may have made myself out to have an agenda in the last post. I don't even have any accounts online outside of steam and irc channels. Also I just have this shit in another tab with other threads open and am watching some anime.
>>
File: 1498700497105.png (112KB, 1566x694px) Image search: [Google]
1498700497105.png
112KB, 1566x694px
>>62240318
>https://archive.fo/Lvc0Q
>One more step
>Please complete the security check to access archive.fo
Got a direct link please?
>>
>>62236678
For real mein nigga
>>
>>62236678
>Have you seen the pace at which development for this game progresses? He
Yes, slow as fuck.
>>
>>62240822
http://ouendanl.tumblr.com/post/120011180488/recent-allegations
Here you go anon
>>
>>62240612
Basically it means that Entities in game (whether they're players, health pickups, bullets, explosions, vehicles, whatever) are blank-slate data structures with Component data structures added on, and the entity's behaviour is orchestrated by Systems which may be methods belonging to the Components and Entity and changing the state thereof.

Unreal Engine 4 (and probably Unity too) has something like this, but I don't think it rigidly follows the design pattern. If you want an entity to have a collision sphere then you add a SphereComponent and edit the Entity's collision callbacks if you wish. If you want an Entity to receive player input, you add a ControllerComponent to the Entity and assign keypress/mouse axis callbacks.

tl;dr, like many design patterns it's an inflexible formalization of some common-sense things.

>>62240726
Yes everyone who thinks the animeposter is a cunt is yanderedev.

>>62240804
Jealousy then.
>>
>>62240880
Thanks anon
>>
>>62240880
>(she/they)
this is the company you keep.
>>
>>62240886
Not Jealousy I actually want to have good credentials to stand on if I was making that much money. I don't understand what's wrong with deriving humor from all this.
>>
>>62240886
So would it be like this?

Entity
>Player
>>Controls/Inputs
>>Model
>>Collisions
>>Status Bars

>Car
>>Collisions
>>Model
>>AI Node Path
>>Player Input/Controls
>>Status
>>>Fuel
>>>Acceleration
>>>Friction
>>
>>62240886
>(and probably Unity too)
Unity has some sort of a mix between component based approach and object oriented

You can make gameObjects and attach any amount of "components" to it, you make one of these by making a class which inherits from MonoBehaviour which enables you to override multiple methods which are called through the lifetime of a gameObject in Unity by the framework such as Awake() or Update()

The approach is pretty flexible which either saves you a lot of time or gives you enough rope to hang yourself
>>
>>62240950
>I don't understand what's wrong with deriving humor from all this.
Have you no self-awareness? Wiki entries and 766 public forum pages of circlejerkers (and you're clearly part of the circlejerk whether you're on kiwifarms or not) declaring that someone is a neo-nazi paedophile gore fetishist isn't humour, it's character assassination. They aren't laughing, they seem affected and angry that he's "allowed spaces where he can exist".

If yanderedev were a neon-haired tumblrite woman given this exact treatment by a crowd of spiteful autistic shitheads, the media would have flipped its shit over so-called online harassment and death threats, but it's fine because he's just a """white""" male being hounded and slandered by SJWs (she/they/them) straight off neogaf.

>>62240953
More or less.
>>
>>62220386
>>game is banned on twitch
Why?
>>
>>62241299
Pedopihlia
>>
>>62241299
It's not a video game
>>
>>62240318
>i make video games
He's actually completed a game a before?
>>
>>62241299
the gameplay consists of stalking middle school girls to take pictures of their panties and kill them.
>>
>>62241131
I don't care that he exists in spaces (I guess that's what we'll call them) my problem with him is that in his spaces there can only be one opinion which is his own. I cant speak for everyone but if he started actually accepting legitimate criticisms and properly apologized for the people he did wrong I'd completely let all this shit blow over. But for right now im just enjoying the rapid ride of a guy being able to live in delusions.

I agree with the second point but I don't see what ot has to do with this.
>>
>>62220183
Alex Mahan (YandereDev) is in the rapid prototyping/early development stage of making a video game. During this period, it is much more important to get the game itself working so that you can continue play-testing and figuring out what works and what is fun instead of wasting your energy making clean and "elegant" code.

So, I feel fine, and so should anyone with a brain.
Once the game is done he can focus on cleaning up the code base.
>>
>>62241606
It's a yandere sim bruh
>>
File: 404.jpg (84KB, 819x461px) Image search: [Google]
404.jpg
84KB, 819x461px
It's actually not that bad. He's indenting properly and using meaningful variable names. If he were to factor out more things into their own functions, it would start to look a lot better. And because he's done a good job naming and spacing things, it should be fairly easy for him to refactor.
>>
>>62237178
I mean he originally started from /v/, made threads about the game showing the progress and then they found out he was EvaXephon, a notorious internet faggot
>>
>>62235955
>used a Karnaugh map to reduce runtime
Premature optimization is the root of all evil. I am certain that these comparisons are not causing significant slow down.
>>
The sad thing is I actually kinda like the concept beyond a weeb level, it's like an open world Hitman game. [spoiler]Maybe I'll steal it if I attempt gamedev [spoiler]>implying I'll ever get that far[/spoiler][/spoiler]
>>
>>62236618
You are wrong.
>>
>>62235955
No they don't, real programmers use Quine–McCluskey and Petrick's method because they're better and easier to implement. Karnaugh map cannot handle sizes larger than 4.
>>
>>62244115
Real programmers don't make their code much harder to read for no reason in a place where performance doesn't matter in the slightest
>>
>>62220212
How could this be written better?
>>
>>62221149
This stealth marketing is actually working on me
>>
File: how_unpleasant.jpg (30KB, 425x414px) Image search: [Google]
how_unpleasant.jpg
30KB, 425x414px
>content creator
>learned how to milk every cent using e-celeb status

Very low for someone with 1m youtube subs and streams on twitch....
>>
Wasn't yandere dev also an autistic bitch who constantly complained about how hard it was making a game
>>
I work for an indie dev. Typically I have to deal with such horrors as:

- Shitty engine full of bugs which is no longer supported upstream
- 1000+ line functions
- Poor commenting
- Terrible attempts at threading long-running processes due to excessive use of global singletons
- Corrupted memory leading to bizarre crashes
- Memory leaks everywhere
- Generally poor monolithic code structure

And yet everything somehow comes together and the product still sells.
>>
>>62244294
Yes, he was also a failure of a streamer before he started making this.
>>
>>62220183
Looks clean enough. At least everything is formatted sensibly.
>>
>>62244315
>1000- lines functions
What's the issue? In aero we can only call functions from the main loop, we can't call functions from within functions. The advantage is increased debuggability, performance and, you guessed right, readability. It's C though.
>>
>>62231883
not in burgerland

atleast in the hellhole of a public school system texas is
>>
>>62240886
does that mean you write a bunch of logic class and just add to the entity you are working on?

I though that's how everyone create game in OOP?
>>
>>62245734
The systems hold all the logic. Entity are just a tag and a bunch of components and components only hold data.

Consider a snake game, you have two entities:

>Snake
>>RenderComponent
>>SpaceComponent
>>SnakeComponent
>>SpeedComponent

>SnakeTail
>>RenderComponent
>>SpaceComponent

>Food
>>RenderComponent
>>SpaceComponent

SpaceComponent is just a struct with a x and a y, RenderComponent is probably just a sprite, etc.

Then you have a bunch of systems like EatSystem, ChangeDirectionSystem, GameOverSystem, etc.

Systems are classes that only contains an init and a run functions that are called once per loop in a certain order.
>>
>>62245836
so I found this article
https://willhart.io/zenobits-unity-ecs-part-1/

basically
in original oop
you play as a god to create universe from scratch
in ECS
you create a bunch of god to create universe

something like that?
>>
>>62242468
There's no "premature" optimization for bottlenecks.
>>
>>62242195
Code cleanliness can't be plastered on a project after everything is coded. Try building a brick wall first and them try to correctly line-up the bricks...
>>
File: diamond-inheritance.png (15KB, 500x501px) Image search: [Google]
diamond-inheritance.png
15KB, 500x501px
>>62246210
Not sure what you mean, but this blog seems serious, entitas is one of the best ECS lib there is.

I would explain ECS like that:

in original oop:
data and logic are in the same objects

in ecs:
There is only data on one side.
And all logic on the other.

And the logic is minimalist (single responsibility principle). A move system make an entity with the SpaceComponent move, it doesn't care if it's a mob, a player or anything. It makes an object move. That's a solution to the diamond inheritance problem.
>>
File: 1494244215749.jpg (124KB, 1920x1080px) Image search: [Google]
1494244215749.jpg
124KB, 1920x1080px
>>62242395
Spacing does not affect anything as he could just run indent.
>>
>>62246378
Pajeeting
>>
>>62246210
The original OOP is about message passing.
>>
meanwhile /g/ earns nothing
>>
>>62247328
Pride is worth something to some people.
>>
File: 1491168296176.gif (55KB, 500x500px) Image search: [Google]
1491168296176.gif
55KB, 500x500px
>>62247328
I get about €350 from the government every month after expenses, so it's still something.
>>
File: 1504395222891.gif (1MB, 500x281px) Image search: [Google]
1504395222891.gif
1MB, 500x281px
>>62220183
Shitty game, bad concept, worse realisation, terrible and unreadable wall of shitty code, retarded amount of variables, piss-poor implementation of game mechanics. I hope this stupid faggot and his game dies along with it's underage weeby fans.
>>
File: das_it_data.png (325KB, 522x593px) Image search: [Google]
das_it_data.png
325KB, 522x593px
>>62221149
> "Nani? What's up Akari-Chan"
mfw
>>
>>62226356
>>62227365
>>62231994
Even so, there is no way a compiler (if it's compiled I'm not sure) would mangle code like this. Hell, if it's interpreted, it would have to maintain the structure of the original.

The code is shit, let's face it. There's a reason it runs like arse and has more bugs than a Mortein commercial.
>>
File: 1498183590980.jpg (44KB, 303x350px) Image search: [Google]
1498183590980.jpg
44KB, 303x350px
>>62245532
>we can't call functions from within functions
>increased debuggability
>increased readability
>>
>>62245532
Holy shit, fuck you retard I hate you.
>>
>>62248578
>retard
Pot calling the kettle black.
>>
>>62249018
Nice argument shithead.
>>
File: 1445113447089.jpg (48KB, 422x422px) Image search: [Google]
1445113447089.jpg
48KB, 422x422px
>>62244169
>How could this be written better?
Long answer: Read Martin Fowler's Refactoring.

Dumb answer: lots of ways this can be cleaned up.
>1) Fix the fukken formatting
You can fix what you can't see. For big check blocks, take advantage of your vertical space and give logical sub-checks their own line.
>2) Group logical checks together
Figuring out redundancies or what needs to be nested will be a lot easier if you have like checks within range. This will take the edge off of doing the actual cleanup.
>3) Give complex boolean statuses their own variable or function (optional)
Sometimes you can't get rid of a check but you can give it a better name or grouping for readability.

So on and so forth. I'm not scrubbing that nonsense on my day off.
>>
Wasn't Tiny Build supposed to make the code not shit? Did they just translate it to C# and called it a day?
>>
>>62248288
>increases debuggability
Indeed. You have the state of the whole program very clearly presented, with aditional guarantees like that the flow only ever goes forward.
>increases readability
By forcing proper structuring and variable nomenclature. Something lots of projects struggle with.
>>62248578
Remember me the next time you fly a plane. I don't do implementation anymore, i'm on verification, but i've been through the whole proccess and this strict subset of C is very pleasant to work with once you get acvustomed to it. Try it, Saab guidelines.
>>
>>62244169
Table driven state machine.
>>
>>62249457
What the fuck are you talking about? You have hundreds of local variables floating on the stack.
>aditional guarantees like that the flow only ever goes forward.
Do you not use loops either? You're going to jump backwards anyways so that's just retarded. I really hope you don't use early returns either.
>increases readability by forcing proper structuring and variable nomenclature
That's not a good thing. If your language forces you into a certain structure because otherwise it becomes an unbearable mess, it's just awful.
You're forced into a structure and then you try to justify it. A ten thousand line single function is not fucking readable, it doesnt matter how much you 'organize' it.
>>
>>62249651
By having everything in several functions, you avoid unexpectedly mutating the state. At any point in time you know exactly which memory region is being accessed. And indeed, there is no backward branching in our code (except the obvious one at the end of the main loop). Everything is in the main loop, with the exception of several parts that are split into pure functions. There has yet to be a bug in ~400k loc that were written this year. There were more bugs in spec this year (3) than there were in implementation since we adopted the guidelines (8 years ago).
It is good thing that it forces us into it, because C is an unbearable mess. A ten thousand line function is readable, instead of having it split into 100 functions surrounded by brackets, you denote this in comments.
>>
>>62250503
>no bugs in 400k LoC
I will put up 100bux of btc up saying I can break your code silly.
>>
>>62250503
what the fuck
>>
>>62250616
he's retarded and thinks he's hot shit.
nothing new typical code monkey behavior.
>>
>>62250503
>here has yet to be a bug in ~400k loc that were written this year.

so what you mean to say is that nobody has tested it at all
>>
>>62250632
It's over 400K LoC of C, unless 90% of that are unit tests i'd say the code is fucked worse than openssl.
>>
>>62250503
>By having everything in several functions, you avoid unexpectedly mutating the state.
couldn't be more wrong, the exact opposite is the case.
> At any point in time you know exactly which memory region is being accessed.
Except when you make a mistake, may as well make everything a global variable.

>there is no backward branching in our code (except the obvious one at the end of the main loop).
inconsistencies.
>Everything is in the main loop, with the exception of several parts that are split into pure functions.
MORE INCONSISTENCIES.
>here has yet to be a bug in ~400k loc that were written this year.
said no one ever
>There were more bugs in spec this year (3) than there were in implementation since we adopted the guidelines (8 years ago).
because of LOL no tests
>It is good thing that it forces us into it, because C is an unbearable mess.
No, C is a beautiful language you just are a lazy and pompus code monkey.
>>
When routines go the way of the dodo
>>
File: yRa0aoq.jpg (160KB, 1291x919px) Image search: [Google]
yRa0aoq.jpg
160KB, 1291x919px
Just remind yourself every time you see weebposters or steam profiles with an anime gurl pic what they really are.
>>
>>62250826
Honestly I wouldn't describe that guy as looking creepy. In the frontal pic he looks friendly. Should probably just fix his hair and pose.
>>
>>62250963
He looks creepy and so do you.
He needs to fix hair, posture and he needs to eat more and do weight lifting.
>>
>>62220183
Considering how good he marketed the game, made much of the 3D art and concept alone, he worked for 3 or 4 people.
Completely deserved.
>>
>>62251195
>He needs to fix hair, posture
As I said then
>he needs to eat more and do weight lifting
To train his face?
>>
File: lifting.jpg (30KB, 460x433px) Image search: [Google]
lifting.jpg
30KB, 460x433px
>>62251195
why do you care so much? are you gay?
>>
>>62244115
>Karnaugh map cannot handle sizes larger than 4
yes they can, are you stupid?
>>
>>62239481
Are you retarded? Outside of a high demand area like San Fran or the financial industry in nyc very few programmers will make 150k. It's like you've never worked a day in your life.
>>
>>62250540
Literally proven wrong by isabelle, your 100$ are mine silly. We also do fuzzing for fun (not that there's many input points), we still have yet to see a bug.
>>62250780
Do you have anything to back that up? We do, 8 years of data.
When you make a mistake like what? You do realize every line of C we write gets verified, right? Unless there's a bug in spec, it's really fucking hard to make a bug in the implementation because our model of C is so restricted.
It's easy to see in both C and asm where the backwards jump occur. There isn't a better way to do it and still get deterministic performance.
Alright, i'll put it into brainlet language for you: mutate state? main loop. no mutate state? function.
Said everyone who adopted Saab guidelines (first said in ~2001 by gripen team)
>muh tests over formal verification
C is anything but beautiful. It's a good language but fuck you have to really really try not to do something stupid (like using stdlib, ...)
In conclusion, /g/ shows once again it doesn't give a single fuck about actual security. Rather, they participate in pretending 99% of C projects aren't security nightmares (yes, your favourite kernel too, unless it's seL4)
>>
>>62251541
What retardation, as if it's preferable to have a 100,000-line function than it is to have a function that changes state.
>>
>>62250963
Friendly, weak and comical. Like a house-elf.
>>
>>62251195
What he really needs is jaw surgery and a nose job.
>>
>>62246263
In the quote 'premature' means 'before measuring'. You can't know it's the bottleneck until you've measured it or at least a model of it.
>>
>>62246782
He groups related statements by purpose. Auto indentation can't do this.
>>
>>62253265
>He groups related statements by purpose
By line length.
>>
>>62246263
It's a VN. It will not have performance issues.
>>
>>62253285
Not this.
PhaseTimes = JSON.StudentTimes[StudentID];
Persona = JSON.StudentPersonas[StudentID];
Class = JSON.StudentClasses[StudentID];
Club = JSON.StudentClubs[StudentID];
BreastSize = JSON.StudentBreasts[StudentID];
Strength = JSON.StudentStrengths[StudentID];
Hairstyle = JSON.StudentHairstyles[StudentID];
Accessory = JSON.StudentAccessories[StudentID];
Name = JSON.StudentNames[StudentID];
Thread posts: 317
Thread images: 52


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

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.