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

You should be able to solve this.

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: 506
Thread images: 69

You should be able to solve this.
>>
File: nene.png (750KB, 1280x720px) Image search: [Google]
nene.png
750KB, 1280x720px
>>159501008
thighfuck is the answer
>>
File: 1493682072755.png (336KB, 940x612px) Image search: [Google]
1493682072755.png
336KB, 940x612px
>>159501008
>sublime text
>>
>>159501008
>dereferencing a reference
uh
japan pls

>>159501112
>sublime text
0/10
>>
File: 413513.jpg (103KB, 751x619px) Image search: [Google]
413513.jpg
103KB, 751x619px
Why do nips not code in japanese?
>>
>>159501164
Computer science is imperialism and probably fascist too.
>>
>>159501164
The same reason why germans don't code in german. Most programming languages are based on english.
>>
>>159501154
debuf might be a typedef to a pointer type?
>>
>>159501344
Real Germans use Plankalkül.
>>
>>159501164
Because America invented computers, and other languages can fuck off or do it our way.
>>
>>159501164
Programs written in japanese would be a lot slower, since the computer would need to decipher the moonrunes before doing anything.
>>
>>159501530
That is not how that even remotely works. Even for interpreted languages.
>>
>C++

Found the mistake.
>>
At least they use VS.
Not shit like Vim or Emacs
>>
File: nene implore.jpg (124KB, 876x720px) Image search: [Google]
nene implore.jpg
124KB, 876x720px
I want to literally be Nene
>>
Why is C++ always this complicated?
>>
>>159501164
can't outsource if they're lazy
the notes are in moon anyway
the notes are pretty much what the code is listed as

outside of that image nips do still use romaji
aka still use baka/sensei/kusogaijin for code instead of literal moon
>>
>>159501665
what's so complicated about that code?
>>
File: Atrocious.jpg (62KB, 733x347px) Image search: [Google]
Atrocious.jpg
62KB, 733x347px
>>159501008
>comments in moon runes
>>
>>159501164
>>159501344
I never personally understood why Ruby as a language is entirely in English. I guess, if all the languages the inventor originally used were in English, he would then go on to make another that follows those conventions?

>>159501154
That iterator is fine, though? I imagine it's much worse the check for health <= 0.f within that loop may call DestoryMe multiple times. That's definitely not right.
>>
>>159501702
Not even the nips would use Ruby if it used japnaese
>>
>>159501665
Old languages like C++ often end up kitchen sink of features and ideas. Which often results in multiple conflicting ways how to solve a problem.
>>
>>159501693
>const auto&
Just why? Wasn't auto already a shortcut introduced to make declarations shorter? And all you're trying to achieve is a for loop.
>>
>>159501702
>I imagine it's much worse the check for health <= 0.f within that loop may call DestoryMe multiple times. That's definitely not right.
Won't it have escaped that loop by going into the DestroyMe method?
>>
>>159501702
Yeah calling DestroyMe multiple times is definitely what caused the crash
>>
>>159501008
>NeneEngine

cute

by the way, are those subs any good?

I've held off on watching till good subs come out
>>
>>159501164
Programming languages with most support are created by Americans or western countries with American as their base language.
>>
>>159501603
>C++
Wrong

C++11+
>>
>>159501782
[2nd] subs are passable
Not significantly worse than whatever CR is going to shit out anyway
>>
>>159501008
I'm guessing DestroyMe destroys the object where the loop is currently running in, meaning referencing m_debufs is a UAF
>>
>>159501694
literally nothing wrong with this
>>
>>159501810
That distinction is retarded. That's like saying "it's not Python, it's Python 3.6!"
>>
>>159501924
C++ is old and many things are deprecated in the newest iteration.

As of right now, if you're trying to learn C++, you don't go for the old C++ basics book. You got for the C++17 books.

The distinction between python and python 3.X is absolutely necessary too. As the calls are very different and break between python 2 and 3.

>>159501952
You expected "british"? heh, kid. Brits are just a tiny country with no power right now in either culture, economy, or military.
>>
>float sourceDamage
>auto resolvedDamage = sourceDamage
Is this acceptable in industry
>>
>>159501773
Doesn't look like it. There's no `return` afterwards, so unless DestroyMe throws an exception, it would keep looping and call DestoryMe again. (I'm rusty on my C++, I can't remember if the method signature would specify exceptions or not, like in Java/Scala/Kotlin).
That, or every function inside DestroyMe, like the death animation playing, could be guarded against repeat calls, but that just seems like shit programming.

>>159501924
C++11 is a lot nicer. Looser templating restrictions and static assert alone make things much nicer in a real code base.
>>
>>159501164
Because the popular coding languages were made in english. They could create their own language in japanese but it's just easier and more efficient to learn a few english words and code with an already established language.
>>
>Why do nips not code in japanese?
Programming languages are not actually english, they are programming languages. It's easily possible to learn programming without speaking english. The programming language doesn't follow the grammatical rules of english, it just borrows some words, and I guess it would be easier to learn if you know these words, but otherwise they're not related.
>>
>>159502064
Nips did, it's called Ruby.
>>
>>159501779
How would you solve that? Set a boolean=true in the loop and resolve it afterwards?
>>
>>159502103
Do you expect some "colour" variable so you can lime up your game limey?
>>
>>159502020
I havent done C++ in a while, but there's a bit of optimization "trick" that you can do in Lua, where if you make a local copy of a variable, it speeds up the operation so you don't have to call the variable from outside over and over, and can instead rely on the local variable copy.

I had my suspicions too when I saw that line, I don't exactly know the reason for doing that in C++, I assume its just odd thing that some programmers are taught.
>>
>>159501008
>blocks your path
>>
>>159501008
if i watch new game will i achieve satori?
>>
>>159501008
>0 health insta deletes without giving an opportunity for a death animation/effect
This is some amateur hour bullshit.
>>
File: 1357295371952.jpg (155KB, 1024x768px) Image search: [Google]
1357295371952.jpg
155KB, 1024x768px
Someone translate the moonrune comments, we need to tear those apart
>>
>>159502174
C++ compilers are generally able to detect those kinds of optimizations on their own. This resembles a pattern I use when I know I am going to add additional processing before something, I create a variable to store the "result" of the as of yet non-existent processing. Then, later, when I add it, I don't have to update the names used later.
>>
File: confused anime girl.png (145KB, 702x397px) Image search: [Google]
confused anime girl.png
145KB, 702x397px
>>159502247
>Masshirosoft
>>
>>159501008
>tfw you dislike using C
>>
>>159501817
So you're saying that [2nd] uses the same dead memes as CR? Or are you just talking out of your ass?
>>
>>159502291
Isn't playing a death animation part of DestroyMe()?
>>
>>159502291
Read the next function bellow, DestroyMe() obviously plays a death animation.
>>
>>159502174
>where if you make a local copy of a variable, it speeds up the operation so you don't have to call the variable from outside over and over
Non-reference arguments in C++ are passed by value, aka a copy of the original.

If anything, it's for the ease of reading and debugging. They could've written that up as
>m_currentHealth -= debuf->applyToDamage(sourceDamage);
but why the fuck would anyone willfully write spaghetti in a language that's already painful to read to begin with.

you see a lot of the same seemingly inefficient code in enterprise -- doing one operation per statement. You'll thank yourself for the clarity when you have to inevitably debug it months later.
>>
>>159502291
Wait, never mind. DestroyMe is just a retarded, misleading function name. They don't completely fail at making games.
>>
>>159502332
I'm pretty sure 2nd took the machine translation of 1st and heavily edited it to actually make sense

I was just commenting on the shittiness of CR subs in general
>>
>>159501454
>every_country_in_the_world_belongs_to_america.jpeg
>>
>chink comments
lol fuck you
>>
I'm envious because others in this thread speak computer and I don't.
>>
>>159502225
>spaniard thinks he knows the difference between the american and british languages
I studied linguistics on /int/, guess I'm superior to you kid.
>>
>>159501694
I work with software from a German company, whenever you go deep into the code all the documentation is suddenly in fucking German, it's very intimidating
>>
File: 1431709409704.jpg (234KB, 506x722px) Image search: [Google]
1431709409704.jpg
234KB, 506x722px
>>159502445
No, programming is terrible and you should be thankful that it all appears as arcane wizardy to you.
>>
>>159502291
>//TODO: Need to make a death animation!
>>
>>159502347
I do wonder whether or not usage of the auto type speeds up the process.

