Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 7, 2020 20:40:48 GMT
oooo buddy, do I love ternary operators!
doesPiLoveTernaryOperators ? console.log('FUCK YEAH!') : console.log('Eat my poopy butt.')
|
|
Senior Member
2,866 POSTS & 2,222 LIKES
|
Post by Lionheart on May 7, 2020 21:00:46 GMT
You smarter guys are breaking my brain with your smart stuff talk. Back on my level, I've been wading into JavaScript today with a fresh brain and set of eyes. So far so good and just as fun and addicting as HTML and CSS. So all that is promising. Lionheart , what coding/programming languages do you use in the video game world? I feel like eventually I'll need to start sponging off of you for when I go to reprogram my own next evolution of No Mercy. (I presume I might also need to learn how to solder if I want to actually make a playable cartridge...)
I was coincidentally just talking about this with Emperor and with my workmates! The video game industry, as far as AAA games go, almost entirely utilizes C++. N64 games were written in C, which is its predecessor. They are basically the same language, but C++ added in a ton of helpful features and syntax to bring it into the modern age. Coding in C is very similar, yet just a bit more difficult. C/C++ is the most difficult language to learn because it allows you to do some really bad stuff that causes hard-to-detect problems. Nevertheless, it is the fastest and video games need efficiency to be able to have top of the line fancy graphics and shit.
That being said, I would highly recommend it as the first language that anyone should learn as, once you learn it, the others are all trivial. It also really nails you down into learning good overall practices and coding structure (and you don't pick up the bad practices often obtained from something like using Javascript). Javascript is the most common for web games...as it's the only real option that isn't terrible. Yet it is the WORST language to learn first because it allows anything and fucks up very often, and is hard to debug to know what is going on without the knowledge obtained from learning other languages. I would recommend using TypeScript over it, which is basically the same thing but with extra safety checks.
In the Indie scene, C# is a lot more commonplace. It's probably like 50/50 between C++ and C#. C# is similar syntax to C++, but much slower and doesn't let you do anything dangerous at all. It holds your hand every step of the way. I hate it. But it's considered a good language for safety-reasons and development time can be much shorter if there's people who don't really know what they are doing. Much more bug-free. You really need seasoned professionals to code a large app in C++ without fucking things up.
Rust is also making its move on the game industry. It's only slightly slower than C++, but is safe and is otherwise almost completely identical. Development time is brought way down. Honestly, I think most game companies would benefit most from this language because the dev time they spend fixing the problems poor devs caused in C++ could be spent optimizing the code to achieve an even faster result than what they are getting with C++. Game code is almost always very, very poor and unoptimized because they are rushing to get the game out as soon as possible.
Anyway, since you will have to learn C to accomplish your dream...I would love to answer any questions you have if you do ever start on that.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 7, 2020 21:27:25 GMT
Shit, Lionheart, now you got me second guessing... Should I see this JavaScript course through, or pause/abandon to start on C/C++? And is C needed if C++ overrides/supersedes C? Totally happy to spend time developing a good and robust foundation. If C is in that sense a good foundation for C++, happy to start there. Otherwise, just dive straight into C++? Side note trivia question: is C/C++ what powers languages like HTML, CSS, JavaScript, etc. on the "back end"?
|
|
Senior Member
2,866 POSTS & 2,222 LIKES
|
Post by Lionheart on May 7, 2020 22:06:20 GMT
Shit, Lionheart , now you got me second guessing... Should I see this JavaScript course through, or pause/abandon to start on C/C++? It's not really a big deal if you want to finish it first. I think learning C++ first is ideal, but it's not a terrible mistake if you don't. It may just be a bit of an adjustment after getting used to Javascript. A lot of Javascript learning tends to be like "this is how it works" like it's magic and you don't really know what it's doing internally without some other background. But what it's doing internally isn't quite so important, whereas you need to pay attention in C++ so that's where the bad habits come in. On the other hand, knowing C++ first can make learning Javascript easier because you'll immediately think like "oh, it's doing this like in C++." and you'll make less mistakes. And is C needed if C++ overrides/supersedes C? Totally happy to spend time developing a good and robust foundation. If C is in that sense a good foundation for C++, happy to start there. Otherwise, just dive straight into C++? Oh no, don't get me wrong. C++ is generally what you would want to learn over C without a doubt. You'd never really want to learn plain C these days...unless you want to code an N64 game. N64 games are coded in C so you don't have a choice in the matter. While it is possible to code for N64 in C++ and some studios did this, I do not believe there is a publicly accessible compiler for this. So you're stuck with C. If you get used to C++, it will be pretty difficult to then adjust to the C way of doing things without any of the nice features...so learning C first is likely the best bet for you. Though it is a bit inconvenient...as once you learn C, C++ will require a lot of learning how to do things in the better ways it allows if you do ever want to learn it. Side note trivia question: is C/C++ what powers languages like HTML, CSS, JavaScript, etc. on the "back end"? For HTML/CSS, it can be and often is. HTML/CSS is basically just text. It isn't compiled into anything or run by the computer. An actual program, coded in an actual language like C++, needs to process that text in order for it to actually do things. Firefox, for example, is written in both C++ and RUST (the one similar to C++ that I mentioned before) and translates the HTMl/CSS text into a web page that you view. Chrome is written in C++.
HTML/CSS just follow a certain standard so that applications in other languages know how to process it, because it expects that text to be written in a specific way.
In order for a computer to run a program, the code needs to be compiled from whatever it is written in to machine code (nothing but 0s and 1s, which the computer actually understands how to run). Assembly language is just above machine language, which basically just translates machine code to be readable by showing you what commands all those 0's and 1's actually correspond to. C++ is compiled directly into machine code, but you can look at that code in generated assembly for debugging to see exactly what it is doing. This is often needed to help debug complicated problems in C++. In fact, for N64 development...some code is actually written directly in assembly to do some stuff that isn't specifically easy to do the way it needs to be done in C. C/C++ allows you to write some blocks in assembly code if you want. Javascript and C# are what is called "intepreted" languages. They aren't "compiled" into machine code prior to the program running, but instead the code is "interpreted" as it gets to it one bit at a time into machine code and then it runs it. So it's basically the same as getting compiled, but it happens as each bit of code is used rather than ahead of time. This is why interpreted languages are slower.
In a way, compilers basically are just processing text in any language to convert it into machine code...the same way applications process CSS/HTML code into meaningful things in their language. Languages are just a set of syntax and standards that other programs know how to read and compile into machine code. The lowest level compilers are written in assembly.
|
|
Senior Member
2,866 POSTS & 2,222 LIKES
|
Post by Lionheart on May 7, 2020 22:19:03 GMT
To make things easier to understand, it's basically a pyramid:
HTML/CSS would be at the top. A compiler takes something from one level and moves it down into a lower level. So you can have a chain of code being moved down into a lower and lower level by multiple compilers. Many compilers actually work on multiple levels like that. Coding in assembly is hard, so they often make an intermediate language, write a compiler in assembly that transforms that intermediate language into assembly, and then they use that higher-level compiler written in the intermediate language to compile the actual high-level language (like C++ code) down to assembly.
It's kind of cool actually. You make things easy by slowly converting the higher-level language down into slightly more unreadable and lower-level language through multiple steps.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 7, 2020 22:53:34 GMT
Shit, Lionheart , now you got me second guessing... Should I see this JavaScript course through, or pause/abandon to start on C/C++? It's not really a big deal if you want to finish it first. I think learning C++ first is ideal, but it's not a terrible mistake if you don't. It may just be a bit of an adjustment after getting used to Javascript. A lot of Javascript learning tends to be like "this is how it works" like it's magic and you don't really know what it's doing internally without some other background. But what it's doing internally isn't quite so important, whereas you need to pay attention in C++ so that's where the bad habits come in. On the other hand, knowing C++ first can make learning Javascript easier because you'll immediately think like "oh, it's doing this like in C++." and you'll make less mistakes. And is C needed if C++ overrides/supersedes C? Totally happy to spend time developing a good and robust foundation. If C is in that sense a good foundation for C++, happy to start there. Otherwise, just dive straight into C++? Oh no, don't get me wrong. C++ is generally what you would want to learn over C without a doubt. You'd never really want to learn plain C these days...unless you want to code an N64 game. N64 games are coded in C so you don't have a choice in the matter. While it is possible to code for N64 in C++ and some studios did this, I do not believe there is a publicly accessible compiler for this. So you're stuck with C. If you get used to C++, it will be pretty difficult to then adjust to the C way of doing things without any of the nice features...so learning C first is likely the best bet for you. Though it is a bit inconvenient...as once you learn C, C++ will require a lot of learning how to do things in the better ways it allows if you do ever want to learn it. Side note trivia question: is C/C++ what powers languages like HTML, CSS, JavaScript, etc. on the "back end"? For HTML/CSS, it can be and often is. HTML/CSS is basically just text. It isn't compiled into anything or run by the computer. An actual program, coded in an actual language like C++, needs to process that text in order for it to actually do things. Firefox, for example, is written in both C++ and RUST (the one similar to C++ that I mentioned before) and translates the HTMl/CSS text into a web page that you view. Chrome is written in C++. HTML/CSS just follow a certain standard so that applications in other languages know how to process it, because it expects that text to be written in a specific way.
In order for a computer to run a program, the code needs to be compiled from whatever it is written in to machine code (nothing but 0s and 1s, which the computer actually understands how to run). Assembly language is just above machine language, which basically just translates machine code to be readable by showing you what commands all those 0's and 1's actually correspond to. C++ is compiled directly into machine code, but you can look at that code in generated assembly for debugging to see exactly what it is doing. This is often needed to help debug complicated problems in C++. In fact, for N64 development...some code is actually written directly in assembly to do some stuff that isn't specifically easy to do the way it needs to be done in C. C/C++ allows you to write some blocks in assembly code if you want. Javascript and C# are what is called "intepreted" languages. They aren't "compiled" into machine code prior to the program running, but instead the code is "interpreted" as it gets to it one bit at a time into machine code and then it runs it. So it's basically the same as getting compiled, but it happens as each bit of code is used rather than ahead of time. This is why interpreted languages are slower. In a way, compilers basically are just processing text in any language to convert it into machine code...the same way applications process CSS/HTML code into meaningful things in their language. Languages are just a set of syntax and standards that other programs know how to read and compile into machine code. The lowest level compilers are written in assembly.
You're blowing my mind! I don't know what half this shit means, but I love it. I regret not going full nerd into this stuff in the 90s. So much time I could've had already under my belt!
|
|
Strong Style Mod
USER IS OFFLINE
Years Old
Male
11,417 POSTS & 11,540 LIKES
|
Post by Emperor on May 7, 2020 23:29:38 GMT
Relevant article by one of my favourite programming bloggers. www.joelonsoftware.com/2001/12/11/back-to-basics/Joel is advocating the same thing as Lionheart: to be a good programmer you really have to know the nitty gritty of how things work at a low level, at a minimum the 'C' level in Lionheart's diagram. If you start off with a high level abstract language like Javascript, things will break and you will have no idea how to even begin to fix it because you don't understand how programming languages really work at a fundamental level. Joel is a fantastic writer and this particular article has some examples of C/C++ code so you get a glimpse at what it's all about.
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 7, 2020 23:52:47 GMT
God I hated learning C++. I get it has its uses and does stuff blazingly fast, but god the syntax is freaking archaic.
|
|
Senior Member
2,866 POSTS & 2,222 LIKES
|
Post by Lionheart on May 8, 2020 1:26:42 GMT
God I hated learning C++. I get it has its uses and does stuff blazingly fast, but god the syntax is freaking archaic. Your username is really ironic considering this post! Also, I disagree that the syntax is archaic. It’s just different. But it’s no more different than most languages are different from each other.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 8, 2020 2:01:31 GMT
God I hated learning C++. I get it has its uses and does stuff blazingly fast, but god the syntax is freaking archaic. Your username is really ironic considering this post! Also, I disagree that the syntax is archaic. It’s just different. But it’s no more different than most languages are different from each other. Mandarin is archaic!
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 8, 2020 2:52:20 GMT
God I hated learning C++. I get it has its uses and does stuff blazingly fast, but god the syntax is freaking archaic. Your username is really ironic considering this post! Also, I disagree that the syntax is archaic. It’s just different. But it’s no more different than most languages are different from each other. I am a purist and only use the original But seriously, C++ has the most unititutive syntax of any program I seen. Most programs you can generally guess what they do without knowing the syntax. Not C++. It gives no fucks if you can read it or not. Proof. PRINT "Hello, world!" - BASIC document.write('Hello, world!'); - JS print "Hello, world!" - Python I bet those are going to show the phrase Hello, World. C++ #include int main() { std::cout << "Hello, world! "; return 0; } WTF... Since I am doing Hello World, R has the best Hello World. cat ('Hello, world!')
|
|
God
8,727 POSTS & 6,804 LIKES
|
Post by System on May 11, 2020 7:48:12 GMT
Doing a free online course and this was used as an example:
"For example Royal Caribbean cruises are using Snapchat to promote their various locations and cruise ships. They task a member of crew to take over their Snapchat for a week and they create stories that show the various features of their cruise ships, back of house details and of course images and videos of their destinations. "
The snapchat vids from Cruise Ship members would be pretty dire atm :lol:
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 12, 2020 13:21:24 GMT
So... between work, life, and some previous chatter on here, I've mentally hit a little stumbling block and my coding/programming progress has hit a bit of a stumbling block because I can't help but shake the feeling that I should be doing C/C++ first and THEN circling back to JavaScript. That's mostly excuse-making, and I'll most likely be resuming my JavaScripting this week. I figure I'm not practicing enough yet to pick up any habits yet (good or bad), and I'll likely have to re-circle back to JavaScript again anyway after eventually doing C/C++. In the meantime, other Coronatine goals and struggles... My workouts are getting to be a bit boring. Dying for a barbell and plates. Is it reasonable for the supply chain to still be fucked up? At some point, you'd think places would stabilize/normalize and unkink the hose... right? Today/tomorrow has become the weekly appointment time for my communications with the supplier for my non-status update. Wondering how long to wait, how impatient to be, how pissed to get... I don't want to be unreasonable or unfair, but I'm also dying! Still haven't touched the motorcycle to start troubleshooting it back into functionality either. I feel like there were other things I wanted to vent to yinz about and ask for accountability nudges, but I can't remember them now.
|
|
God
7,176 POSTS & 5,662 LIKES
|
Post by iNCY on May 12, 2020 14:25:33 GMT
So... between work, life, and some previous chatter on here, I've mentally hit a little stumbling block and my coding/programming progress has hit a bit of a stumbling block because I can't help but shake the feeling that I should be doing C/C++ first and THEN circling back to JavaScript. That's mostly excuse-making, and I'll most likely be resuming my JavaScripting this week. I figure I'm not practicing enough yet to pick up any habits yet (good or bad), and I'll likely have to re-circle back to JavaScript again anyway after eventually doing C/C++. In the meantime, other Coronatine goals and struggles... My workouts are getting to be a bit boring. Dying for a barbell and plates. Is it reasonable for the supply chain to still be fucked up? At some point, you'd think places would stabilize/normalize and unkink the hose... right? Today/tomorrow has become the weekly appointment time for my communications with the supplier for my non-status update. Wondering how long to wait, how impatient to be, how pissed to get... I don't want to be unreasonable or unfair, but I'm also dying! Still haven't touched the motorcycle to start troubleshooting it back into functionality either. I feel like there were other things I wanted to vent to yinz about and ask for accountability nudges, but I can't remember them now. You can use my gym if you want, it's pretty epic. I'm dropping weight like an American president drops bombs. At the least three times a week doing 2hrs walking plus a bit of weights. I also got my website up. Now to get my YouTube channel going. Ps. I say do JavaScript because it is more immediately useful in light of your Web courses. Any language is fine for learning language, syntax and nuances come later. You can make more with HTML and JavaScript than you can with c++
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 12, 2020 14:39:16 GMT
C++ and Javascript are two very different eras of programming. For webapps Javascript is king. For non-web apps C++ is more popular. C++ kind of goes in a totally different direction of what you were doing though.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 12, 2020 16:20:31 GMT
So... between work, life, and some previous chatter on here, I've mentally hit a little stumbling block and my coding/programming progress has hit a bit of a stumbling block because I can't help but shake the feeling that I should be doing C/C++ first and THEN circling back to JavaScript. That's mostly excuse-making, and I'll most likely be resuming my JavaScripting this week. I figure I'm not practicing enough yet to pick up any habits yet (good or bad), and I'll likely have to re-circle back to JavaScript again anyway after eventually doing C/C++. In the meantime, other Coronatine goals and struggles... My workouts are getting to be a bit boring. Dying for a barbell and plates. Is it reasonable for the supply chain to still be fucked up? At some point, you'd think places would stabilize/normalize and unkink the hose... right? Today/tomorrow has become the weekly appointment time for my communications with the supplier for my non-status update. Wondering how long to wait, how impatient to be, how pissed to get... I don't want to be unreasonable or unfair, but I'm also dying! Still haven't touched the motorcycle to start troubleshooting it back into functionality either. I feel like there were other things I wanted to vent to yinz about and ask for accountability nudges, but I can't remember them now. You can use my gym if you want, it's pretty epic. I'm dropping weight like an American president drops bombs. At the least three times a week doing 2hrs walking plus a bit of weights. I also got my website up. Now to get my YouTube channel going. Ps. I say do JavaScript because it is more immediately useful in light of your Web courses. Any language is fine for learning language, syntax and nuances come later. You can make more with HTML and JavaScript than you can with c++ C++ and Javascript are two very different eras of programming. For webapps Javascript is king. For non-web apps C++ is more popular. C++ kind of goes in a totally different direction of what you were doing though. Thank you gents for reinspiring me to plow through the rest of this JavaScript course. Resuming now! C/C++ will still be on the table though at some point, as Lionheart has made it clear I'll need those tool sets in order to chase the lifelong dream of building a No Mercy sequel. Also, even if it's maybe mostly useless for me, understanding how the fuck computers understand/process 0's and 1's is still super fascinating to me. So at some point, I'd like to learn to understand as much as possible that base layer of the programming/coding language pyramid... then re-work my way up from there maybe. For some non-computer related talk... iNCY, you still bangin' 'n' clangin' with that sweet sweet setup you shared a photo of some years back? Seemed like a full-on legit gym set up with benches, cable machines, etc. I'm jellies of not only your spread but the space you seem to have to dedicate to it. Also, @ Ince, what's the YouTube channel on? Just random ramblings on life in general? More professionally geared toward your area of work? Focused on some hobby? Between you and Kilgore (whom I think has a YouTube channel?) I'm fascinated by PWers with outside internet interests/ventures. Other more immediate goals on the list for today: - Mow - Lift - Research and decide on a La-Z-Boy - Put together a grocery list and menu plan for the next week or so
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 15, 2020 18:56:47 GMT
Well looks like I am learning C# again. Getting prepped to start my ed game in Unity with C#. Visual Studio installing now. Using a simple base building design since it should be able to be ported over for the prototype. Going to use 2d tiles for graphics and likely only have a single short scenario since it will basically be used to pitch for funding. Funding will be awkward but when I get the prototype done I will let my old advisor figure it out.
|
|
God
7,176 POSTS & 5,662 LIKES
|
Post by iNCY on May 16, 2020 10:43:36 GMT
iNCY , you still bangin' 'n' clangin' with that sweet sweet setup you shared a photo of some years back? Seemed like a full-on legit gym set up with benches, cable machines, etc. I'm jellies of not only your spread but the space you seem to have to dedicate to it. Also, @ Incy, what's the YouTube channel on? Just random ramblings on life in general? More professionally geared toward your area of work? Focused on some hobby? Between you and Kilgore (whom I think has a YouTube channel?) I'm fascinated by PWers with outside internet interests/ventures. Yes mate, I am still rocking the home gym. Was getting bored with the PPL, so I just switched back to Brosplits. It's been a bit rough with the Coronavirus and I took about 2 months of lifting, looking at my lifts you would think it had been 2 years. I hope I am not too old to hit 2pl8's for my bench... I did it once before I lost weight. Also really tempted to run a cycle... Definitely not opposed to cheating. My Youtube channel is going to be on critical thinking, it's a bit of a passion subject for me. Not really with a commercial angle, but I can see if it worked I would be happy to do speaking engagements as a part time thing if anyone wanted to listen. My business already has a separate channel with machine videos that has about a thousand subscribers, not me talking though.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 17, 2020 21:42:51 GMT
Arrays, loops, nested loops, looping through arrays, etc. etc. etc. I feel like JavaScript is mostly teaching me that I'll need to do a lot more brain yoga before I have the mental flexibility and wherewithal to approach tackling something like C/C++. And speaking of C/C++, now c introduces C#... dafuq is that? Like C/C++ for Twitter!? EDIT: Just learned about infinite loops. So tempted now to use the power of JavaScript to freeze my work computer. Is that possible!?
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 17, 2020 22:04:31 GMT
C# is C sharp. It is microsoft's version of C basically. Used a lot in making games.
And yeah an infinite loop will repeat forever unless you can break it. In high school used to run a simple program that would sleep for like 10 minutes then fill the screen with random text that would change colors. Due to limitations on the computers it was unbreakable. Was hilarious. School assumed it was a virus.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 19, 2020 22:10:30 GMT
Arrow function notation is jacking me all up and getting me worked into such a rage I want to either quit or SMASH!!~ JavaScript to pieces. What am I not getting!?!? :@ :@ :@ :@
|
|
Strong Style Mod
USER IS OFFLINE
Years Old
Male
11,417 POSTS & 11,540 LIKES
|
Post by Emperor on May 19, 2020 22:15:52 GMT
I don't know what arrow function notation is, since I don't use Javascript. Give me an example. It probably corresponds to a known concept from other languages.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 19, 2020 22:21:42 GMT
I don't know what arrow function notation is, since I don't use Javascript. Give me an example. It probably corresponds to a known concept from other languages. From the stupid fucking lesson hint:
|
|
Strong Style Mod
USER IS OFFLINE
Years Old
Male
11,417 POSTS & 11,540 LIKES
|
Post by Emperor on May 19, 2020 22:46:07 GMT
Essentially what is happening is that filter is a list method/function (I don't know the Javascript lingo) that takes a function (let's call it F) as a parameter. Filter then applies F to every item in the list. is just shorthand for a declaration of a simple function, in this case:
function f(x) { if x < 25 { return true; } };
The above two code snippets are equivalent and define the same function.
Functions that take functions as arguments is a confusing, mindbending concept when first encountered (the introduction of the shorthand arrow doesn't help), but when you get used to it, it's very easy to read and saves you typing out lots of function definitions and curly braces.
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 19, 2020 22:50:41 GMT
I hate arrow function syntax in languages with inequalities.
Edit: Was way off here.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 19, 2020 22:55:57 GMT
Essentially what is happening is that filter is a list method/function (I don't know the Javascript lingo) that takes a function (let's call it F) as a parameter. Filter then applies F to every item in the list. is just shorthand for a declaration of a simple function, in this case: function f(x) { if x < 25 { return true; } };
The above two code snippets are equivalent and define the same function. Functions that take functions as arguments is a confusing, mindbending concept when first encountered (the introduction of the shorthand arrow doesn't help), but when you get used to it, it's very easy to read and saves you typing out lots of function definitions and curly braces. Yeah, I have a feeling my struggles are more the fast and glaze-over approach the module is taking. Granted, had I known JavaScript was going to be this much exponentially more difficult to grasp than HTML/CSS going in... I probably would've made more of a point about having paper and pen on hand for note-taking. Functions as arguments is one thing. Arrow notation as shorthand is another. I feel like I might've been better served learning functions as arguments alone first, even if it meant a lot of extra typing. Then introduce shorthand later as my "reward" so that I can then go back and re-practice what I've just learned but now applying the shorthand to see how much better/easier/quicker life can be. Oh well, fuck me. Steaming with frustration right now! The FAQ discussion prompt from other frustrated students did lead to an interesting outside article about using the .reduce method in a real world application to generate something for some back-end API after scrubbing the HTML of a form. Even if I barely understood what they were talking about, learning about a real world application was re-inspiring. Can't wait for this course to be done. Then I want to spend some time just practicing and fucking around, and going back and refreshing what I've already learned.
|
|
Legend
IS OFFLINE
Years Old
Undisputed 2020 Poster of the Year
33,663 POSTS & 10,429 LIKES
|
Post by c on May 19, 2020 23:09:39 GMT
I def prefer the the larger syntax as it is far more readable. Shorthand in general is faster to write at the cost of readability. With a good IDE it is only a few letters more you will be typing to make the code far more readable.
|
|
|
Post by Deleted on May 19, 2020 23:11:33 GMT
I can't wait to play 🤯 's Paper Mario game when he finally finishes.
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 19, 2020 23:13:46 GMT
I can't wait to play 🤯 's Paper Mario game when he finally finishes. Considering how bad JavaScript is fucking me up today, I'll probably be making my paper version of Mario using scissors and construction paper (while huffing glue sticks and eating crayons).
|
|
Legend
23,184 POSTS & 12,594 LIKES
|
Post by 🤯 on May 19, 2020 23:14:23 GMT
I def prefer the the larger syntax as it is far more readable. Shorthand in general is faster to write at the cost of readability. With a good IDE it is only a few letters more you will be typing to make the code far more readable. IDE?
|
|