Competitive touch typing for JavaScript / Typescript programmers
mfbx9da4 / coderacer Goto Github PK
View Code? Open in Web Editor NEWCompetitive touch typing for JavaScript programmers
Home Page: https://coderacer.pages.dev/
Competitive touch typing for JavaScript programmers
Home Page: https://coderacer.pages.dev/
Competitive touch typing for JavaScript / Typescript programmers
It would be better to have to press enter at the end of lines and backspaces for each typo. To not get into the habit of not having to do those things.
I was looking at the code of the websocket server because as mentioned in #4 i was experiencing crashes in a particular situation (i was closing the browser after the new race was created)
looking at the code here
coderacer/deno/src/utils/BroadcastMethods.ts
Lines 39 to 44 in 72d7b1d
if the actual error is on
it will also fail on line
it should be a quite simple fix surrounding the second post message with a try catch too (this should at least prevent the server from crashing).
I think deno it's probably restarting every times it crashes and this would prevent this behavior.
If you want i can add a this in #4
I've tryed playing but got stuck on a backtick despite writing the good character combination to get the backtick in Windows.
I would have tryed to reproduce but i can't choose a specific fragment of code and not every piece of code has the backtick.
The issue is definitely here:
coderacer/sveltekit/src/routes/race.svelte
Lines 162 to 187 in 72d7b1d
Handling the keydown event has it's own set of problems. The best solution would be to let the user write in an input (handled by the browser) and use the input event to check for the correctness.
If you want i might try to take a shot at this and open a PR. Let me know.
I would like to be able to practice touch typing with some text that I introduce, or I'd give a link to a raw github page and load that text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.