If the sourceDamage is float value, nothing changes. If its integer value, it could very well save bit of computation time (not much on modern computers, but on ancient computers, theres quite a difference in float vs int).

So its possible there could be some inherent performance use.

Now whether or not auto actually does the conversion from 10.0000 -> 10 or not, I have no idea.
>>
>>159501747
Why would you keep a local copy of a compound object when you can just have a reference to it?
>>
>>159502399
You say that like it isn't
>>
>>159501747
const auto& is a very good change to C++, it allows you to reference objects directly without worrying about the types of objects you might work with.
>>
>>159502616
And without having to worry about changing them.

auto& if you want to modify.
>>
>>159502540
Integers and float/doubles are represented differently in binary. auto will never ever ever typecast primitives for you.
>>
File: 1453067749009.png (285KB, 586x634px) Image search: [Google]
1453067749009.png
285KB, 586x634px
>>159502347
>m_currentHealth -= debuf->applyToDamage(sourceDamage);
>spaghetti
Literally the only thing wrong is the shitty function name.
>>
>calling destroyme multiple times on the same object

Nene a dumdum
>>
>>159501164
Because it's easier and english is very simple
Lua is a programming language created in Brazil, yet it's written in enlish
>>
>>159502608
God fucking damn it, America is so amazing. Especially since it now has a President who actually gives a shit about the country.
>>
File: aoba skeptical.jpg (85KB, 484x451px) Image search: [Google]
aoba skeptical.jpg
85KB, 484x451px
>>159502781
>>
>>159502384
Look, they either actively insert stupid fucking memes or they don't.
>>
>>159501702
Can you imagine C++ in Danish?
>>
>>159502616
References were always a part of C++ since time immemorial. auto is the more recent addition.

The main point of using a reference in that contest is that debuf is an object of unknown size. C++ WILL give you a local copy of that entire thing without hesitation if you don't declare it as a constant reference.
>>
File: 1492752049333.png (168KB, 636x359px) Image search: [Google]
1492752049333.png
168KB, 636x359px
>This thread
>>
File: smug049859034.jpg (52KB, 511x509px) Image search: [Google]
smug049859034.jpg
52KB, 511x509px
>>159502781
>>
>>159502751
That's not a destructor call. A forced destructor call would look different, and it's inadvisable to do so anyway.
>>
>>159502981
It would technically work if it were a call to the object factory to mark it for deletion. However, there's still no need to put it in that loop and check it multiple times (as the code stands now). It's not catastrophic, just sloppy and misleading.
>>
>>159502944
Does she like me or not?
>>
>>159502877
Well yeah.

The point wasn't about reference call but about the reference calls with auto feature that saves lot a issue when dealing with multiple types.
>>
>>159501164
Code is written in English, industry standard.
>>
>>159501008
>comments in moon
Holy fuck. You get fired and blacklisted with shit like that in my country.
>>
>>159501164
Programming languages aren't really in "english". The keywords might be english words but you still need to learn what they mean conceptually to a computer.
>>
>>159503558
But majority of standard libraries use english.
>>
>>159501008
That 'if' statement should be outside the loop.
>>
>>159501008
>// TODO
I guarantee you that after many releases this TODO part is not done at all.
>>
>>159503374
>blacklisting
A bit too harsh, don't you think?
>>
>not using C#
Get with the times, Grandpa
>>
>>159503374
>programmers are all nips
>local nip company creating games for local nips
I don't see why they won't use nihonggo.
Unless they have developers abroad too.
>>
>>159503660
That TODO is
>//TODO: Make death animations!

So yeah, 36 months in Early Access until those show up.
>>
>>159502299
>// Calculation of damage when attacked
>// Apply debuff
>// Destroy!
>// Play if there's death motion
>// TODO: Create death motion!

Every developer ever.
>>
>>159502692
hence why english is important for coding. Shitty naming == garbage code
>>
>>159502247
Ironically Visual C++ is also a trademarked term. https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/en-us.aspx
>>
>>159502247
Nene isn't managing her memory properly!

Nene will soon get a gun and shoot up the office.

Pray that Nene will not have to do multi-threading so that we may all live.
>>
>>159506087
Why doesn't she turn to functional programming and avoid side effects?
>>
The loop should close after the line where debuffs are applied to the resolved damage you fucktards
>>
>>159501791
>American as their base language.

Nigger what?
>>
>>159501344

>he doesnt use german Variable names

literal cuck
>>
>>159501791
>American language
Don't be a dumb burger. It is American English.
>>
>>159501008
>sepples
>>
>>159502162
you can always break you moron
>>
>>159507494
I didn't know you could do that in C++.
>>
>>159507588
you could do that in any C derived languages
>>
>>159501344
this is wrong
>>
File: ;_;.png (66KB, 453x342px) Image search: [Google]
;_;.png
66KB, 453x342px
>>159501008
>NeneEngine
>NeneQuest
>tfw Nene has made more progress than you in a day than you have in a lifetime
>>
This show made me want to program too bad im a lazy NEET haha
>>
>>159501008
I hate programming
I'm glad I dropped out of CS school and applied for physics instead
>>
>>159509336
>implying any modern science is not applied programming
>>
the shittiest thing about c++ will always be having to use a constant when creating an array.

not having dynamic array sizes is a real buzz kill.

also I am a lazy asshole and having to specify pointers and use those retarded arrows sucks balls.
>>
>>159501008
C++11, pretty cool
>>
Making an engine is surprisingly easy with stuff like opengl around.
Isn't she making a 2D shovelware? If you don't need 3D rendering and all that comes with it that's even easier.
>>
>>159501112
that's not sublime text, looks like visual studio
>>
>>159501112
it says DK studio right there silly
>>
>C++ in current year
>>
>>159501997
There aren't really any radical changes between C++98 and C++17.
It's just that since 2011 more people have realized that coding in C++ like in C or in Java is wrong.
>>
File: vomit.jpg (90KB, 650x650px) Image search: [Google]
vomit.jpg
90KB, 650x650px
>>159501008
>C++
Absolutely disgusting.
It's such a fucking awful language.
>>
>>159502300
Compilers are not magic and cannot do some optimizations if they don't have information about the rest of the program.
>>
>>159509615
use vector
>>
>>159509910
>Heap allocated
No thanks. Use a real language like C, where you can have real VLAs.
>>
>>159509811
the language for real programmers

t. C++ standards committee member
>>
>>159509915
VLAs are an abomination and completely fuck up the object model
>>
>>159509928
>C++ standards committee member
Why don't you just kill yourself now? You're never going to get into WG14.
>>
>>159509947
>object model
AHAHAHAHAHAHAHAHAH
>>
>>159509950
I'm also in WG14, though I never attend, it's a dead language.
>>
Wait, so Nene is programming now?
>>
>>159510008
Yes.
>>
>>159510006
Give me your password to their wiki then. I want to read their documents.
>>
>>159501008
>making your own engine.
Why, just why?
It's not worth the trouble.
>>
>>159510140
You just don't believe.
>>
Python masterrace reporing in.
>>
>>159501008
I almost miss not knowing how to program, there was this kind of magic surrounding how computers did stuff that made programmer characters seem pretty cool. Now they just feel like normal people who probably just solve silly bugs 90% of the time.
>>
File: sadhoro.gif (35KB, 180x180px) Image search: [Google]
sadhoro.gif
35KB, 180x180px
S-systemVerilog anyone?
Didn't think so.
>>
>>159510246
I did some verilog stuff in university.
The tooling we using was garbage. Xilnx can go fuck themselves.
>>
>>159506183
because OOP is the best
>>
>>159510232

