« first day (2275 days earlier)      last day (2567 days later) » 

11:01 PM
@Downgoat multiple inheritance is bad? Like A --> B --> C ?
 
@DJMcMayhem multiple inheritance is like: A extends B and C
 
Anonymous
Multiple inheritance can cause some headaches (e.g. diamond problem), but there are solutions to them
 
Java has interfaces with default methods now, which is basically multiple inheritence.
 
@Pavel interface with default method = abstract class ._.
 
Yes
They're basically the same thing now.
Except you can only extend one abstract class
 
11:07 PM
@Downgoat Kinda like that but without the cast. You don't want it to actually be an Object.
 
@Pavel is Java supposed to be backwards compatible?
 
And no ability to cast it to one or the other.
It just is one or the other, decided at runtime when used.
 
@Downgoat Java is backwards compatible with code written for 1.4
 
@Geobits but if it's an Object, then you for sure don't know what type it is?
 
But you could cast it.
 
11:08 PM
exactly
 
Or instanceof. That's cheating
It should be both and neither until used
 
CS Teacher: You cannot use ternary because AP test don't allow.
AP Test: You can use any feature of Java as long as you use correctly.
 
It's not that the AP test doesn't allow
 
I should probably try petitioning school to see if we can get another CS teacher
 
It's just that the person grading your test has no idea what the ternary operator is
 
11:10 PM
weren't you doing ap cs back in 2015 how long is your semester
 
@Pavel AFAIK they put into computer and see if it work
@quartata no, I started in like September 2016
 
0
A: Sandbox for Proposed Challenges

flawrOutput THE magic hexagon code-golfkolmogorov-complexity There are many magic squares, but there is just one non-trivial magic hexagon, as Dr. James Grime explained. 18 17 3 11 1 7 19 9 6 5 2 16 14 8 4 12 15 13 10 As it is done in Hexagony this is easiest written as just one line...

 
@Downgoat No, someone untrained in CS looks over the paper copy.
They aren't going to start executing arbitrary code written by students.
 
¯\_(ツ)_/¯ AFAIK I can get a C and still get a 5/5 on the test
@Pavel haha, I'm surprised they're that smart
CS teacher randomly runs our code, lemme see if I can get access to gradebook
 
$ cat gradeobok
cat: gradeobok: No such file or directory
 
@Downgoat Correct, in order to get a 3 on the APCS test you require 40% of the points.
My teacher used to be on the commitee that writes the AP tests.
 
oh my god how low are their standards
Question: is there program to obfuscate a .jar file?
so it can't be decompiled to anything meaningful
 
> License

Don't use this for evil, please!
 
Evil =/= getting back 4 points because CS teacher don't know what ternary is
 
@Downgoat Code obfuscation is always reversible. If a machine can understand it, so can a human.
 
11:15 PM
@Downgoat No. Best you can do is obfuscating the class names
 
I tried to do as much of the AP practice test as possible with Java 8 streams/lambdas
 
Feb 14 at 20:05, by Downgoat
user image
 
I got a 4
 
@Pavel haha that's awesome
oh that reminds me: CMC: shortest bounded Java Bogosort
 
I legitmately don't see anything wrong with that. AP graders grade tons and tons of tests: they can't be bothered to read code that closely
 
11:17 PM
They don't higher AP graders who know the subject.
That would cost more.
 
They'll skim it and if your stuff looks like Haskell you won't get points. Pretty simple.
 
@Pavel do you know what you got on MC vs FR?
 
I don't remember, I just remember completely tanking FR.
I think 90~ on MC?
I was completely out of it by the end tbh
Tests are boring
 
huh
I suck on multiple choice because I don't bother to handtrance int mystery(int x)
 
On any AP free response (or really any test) you should make it as easy as possible for the grader to be able to just skim and give full points.
 
11:20 PM
I DONT CARE WHAT MYSTERY DOES AND IF I SEE A FUNCTION LIKE THAT IN WORK ENVIRONMENT I'M QUITTING
 
This was the Practice Test, we just graded our own papers.
Apparantly part of the checklist for getting points includes the way your code is written, not just if it works or not.
@Downgoat public class MysteryG extends MysteryD implements MysteryF,MysteryB
 
@Downgoat You should find a different career then :P
Cause it's gonna happen.
 
Oftentimes, more functions are mysteries than not.
 
@Geobits pls share what part of code base has function like:
int mystery(x) {
    int y = 0;
    int z = 1;
    while(z < x) {
        if ((x - z) % 2 == 0) y += z;
        else y -= z;
        z += x - y;
	}
    return y;
}
and please solve for input 6 by hand
 
I'm telling you, if you don't want to see ugly mystery code, you really should do something else. It's everywhere.
 
11:28 PM
yeah but solving by hand is unreasonable
mystery code is not problem everyone sees it
but random arbitrary code to solve by hand is just AP test makers running out of ideas
 
Expecting college test to mimic the real world is silly anyway. I mean, it'd be nice, but not normal.
 
@Downgoat 3/10, indentation isn't screwed up enough.
 
> stacks[index] is what is nil
10/10 quality cheddar code
oh my I still haven't fixed nil comparisons
 
Have you fixed it for Windows yet
 
yes
just do git clone --recursive https://github.com/cheddar-lang/Cheddar.git -b develop
 
11:41 PM
So NPM has the not outdated version?
 
and then npm i -g
@Pavel npm still has outdated version
 
Pls push to NPM
 
pls not so easy
 
Wait, really?
What do you need to do?
 
@Pavel well Cheddar uses C++ now meaning each version of cheddar needs to be build specifically for OS/arch
 
11:43 PM
Ah
 
11:58 PM
@Downgoat how hot is it outside for you?
since you're also in CA
it's 105°F outside atm here
 
About 3° C here
 

« first day (2275 days earlier)      last day (2567 days later) »