is html/js coding for fun possible?

About programming and getting involved with Linux Mint development
Post Reply
user6c57b8
Level 1
Level 1
Posts: 11
Joined: Mon Aug 05, 2019 1:07 pm

is html/js coding for fun possible?

Post by user6c57b8 »

I just want to be happy.
t42
Level 6
Level 6
Posts: 1014
Joined: Mon Jan 20, 2014 6:48 pm

Re: is html/js coding for fun possible?

Post by t42 »

user6c57b8 wrote:
Sat Jul 03, 2021 12:25 pm
I just want to be happy.
I'm sure happiness lies not beyond your reach...
-=t42=-
User avatar
Flemur
Level 19
Level 19
Posts: 9753
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: is html/js coding for fun possible?

Post by Flemur »

user6c57b8 wrote:
Sat Jul 03, 2021 12:25 pm
I just want to be happy.
This informative information might be what you're seeking:
https://www.programmersought.com/article/22063628295/

Program in R.
Or, in C if you're male or Perl if you're female.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
rene
Level 17
Level 17
Posts: 7760
Joined: Sun Mar 27, 2016 6:58 pm

Re: is html/js coding for fun possible?

Post by rene »

But other than all that the answer to the question in your topic is "no".
user6c57b8
Level 1
Level 1
Posts: 11
Joined: Mon Aug 05, 2019 1:07 pm

Re: is html/js coding for fun possible?

Post by user6c57b8 »

the live website: https://user95f85f.github.io/a-40s-jour ... x-oop.html
the code: https://github.com/user95f85f/a-40s-journey
OOP with JavaScript is fuuuuun.
The code frozen today:

Code: Select all

<script>
var d = document;
function out(_s){
  d.write(_s + '<br>'); 
}
class fb{
  constructor(_user){
    this.user = _user;
  }
  post(_s){
     out('Facebook post from ' + this.user + ': ' + _s);
  }
}
class tw{
  constructor(_user){
    this.user = _user;
  } 
  post(_s){
    out('Twitter message out from ' + this.user + ': ' + _s); 
  }
}
class gh{
  constructor(_user){
    this.user = _user; 
  }
  post(_c){
    out('Posted code from ' + this.user + ' onto his Github: <code style="color:red">' + _c + '</code>'); 
  }
}
var Facebook = new fb('Ori');
Facebook.post('sup');
var Twitter = new tw('Me');
Twitter.post('hello');
var Github = new gh('User');
Github.post('int main(void){ OUT("sup\\n"); return 0;}');
</script>
djph
Level 3
Level 3
Posts: 184
Joined: Thu Jun 27, 2019 5:43 am

Re: is html/js coding for fun possible?

Post by djph »

rene wrote:
Sat Jul 03, 2021 5:42 pm
But other than all that the answer to the question in your topic is "no".
:lol:

Way more fun to use C or Assembly on microcontrollers 8)
rene
Level 17
Level 17
Posts: 7760
Joined: Sun Mar 27, 2016 6:58 pm

Re: is html/js coding for fun possible?

Post by rene »

Javascript seems to always be more playing at being a programming language than being one...
ikariGendou
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2021 10:24 am
Location: Namekku-sei

Re: is html/js coding for fun possible?

Post by ikariGendou »

JavaScript is a tool. We are using English to communicate now. Is English more fun than other languages?

Assembler, C, and other low level languages have a reputation of being hard or boring. The learning curve is steep and you will not make video games with assembler.* But that does not mean they are not fun. If you are designing gadgets for espionage, you may need to write the code for the internal controllers in assembler, C/C++. And some developers might find a lot of fun playing the role of Q from James Bond. But I digress.

JavaScript has the advantage that it requires very little set up: Your browser runs it. You do not even need to compile it. That is the reason so many websites have gamified tutorials of JavaScript. You can open a console right now in your browser and do a console.log('hello world');

