Better HN
topnewbestaskshowjobs
Log inSign up

ReactNative22

55 karma · joined Mar 24, 2022 (4y ago) · 16 submissions

Submissions

1.

Show HN: WebSockets with Request and Response in JavaScript(github.com ↗)

3 points · by ReactNative22 · 4y ago · discuss

comment 4y ago · link · parent

I updated the repo for this (and credited you in the code). If you have time, please feel free to review & improve as looks like quite a few people are using the code now: https://github.com/ashok-khanna/react-snippets/blob/main/Rou...

comment 4y ago · link · parent

Unfortunately I'm restricted on the programs I can use at work, but it does look good! Good luck with it!

comment 4y ago · link · parent

Python and Pandas > Excel for anything outside of exploratory spreadsheet-y like calculations (I work frequently with 200k rows + of data, I _had_ to learn Python as Excel was too slow eventually and broke...now having a programming language to do formulae, I can't go back for any of my production processes, using excel now mostly for pivot tables and exploratory analysis (Excel is pretty awesome at that)

comment 4y ago · link · parent

You could put that into a VBA formula, although it wouldn't be as fast unfortunately (as I learned when I tried simplifying excel formulae - which are _compiled_ whereas VBA I think is interpreted? - in any case, excel was like 50x faster for me).

I assume you have tried the '$' signs to see if they will help?

comment 4y ago · link · parent

Thank you, I agree

comment 4y ago · link · parent

Thanks for this!

comment 4y ago · link · parent

Thanks Chris, you are awesome - this is definitely a much better approach since it gets rid of an additional Link Component

comment 4y ago · link · parent

Thanks for this. Does this add an event listener to "all" clicks or only for clicks on <a href>?

comment 4y ago · link · parent

> There's one thing, you should redirect all the pages to one single endpoint in server side order to use "pushState". Otherwise it will return 404 when you hit the refresh button. If you don't own a server, you can support routing with hashtag "#" and listen to "onhashchange" event instead of "popstate".

Could you explain this one a bit more / maybe some example code I could borrow from? :)

comment 4y ago · link · parent

Thanks :) :)

comment 4y ago · link · parent

I don't get it...this is a simple library that people can use without bringing in external dependencies. Of course it won't be as functional as React-Router - that goes without saying!!

13.

Show HN: React Routing in 120 lines (including comments)(github.com ↗)

74 points · by ReactNative22 · 4y ago · 68 comments

comment 4y ago · link · parent

Now can someone do the same for Common Lisp :D That would be amazing

comment 4y ago · link · parent

What do you think of Reddit? Subreddits have kinda replaced usenet groups of old. OR is it too much moderation for you?

Also how to handle spam, thats been a killer for usenet lately

16.

Common Lisp Cheat Sheet(github.com ↗)

4 points · by ReactNative22 · 4y ago · discuss