amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
17.93k stars 1.16k forks source link

Why is the source code so bad? #1341

Closed risen228 closed 6 months ago

risen228 commented 7 months ago

Maybe it will be better to rewrite everything to TypeScript and use better variable names instead of 1/2-letter and something like cat?

bmatusiak commented 7 months ago

most of the methods properties and function names are acronyms ( its saves space ) i.e. ack = acknowledgement ( we want to drive a civic, not a hummer, on the internet ). typescript is not JavaScript. and yes gun has been rewritten.. many many many,..... many.. times. ( you can find a typescript version i bet )

please don't take any offence. not defending. not enforcing.. just stating the arguments here.

amark commented 6 months ago

I'm a mathematician, so I prefer 1 letter variables (or as short as possible), it lets me hold more complexity in my head at once. Good / Bad is very relative, so I use performance benchmarks as the true judge of code quality. But feel free to use one of the TypeScript ports - https://gun.eco/docs/Porting-GUN .