JS is probably an "easy" first language for beginners. It is less intimidating than other monsters. And they all are tools. What matters more is what you intend to do. The goal will define if it is fun or not for you.

This image summarizes what you can achieve with different programming languages: https://miro.medium.com/max/2864/1*1Sea ... sFAXiQ.png
iG

*Arcade games of yore probably had a lot of Assembler and C, or other low level languages.
djph
Level 3
Level 3
Posts: 184
Joined: Thu Jun 27, 2019 5:43 am

Re: is html/js coding for fun possible?

Post by djph »

ikariGendou wrote:
Sat Jul 17, 2021 10:05 pm
JavaScript is a tool. We are using English to communicate now. Is English more fun than other languages?

Assembler, C, and other low level languages have a reputation of being hard or boring. The learning curve is steep and you will not make video games with assembler.*

[...]

*Arcade games of yore probably had a lot of Assembler and C, or other low level languages.
As far as I am aware, there was never a production C compiler for the 65x18 (SNES), 6052 (NES), 6057 (Atari) or z80 (Sega arcade cabinets). Chances are they were pretty much handled in assembly (or maybe something being run on top).
jmorris84
Level 3
Level 3
Posts: 142
Joined: Mon Mar 19, 2012 6:40 pm

Re: is html/js coding for fun possible?

Post by jmorris84 »

It's what you make of it. If you have a genuine interest and appreciation for it, it can be fun. For what it's worth, since going back to school, I have honestly had the most fun writing Assembly in MIPS compared to the other languages I have learned so far.
ikariGendou
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2021 10:24 am
Location: Namekku-sei

Re: is html/js coding for fun possible?

Post by ikariGendou »

djph wrote:
Mon Jul 19, 2021 9:02 am

As far as I am aware, there was never a production C compiler for the 65x18 (SNES), 6052 (NES), 6057 (Atari) or z80 (Sega arcade cabinets). Chances are they were pretty much handled in assembly (or maybe something being run on top).
I may suffer from Magic Realism. My apologies if I was not scientifically accurate. My example was in the spirit of: "C was the language to learn in the early 80s, but it has become quaint." I also remember watching a documentary by the Gaming Historian where he mentions Super Mario Bros. 3 was written in C. Again, I could be wrong.

Thanks for pointing it out. I would rather learn that I made mistake than live forever in ignorance. Anyhow, we can talk video games in another post; at another place.

iG
djph
Level 3
Level 3
Posts: 184
Joined: Thu Jun 27, 2019 5:43 am

Re: is html/js coding for fun possible?

Post by djph »

ikariGendou wrote:
Tue Jul 20, 2021 10:10 pm
djph wrote:
Mon Jul 19, 2021 9:02 am

As far as I am aware, there was never a production C compiler for the 65x18 (SNES), 6052 (NES), 6057 (Atari) or z80 (Sega arcade cabinets). Chances are they were pretty much handled in assembly (or maybe something being run on top).
I may suffer from Magic Realism. My apologies if I was not scientifically accurate. My example was in the spirit of: "C was the language to learn in the early 80s, but it has become quaint." I also remember watching a documentary by the Gaming Historian where he mentions Super Mario Bros. 3 was written in C. Again, I could be wrong.
It's all good :); my own knowledge is based on "history" as well (i.e. not firsthand knowledge), so I only know what was recorded by others. I would definitely agree that you wouldn't want to use x86 (or x86_64) assembly to write a game! C is still a rock solid language to learn, especially if you wanna play around with low-level things (Arduino, etc.)
Jonathan_Steadman
Level 1
Level 1
Posts: 8
Joined: Tue Jun 08, 2021 11:50 am

Re: is html/js coding for fun possible?

Post by Jonathan_Steadman »

Yes, I love HTML and JavaScript. Great for people new to programming.
It's lots of fun to make games with JavaScript and make a website.
I even have my own website hosted where you can download my software and games. Also, play my online games.
So it's cool.
Post Reply