17 ms·
Show HN: LiveTyper, a simple typing speed tester
Phoenix/LiveView using Presence to show the other players online.
My 2nd thing in a vague quest to make 12 things in 12 months.
- deleted 4y ago[deleted]
- rbaudibert 4y agoI can just press <space> and it counts my keypresses. It doesn't look like it's actually validating I'm typing the correct thing. Edit: hold on, that was me being dumb. The actual bug is that if I press "Caps lock" (because I type capitalized letters by quickly typing Caps lock + Letter + Caps lock) it incorrectly counts it as a keypress.
- amalgamated_inc 4y agoMaybe the UI could be clearer; if the text has a red background, that means it's wrong and you need to backspace. Correct text will have a blue background. Sorry about the caps lock, will add! Currently only checking for the shift key itself. Good catch, thank you.
- amalgamated_inc 4y agoOk, caps should work now! Please let me know if you're still having issues.
- rbaudibert 4y agoThat worked perfectly, thanks :). That's a really nice app
- deafpolygon 4y agoThat's fun. 122wpm, but it feels like the text was trying to keep up, and it kept throwing me off a little bit. I can average ~140 on text like these, normally.
- amalgamated_inc 4y agoHaha I'm in the same boat. I think it's the slight lag because this is server-side rendered with LiveView. I'm just trying to keep going when the occasional little hiccup occurs and I'm confident I didn't mistype. Takes getting used to, though, for sure.
- manchmalscott 4y agoIt just completely locks up for me right now, might have to try later. Front page of HN and whatnot.
- lelandfe 4y agoDitto. It keeps trying to make a WebSocket connection, failing, and then retrying forever. Looks like there's no error handling.
- catapart 4y agoJust a little feedback: the typing does not keep up with me (and I only type around 80wpm), and lags so far behind that I can get around 15-20 characters in before it registers that a mistake was made 15 characters ago. I'm running it on Firefox, on Windows 10. Based on other responses, I'm assuming this doesn't happen for everyone, so if it's just me, feel free to ignore. Just putting it out there in case you'd like to investigate.
- amalgamated_inc 4y ago15 characters ago feels excessive, I get maybe 1-2 at 120-140wpm. Do you know what your ping to the US east coast is?
- catapart 4y agoYeah, it definitely feels sluggish, so I assumed it was bugging out. It started pretty snappy and then slowed way down. Ping tester says somewhere between 50 and 75ms to Amazon's Virginia center.
- amalgamated_inc 4y agoI think it ran out of memory and the BEAM crashed and restarted. Gave it a bit more memory, hoping it'll hold out haha
- catapart 4y agoHa ha! Nice. Yeah, I saw on another comment that you're apparently running this with SSR, which is pretty crazy, to me! I'm surprised it's as snappy as it is, honestly, but the lag makes a lot of sense, now. Also shocked that you'd want to incur that much bandwidth cost - assuming you're being charged for it. Something like this should be able to run in the client effortlessly, so I would think even experimenting with SSR, you'd want to do most of the processing client side and then just dribble in the server re-renders, for more batched processing. In any case, good job! Definitely does the thing you set out to do with it, and is a clear demonstration of SSRs capabilities (and current weaknesses).
- mixedmath 4y agoThat's pleasant. At one point it was approximately one half-screen away in lag (at 125 wpm or so). But this gave an additional impression of zooming.
- deleted 4y ago[deleted]
- empressplay 4y agoTyping backspace in Vivaldi causes it to revert to the previous webpage, but Chrome has no problem in that regard. Cool site :)
- amalgamated_inc 4y agoThanks! Sorry about the Vivaldi experience :(
- Jorengarenar 4y agoI'm not sure if it's the site problem, but seems like I can just smash keyboard and it registers it as correct? Edit: rather server overload - everything was for a while counted for me as a typo (without a typo counter); now I see red meant all the time incorrect.
- amalgamated_inc 4y agoAre you sure it's registering as correct? If you hit the wrong keys it should highlight them with red background and show "Typos" in the top right corner.
- Jorengarenar 4y agoSchrodinger typing - it was both registered as typo and not counted as one.
- amalgamated_inc 4y agoWeird! Can you reproduce it? If so, could you let me know how?
- Jorengarenar 4y agoLooks like the counting just not starting if you make a typo on the very first letter.
- amalgamated_inc 4y agoWhen I typo the very first letter, the typo count goes up, but the game doesn't begin counting. I have to backspace and get the first letter right, then it starts. Is that not what you're seeing?
- Jorengarenar 4y agoYes, that's what I see
- splittydev 4y agoPretty cool, but there's a lot of lag when typing fast. I keep typing from memory, but I don't see typos in real time. Got up to 150 WPM and the text didn't scroll fast enough to see what to type next. I'm guessing the lag comes from the networking part, is there any chance you could provide a single-player version, or fix the lag on the multiplayer one?
- amalgamated_inc 4y agoI've been checking the server logs, and it claims to always reply within a few milliseconds. It might just be lag somewhere between the server and the users' browsers. Seems to be mostly ok for me and then suddenly go super creep mode for a few seconds. Due to the nature of LiveView, I don't think I can eliminate the lag entirely, sorry. It's not just the other players, your own stuff goes to the server and back every keystroke too.
- codegeek 4y agoNice. I clocked 80 WPM and as others pointed out, it sometimes lags behind your keystrokes. I also love playing with https://typeracer.com https://typeracer.com at times. I don't understand how some of you can clock 120+ WPM. I have been typing for years but just can't get my WPM beyond 80-85 at best.
- amalgamated_inc 4y agoFor what it's worth, I "naturally" got up to 110-140wpm (depending on a lot of factors) but can't seem to break into 150, ever. I see people easily go 170-180, but I seem to just hit a wall and make tons of mistakes. Maybe a genetic thing, who knows :D Or maybe those people just train a TON.
- Tepix 4y agoOK, yet another typing speed tester! My 2 cents: - I like the "heatmap" and the ghosts features. - I don't like the fact that the text moves around on the screen while i am typing. It really shouldn't do that, because it is distracting. - Once you have a typo, the program never notices that the entered text is just off-by-one. Could use improvement. - I don't like it being server side. It seems so unnecessary. But hey, it's your page!
- amalgamated_inc 4y agoThanks for the feedback! Was that you I was just racing? :)
- Tepix 4y agoNot sure, i got slightly over 100wpm