« first day (1877 days earlier)      last day (3440 days later) » 
01:00 - 12:0012:00 - 23:00

Pip
Pip
01:49
@Jon @MickLH Opinions on this build? pcpartpicker.com/p/BwqMWZ
I know it's AMD, I don't want AMD/Intel crap :P
@Hjorthenify awesome
@TheMuffinCoder it's 5% over some amount, if I remember correctly
@Joe how was Unite?
02:40
Hello Everyone,

Does any know where I can get a programmer's (Game Dev'er) analysis of FIFA 16, to be specific, or soccer games generically.
Such things like, algorithms, what has changed over the years, etc.

Any source will greatly appreciated.
Thanks
Previous editions maybe!?
03:44
@Jon lol. btw, I think I know the problem. The screen res in editor is smaller than my remote device, so it get blurred in unity remote
04:12
0
Q: What is the difference between assets and resources?

AracthorI just asked a question about resources management, but on the tagging part, I got stuck on a point: should I tag it assets or resources? The tags description are the follwing: Assets Game resources separate from the software (code) and hardware (platform). The most common assets are grap...

 
3 hours later…
07:08
40
Q: Does Java have something like C#'s ref and out keywords?

devoured elysiumSomething like the following: ref example: void changeString(ref String str) { str = "def"; } void main() { String abc = "abc"; changeString(ref abc); System.out.println(abc); //prints "def" } out example: void setString(out String str) { str = "def"; } void main() { ...

With every day that passes.. I learn to hate Java more and more..
how long is each class?
4 hour
Right now we're taught about classes..
Methods and constructors, also my teacher keeps messing up his methods :P
so a 2-Hour Hate session, sounds lovely D;
4 hours*
Sorry
:P
Even better :|
07:18
Yeah well.. 2 hours lecture, 2 hours of assignment and we are allowed to leave the last 2.
Which I usually do unless my friends need guidance :P
friends don't let friends learn Java
Yeah.. We don't really have a choice, sadly. I'm sure they are trying to make us get used to even the worst workspace by forcing us to use Java and Eclipse...
lol
I mean.. If it was IntelliJ it would have been slightly better, but no -.-
Also this is the difficulty we're at currently: pastebin.com/kQYsAGtH
"opgave" translates into "task"
I love how the method names are in English
but that just goes with the rest of the language I suppose
07:26
Its just my preferred language to program in. :)
We also have some letters in Danish which might not be supported by all compilers.
cool
morning
Also I know from personal experience that writing programs in your own language is a bad idea. If I look up a code snippet, then I'll have to translate every variable into danish if I want to keep it that way. Also code gets fugly when mixed between two languages. It also reduces be a great problem if I have to share it with non-nordic people :P
@user2979253 Morning
07:50
Introductory Programming:
Teaching bad coding since the break of dawn
08:15
lol
I'm self-taught for the most part so I'm probably full of bad habits
that sounds familiar
I work on the basis that everything i do is wrong becuase someone probably knows better
user92578
Hi!
user92578
Geography exam was kinda easy, and now I have a three-day weekend!
09:18
Now applied for a job as game programmer :D
Nice, good luck
user92578
So I kinda decided to refactor my UI system yesterday
user92578
I will need a system that lets only one widget be focused at once
user92578
And then I need a better depth system
user92578
I might be able to somehow fit those into the existing codebase
09:25
Ty :)
Jon
Jon
10:00
you must hate yourself
user92578
Do you guys use mechanical keyboards?
Jon
Jon
nope, just a shitty old matrix with jamming keys
this is so painful to watch
user92578
yeah
I don't think mine's mechanical. Logitech K310 amazon.com/Logitech-Washable-Keyboard-K310-Windows/dp/…
Jon
Jon
nope that ain't mechanical
if it is 30 years old it is mechanical
if it is overly expensive, and not 30 years old it is mechanical
user92578
10:12
:D
right
I never understood the craze
but then I don't think I've tried one
Jon
Jon
it is because if you press multiple keys at the same time on a matrix type keyboard, some keys will not register
with a mechanical keyboard, each key has its own signal
for ultimate gamers
a notable game, is Frets on Fire -- requires you to press F1 to F5 sometimes multiple keys together
ah k. Looks like 8 keys at once, only 6 get registered
Jon
Jon
some of the F1 to F5 combinatinos lock up
hmm
sounds a bit shit lol
Jon
Jon
10:14
its just a cheaper keyboard manufacturing process
literally just a membrane with copper laid inside of it
Jon
Jon
the copper is designed to transmit an array of data, and decypher -- there is actually a chip inside of your keyboard
decyphers the matrix value to a keypress/presses
user92578
Ah, listening metal core from my new headset and drinking coffee and programming and a three day weekend ahead... life is good for tyyppi
3
Jon
Jon
large SSD drives need to go down in price faster.. ugh
user92578
I have an SSD just for Windows (and a couple of programs I guess) and then a regular HDD for other stuff and it's working just fine for me
10:20
@Jon uhm no? That has nothing to do with it
You can still make a matrix with mechanical switches
Jon
Jon
Wut really?
I'm rarely wrong about stuff
Yeah, that's just how the pins are wired up
See the setup? That's a matrix
Jon
Jon
so the individual switches are hooked up to a matrix as well
user92578
Okay focus system seems to kinda work
user92578
Now I need depth stuff
10:24
@Jon yup, it's either that or a microcontroller with an input for each switch and a shitton of wiring more
Heck, from the picture it looks like the guy gutted a regular keyboard and put mechanical switches in it
Jon
Jon
i think that is exactly what he did
Of course, just because you have a matrix doesn't mean you can't sense any key combination, you just need a bunch of diodes for it
user92578
user92578
:DDDDDDDD
Hahaha nice
Oh @Jon, this is a neat description of how key matrices work (linked from the earlier forum) pcbheaven.com/wikipages/How_Key_Matrices_Works
Jon
Jon
10:29
Yeah, i remember looking at that when I was building a Mame cabinet :)
oh man, nsfw.. it gets pretty ridiculous at the end there
user92578
i like the outro at the end
user92578
:D
forced interruptions suck
Jon
Jon
i agree
windows 10 solves this by scheduling reboots when you are most likely sleeping
because it knows when you sleep
yeah but what if you have unsaved things open, or something specific, you know?
and it's like yeah it's cool we'll just restart
Jon
Jon
10:43
windows 10 doesn't care about your work, it only cares about your likes and dislikes
absolutely dumb
user92578
what's wrong with updating when the user actually closes the computer
see, that's fine, I don't mind that
Jon
Jon
some people don't close their computer ever
test
test again
10:43
but automatic stuff that you don't want to have happen, and have zero choice in saying "no don't do that", that makes for a horrible user experience
@Tyyppi_77 what if you just want to reboot quickly because windows is being windows again?
(did try to change nick)
servers that need to be run 24/7, and are perfectly capable of running 24/7
and along comes this stupid update
user92578
It may take a while to update here
hahahaha I'm gonna restart and interrupt your flow, sucker!
user92578
10:44
At least that what happens when changing the image
now maybe
user92578
See now you're a bird
People have to refresh the page mr @walkingBird
Jon
Jon
@Chris used to work at a server farm
10:44
had to come up with something, can't use default name forever :)
Jon
Jon
if they auto shutdown EVER, it would be a massive issue
I see walkinBird :D
@Jon exactly
Jon
Jon
Every single patch had to be done after taking a image of the server
at that level you are not to take chances.
this is why I think Microsoft, or at least their Windows division, is just shooting themselves in the foot
yeah definitely
Jon
Jon
Windows Server software doesn't auto force reboots
10:45
but home users? ha ha!
we know what's best
Jon
Jon
Home users that don't have Enterprise version
with Enterprise you can "Defer updates"
which still pull them
but you don't have to force them to install like the other versions
I hate my teacher. If he asks the class how to do X and one of the more experienced students comes up with a semi-advanced answer he ignores them and goes to the next student even though the first student was right.
Way to stomp on the smart guys and teach the new guys bad ways of doing stuff.
@Hjorthenify :(
Jon
Jon
Teacher doesn't want to be challeneged by the smart student
makes him look like his credentials are bad
That too
Jon
Jon
10:47
happened to me in college
lol
We had to make a method in a vector class
user92578
Scrolling scrollbars in a scroll panel with the scrollwheel now works using scroll events!
Jon
Jon
needs more scroll
I said:
Vector2 add(Vector2 v)
{
return new Vector2(v.x+x, v.y+y);
}
Well. Basically I said "just return a new vector where you pass x and y of the two vectors added together to the constructor"
Stared at me, went to the next student without a word.
10:49
...
Jon
Jon
lol
user92578
lol
And he does this regularly for other students as well.
user92578
what was the correct answer then?
That's sucky
(the teacher)
Jon
Jon
10:49
probably v1+v2
user92578
oh and from my codebase:
user92578
TVector2 TVector2::operator+(const TVector2& other) const
{
	return TVector2((float)this->X + (float)other.X, (float)this->Y + (float)other.Y);
}
user92578
Not my best paste progress I gotta say :D
Vector2 add(Vector2 v)
{
Vector2 V2;
V2 = new Vector2()
int newX = x+v.x;
int newY = y+v.y;
V2.x = newX;
V2.y = newY;
return V2;
}
Somewhat that
user92578
Why the fuck do I do float casting
Jon
Jon
10:50
first year student code is what he wants man
Actually
Jon
Jon
you gotta dumb yourself down
also, why not just use vector math that is built in?
that function is pointless
There fixed the code
user92578
LOL
I mean.. Turning a 1-liner into a, well..
10:52
@Tyyppi_77 yeah that's what I was gonna ask =p
Why not just teach people the proper way of doing stuff to begin with?
So what if they don't get it. We have a teacher's assistant for two hours after the lecture. Ask him if you're in doubt ffs -.-
it's kinda weird yeah
like if you went through a tutorial book or site, and it was like, "Here, do it this way."
and then the next page it said "You did it wrong! That's the bad way!" It'd be like, wtf
Jon
Jon
need to be longer man
Vector2 add(Vector2 v)
{

Vector2 V2;
int oldX;
int oldY;
int newX;
int newY

V2 = new Vector2()
newX = 0;
newY = 0;
oldX = this.x;
oldY = this.y;

newX = this.x + v.x;      //Add to the vector x value
newY = this.y + v.y;	  //Add to the vector y value

V2.x = newX;
V2.y = newY;

return V2;

}
Hahaha
lol
Jon
Jon
10:54
There, this does the same thing as your one liner -- and it WAYYY more clear
Add lots of comments
Jon
Jon
i was going to, but then I was like.. meh this is going to far
And debug outputs too for each step, just to be sure
People in my ImpProg class are still pretty confused by C pointers and arrays
user92578
To be honest I'm the // Adds one to "i" until it's 10. commenter
Jon
Jon
10:55
Debug.WriteLine("My teacher is better than me.");
haha
user92578
But I also have useful comments
And to be honest, the arrays are a bit weird
:s
@Jon "You forgot to initialize your ints to zero at the first 4 lines"
user92578
10:55
@Lokkij Totally
Jon
Jon
//Function to write to the log file
void WriteToLogFile(String string){ }
I hate comments like this
user92578
/*
Renders the panel.
*/
void CGuiPanelScrollable::Render(CRenderer* renderer)
{
	CGuiPanel::Render(renderer);
}
@Lokkij We're in Java.. Nothing like that. They haven't even taught us about arrays yet.
user92578
Stuff like that everywhere! But I just like to keep things consistent, so every function and class has to be commented
I tend to comment within methods where it feels like I'd get super confused if I tried to read and understand later on. But method names should always be self-expanatory as it is
Jon
Jon
10:56
JAVA THE HUTT
@Jon If there are in <summary> in C# I guess they are alright :P
Jon
Jon
yeah.. i guess...
I need to look at that summary stuff
Jon
Jon
i comment when something needs to be explained
It would probably be useful
Exactly
10:57
@Chris do ///
Jon
Jon
if you can read the code and understand it quickly, then I don't comment
Before a method in VS :)
And you'll see the magic
Lemme try
@Hjorthenify Our course is progressing pretty damn quickly.. people mostly know how to use things like pointers and functions, but they have no idea why and when to use them.
Jon
Jon
yeah, lol, its the built in intellisense stuff
10:57
Most of them have only been programming for three or four weeks though, so it's understandable.
@Jon I comment the shit out of my school programs even if they are easily understood, because it happens often that I need to explain it to a classmate and then I can just send them the code :P
I dunno, 3 years of SublimeText, I'm so used to having everything barebones in terms of helping myself
Jon
Jon
next thing you know, you are doing 5th dimensional math, and your teacher will assure you that it is important to learn
@Lokkij I wish ours was a swell
@Hjorthenify Nice, thank you
10:58
:)
user92578
Hey guys, in a list view, how do you like your scrolling? One item at a time? one pixel?
Jon
Jon
@Hjorthenify when i was in university, they wanted us to have more comments than code
this was a long time ago
They kiiinda still want us to do that
Jon
Jon
but every line of our code had to have a comment to demonstrate that we knew wtf we were doing
Yeah its the same here still
user92578
10:59
okay DEFINITELY not one pixel
Jon
Jon
its not about proper commenting, it is just a way for your teacher to see what you are doing
user92578
"hold on I gotta get to the bottom item, I'll be back in an hour"
@Tyyppi_77 As long as the movement is easy to understand. Too many items with too many pixels, you'd want it fast.... Scrolling one item per scroll though, the transition of the movement wouldn't exist right? So ends up feeling too abrupt imo
Smooth scrolling vs harsh scrolling
@Tyyppi_77 1/3rd of an element at a time
@Jon I get that, but they still write comments such as "This was not the way we had in mind it should be solved"
plus some people's scroll sensitivity might be super high or something
Jon
Jon
11:01
well, seems to me you may or may not be smarter at coding than your teacher
having a mentor that sucks, really sucks
Hell my teacher wanted to speak with me after the first two assignments because he didn't believe I knew what I was doing.
haha
Jon
Jon
LOL, same thing happened to me, I was accused of cheating
user92578
lol
11:01
"you hackin the system, son?"
Jon
Jon
some random muslim submitted a very similar chunk of code as me
Well.. I can easily say that all of us in here are better than my lecturer.
3
user92578
I have a high school programming class in Java coming up
Jon
Jon
I was like, I can't even pronounce his damn name, I have nothing to do with him
@Jon Yeah. I had to get up and explain about regex expressions last.
Jon
Jon
11:01
other students vouched for me
user92578
I wish I'll get an understanding teacher that I can say that "I've been programming in C++ for a while now, can I go?"
Jon
Jon
I think this guy might have stolen my assignment
@Tyyppi_77 They do torture in Finland, too?
user92578
lol aparently
Jon
Jon
not sure how though, but I might of left it open or something
user92578
11:02
I just skipped the introductory class
@Hjorthenify That doesn't sound very fun.
user92578
and decided that if I want to get a cool summer job or something having a programming course completed wouldn't hurt
Jon
Jon
I was offered a job at the community college to teach
user92578
But I expect it to be "make a class Person and make it have a name member"
I can safely say that my lecturer is probably better than most people in here. (depends on the area of course; he's probably crap at gamedev)
11:03
@Tyyppi_77 Its more like: "This is an integer" for the first 2 weeks
user92578
yeah but see I skipped the first course
Jon
Jon
I never had really good programming teachers
user92578
and went straight to the second
Jon
Jon
they all lacked skills
user92578
the school offers two courses
Jon
Jon
11:04
old out of touch fools
I imagine a lot of the teachers out there are the same
user92578
my dad is a programmer so I can get some guidance from him if I need some
@Tyyppi_77 Damn you. I couldn't skip this one.
Jon
Jon
those who can't do -- teach
I had one teacher that wrote his own JavaScript IDE, he was pretty onto things, though his pre-test examples were always exactly the same as his proper tests, so studying was super easy hahaha
More like the 15th time telling people that Dim is not a thing in C#.
Jon
Jon
11:04
ByVal!!!
Fuck that keyword.
For real.
Jon
Jon
lol, VB has some questionable syntax
VB is supposed to be "readable"
user92578
@Hjorthenify I'm not sure if I'm actually allowed to do that, but I was just like "fuck it, I'm sure I can program way over the topics of the second course"
Jon
Jon
you can also ReDim
11:06
lol
@Tyyppi_77 I asked and they said straight up no
AndAlso
Jon
Jon
AndAlso is actually important
user92578
@Hjorthenify The key is not to ask :DDDDD
Narrowing
Shadows
11:06
@Tyyppi_77 Well.. I can't really just not show up for class
user92578
yeah I guess it's different for you
GoTo shudder
Jon
Jon
:D
@Blue We we're talking about loops today.
Jon
Jon
the original implementation of vb.net didn't have andAlso
in .net 1.0
11:08
I said we had forgotten goto after the teacher refused that foreach can be classified as a loop variant
Jon
Jon
it would check every single statement on your line -- so you had to split it up into different logical statements
Have any of you done any UML diagrams?
Gotta love loops.
Jon
Jon
UML diagrams are not for me.
11:32
public double withdraw (double amount, double fee)
   {
      amount += fee;

      if (amount < 0)  // withdraw value is negative
      {
         System.out.println ();
         System.out.println ("Error: Withdraw amount is invalid.");
         System.out.println ("Account: " + acctNumber);
         System.out.println ("Requested: " + fmt.format(amount));
      }
      else
         if (amount > balance)  // withdraw value exceeds balance
         {
            System.out.println ();
            System.out.println ("Error: Insufficient funds.");
Another example of bade code we're given...
UML diagrams are helpful, if you roughly know what to you want to do
Beat up numbers?
It's like semi-RNG combat
.. don't mention RNG combat :P I've had bad experience with it lately..
11:36
D:
I gave hearthstone a try. It was interesting at first, but then RNG happened
yeah that game's RNG hacks me off
Yeah. Knowing you have that one card in your deck which will give you the victory and not getting it while the other player seems to get everything he needs.
lol
and then all these new cards come out and I just can't be bothered
crafting decks
@Tyyppi_77 You mean to tell me that Finns don't just drink VODKA?! D:
user92578
11:38
DUDE IM 17
EXACTLY
hurry up and level up man
user92578
lol
Last Finn I spoke to in person told me that coffee is for 65+ :P
hahaha
user92578
11:38
coffee is awesome
user92578
and dont listen to lasse :D
user92578
on in person
It wasn't @Lasse :P
user92578
oh well funny joke anyways
user92578
fez soundtrack sounds really I good
user92578
11:39
I think I want something similar to that in GH
Yup. She came from Helsinki. Maybe that's why.
user92578
I think I'll just use GH for GunHero from now on
user92578
I live in Vantaa, the city next to Helsinki
(same person who taught me "ihana" and some other Finish words)
Oh cool
user92578
11:41
Those are all cities or districts?
user92578
cities
user92578
well, depends on how you define cities I guess
How sø?
user92578
Well some of the places are quite small
user92578
I mean there are five EU-classified cities in Finland
11:43
Explain?
user92578
EU-classified cities need to have certain number of people living at a certain density
user92578
I think it's something like 500people/km^2
user92578
And only five Finnish districts (idk if that's the correct word) fill that requirement
Oh wow.
user92578
Finland does not have a lot of people
user92578
11:45
Like immediately outside of Vantaa people start to live a bit further away from each other
user92578
Sure there are some dense cities norther
I never thought og Finland ikke that :P
user92578
the whole finland: 18 people in a square kilometer
user92578
I mean the whole country is filled with lakes and forests
user92578
11:50
> Great game and soundtrack. But Phil is a cunt
user92578
From YT comment section for the FEZ soundtrack :D
Haha xD
user92578
Free Lives not having the time of their life with their Internet Provider:
user92578
user92578
And it's not even all there, bee going on for a couple of weeks now :D
user92578
11:57
01:00 - 12:0012:00 - 23:00

« first day (1877 days earlier)      last day (3440 days later) »