Programming, computers, etc. [Serious]

All things asdf (and anything else)

Re: Programming, computers, etc. [Serious]

Postby atomtengeralattjaro » Wed Mar 07, 2018 5:36 pm

I haven't looked into it that much, so I don't know. Apparently there is some movement+collision related stuff that is in a parent class, so that's something.
They do admit to a couple of things that could be changed but wasn't, in the comments.
I just feel like what they say under "One big file vs. A bunch of files" wouldn't convince me. They were afraid it "would turn into a giant messy web of references between classes", so they chose one giant messy class instead. They say it would be harder to parse the order of operations if it were in multiple files, but doesn't have to be true if you give things good descriptive names.
But it's totally fine if they don't get lost in it... I just like to criticize.

(But I mean come on, they even put two structs at the bottom, those at the very least could've been in different files. Also I'm not sure it has to be a struct, but that's another story. Kinda hard to figure out what it's for, and I don't want to get into the rabbit hole all the way.)
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun

Image
User avatar
atomtengeralattjaro
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 34373
Joined: Wed May 23, 2007 11:43 am
Location: green

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Thu Mar 08, 2018 6:28 am

Ooh, didn't see that comment file, I'll check it out. Yeah, I saw a lot comments saying the same thing, that you would have to open several different files and see what each method really does. I agree with you on this, properly naming and commenting the code would eliminate that issue. Especially in Visual Studio where you can just hover a method and see the comment that explains it.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby atomtengeralattjaro » Fri Mar 09, 2018 4:50 pm

Just realized that in C# it's legal to type as many exclamination marks as you want, in front of a boolean value (to negate it).
example:
Code: Select all
bool something = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!true;

If I said I definitely didn't think this feature wasn't useful, that wouldn't be a non-lie.
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun

Image
User avatar
atomtengeralattjaro
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 34373
Joined: Wed May 23, 2007 11:43 am
Location: green

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Sat Mar 10, 2018 6:51 am

That's... Something. Does other languages not allow it?

EDIT: Ok, checked with python and it allows seemingly infinite 'not' before a bool.

EDIT2: Java allows for the same. I also realised how long it was since I've actually done Java as I couldn't write a simple program to print a bool without a thousand errors.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby Anonymously Famous » Mon Mar 12, 2018 4:25 pm

It's a unary boolean negation (apparently officially called the "logical compliment operator" in Java). It just takes whatever's farthest to the right and negates it, and the result of that becomes the operand for the next one, etc. I'm pretty sure all languages with boolean negation will allow you to stack them like that. The same applies to the unary + and -. You could have ----1 as an assignment:
Code: Select all
//Your code will vary based on language
x = ----1;


Shai'tan wrote:EDIT: Ok, checked with python and it allows seemingly infinite 'not' before a bool.

You can do it before other types, too! lists, strings, sets, etc. that have a length of 0 evaluate to False, as do 0 and 0.0. And pretty much everything else evaluates to True. So the result will always be a boolean, but the far right value can be anything, even a function name.
Last edited by Anonymously Famous on Mon Mar 12, 2018 7:04 pm, edited 1 time in total.
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.

Proud poster of the 300kth post in General
User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
 
Posts: 11233
Joined: Thu Mar 03, 2011 2:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Mon Mar 12, 2018 6:20 pm

That's interesting, though it makes sense based on how python is weakly typed.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby assdef » Wed Mar 14, 2018 8:23 am

If there’s a boolean, why is there no yayfat?
Image
User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
 
Posts: 6741
Joined: Sat Jan 02, 2010 5:30 pm

Re: Programming, computers, etc. [Serious]

Postby atomtengeralattjaro » Wed Mar 14, 2018 9:58 am

:)
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun

Image
User avatar
atomtengeralattjaro
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 34373
Joined: Wed May 23, 2007 11:43 am
Location: green

Re: Programming, computers, etc. [Serious]

Postby Anonymously Famous » Wed Mar 14, 2018 3:11 pm

We can include that as a type in the asdf programming language.
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.

Proud poster of the 300kth post in General
User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
 
Posts: 11233
Joined: Thu Mar 03, 2011 2:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Wed Mar 14, 2018 3:47 pm

Now that would be an interesting challenge, designing a programming language.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby Anonymously Famous » Wed Mar 14, 2018 6:16 pm

I don't think I have quite enough know-how to do it, but it would be fun.
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.

Proud poster of the 300kth post in General
User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
 
