6 ms·
Typescript is amazing! I spent the last 90 days porting about 350k lines of code to Typescript plus implementing another 400k. https://getpolarized.io/ https:
by burtonator 8y ago
Typescript is amazing!
I spent the last 90 days porting about 350k lines of code to Typescript plus implementing another 400k.
https://getpolarized.io/ https://getpolarized.io/
It's basically a document and annotation manager for PDF and notes. Kind of an Open Source Mendeley/Evernote/Github if you will.
This code base is changing often and I really hit a dead in in terms of JS scalability.
I was just refactoring too much, breaking things, etc.
Now I can just rely on the compiler when I break things.
If I want to change a function type in TS it's no problem.
In JS it's a nightmare.
- misiti3780 8y agoyour project is amazing, i would love to help contribute as i have time. please reach out if you need development help.
- burtonator 8y agoDefinitely always need help even if it's just feedback on releases. The issue tracker is a good place to start looking :)
- jondubois 8y agoWTF. The project seems completely useless and gimmicky to me. My problem is that I read a LOT of articles and publications. If I started highlighting things in articles, I would never have enough time to go back to them. Besides, why would I want to? I already read it, which means that it's already in my mind! What's the point of reading stuff if not to put information inside your mind? I'd rather use my time to read more new stuff than to revisit things I already know. Maybe the solution is not more tools, it's just to stick to topics that interest you and to pay attention and put more thought into what you're reading.
- misiti3780 8y agomaybe you should be a little less critical about someone who actually built something extremely useful and spend some time investigating the topic of "incremental reading" -- reading info and retaining info are two different things https://www.supermemo.com/help/read.htm https://www.supermemo.com/help/read.htm
- jondubois 8y ago>> reading info and retaining info are two different things I apologize, I projected my own experience and assumed that other people were able to remember the main points of what they read. I guess most people don't have have great memory. I never thought of myself has having good memory but I remember the main points of most of what I read.
- misiti3780 8y agoalso, looking for an answer to this question :) https://www.reddit.com/r/PolarBookshelf/comments/ah1g5w/what_is_the_difference_between_the_red_green_and/ https://www.reddit.com/r/PolarBookshelf/comments/ah1g5w/what...
- 5Qn8mNbc2FNCiVV 8y agoOh my god, getpolarized is exactly what I am currently trying to achieve. I tried out PDF.js to get highlighting and reading progress in my application but could never figure it out. This is amazing!!
- burtonator 8y agoNice!! glad you approve! Jump on the Discord if you have any questions.
- netcraft 8y agoAny chance you would ever add RSS capabilities?
- burtonator 8y agoThinking about it actually but for now worried about feature creep. We will see though. I was actually one of the original inventors of RSS 1.0 and was on the working group. http://www.datastreamer.io/ http://www.datastreamer.io/ Is my other company and we have about a petabyte of content ... so definitely familiar with the space. I'm trying to look at things a bit differently now though. I have a bunch of ideas I'm going to experimenting with.
- burtonator 8y agoActually might just implement it because you guys at Hacker News will upvote me into the stratosphere ;)
- jfaat 8y agoThis looks awesome, going to check it out this weekend! FYI in a narrow (especially < ~1000px) the Features icons are overlapping content. I tried changing the class 'fa-4x' to 'fa-2x' on those icons and it appears to fix the issue.
- oh_sigh 8y ago4000 LOC a day, every day, for 3 months? I hope that's a lot of boiler plate!
- idontpost 8y agoDepends on his coding style. You can write Typescript like Java. You can also write it (almost) like Clojure. It's really very flexible, but without most of the insanity that flexibility causes in normal JS.
- Scarbutt 8y agoTypescript has a standard library like clojure for manipulating data? like the lodash of the JS world. I would be surprised (without golfing of course) if typescript can match clojure's conciseness.
- dragonshed 8y agoNo, typescript adds as little as possible to support its language features. You'll need to rely on js libraries or browser features for the API.
- idontpost 8y agoI didn't say it could match it. I don't think it can, but you can write it very concisely if you choose to. There's not a big difference in concisesness or readability between Clojure threading macros and JS promise chaining, for example: (-> (do x) then-do-y then-do-z then-do-q) vs doX() .then(doY) .then(doZ) .then(doQ); Of course, the Clojure version is more flexible, and the ability to define DSLs very simply allows for further conciseness, but that's all beside the point. My point is just that Typescript can be written very concisely or very verbosely, depending on your own coding style.
- Scarbutt 8y agoSo you did 750 thousand lines of code in 90 days? impressive.