I mean programmer characters also do fucking black magic like constantly mashing on their keyboards to "hack the gibson" or whatever. It's pretty neat seeing more realistic programming in media.
>>
>>159510295
I can hear the /g/ spergs coming in droves.
>>
>>159510263
Yeah, all the EDA tools in the HW industry are kinda shit because the userbase is so limited. Far from anything modern, all archaic and clunky.
Still the licensing costs are in hundreds of thousands for some tools.
>>
>>159506183

Because if I didn't want my program to have effects why the fuck would I run it.
>>
>>159501164
Outsourcing.
>>
File: 1487789921228.jpg (191KB, 1920x1080px) Image search: [Google]
1487789921228.jpg
191KB, 1920x1080px
>>159501008
>NeneEngine
>NeneQuest
>>
>>159510140
>not worth the trouble
Learning something new is ALWAYS worth the trouble.
Why else would anyone start programming if not for learning new stuff?
>>
>>159501008
Is NeneEngine open source?
>>
>>159511894
What good is open source if its license prohibits you to modify the source?
What it needs to be is to be licensed under a free software license. Not simply "open source".
>>
>>159511996
You can inspect the source for any malicious code.
>>
>>159511894
Oh Nene is open alright.
>>
>>159512139
Doesn't even have a licensing fee
>>
>>159512075
And you still wouldn't be allowed to remove it for your own builds if it were to have malicious code in it.
So, why even bother to check?
I mean, sure. You can still just not use it because of it but then you'd have to look for another open engine. And if said engine doesn't provide the necessary functions, you can hack them in but at that time, you might as well just make it completely yourself. Definitely better too since you will have less bloat in your engine.
>>
>>159501454
https://en.wikipedia.org/wiki/Charles_Babbage
https://en.wikipedia.org/wiki/Colossus_computer
https://en.wikipedia.org/wiki/Alan_Turing
*Coughs in British*
>>
Anyone here using Qt?
fuck Qt
>>
>>159501008
>NeneEngine
>>
>>159512919
What? Qt is qt. I'm calling QWidget over you right now.
>>
>>159512289

But you would be able to introduce guards to unsafe calls and the like.
>>
>>159512919
Qt is another C++ framework. it's quite comfy.
>>
>>159501112
It's VS
I would much prefer it if it was ST
>>
>>159502492
I've had to edit some Chinese code once. It was horrible, was really difficult to understand.
>>
>>159501008
>using windows shit
>>159501164
being this retarded
>>
>>159501008
Why are they setting the health to 0 when it drops below 0 and then just killing the thing??
>>
>>159515880
In case, for example, there are healthbar displays or similar showing the health as a percentage of total. These would bug out if the health was a negative value
>>
>>159516152
I see, lazy coder would just have the health bar display display 0 if health were less than 0
>>
>>159512919

I use it because I haven't found a better UI framework for C++. It can be cumbersome at times but it works and has tons of functionality.
>>
>>159516209
It's more error-prone, if you have other parts of your code that want to act as if the health is always non-negative, you need to specifically take care to check if it's less than 0 in each of those places. When programming as in OP you only need to preserve the non-negative condition in places where you write to it (and in general, you read MUCH more than you write)

Sidenote, the least error-prone way to do this would be to have the health be an object containing an integer, with specific mutator methods that preserve the invariants
>>
>>159501112
whats the problem with ST?
I honestly prefer to code on it and on glorious notepad.
>>
do you guys prefer

void a() {
[...]
}

or

void a()
{
[...]
}

?
>>
>>159502032
It could just mark the object for death, in which case it wouldn't matter that the object was double-dead or quintuple-dead.

This makes sense in a queue-actions/apply-actions/resolve-actions game loop.
>>
>>159501112
>>159516371
atom is the real mans text editor.
>>
>>159516906
the former

t. enterprise java gaylord
>>
>>159516906
as long as the body is indented properly I don't care. Maybe slight pref for 1st
>>
>>159516152
>>159516209
All valid and invalid values an attribute can take should at the very least have a defined behaviour.

The idea that you can get away with not defining what the view does when the health is negative just because "it should never be negative" is what's lazy programming.

Whether it behaves like it's zero, has a "totally dead" display that's different from zero percent, or it just asserts, someone needs to have actually made a decision as to what it should be doing.
>>
>>159511863
To make money.
>>
>>159517335
Well Nene's doing it for the sublime joy of creation
>>
>>159501164
I'm sure many do. I've come across plenty of Chinese code. However the programmer does need to know a certain amount of "English" (American English) to understand the buzz words.
>>
>>159516906
Consistency comes first, but the latter by far is preferable
>>
>>159516906
void
a
()
{ [...] return; }
>>
>>159516906
2nd for personally typed codes
1st for IDE-generated codes like the getters and setters for java
>>
>>159520343
eh, inconsistency is the worst
>>
>>159520343
What the heck is wrong with you?
>>
File: 1465287763560.png (77KB, 694x801px) Image search: [Google]
1465287763560.png
77KB, 694x801px
>>159503660
>TODOs that are never done
>can't think of a solution to address an obvious edge case
>"I'll just throw an exception in case it ever pops up."
I'd watch a show about cute programmers writing shit code.
>>
>>159521643
Do you have more of these images
>>
>>159512431
https://en.wikipedia.org/wiki/Antikythera_mechanism
*po-po-pos in Greek*
>>
>>159516906

I always prefer doing it the latter way.

No idea why the top way looks ugly to me.
>>
>>159521643
>playing Hearthstone
>go to the official wiki to see the advanced rulebook written by the community
>all the edge cases with exceptions that just cause a million other bugs and unintended behavior

Pretty sure the code from your image could be found in one of Blizzard's games.
>>
>>159522033
I do the opposite. The first one looks kinda natural while the 2nd one feels wrong. I don't know why exactly but it just feels off.
>>
>>159516906
First because it's faster to write.
>>
>everyone ITT complaining about C++
Isn't it the de facto language used for games?
Also, how do I git gud at programming
>>
>>159522418

I respect your way of doing things
>>
File: 1410564108334.png (82KB, 694x801px) Image search: [Google]
1410564108334.png
82KB, 694x801px
>>159521784
There are a bunch from AGDG, but if I saved them, I can't remember what I named them as.

>>159522033
>>159522418
Were you taught one way or the other? I was taught Method 1, and now 2 just looks bloated to me.
>>
>>159522532
How dare you be so nice about this?
>>
>>159522507
pfft, everone knows games are written in assembly for the best performance
>>
>>159522507
Unless you have at least a dozen people working with you, you'd better use unity or rpgmaker(especially if you're making a NeneQuest)
>>
>>159522577

I'm self taught, I'm not very good. Did a bit of Python, Java, HTML, C#. Not a great degree on any of them though, it was mostly a passing interest. I do enjoy coding though so I hope to get better at it I just think I'd do better having a teacher.

On the online youtube tutorials, videos, etc they tend to use Method 1 so it's mostly just my preference.
>>
>>159522577
>Were you taught one way or the other?
I was most self-thought by the time I started learning C++ in college. I don't really remember how it was written in my scripts and books but I expect it was method 1 so that's why it feels natural for me.

>>159522507
I prefer C++ over every other language. The syntax looks nicer and it just works for me.
That being said, use a done engine for your games unless you're a AAA developer. So you won't be using C++ most of the times.
>>
>>159522577
would be perfect with just one &
>>
>>159501008
>using auto
Disgusting
>>
>>159522800
But then you wouldn't have a binary and.
>>
>>159522507
Language wars are a meme, useful for spotting bad devers
>>
>>159522622
>not just creating the game logic in the hardware design
Looks like some people like their games running slow.
>>
>>159501008
>DestroyMe() called multiple times
>damage subtracted from m_currentHealth multiple times
wat

>>159501164
All the keywords, terms and libraries are in english so it's done for consistency. I'm surprised they even comment it in moon.

>>159503374
It's not uncommon for japanese vidya.

>>159509615
They shouldn't be on the stack anyway.
>>
File: mr.bones2.jpg (2MB, 1376x3632px) Image search: [Google]
mr.bones2.jpg
2MB, 1376x3632px
>>159522622
We get it already, Chris Sawyer.

