rgbds-live icon indicating copy to clipboard operation
rgbds-live copied to clipboard

Use modern HTML5 and strict JS

Open Rangi42 opened this issue 1 year ago • 6 comments

This would mean adding <!DOCTYPE html> in the HTML and "use strict"; in the JS, and following modern best practices (e.g. use const and let instead of var).

Note that just adding a DOCTYPE breaks our layout, since it currently depends on "quirks mode".

Rangi42 avatar Sep 19 '24 17:09 Rangi42

Are we choosing any framework or just go wild with plain javascript?

SelvinPL avatar Sep 19 '24 21:09 SelvinPL

I don't think we need a framework beyond ACE, if you consider it one?

ISSOtm avatar Sep 21 '24 02:09 ISSOtm

I do not plan to add React or anything like that.

Rangi42 avatar Sep 21 '24 02:09 Rangi42

Yeah, it's pretty clear that mantaining the codebase in plain js is going to be difficult / time consuming so I'd suggest picking either Vue and React and start adapting the code. Do we have any preference between the two?

avivace avatar May 07 '25 07:05 avivace

I'm familiar with React and not Vue, but could learn it, and would leave that decision up to @SelvinPL or whoever actually works on the transition.

Rangi42 avatar May 07 '25 08:05 Rangi42

@Rangi42 sorry, got too much work... Since I don't learn either I'm fine with React... Do you know good component library (to not reinvent menus, tabs etc.)

SelvinPL avatar May 14 '25 21:05 SelvinPL