6 ms·
This is the Internet of Things for code. This is wonderful. This is also probably a snarky shot at npm [1], for those who lack context. [1] https://news.ycomb
by michael_storm 11y ago
This is the Internet of Things for code. This is wonderful.
This is also probably a snarky shot at npm [1], for those who lack context.
[1] https://news.ycombinator.com/item?id=11340510 https://news.ycombinator.com/item?id=11340510
- Rauchg 11y agoMy goal was for it to be entertaining and educational[1]. I love npm (which made this possible to begin with!) [1] ES6 features (arg defaults, destructuring, modules, template literals, String.prototype.repeat), babel configuration and runtime compilation, async / await
- tstrimple 11y agoI feel like require-from-twitter really helps enforce the Unix philosophy. It's hard to write modules with multiple responsibilities in 140 characters.
- kristianp 11y agoI wonder how large a system could be created using nested tweets of js. Needs versioning though.
- taneq 11y agoAs large as you want: https://users.soe.ucsc.edu/~jpagnutt/Elevator_Pitch.pdf https://users.soe.ucsc.edu/~jpagnutt/Elevator_Pitch.pdf (PDF warning)
- ntumlin 11y agoThis does need a warning, but PDF isn't the reason.
- yxlx 11y agoWhat does the link do?
- 55555 11y agoIt opens your mind until your brain falls out.
- PhasmaFelis 11y agoIt's just a PDF. It's a funny PDF, though.
- bobwaycott 11y agoWhat. The. Hell. Amazing.
- plugnburn 11y agoActually, there are several immutable FS-over-tinyURL projects. I have created some of them too. A real problem with Twitter is that you can get banned quickly for doing this.
- vidarh 11y agoCareful what you wish for - someone is bound to try to prove you wrong now.
- anotherevan 11y agoThere will be a fork that allows concatenation of multiple tweets.
- gregorkas 11y agoThis is brilliant :).
- javajosh 11y agoHey, nice one! But reading the code I didn't see any arg defaults or destructuring. Saw the other stuff though! Which is pretty darn cool.
- Rauchg 11y agoI was considering the source tweet as well :D
- jsprogrammer 11y agoExcept the problem isn't editing, but deletions. Twitter allows deletions and explicitly requires you to process and honor deletion events in their TOS. They have even blocked API access to programs that don't honor deletions. So, just as bad (or, maybe worse, in that you can't even keep around committed code that comes through this process, if the originating tweet was deleted) as npm.
- ghayes 11y agoOn the other hand, no one can reclaim a tweet after it's been yanked. So, `require from tweet` is a safer system for your production systems.
- jsprogrammer 11y agoTwitter API clients are required to delete all copies of tweet contents when a tweet is yanked, or Twitter will revoke API access, which might bring your production systems to a deserved halt.
- jamstruth 11y agoYes but they won't accidentally pull a malicious version of the tweet pretending to be the original. They'll just stop working
- jsprogrammer 11y agoThat is an unacceptable outcome for production systems.
- Navarr 11y agoReading the NPM blog today - that's not really a problem in NPM. Reclaiming a module name requires a breaking version for any new code, so it shouldn't be an issue there.
- bronson 11y ago
- tomtomtom777 11y agoI would say it is an equally snarky shot at all those who choose to depend on a third party module for something that can be written in 140 chars.