>>159522768
>>159522788
All of you lucky self-taught people. I learned in school because I lack the motivation, self-discipline, and drive to do it by myself. Also, I'm dumb as bricks. I'm genuinely surprised I actually have a job doing this stuff.
>>
>>159522919
>tfw I made pong on a fpga as part of my masters degree
Real education bitches
>>
>>159523008

If it helps I bet you are better than me, I'm pretty lazy and only learn a bit of the language then get bored and move on to another. Whether it's making a small game, GUI, small program, whatever. Although I will say it really is true that once you learn the principles of a language you can easily pick up another.

Just keep going at it and I'm sure you'll get better at it Anon.
>>
File: 1498002567861.jpg (303KB, 1920x1080px) Image search: [Google]
1498002567861.jpg
303KB, 1920x1080px
>Not coding in Java
>>
Well since we have this thread: I am recently transfering from Java to C++. I did some basic webcourse to see what's different and now I am reading Modern Effective C++. Is that enough to be decent?
>>
>>159523131
>try to learn Java
>try to write simple text on console
>learn that I need to jump through hoops to actually write simple text
>feel like Sun thinks we are all literally retarded and need someone to hold our hands while coding simple shit
>drop the language after learning most of it because it's boring and I won't be using it in the near future
>proceed to other languages and repeat the cycle because programming is exciting while learning it but boring once you know how to do some things routinely

I wish I picked a different career.
>>
>>159516906
The latter both for functions and loops.
The first one is for power points and other crap where line count matters.

>>159522507
>Also, how do I git gud at programming
Practice.
>>
>>159523329
>learn that I need to jump through hoops to actually write simple text
System.out.print("Hello world") too difficult?
>>
>>159523329
>jump through hoops
System.out.[function] is not really more effort than doing proper io using streams in most other languages
>>
>not using GOTO instead of expensive loops
fucking coding babies
>>
>>159523134
If you are already a good Java programmer and you learn C++ you're not suddenly going to become less good.
>>
>>159523329

If you think that's terrible try having to use VBA for Excel.
>>
File: goto.png (26KB, 740x201px) Image search: [Google]
goto.png
26KB, 740x201px
>>159523481
>>
>>159523463
>>159523446
Actually I fucked up. I meant reading an input from the keyboard, not write stuff on the screen. Felt pretty retarded that I need to create a Scanner on System.in and then use it to read whatever I want to read. I know there is a reason for that, but that's how I felt while learning the language.
>>
>>159523481
Don't play with fire
>>
File: 1449017055335.jpg (95KB, 381x391px) Image search: [Google]
1449017055335.jpg
95KB, 381x391px
I'm actually jealous of you people here talking about programming here. Despite finishing my CS course this year, I'm shit on it.

I can only look on the code, understand it but never I can dream on coding one myself. I'm real dumb on remembering syntax at all.

Its kind of depressing for me.

>>159523329
I feel your pain anon. Every time I look on programming threads like this, I got depressed on my lack of skills. I feel useless on what I go through my college.
>>
>>159523653
Are you a CS major or you just took a course for kicks?
>>
>>159523631
to be fair you could always just use jni (java native interface) and setup your own io
>>
>>159523653
How do you finish a CS course without writing code?
>>
>>159523653
>I'm real dumb on remembering syntax at all.

You need to remember basic shit that's used in almost all languages. Then you use the documentation for everything else. You're not supposed to remember everything for fucks sake.
>>
File: 1402626002548.gif (980KB, 640x480px) Image search: [Google]
1402626002548.gif
980KB, 640x480px
>>159522507
>Also, how do I git gud at programming
Make a game. Start small (i.e. pong) then build a slightly bigger game each time.
>>
>>159523481
>not hiding at least one longjmp/setjmp in every program
>not surrounding them with unhelpful but ominous comments
>not adding an empty //FIXME: nearby
>>
>>159523653
Being a code monkey sucks anyway, better to be the person who tells the code monkeys what to do
>>
>>159523822
No one is gonna hire a fresh graduate to a manager position though
>>
>>159523822
When you need to write routine bullshit, it's pretty nice actually, no stress. When someone thinks of some bullshit in the middle of the project that they want added and that functionality means that a huge part of the code needs to be rewritten, it's a pain the ass.
>>
>>159523877
You don't necessarily need to be a manager to have a functional design role
>>
>>159523653
I'm going to be done with college in 2-3 months and my biggest problem is that I actually don't know what I know.
College here where I live isn't like in the US where you pick your classes, instead there are set classes for your desired profession and you take them. I feel like the courses are all over the place. I've learned C++, Java, VB, HTML, CSS, JavaScript, SQL just as far as languages go. Then I had a shitload of theoretical stuff.
I finished all those rather easily since I just "get it". I can't really explain how but I just get how coding works and I need to learn the syntax which is easy enough for me. But I never went deeper into anything than those classes expect from me. So now I'm left with just "superficial" knowledge on all of those subjects. At least for me it feels superficial. When I talk to programmer they say I seem to know a lot but I don't feel that way.
>>
>>159523822
Do you mean The Business Inteligence?
>>
>>159523718
>>159523731
Not him, but during my own CS degree there were a shitload of theory classes. If I'd done a BSE instead of a BAS, I'd have done like 70% theory courses after doing the basics three programming classes. The only useful thing I can remember from the theory classes is state machines/finite automata. Basically, lots of CS degree people come out of school knowing only theory, or only programming, but not a combination of both.

I would say that the hard part about programming isn't the programming part. The hard part is actually making something with those skills. I've been doing game dev in my spare time and haven't really finished much. Programming for work is fine because it's part of a whole system that's been put together, but programming for yourself can be difficult since you're only one person with a million things to do for the project.
>>
>>159523767
How do I stop myself from going too deep into some useless details when making simple shit?
I'm doing a tiny project in GameMaker studio and last week I wasted a whole day on creating a texture for my canyon walls.
It was still shit even after all that work.
Before that I wasted hours on tweaking numbers on how the view follows my character because I just didn't like how I make it initially. Sure, now it looks nicer but damn that was wasteful for learning.
>>
>>159523653
I took an elective class for programming, and while I think making computers do things is fun, half of the most difficult part of the whole thing (at least to me) is right at the start of the building process.
If I take a bottom-up approach, I'd end up with small working "parts" that have to get updated once I have to piece them together (because I suck at predicting/knowing all possible cases that I have to deal with).
If I take a top-down approach, I feel like I get lost before I even get to any of the actual problem solving.
>>
>>159524067
That's exactly how I felt when I graduated. Confidence comes with experience, I know it's gay but you just gotta believe in yourself. If not your raw CS knowledge then you're ability to learn.
>>
>>159524242
If its for your career and not for fun then why do you feel the need to make something independently?
>>
>>159523584
Why are gotos bad?
>>
>>159524479
Fucks up the CFG and makes optimization and debugging impossible
It has its legit uses, like breaking out of nested loops, but misuse has bad consequences
>>
>>159524479
Because they are a slippery slope. A very slipper slope that leads right into spaghetti hell.

Also just imagine this. You're told to pick up someone's code and fix it, or update it. You read through 500 lines of code and suddenly there is a goto 156. Fun.
>>
>>159524479
readability and maintainability
that's basically all
(just program something medium-sized not using any loops, just goto etc and try maintaining it)
>>
>>159524287
>How do I stop myself from going too deep into some useless details when making simple shit?
Be impatient. Have a desire to finish rather than a desire to develop stuff. It also helps if you're not actively avoiding some part of development.

>>159524479
They are very easy to abuse, following the flow of code can get confusing especially if there's several of them, and generally you can do what you wanted with loops/ifs and get a more readable result (conversely if you NEED a goto it's probably a sign of bad structure).
>>
>>159524479
They are so powerful that everyone fears them.
>>
>>159524287
>How do I stop myself from going too deep into some useless details when making simple shit?
Make a plan. Prototype. People talk shit about GDDs, but they can help you focus on the essentials before moving on to the fluff. Stuff (especially art assets) doesn't need to be perfect the first time around. Get the skeleton framework in there, make sure that your basic features are functional, and then fix/elaborate on top of that prototype as needed.

>>159524450
I don't understand the question. What am I doing independently that's for work and not for fun?
>>
>>159523822
Thats what actually happens to me in my latter years in college. I got the role of thinking of how will the program will work and looks.

