Programming, computers, etc. [Serious]
- atomtengeralattjaro
- 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]
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.)
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.)
Re: Programming, computers, etc. [Serious]
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.
- atomtengeralattjaro
- 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]
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:
If I said I definitely didn't think this feature wasn't useful, that wouldn't be a non-lie.
example:
Code: Select all
bool something = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!true;
Re: Programming, computers, etc. [Serious]
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.
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.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
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;
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.Shai'tan wrote:EDIT: Ok, checked with python and it allows seemingly infinite 'not' before a bool.
Last edited by Anonymously Famous on Mon Mar 12, 2018 11:04 pm, edited 1 time in total.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
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.
Re: Programming, computers, etc. [Serious]
If there’s a boolean, why is there no yayfat?
- atomtengeralattjaro
- Site Admin
- Posts: 37513
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
We can include that as a type in the asdf programming language.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
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.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
I don't think I have quite enough know-how to do it, but it would be fun.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
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.
- vraiment
- 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]
You mean semi-usable lambda expressions? Let us consider: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.
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
}
}
DA FUDGE IS THAT?Shai'tan wrote:And on that note, did anyone see that the developers of Celeste released their player class?
Re: Programming, computers, etc. [Serious]
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.
One massive player class.vraiment wrote:DA FUDGE IS THAT?Shai'tan wrote:And on that note, did anyone see that the developers of Celeste released their 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.
- atomtengeralattjaro
- 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]
just like I throw my hands in the air whenever I think about why anyone would want to use java.vraiment wrote:// Won't compile because converter function throws
- vraiment
- 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]
What if I told you I hate Java but had to program with it the last 5 years of my life?
- Froggychum
- 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]
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
My Trophy Shelf
- vraiment
- 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]
I DON'T NEED YOUR PITY, BECAUSE I LEARNED THAT KOTLIN EXISTS!Froggychum wrote:I would pity you
- atomtengeralattjaro
- 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]
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.
They must've done so much QA on this.
- Froggychum
- 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]
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
My Trophy Shelf