Posts: 11233
Joined: Thu Mar 03, 2011 2:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Wed Mar 14, 2018 6:35 pm

Me neither. I have some know-how, I did a course where we developed an interpreter for a small C language in Java, but it's been a while.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby vraiment » Sun Mar 25, 2018 6:40 pm

Shai'tan wrote:Haven't worked with Java 8, we used 7, but 8 added some cool things like lambda expressions (which really should have been added way before). But yeah, that's the thing with most projects I feel, you need to read it to understand the different parts and how it all works, which isn't so dependant on what language (unless it's like OOP vs functional) is used and more on the architecture of the project and how well documented it is.


You mean semi-usable lambda expressions? Let us consider:

Code: Select all
interface MyClass {
    public String convertValue(final java.util.function.Function<Value, String> converter);
}

class Main {
    static String converterFunction(final Value value) throws Exception { ... }

    public static void main(final String[] args) {
        // ...
        final String result = myClass.convertValue(Main::converterFunction); // Won't compile because converter function throws
    }
}


That's a pretty big messed up thing if you ask me

Shai'tan wrote:And on that note, did anyone see that the developers of Celeste released their player class?


DA FUDGE IS THAT?
Image
User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
 
Posts: 8782
Joined: Sat Oct 04, 2008 10:35 pm

Re: Programming, computers, etc. [Serious]

Postby Shai'tan » Mon Mar 26, 2018 5:54 am

As I said I haven't used them so I haven't tested them. It's a shame if they only are semi-usable. C# does this correctly and easily, iirc Scheme also does it pretty well.

vraiment wrote:
Shai'tan wrote:And on that note, did anyone see that the developers of Celeste released their player class?


DA FUDGE IS THAT?


One massive player class.
Quote of the Ages:

Image
User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 25825
Joined: Fri Sep 14, 2007 8:14 am
Location: Seven

Re: Programming, computers, etc. [Serious]

Postby atomtengeralattjaro » Mon Mar 26, 2018 11:07 am

vraiment wrote:// Won't compile because converter function throws

just like I throw my hands in the air whenever I think about why anyone would want to use java.
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun

Image
User avatar
atomtengeralattjaro
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 34373
Joined: Wed May 23, 2007 11:43 am
Location: green

Re: Programming, computers, etc. [Serious]

Postby vraiment » Mon Mar 26, 2018 12:14 pm

What if I told you I hate Java but had to program with it the last 5 years of my life?
Image
User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
 
Posts: 8782
Joined: Sat Oct 04, 2008 10:35 pm

Re: Programming, computers, etc. [Serious]

Postby Froggychum » Mon Mar 26, 2018 3:05 pm

I would pity you
I am the Meme King!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Image
image by Ivokyuftaf6666
User avatar
Froggychum
ASDF Prophet
ASDF Prophet
 
Posts: 3705
Joined: Thu Apr 13, 2017 4:30 pm
Location: Ontario, Canada

Re: Programming, computers, etc. [Serious]

Postby vraiment » Tue Mar 27, 2018 2:34 am

Froggychum wrote:I would pity you

I DON'T NEED YOUR PITY, BECAUSE I LEARNED THAT KOTLIN EXISTS!
Image
User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
 
Posts: 8782
Joined: Sat Oct 04, 2008 10:35 pm

Re: Programming, computers, etc. [Serious]

Postby atomtengeralattjaro » Tue Mar 27, 2018 7:30 am

OK, get this: Windows 10, open task manager, put it in fullscreen, go to performance tab, double click the graph (to turn it into compact graph mode), grab it and move it around the screen, then double click it again to bring back the "full screen" window: now it's fullscreen but isn't. Meaning you can't move it around by grabbing its top, and its fullscreen button might be outside of the screen now...
They must've done so much QA on this.
Ivokyuftaf6666 wrote:Awesome Site, Delivering Fun

Image
User avatar
atomtengeralattjaro
ASDF's Best Friend
ASDF's Best Friend
 
Posts: 34373
Joined: Wed May 23, 2007 11:43 am
Location: green

Re: Programming, computers, etc. [Serious]

Postby Froggychum » Tue Mar 27, 2018 3:10 pm

total failsauce brosauce! do ya catchmesauce and agreesauce with my sauce, saucebuddy?
I am the Meme King!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Image
image by Ivokyuftaf6666
User avatar
Froggychum
ASDF Prophet
ASDF Prophet
 
Posts: 3705
Joined: Thu Apr 13, 2017 4:30 pm
Location: Ontario, Canada

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 26 guests