>>159524067
Exactly! Same programming language as well. I can go to theoretical stuff well enough but definitely not on research tier levels, just enough to understand it. I don't have the passion my classmates have, coding games in their free time using Java even. Now, those people already have a job, while me, I was wondering what to do in my life Its been 2 months since I graduated, I feel that nobody will accept me when I go job hunting once I finished gathering my documents.
>>
Sadly this episode was probably the most amount of code we'll see for the rest of the season since the entire rest of the cast is artists
>>
>no unit tests
good luck
>>
>>159501008
it doesn't break out of the loop once destroyme called
>>
>>159524789
Oh, right. We were discussing anime of some sort.
>>
>>159524789
boo
>>
>>159524067
similar position, i'm not in compsci though so my set was a tad bit different.
PASCAL, Python, VB, C++, a bit of C#, MySQL, parts of PHP, ROOT and stuff like mathematica, matlab.
>>
>>159501164
English is the only relevant language anyone should be using.
>>
>>159524784
Just sack up, put together a resume and find a job. Have some confidence, you're overestimating what's required of you.
>>
File: aOzdGsa.png (29KB, 409x611px) Image search: [Google]
aOzdGsa.png
29KB, 409x611px
a programming language truly qualifies as being good if you can program using emoji
>>
>>159525469
Disgusting.
>>
>>159524784
>Its been 2 months since I graduated
Ha, try three years. It actually took me four years to find a non-contract staff position. I'm a dumbass, though. If you're even remotely intelligent, I can almost guarantee that you'll find one faster than I did.
>>
>>159517060
Sublime Text is a fast editor written in C++ that performs wonderfully.

Atom is garbage written in Javascript.

Consider killing yourself.
>>
File: 1495867364568.png (179KB, 913x321px) Image search: [Google]
1495867364568.png
179KB, 913x321px
>>159501112
Exactly, everyone should use GNU emacs. I'm still waiting for an anime about cute girls who fight for free software.
>>
>>159522577
Most engine programmers prefer C, but C++ is used for ubiquity.
>>
>>159525741
>implying emacs is better than vi
>>
File: isabelle_jedit.png (105KB, 994x814px) Image search: [Google]
isabelle_jedit.png
105KB, 994x814px
>>159525469
A programming language truly qualifies as being good if you can program using latex syntax.
>>
>>159501112
Where my Eclipse bros at?
>>
>>159525878
Emacs can do anything vi can do only better.
>>
>>159525878
Is there any other reason to learn using vi than being smug about it?
>>
>>159525090
IT by chances?
If not then math major?

Interesting that you go Pascal. Not even once it was mention during my college days. Maybe Fortran but Pascal? I don't know why.

>>159525302
I guess I can only put on my resume is being fresh graduate, which sucks. It really makes me depress thats what can I only put on it.

>>159525675
You got work experience either ways. It may took you 3 years but it definitely helps you on getting that job.
>>
I just use Visual Studio.
>>
>>159525933
they all went and got a proper IDE called IntelliJ IDEA
>>
>>159525977
it's quite easy to start an argument really
>>
>>159525977
When people say vi they really mean vim in compatibility mode with vi. Nobody uses vanilla vi anymore.
>>
>>159526037
speaking about jetbrains
>>159526020
I started using CLion and it is quite good.
>>
>>159525979
I've been out of school with my degree for 6 months and starting to lose hope, I've had one interview after 200 applications and I was rejected, probably because I was asking for too much money.

Kill me.
>>
>>159525979
Engineering physics, Pascal was done as entry course to programming, completely pointless imo as it could be C++ and not much would change, it was some old guy who was constantly talking about the fortran punched cards.
>>
>anime thread turned into non-anime thread
Sasuga worst girl.
>>
>>159524479
Unless you are writing kernel code, do not use GOTO.
>>
>>159526312
You are the worst girl.
>>
>>159526302
>some old guy who was constantly talking about the fortran
Fuck these people, never a good lecture or subject in general with them
>>
>>159525741
>>159525878
>>159525973
>>159525977
>>159526090
>>159526143
ever heard of nano?
>>
>>159526312
Programming is anime related
>>
>>159526037
But I use Eclipse for Python.

>>159526247
Try not to bring up money until they do. When they do, that's when you try to leverage it higher. And round out your portfolio with personal projects or open source contributions while you're looking. Have a Github up with you best/cleanest code available. I'd offer to look over your resume for you, but for obvious reasons that's not ideal, so the best I can say is to double and triple check your documents and have them reviewed by other people.

Don't give up. I believe in you.
>>
>>159526247
Don't ask too much money, jeez. I can't understand why people are in such hurry after school. Just ask for some average amount and after year ask for more or change places. Realize that first years at work you are gaining experience that goes into your CV and will sell later.
>>
>>159526332
What if my name is Goto? If Nene can have a NeneEngine, I want to have a GotoEngine.
>>
>>159526453
What language should I use to program my first anime?
>>
>>159526444
Ever heard of notepad? Seriously this meme is alive only in /g/like comunities
>>
>>159526585
C like /g/ tells me I should use for everything.
>>
File: maxresdefault(4).jpg (67KB, 1199x826px) Image search: [Google]
maxresdefault(4).jpg
67KB, 1199x826px
>>159509769
>>
>>159526585
Lisp generating assembler source code.
>>
>>159526585
C# because Unity has ok animation tools and its better than using a shitfest like Flash
>>
>>159526247
Even if I just got out in college, I don't think money should be brought up ever. Getting experience is the first goal. When you already have enough accomplishments, maybe you can bring it up, and only if they do. You will look arrogant if you try to bring up money first.

>>159526453
>crossdressing makes you a better programmer.
>>
>>159526471
>>159526484

T-Thanks anons
>>
>>159526484
>Just ask for some average amount
Sometimes the "too much" that you ask for IS the average amount, though. Some companies try to shortchange new developers, and even people desperate enough to take underpaying jobs will try to ask for what they deserve for their experience/cost of living. It's easy to say "Don't accept it if they'll underpay you", but if you've been looking for a while and unemployment seems like it has no end in sight, the low-paying jobs might be the only way out.

My advice to the other anon is that a low-paying job might suck, but it might also be your way in. After your have a year or two under your belt, you can try to move to a new company for a much bigger salary.
>>
File: 85CZMuH.jpg (228KB, 1920x1080px) Image search: [Google]
85CZMuH.jpg
228KB, 1920x1080px
>>159501008
at least it's not a variable-width font
>>
>>159526825
They should program in full-width alphanumeric.
>>
>>159519812
This gave me cancer
>>
>>159526825
>not using a variable-width font where 1, l, | and I look similar, 0 and O are identical, and () have swapped looks with {}
>>
File: kurokami-003.jpg (388KB, 971x1400px) Image search: [Google]
kurokami-003.jpg
388KB, 971x1400px
>>159526453
Which other shows feature programmers as prominent characters? I think the MC in Black God was on a game dev team. By the way, can anyone who read that series all the way to the end summarize the ending briefly?
>>
>>159526499
You only get to make Dragonslayer swords
>>
Can somebody here identify this machine code language?
>>
>>159527022
it's just missing preprocessor directives to alias void and return
>>
>>159526784
Well it depends where you are. Here at my place they are code-monkey hungry. Company I am in is hiring like crazy and still needs more.
It is better to start at average amount because there is a good chance that they accept it and if not they atleast try to haggle it down.

But yeah generally first years at work you are getting EXPs instead of money.
>>
>>159527112
If I remember correctly the main guy in Onegai twins was a programmer.
>>
File: image.gif (3MB, 718x523px) Image search: [Google]
image.gif
3MB, 718x523px
Welp, this thread was a longer read than I had anticipated. I salute all you dev careerbros and wish you all the best.

Crawling back to my animus where I don't get discriminated for lacking any skill.
>>
File: aoba checking phone.jpg (73KB, 369x578px) Image search: [Google]
aoba checking phone.jpg
73KB, 369x578px
>[9volt] [3rd] New Game!! - 01 [720p]

