Programming, computers, etc. [Serious]

All things asdf (and anything else)
User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Wed Mar 07, 2018 9: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:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Thu Mar 08, 2018 10: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:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Mar 09, 2018 8: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:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Sat Mar 10, 2018 10: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:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Mon Mar 12, 2018 8: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 11:04 pm, edited 1 time in total.
BOTTOM TEXT
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
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Mon Mar 12, 2018 10:20 pm

That's interesting, though it makes sense based on how python is weakly typed.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 7273
Joined: Sat Jan 02, 2010 9:30 pm

Re: Programming, computers, etc. [Serious]

Post by assdef » Wed Mar 14, 2018 12:23 pm

If there’s a boolean, why is there no yayfat?
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Wed Mar 14, 2018 1:58 pm

:)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Wed Mar 14, 2018 7:11 pm

We can include that as a type in the asdf programming language.
BOTTOM TEXT
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
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Wed Mar 14, 2018 7:47 pm

Now that would be an interesting challenge, designing a programming language.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Wed Mar 14, 2018 10:16 pm

I don't think I have quite enough know-how to do it, but it would be fun.
BOTTOM TEXT
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
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Wed Mar 14, 2018 10: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:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9505
Joined: Sun Oct 05, 2008 2:35 am
Pronouns: Well it shouldn't really be that complicated if you go over my post history but then... why are you searching through my post history? Don't you think you are over complicating something as simple as just referring to me? Why are you like this? Is it just out of boredom? Does your religion require it? You could just assume them and skip all this paragraph, don't worry an eldritch horror won't appear out of nowhere to eat you (or me for that matter) if you get this wrong, the worst that can happen is I ignore you and even in that case you can try again! There shouldn't be that many options anyway so if you get it wrong the first time try again and again. Bottom line is: you just lost a bunch of time reading this paragraph for something as trivial as figuring out how to refer to me when you could just have deduced it which should make you think your life choices so far.

Re: Programming, computers, etc. [Serious]

Post by vraiment » Sun Mar 25, 2018 10: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
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Mon Mar 26, 2018 9: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:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Mon Mar 26, 2018 3:07 pm

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:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9505
Joined: Sun Oct 05, 2008 2:35 am
Pronouns: Well it shouldn't really be that complicated if you go over my post history but then... why are you searching through my post history? Don't you think you are over complicating something as simple as just referring to me? Why are you like this? Is it just out of boredom? Does your religion require it? You could just assume them and skip all this paragraph, don't worry an eldritch horror won't appear out of nowhere to eat you (or me for that matter) if you get this wrong, the worst that can happen is I ignore you and even in that case you can try again! There shouldn't be that many options anyway so if you get it wrong the first time try again and again. Bottom line is: you just lost a bunch of time reading this paragraph for something as trivial as figuring out how to refer to me when you could just have deduced it which should make you think your life choices so far.

Re: Programming, computers, etc. [Serious]

Post by vraiment » Mon Mar 26, 2018 4: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
Froggychum
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 8910
Joined: Thu Apr 13, 2017 8:30 pm
Location: Ontario, Canada
Pronouns: he/they/frog

Re: Programming, computers, etc. [Serious]

Post by Froggychum » Mon Mar 26, 2018 7:05 pm

I would pity you
I am a bot and this action was performed automatically. If you have any concerns, please visit: viewtopic.php?f=1&t=21473
My Trophy Shelf
Image

User avatar
vraiment
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 9505
Joined: Sun Oct 05, 2008 2:35 am
Pronouns: Well it shouldn't really be that complicated if you go over my post history but then... why are you searching through my post history? Don't you think you are over complicating something as simple as just referring to me? Why are you like this? Is it just out of boredom? Does your religion require it? You could just assume them and skip all this paragraph, don't worry an eldritch horror won't appear out of nowhere to eat you (or me for that matter) if you get this wrong, the worst that can happen is I ignore you and even in that case you can try again! There shouldn't be that many options anyway so if you get it wrong the first time try again and again. Bottom line is: you just lost a bunch of time reading this paragraph for something as trivial as figuring out how to refer to me when you could just have deduced it which should make you think your life choices so far.

Re: Programming, computers, etc. [Serious]

Post by vraiment » Tue Mar 27, 2018 6:34 am

Froggychum wrote:I would pity you
I DON'T NEED YOUR PITY, BECAUSE I LEARNED THAT KOTLIN EXISTS!
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Tue Mar 27, 2018 11: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:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Froggychum
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 8910
Joined: Thu Apr 13, 2017 8:30 pm
Location: Ontario, Canada
Pronouns: he/they/frog

Re: Programming, computers, etc. [Serious]

Post by Froggychum » Tue Mar 27, 2018 7:10 pm

total failsauce brosauce! do ya catchmesauce and agreesauce with my sauce, saucebuddy?
I am a bot and this action was performed automatically. If you have any concerns, please visit: viewtopic.php?f=1&t=21473
My Trophy Shelf
Image

Post Reply