is html/js coding for fun possible?

About programming and getting involved with Linux Mint development
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
user6c57b8
Level 2
Level 2
Posts: 52
Joined: Mon Aug 05, 2019 1:07 pm

is html/js coding for fun possible?

Post by user6c57b8 »

I just want to be happy.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
t42
Level 11
Level 11
Posts: 3741
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 20
Level 20
Posts: 10096
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 20
Level 20
Posts: 12212
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 2
Level 2
Posts: 52
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 7
Level 7
Posts: 1931
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

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 20
Level 20
Posts: 12212
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: 8
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 7
Level 7
Posts: 1931
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

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: 185
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: 8
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 7
Level 7
Posts: 1931
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

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: 47
Joined: Tue Jun 08, 2021 11:50 am
Location: UK
Contact:

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.
Dark13
Level 1
Level 1
Posts: 5
Joined: Sun Aug 01, 2021 7:11 pm
Contact:

Re: is html/js coding for fun possible?

Post by Dark13 »

Jonathan_Steadman wrote: Wed Jul 21, 2021 5:19 pm 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.
your URL?
Dark13
Level 1
Level 1
Posts: 5
Joined: Sun Aug 01, 2021 7:11 pm
Contact:

Re: is html/js coding for fun possible?

Post by Dark13 »

Sure, if by "fun" you mean making money
resolution and DPR check https://screenresolutiontest.com
Jonathan_Steadman
Level 1
Level 1
Posts: 47
Joined: Tue Jun 08, 2021 11:50 am
Location: UK
Contact:

Re: is html/js coding for fun possible?

Post by Jonathan_Steadman »

Dark13 wrote: Sun Aug 01, 2021 8:12 pm
Jonathan_Steadman wrote: Wed Jul 21, 2021 5:19 pm 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.
your URL?
Hi, This is the link to my website: http://jonathansteadman.atspace.cc/
It's not the best but I think it looks cool. :)
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: is html/js coding for fun possible?

Post by Moem »

It's possible to do pretty much anything for fun. After all, people's opinions on what is and isn't fun vary immensely.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: is html/js coding for fun possible?

Post by rene »

Absolutely. In a manner quite similar to programming Javascript it is for example also very possible to saw one's own leg off with a rusty breadknife for fun.
Dark13
Level 1
Level 1
Posts: 5
Joined: Sun Aug 01, 2021 7:11 pm
Contact:

Re: is html/js coding for fun possible?

Post by Dark13 »

Jonathan_Steadman wrote: Wed Jul 21, 2021 5:19 pm
Hi, This is the link to my website: http://jonathansteadman.atspace.cc/
It's not the best but I think it looks cool. :)
What framework did you used for Ball Roller?
resolution and DPR check https://screenresolutiontest.com
Jonathan_Steadman
Level 1
Level 1
Posts: 47
Joined: Tue Jun 08, 2021 11:50 am
Location: UK
Contact:

Re: is html/js coding for fun possible?

Post by Jonathan_Steadman »

Dark13 wrote: Mon Aug 02, 2021 1:17 pm
Jonathan_Steadman wrote: Wed Jul 21, 2021 5:19 pm
Hi, This is the link to my website: http://jonathansteadman.atspace.cc/
It's not the best but I think it looks cool. :)
What framework did you used for Ball Roller?
Not too sure. I used a game engine called play canvas though. It was like the tutorial version that I was messing around with. But overall I was pretty new to the engine. By the way thanks for trying out my projects. :)
Locked

Return to “Programming & Development”