Post by shawnatdgk on Jun 17, 2023 1:31:04 GMT -8
So I've recently delved into learning how to use the JQuery library.
Yea yea, 15 years later. I know!
15 years ago I was just then starting to get clever with Javascript. I was NOT ready to learn another programming language!
Now that I finally chose to dive into JQuery, I'm beginning to learn how unbelievably more simple it makes things.
A code that takes numerous of pain staking lines using Javascript without the JQuery library can be done in a half of a line using the JQuery library.
For instance, If I wanted to change the text in Table 2, back in the day, it would take several lines of code:
Back in the day, we'd have to dig for the text using a for loop, and an if statement and all kinds of mess.
Like so:
Now its as simple as:
I mean, don't get me wrong. Those were the good ol days! There were no "plugins". Everything was raw header and footer code. I remember you could even accidentally make your forum completely unfunctional to where it was frozen up, or just completely disappeared. Therefore, there was a global login portal that proboards support offered where you could log in there and get the bad code out of your headers or footers.
This taught us all how to code! If you wanted to make your forum cool and functional, you're gonna need to learn how to code! So although, most people were coming to make a forum out of ideas in their head, they were also forced to at least learn CSS, HTML, and Javascript.
Thanks to Proboards, all of the old coders on the support forum, and W3 schools; in my case!
I guess the con to introducing "plugins" was that it did away with most header and footer codes, so forum creators just simply weren't learning to code anymore. And then of course, JQuery hit the scene and then new coders skipped actual Javascript and jumped straight to JQuery; which essentially is just a library for Javascript.
My Story:
I NEVER planned on coding. Never! I was actually into rapping. This was mid 90's to the turn of the century lol.
Back then, at first, "the social web" was basically just a bunch of aol (America On Line) chat rooms. It literally was a bunch of chatboxes with hundreds of people talking about 100 different things. The pre-myspace days lol.
During my rapping days, I ran into a forum where they did rap battles. You know, like Eminem lol except this was mostly text battle. Meaning you type your verse against your opponent and post it and the battle gets judged by other members.
I really got into that! And I got really good at it! Eventually I wanted my own rap battle forum and that's when I stumbled across Proboards.
Now the Support Forum as we know it today, was much different back then. There was a lot of activity that was relevant; versus these days where people talk about chocolate chip cookies and pretty sunsets lol
There were always at least 8 to 10 admins on and 50 to 60 members at least, at all times! The admins and coders had their own little forums too, where you could see and use all of their awesome codes. Wormo had a really cool forum with a worm theme. There were some more names I'm not remembering. Tumbleweed was one.
We could personally look through their codes to learn. Thats not available neither these days as most codes are hidden inside the plugin.
So anyway, as I learned to build my forum, I learned to code.
Eventually, years later, I landed a job for a big roofing corporation as a project manager. the way that they were scheduling the project managers was a mess and wasting time and money! For instance, one project manager would drive an hour away just to arrive to inspect a job 5 minutes away from another project manager. There would have only needed to have been 1 project manager in that area.
I then decided to get a local map and find out every zip code in the area. I think there were nearly 250 in total.
I then started my first major code! All with only Javascript and HTML.
Essentially what I did was break the map areas up evenly to where there were the same number of areas as there were project managers. I assigned each project manager to an area and created the code to: when an admin/secretary typed a zip code into the program, it would tell them which Project Manager to schedule to the area of that zip code. As easy as that! I sold it to the company for 7 grand.
It was my first major code so what the hell!
I've never took any college or grad classes for programming. I learned it all here and W3Schools.com and Google.
What I'm reading now is that JQuery is almost obsolete. They're saying it's "unnecessary". I guess there's bigger and badder wolves out there now. I just couldn't imagine that you could get much better than JQuery after the example I showed above.
I do remember back in the day it absolutely sucked trying to make a code "cross browser". You'd make your forum awesome in Internet Explorer, then open it in Chrome and it was all messed up! That was probably the hugest struggle before JQuery, because the JQuery team figured that all out and it's now not even something that the coder has to think about. But I guess the browsers have gotten smarter and don't need JQuerys help anymore??
Not sure why JQuery is becoming less popular or if it's even true, but is there another program post-JQuery that I should learn instead? Or will JQuery always have a part in my arsenal?
Yea yea, 15 years later. I know!
15 years ago I was just then starting to get clever with Javascript. I was NOT ready to learn another programming language!
Now that I finally chose to dive into JQuery, I'm beginning to learn how unbelievably more simple it makes things.
A code that takes numerous of pain staking lines using Javascript without the JQuery library can be done in a half of a line using the JQuery library.
For instance, If I wanted to change the text in Table 2, back in the day, it would take several lines of code:
<table id="MyTable1">
<tr>
<td>
THIS TEXT
</td>
</tr>
</table>
<table id="MyTable2">
<tr>
<td">
THIS TEXT
</td>'
</tr>
</table>
<table id="MyTable3">
<tr>
<td">
THIS TEXT
</td>'
</tr>
</table>
Back in the day, we'd have to dig for the text using a for loop, and an if statement and all kinds of mess.
Like so:
var td = document.getElementsByTagName("td");
for (i=0; i < td.length; i++) {
if(td[i].parentNode.parentNode.parentNode.id=="MyTable2") {
td[i].innerHTML = "GOT IT";
}
}
Now its as simple as:
$("#MyTable2").html("GOT IT");
I mean, don't get me wrong. Those were the good ol days! There were no "plugins". Everything was raw header and footer code. I remember you could even accidentally make your forum completely unfunctional to where it was frozen up, or just completely disappeared. Therefore, there was a global login portal that proboards support offered where you could log in there and get the bad code out of your headers or footers.
This taught us all how to code! If you wanted to make your forum cool and functional, you're gonna need to learn how to code! So although, most people were coming to make a forum out of ideas in their head, they were also forced to at least learn CSS, HTML, and Javascript.
Thanks to Proboards, all of the old coders on the support forum, and W3 schools; in my case!
I guess the con to introducing "plugins" was that it did away with most header and footer codes, so forum creators just simply weren't learning to code anymore. And then of course, JQuery hit the scene and then new coders skipped actual Javascript and jumped straight to JQuery; which essentially is just a library for Javascript.
My Story:
I NEVER planned on coding. Never! I was actually into rapping. This was mid 90's to the turn of the century lol.
Back then, at first, "the social web" was basically just a bunch of aol (America On Line) chat rooms. It literally was a bunch of chatboxes with hundreds of people talking about 100 different things. The pre-myspace days lol.
During my rapping days, I ran into a forum where they did rap battles. You know, like Eminem lol except this was mostly text battle. Meaning you type your verse against your opponent and post it and the battle gets judged by other members.
I really got into that! And I got really good at it! Eventually I wanted my own rap battle forum and that's when I stumbled across Proboards.
Now the Support Forum as we know it today, was much different back then. There was a lot of activity that was relevant; versus these days where people talk about chocolate chip cookies and pretty sunsets lol
There were always at least 8 to 10 admins on and 50 to 60 members at least, at all times! The admins and coders had their own little forums too, where you could see and use all of their awesome codes. Wormo had a really cool forum with a worm theme. There were some more names I'm not remembering. Tumbleweed was one.
We could personally look through their codes to learn. Thats not available neither these days as most codes are hidden inside the plugin.
So anyway, as I learned to build my forum, I learned to code.
Eventually, years later, I landed a job for a big roofing corporation as a project manager. the way that they were scheduling the project managers was a mess and wasting time and money! For instance, one project manager would drive an hour away just to arrive to inspect a job 5 minutes away from another project manager. There would have only needed to have been 1 project manager in that area.
I then decided to get a local map and find out every zip code in the area. I think there were nearly 250 in total.
I then started my first major code! All with only Javascript and HTML.
Essentially what I did was break the map areas up evenly to where there were the same number of areas as there were project managers. I assigned each project manager to an area and created the code to: when an admin/secretary typed a zip code into the program, it would tell them which Project Manager to schedule to the area of that zip code. As easy as that! I sold it to the company for 7 grand.
It was my first major code so what the hell!
I've never took any college or grad classes for programming. I learned it all here and W3Schools.com and Google.
What I'm reading now is that JQuery is almost obsolete. They're saying it's "unnecessary". I guess there's bigger and badder wolves out there now. I just couldn't imagine that you could get much better than JQuery after the example I showed above.
I do remember back in the day it absolutely sucked trying to make a code "cross browser". You'd make your forum awesome in Internet Explorer, then open it in Chrome and it was all messed up! That was probably the hugest struggle before JQuery, because the JQuery team figured that all out and it's now not even something that the coder has to think about. But I guess the browsers have gotten smarter and don't need JQuerys help anymore??
Not sure why JQuery is becoming less popular or if it's even true, but is there another program post-JQuery that I should learn instead? Or will JQuery always have a part in my arsenal?