For what purpose
>>
>>159527572
You're too basicfag to understand the true depths of ~moe~
>>
File: q.png (380KB, 825x381px) Image search: [Google]
q.png
380KB, 825x381px
>>159525933
>>159526037
>Not using Netbeans
>>
>>159510321
>functional programming can't have effects

>>159510308
>>159510295
OOP is pajeet tier. It shows lack of thought in what you're doing with little to no preplanning of your deployment.
>>
>>159527112
Boku no FSociety
>>
>>159527572
I am here and I don't even watch this anime.
>>
on a side note, does this ep have any proper raws?
>>
>>159527726
I wrote a pong in haskell, it was easy
I don't think I'd manage a NeneQuest though
>>
>>159527726
Fuck off memester.
>>
>>159527726
>"Functional programming is the future"
>see OOP everywhere where it actually matters
every time
inb4
>T-that's legacy code.
>They don't understand the true potential of lambda!
>>
>>159527910
just download from hs and disable subtitles
>>
>>159501008
Break out of the loop if you are already dead.
>>
>>159527960
Don't forget
>if you want to learn skills that are on demand and can get you a job you must be an Indian
>>
>>159527969
>hs
it was prescreening or some such, it airs properly on TV in 3 days.
>>
File: 1454201523825 - Copy.jpg (79KB, 960x720px) Image search: [Google]
1454201523825 - Copy.jpg
79KB, 960x720px
>>159527960
>They don't understand the true potential of lambda!
Sounds like it's straight out of Gundam.
>>
>>159501112
What a fucking retard you are.
>>
>>159517060
>atom is the real WOman's text editor
there, fixed
>>
>>159522800
would be perfect with just one =
>>
>>159501008
/g/ needs to get out of here right now
>>
>>159525726
I use Atom because of the addons and integrated git tools.
>>
>>159528246
As long as they post cute game developers, I'm okay if they stay.
>>
>>159528246
They made nyaa pantsu for us.
>>
>>159501164
Why does anyone code in any language other than binary?
>>
>C++
I sleep

>X86
REAL SHIT
>>
>>159528470
x86 is a meme, x64 is the real shit
>>
>>159528369
i'm languagefluid
>>
Who game-developer here?
>>
>>159528470
> BITS 16
>
>org 0x7c00
>
>start:
>
> mov ax, 0x03
> int 0x10
>
> mov ax, 0x0700
> mov bh, 0x0f
> xor cx, cx
> mov dx, 0x184f
> int 0x10
>
> mov si, text_string
> call print_string
>
> jmp $
>
>print_string:
> mov ah, 0x0E
>
>.repeat:
> lodsb
> cmp al, 0
> je .done
> int 0x10
> jmp .repeat
>
>.done:
> ret
>
> text_string db 'This is REAL >programming', 0
> times 510-($-$$) db 0
> dw 0xAA55
>>
>>159501617
Vim is good.
>>
File: 1349111976493.jpg (39KB, 336x230px) Image search: [Google]
1349111976493.jpg
39KB, 336x230px
>>159528592
>game-developer
>>
>>159528587
1. Stop being a dumb frogposter.
2. They're cute girls; you're not.
>>
>>159528587
That's because you're a retarded subhuman.
>>
>>159512919
Nene a Qt
>>
>>159528587
which means you are a fag who needs to git gud
>>
File: real_programmers.png (83KB, 740x406px) Image search: [Google]
real_programmers.png
83KB, 740x406px
ITT
>>
>>159528628
I was at /g/ once and didn't like it.
>>
>>159528628
Why?
>>
>>159528729
>reddit: the comic

fuck off

>>>/r/eddit
>>
>>159527233

I think that might be z80 code, or at least, all the instructions there are also z80 instructions. If it isn't z80 it is some other small microprocessor because the JR (jump register) and BIT (checks to see if certain bit is set) instructions don't exist on modern instruction sets, although MIPS does have JR.
>>
>>159528729

real programmers don't read xkcd
>>
>>159528885
Do you realize 4chan has a board based on xkcd?
>>
>>159529017
And it's moved away from its original purpose so far that it doesn't related anymore.
>>
>>159529017
You mean the normalfag containment board?
>>
>>159529017
/r9k/ became reverse tumblr though.
>>
>>159516906
First because I'm too lazy to hit enter twice for every curly brace.
>>
>>159529108
When they turned the robot back on, everyone complained /r9k/ was turning reddit and one word replies were no longer possible because reddit is trying to ruin the board with the robot.
>>
>>159528677
If that's the case then I should be getting hired because that's apparently what's in demand. It makes my blood boil when I see someone's code who is supposed to be a professional, and it looks like something I would write when I was 12. Why do I even bother trying to be good at what I do if all that really matters is if you're friends with someone at the company?
>>
>>159529110
>not auto-generating all your functions
>>
File: 1486568373380.jpg (148KB, 1440x810px) Image search: [Google]
1486568373380.jpg
148KB, 1440x810px
>>159527112
Maid Dragon
>>
>>159528628
>programming
>in /g/ - consumer electronics
>who am i quoting
>>
Reading this thread, I've come to the conclusion that most of you are terrible programmers who either program as a hobby or work at minimum wage.
>>
File: 1499309500760.jpg (107KB, 1280x720px) Image search: [Google]
1499309500760.jpg
107KB, 1280x720px
>he hasn't created his own engine
you now realize that you are dumber than Nene
>>
File: domon-sip.jpg (36KB, 576x432px) Image search: [Google]
domon-sip.jpg
36KB, 576x432px
>>159529353
Did you determine that from the brackets or the text editors, senpai?
>>
>>159529353
Instead of being such pretentious faggot you could post some actual arguments why we are such terrible programmers.
>>
>>159528587
She didn't get hired for her development skills, that's purely a hobby at this point.
She was only hired part time as a QA tester.
>>
File: 1482528372001.gif (455KB, 500x371px) Image search: [Google]
1482528372001.gif
455KB, 500x371px
>>159529364
>>
>>159528587
It's because you post frogs on 4chan.
>>
>>159528587
You'll never get hired for as long as you're a dumb frogposter.
>>
File: where is windows 9.jpg (97KB, 482x424px) Image search: [Google]
where is windows 9.jpg
97KB, 482x424px
>>159528729
Real programmers use Visual Studio.
>>
>>159529558
>>159529595
samefagging this hard
>>
>>159528587
Dumb frogposter
>>
>>159529643
Dumb frogposter.
>>
>>159529637
>>
>>159529643
Dumb frogposter
>>
File: 15f95d6016.jpg (201KB, 1920x1080px) Image search: [Google]
15f95d6016.jpg
201KB, 1920x1080px
>>159529364
Nene is a gifted indie dev.
>>
>>159529637
Visual Studio is very fat
>>
So, do programmers in Japan have to learn english? or just Programming english like Doctors have to learn Latin.
>>
>>159529768
Of course, how would they use stack overflow.
>>
>>159529643
Dumb frogposter!
>>
File: 1499339535071.webm (1MB, 1280x720px) Image search: [Google]
1499339535071.webm
1MB, 1280x720px
>>159529763
Nene is a genius
>>
File: laughing.png (267KB, 600x600px) Image search: [Google]
laughing.png
267KB, 600x600px
>>159529851
>>
>>159529643
Dumb frogposter. I always hated that meme.
>>
File: 1499205914180.png (881KB, 1280x720px) Image search: [Google]
1499205914180.png
881KB, 1280x720px
>>159529888
Nene is a master spy.
>>
>>159529931
is that a scope?
>>
>>159528587
Unintelligent anura uploader.
>>
>>159529982
Of course not.
>>
>>159529931
>>159529888
Nene has THE MOST punchable face
>>
File: 1499382411572.jpg (74KB, 522x522px) Image search: [Google]
1499382411572.jpg
74KB, 522x522px
>>159530050
Rude
>>
>>159529768
Everyone in Japan has to learn English.
>>
>>159530050
And the most spankable ass.
>>
File: 1499249338576.jpg (103KB, 1280x720px) Image search: [Google]
1499249338576.jpg
103KB, 1280x720px
>>159530050
Nene has the CUTEST face!
>>
>>159530050
I want to pinch Nenecchi's cheeks
>>
>>159530081
Yea, but they don't "learn" english. They learn McDonalds and Yes and America.
>>
File: 1482182911973.png (2MB, 1920x1080px) Image search: [Google]
1482182911973.png
2MB, 1920x1080px
>>159529982
Of course not. Its just another master spy tool.
>>
>>159529222
I'm pretty sure COOL Kyoushinsha browses /g/.
>>
>>159529931
She's now ok, but she will get fat from all that sitting infront of computer. Magical metabolism of little girls is not gonna save her.
>>
>>159501008
She is using resolvedamage 2 times in one command so i guess it will always be the same?

