« first day (1780 days earlier)      last day (3171 days later) » 

11:01 PM
So I've been playing KSP Realism Overhaul. It's like a brand new game.
 
user3233318
11:14 PM
 
@user148098 why not make a class and apply that?
anyway if I had to pick the method (didn't really stare at the code) ofc the 2nd way is better.
 
user3233318
@Loktar How can I use a class here?
 
in your (or a) stylesheet, and just apply that.
 
user3233318
@Loktar I think the second way looks better too, but my professor told me that fewer lines of code is better.
 
lol
 
user3233318
11:20 PM
@Loktar Is he wrong?
 
yes
 
user3233318
@Loktar Why?
 
look 2 lines of code :p
 
user3233318
@Loktar He actually took of 0.1 point from my exam because of that.
 
thats pretty stupid
he is a bad professor.
regardless I would just make a class declaration in my stylesheet for something like that
and apply it via a classList
since I hate having to jump between multiple files to figure out what is styled where and how.
 
user3233318
11:24 PM
I know right? Well, I don't think I can convince him otherwise. So I think I will just going to have to accept that -0.1
 
I need to get off of Ebay I just bought another Commodore 64 :/
 
NERD!
 
user3233318
I don't know about classList, isn't the class of the tag named className?
 
oh well will be my first C model I guess..
man Ill own like 7 now! :P
@user148098 yeah but classlist will add/remove properly without you having to do string manipulation
you can also toggle, ect.
!!mdn classlist
 
11:26 PM
lmao
 
user3233318
Thanks for the tip.
 
that was awesome timing
 
haha yea
@user148098 np
 
user3233318
He also takes points away if you don't comment the code, is that also a bad idea?
 
eh idk depends on what you're commenting on. I'm bad with commenting personally.
I try to comment stuff that I would forget why I did it that way 6 months down the road.
 
user3233318
11:32 PM
He says that every function should have a comment stating what is the value of the variables before you call the function and what happens after you call the function. I think that is silly, it takes too much time to write that and I don't see the point.
 

« first day (1780 days earlier)      last day (3171 days later) »