also wtf is -= ??? bit opperation on data types?
>>
>>159502981
it's not an issue with the destructor, how could it possibly be semantically valid to die multiple times just because you have multiple debufs?
>>
>>159529765
The correct term is thick
>>
>>159530365
I literally sit all day on the computer and I'm pretty thin.
>>
>>159530371
nevermind mistook it for something else its just subtraction
>>
>>159501164
>Why do nips not code in japanese?
>code in Japanese
>code
Get out.
But to answer your question:
>programming in private/for fun
I will sometimes write code in German
>programming for university
Universities will sometimes have joint research projects with other (foreign) universities, so writing code in English is convenient.
>programming for a job
Because sometimes the local programmer just writes the method heads, and then outsources it to Indians to fill in the blanks.
>>
>>159530440
T H I C C
>>
>>159530371
debuf->applyToDamage() returns the debuf'd damage, by repeatedly assigning it to "resolveDamage" you're cumulatively resolving multiple debufs as you iterate over them (this assumes debufs are commutative).

"a -= b" is syntactic sugar for "a = a - b"
>>
>>159530371
The first resolvedDamage is set from the first argument. Looks like it then does some adjustment from each debuf and then applies it the DestructableActor's health. If health is less than or equal to 0, it sets health to 0 and destroys the actor. It should probably break the loop at that point or DestroyMe could be called multiple times.
>>
File: 1482945735196.gif (544KB, 303x357px) Image search: [Google]
1482945735196.gif
544KB, 303x357px
>>159519812
>>
>>159530560
>(this assumes debufs are commutative).
Worse, a debuff that doesn't modify damage at all will still cause it to be subtracted from m_currenthealth an extra time.
>>
>>159516906
void
a
(
...
)
{
...
}
>>
File: 1459626343159.gif (170KB, 850x900px) Image search: [Google]
1459626343159.gif
170KB, 850x900px
Should I learn Java and C++ if Im enrolling for Electronic engineering

I know it has overlaps with CE but if Im going for wireless networks? Come on
>>
>>159516906
I prefer K&R but we're a C# shop so I use the language standards.
>>
File: 1474317694348.jpg (775KB, 1920x1080px) Image search: [Google]
1474317694348.jpg
775KB, 1920x1080px
>>159501008
>tfw too stupid to learn programming
MyClass objectA = new MyClass();
objectA.aerhertheawsrh_fuckthisshit
>>
>>159530560
>"a -= b" is syntactic sugar for "a = a - b"
a-=b
subtracts b from existing a
a = a - b
assigns new object created from a - b expression
>>
>>159530953
>assigns new object created from a - b expression
It's not a java, anon.
>>
>>159530831
auto object_a = std::make_unique<MyClass>();
object_a->stupidMethod();
>>
>>159530953
>subtracts b from existing a
How do you think it does that? By calling a = a-b
>>
>>159530783
learn C since you will most likely do some low level shit

c++ as a first language i wouldn't
>>
>>159531119
actually should the data type of a fit into a single register it will just load it into (r/e)ax and use the sub instruction in assembly
afterwards the data will just be pushed onto the stack at wherever a's pointer is pointing to
>>
>>159531153
>anon asks for his first language
>"learn C"
ok
>>
>>159531119
Nah breh. They're different operators. (Though it takes a real douche to intentionally overload them to have different semantics.)
>>
>>159531229
the compiler would probably (hopefully) optimize "a = a-b" to do that as well though
>>
>>159531247
k&r is easy to follow and will teach you more than ruby/python/js or any other highter languages

I only use java and the javascript stack myself since I am pajeet tier but I wouldn't tell someone to learn something as convoluted as java or c++ as a first language
>>
>>159530953
unless you're using a compiler from 400 years ago it's going to get optimized out
>>
>>159501164
Because software developers are both smart and lazy. Code that has to be written twice is a waste of time.

You want to write code that can be used by any developer around the globe, therefore common standards are necessary. One of those standards is using English as a common language. Also you save file size if you don't have to include a million moon runes in your character sets, though that has become rather irrelevant in modern computing where even big text files are minuscule compared to media files.
>>
I comment in french and there nobody can stop me
When I feel evil I even use éàè and other shit that will fuck up anyone who doesn't use utf-8
>>
>>159532128
>fuck up anyone who doesn't use utf-8
they deserve it tho
>>
>>159532128
I use í in variable names and it doesn't even exist in my language.
>>
>>159532199
>not macroing keywords to your native language
>>
>>159532252
>not having a header reading
>#define BEGIN {
>#define END }
>because you love object-pascal this much
>>
>>159532195
How are you supposed to make Shift-JIS art without Shift-JIS?
>>
>>159532302
>#define BEGIN {
>#define END }
You monster.
>>
what would be syntax of true japanese language?

variable-sama : static variable
variable-san : public variable
variable-chan: protected variable
variable-tan: private variable

IKU : return
>>
>>159531247
C is simple and many popular languages are based on it.
>>
So, why is linking dependencies in C++ such a fucking pain? In Java you only need a .jar and nothing more.
>>
File: 1443208100307.png (196KB, 356x354px) Image search: [Google]
1443208100307.png
196KB, 356x354px
>getting a CS degree
>>
>>159532492
setting up the classpath can be infuriating sometimes as well
>>
File: 6dc.jpg (21KB, 600x576px) Image search: [Google]
6dc.jpg
21KB, 600x576px
>>159532459
>C is simple
>>
>>159501454
Yeah we didn't invent computers. We may have been instrumental in personal computing but as this and kindly linked >>159512431 the British did a lot of the hard lifting.
>>
>>159532516
>implying you need a degree to be a programmer

You only need a degree if you want to work for a proper company
>>
>>159532516
>not getting a generic art/science degree and taking up programming as a hobby
>>
>2017
>not using HTML to code
>>
>>159512919
I tried using it but C++ has always been some what rough for me since I started in Java and C#. I am to used to the run time taking care of garbage collection for me.
>>
>>159532639
>getting an art or humanities degree

For what purpose
>>
File: bash.png (42KB, 422x338px) Image search: [Google]
bash.png
42KB, 422x338px
>>159532302
Truly the work of gods
>>
>>159532574
He's not wrong.
C itself is simple.
That doesn't mean that you're unable to fuck things thoroughly up, though.
>>
>>159501665
Honestly, no. This guy is making it a little hard for himself.
>>
>>159532345
are you coding with shift-JIS art?
>>
>>159532738
i might have cancer now
>>
>>159532639
No, what? Do the opposite it's more employable and more fun
>>
File: DDvEkTBUQAA2Tf2.jpg (109KB, 1438x788px) Image search: [Google]
DDvEkTBUQAA2Tf2.jpg
109KB, 1438x788px
Today I will remind them.
>>
>>159532687
some people want to enjoy their lives
>>
>>159533128
Sincerely and wholeheartedly wtf
>>
At least they're using C++11.
>>
>>159533161
Can't you do that without wasting your money?
>>
>>159533128
Should have nuked canada in the confusion of ww2.
>>
>>159533128
hahaha what
>>
>>159533128
wew
>>
>>159502291
>Playmotion(m_pDeathMotion);
>>
>>159533128
>Canadian Aboriginal Syllabics
oh shit it actually exists
>>
>>159533128
Fucking leafs
>>
>>159516906
I used to prefer the latter, but for some reason I prefer the former now. Fuck those standards that mix the two, though.
>>
>>159516906
The former. Saves a line pro block and makes indentation easier.
>>
>>159525888
> Not using cartouches
Get with the program, man.
>>
>>159533500
I like to use the latter only for functions and everything else the former (K&R) because that's how I learnt it and got used to it.
But I can see why people don't like it.
>>
>>159533641
Fuck that shit, it drives me crazy. Why would you purposely choose to mix brace positioning?
>>
>>159509791
maybe not "radical" but there are some very, very big changes, many of which brought about that realization you mentioned
>>
>>159532687
CS majors can't think creatively; most of them just go with whatever they've been taugh. A lot of companies like Google or Microsoft are looking for programmers with creative backgrounds because they can think outside the box.
>>
>>159533758
see
>>159520343
>>
>>159529851
https://ja.stackoverflow.com/
>>
>>159533814
>A lot of companies
...is overstating it quite a bit. 99.9% of companies will prefer someone with a technical background or at least a few years work experience.
>>
>>159516906
int f( int * parm )
{
return blah (0[parm]);}
>>
>>159519812
Do you write driver code? I have to deal with shit like this all the time and I really hate it.
It gets extra nauseating when every function call is also formatted this way.
>>
>>159516906
I switched from latter to former because V%
>>
File: kit kat.jpg (154KB, 1936x2592px) Image search: [Google]
kit kat.jpg
154KB, 1936x2592px
>>159534007
Fucking monster
>>
>>159533814
Maybe to entry level web development. But there is a huge amount to learn on your own if you don't go to school.
I haven't met any self-taught people who really understood how to scientifically analyse their code for efficiency, let alone bench mark it.
They also tend to be infatuated with PHP and write atrocious C/C++.
>>
>>159534200
> PHP
That's a fucking troll language is what it is.
>>
>>159501008
>destroying an already destroyed object
shiggy
>>
File: INBvStO.png (312KB, 506x662px) Image search: [Google]
INBvStO.png
312KB, 506x662px
>>159534200
>>
So is Rust of any use or is it just a passing fad?
>>
>>159534272
i'm not a web developer; i hope php is not widely used anymore? or at least to a severely lesser extend than it used to be
>>
>>159534272
Hey, I have memories with that language!
>>
>>159534404
lol,I wish i weren't
>>
>>159509842
but anon, dataflow analysis is magic!
>>
>>159509791
https://www.youtube.com/watch?v=wrwwa68JXNk
>>
>>159534404
It's been replaced with JavaScript via node.js.
>>
>>159534550
>magic
I hate this buzzword. Either something is blackbox or you don't understand it.
>>
>>159534786
ergh. can this even be considered that much of an improvement?
>>
>>159531247
If you have a good teacher, any language is good.
At my university, they taught Java to people who didn't know any programming at all. Imo that's much worse than C.
Imagine you know nothing about programming, and then you're expected to write shit like public class X {public static void main(String[] args)}
and the professor just brushes it off with "oh i'll explain what that means later"
At least with C it's pretty easy. "int main" this is where all the code goes that will be executed at the start of the program.
>>
File: php-loose-comparisons.png (23KB, 715x408px) Image search: [Google]
php-loose-comparisons.png
23KB, 715x408px
>>159534909
Yes.
>>
>>159509791
Its not even the same language anymore. 98 was just C with OOP. Modern C++ doesn't bother with any of the low level memory management and makes heavy usage of generic and functional programming. It also provides high level interfaces for multi-threading and soon networking. Template metaprogramming is also becoming a more standard fixture of the language as people figure out all sorts of interesting uses. An example being for a physics program I was working in, tmp allowed us to verify the units in equations at compile time. Something that is impossible without a lint in other languages.
>>
>>159501008
Destroy me could get triggerd multiple times.
I'm guessing that might lead to some referencing issues.
Why do they not return after the initial DestroyMe() ?
I don't have that much knowledge about C++ Syntax so who am I to talk?
>>
>>159535112
I thought Javascript wasn't much better in terms of implicit conversions for primitives.
>>
File: 1424869400022.png (32KB, 576x402px) Image search: [Google]
1424869400022.png
32KB, 576x402px
>>159535112
>>
>>159535143
Template programming is cool. There are some nice linear algrebra/matrix libraries out there that use templates to delay calculations until they're actually needed/optimize certain sets of calculations done in bulk.
>>
>>159535533
wew, now I understand why php-chan was tripping over herself on that picture.
>>
>>159535859
original picture is php-chan
that's baka javascript-san
>>
>>159535526
You have no choice but to use JS. PHP is self inflicted cancer.
>>
>>159510246
tfw had to write a pipelined mips processor in SV, write it to a FPGA, AND make a 2D game that runs on it in 3 weeks
it was due a few days before the final too
fuck that class
>>
>>159535533
>var x * 3;
What?
>>
>>159536758
Reading the other comments, apparently * is the same as =
>>
File: youFuckinSerious.jpg (9KB, 250x256px) Image search: [Google]
youFuckinSerious.jpg
9KB, 250x256px
>>159501008
>using auto
>>
File: var-x-3.png (3KB, 409x44px) Image search: [Google]
var-x-3.png
3KB, 409x44px
>>159536844
I what language?
>>
>>159537033
>I
*In
>>
>>159501008
This is fucking horrible.
>you have 2 simple debuffs that increase all dmg taken by 20%, 1000hp and take 100 dmg
>first debuff one increases dmg to 120%, then you take that damage (120dmg, 880hp)
>then debuff 2 increases THAT damage by 20% and applies it AGAIN (144dmg, 736hp)
So instead of taking 100*(120%^2) = 144 dmg you take 264 dmg. For every debuff base dmg is applied with previous debuffs, so if you have ten debuffs that do absolutely nothing (don't change dmg) 100dmg will kill a 100hp guy
Also
>calling it a destructible actor instead of damageable and making it an interface
>especially when it's c++ so destroy is defined in the language
>>
>>159537165
There aren't any interfaces in C++. This ain't Java/C#.
>>
>>159537412
>virtual type name(args) = 0;
Done
>>
>>159536895
It's quite useful. Sometimes it's good to explicitly state the variable type but often it's not necessary.
>>
>>159536895
>I never worked with iterators
>>
>>159533814
>programmers with creative backgrounds
>they can think outside the box
a creative background won't help you with that
arts has almost just as much ''borrowing'' as CS
>>
File: imperial units.jpg (61KB, 640x480px) Image search: [Google]
imperial units.jpg
61KB, 640x480px
>>159501164
Same reason most of the world uses the metric system.

>Tfw you laugh at American engineers having to convert all their shitty units to the international systems to get any work done
>>
>>159539721
>Convert
As if they don't just directly use metric for them. There's no conversion involved because they neither start nor end in imperial units.
>>
>>159539721
The US is technically on the metric system as well (all the units are defined based on metric quantities) but fuck getting any American engineers who aren't in science-based fields to change.
>>
>>159539721
>pic
That all breaks down if you're working with literally anything besides water, though.

Hell, the freezing and boiling part breaks down even with water, if you're not at exactly 1 ATM of pressure.

Metric is just as arbitrary as imperial, the only difference is that there's only one possible unit (with prefixes to move the decimal point) for each measure.
>>
>>159539721
we don't use imperial units in burger universities
it's literally measurements for brainlets
>>
>>159539831
You say it as if you didn't depend on 3rd parties to give you measurements most often.
>>
>>159539922
> Assume STP
> Assume no friction
> Assume a vacuum
> Assume a spherical body/point mass/etc.
Why does the real world have to make physics so complicated?
>>
>>159524867
Fucking this.
That's why are software has so many bugs.
Fucking legacy code.
>>
>>159524867
>>159540416
I've heard good things about TDD but have never had much of a chance to apply it.
>>
>>159540416
What's real fun is when your legacy code is so old that not only does it not have unit tests, but it isn't even conceptually possible to unit test it.
>>
>be me, human bean
>likes chinese cartoons
>like drawing, but have to put the white flag because I suck too much
>try programming
>shit's kinda easy, don't feel like sudoku myself because incompetence
>goodby dreams of being artist though
>a-at least I'll get a job for sure !

Gotta end battle programmer shirase sometime.
>>
>>159535112
>"php" == 0 equals true
I cannot believe this
Thread posts: 506
Thread images: 69


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