Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sbjs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
211.
▲
by
sbjs
8y ago
This is really amazing work! I think the only thing it needs now is to have https://ianh.github.io/owl/try/ wrapped up into an Electron app that can load/save Owl files and generate header files for you right
212.
▲
by
sbjs
8y ago
Hi, I see that this is your tool, just wanted to say it looks amazing ! Also I did not realize how much of a difference syntax highlighting makes for this kind of thing until I clicked through to your Try Owl link, and, wow! Have you use
213.
▲
by
sbjs
8y ago
I get why that's funny, but I actually thought that made a good point: regular expressions in the wild can become unruly and difficult unless you break them down, but the concepts of regular expressions are very simple and natural to u
214.
▲
by
sbjs
8y ago
TypeScript can do runtime checks like this! Granted it uses a TypeScript framework (similar to AJV) that both does the runtime checks and preserves type information for your IDE and type checker. I wrote about it here: https://
215.
▲
by
sbjs
8y ago
Does that mean there's still room in the JS ecosystem for a Rails-alike? Maybe one that could become very popular? Because I am looking for a major open source project to create and spearhead, something that could get hundreds of thous
216.
▲
by
sbjs
8y ago
Just use Express.js or Sails.js, they're 1:1 to Sinatra or Rails. Join us!
217.
▲
by
sbjs
8y ago
How is that cargo-culting? GP's comment doesn't even seem to come close to the meaning of cargo-culting. And yes, type definitions in my projects account for a good percentage, anywhere from 5-25% of each file, if you take into ac
218.
▲
by
sbjs
8y ago
You're actually arguing against your own point. "Do one thing and do it well" is a great philosophy, and TypeScript actually does that more than Babel does. Babel does translation and polyfill, TypeScript only does translat
219.
▲
by
sbjs
8y ago
"Where was mind when the universe was born? And what sustained the universe for the billions of years before we came to be?" I'm sorry but this is just dumb. Things existed before the author was born, and the author doesn
220.
▲
by
sbjs
8y ago
I tried Flow and TypeScript for the first time a few months ago. Flow is absolutely abandoned and dying. TypeScript is taking over where Flow left off, and is far ahead of the game by now. I use TypeScript with create-react-app in my client
221.
▲
by
sbjs
8y ago
Anything more complicated than a little jQuery stuff is going to need build tooling anyway, at least Webpack and probably JSLint and Mocha. Since those are already there, adding either Babel or TyepScript isn't all that difficult.
222.
▲
by
sbjs
8y ago
That doesn't seem right. I don't know anyone who uses Azure outside of a .NET-centric programming job. Azure always seemed to be like "hey if you heard good things about AWS and need a place to deploy your code but you'v
223.
▲
by
sbjs
8y ago
If everything is typed in TypeScript, I see a lot of serious potential for optimization, like using only the memory needed per object exactly like a struct in C or C++.
224.
▲
by
sbjs
8y ago
In what way have you found Babel to be a better translator?
225.
▲
by
sbjs
8y ago
What developer overhead? If you consider the compile-TypeScript phase to be literally no different than your jslint phase, then this build step doesn't really add any overhead. If you're talking about having to write out the types
226.
▲
by
sbjs
8y ago
Oh! Duh! How could I have forgotten Azure! Yes, that's definitely where all this is headed. They could be trying to position TypeScript as a secret weapon that gives Azure an edge over AWS. Especially if they're planning on using
227.
▲
by
sbjs
8y ago
I think you just solved the mystery I was wondering about... I bet Microsoft's endgame here is to create a new platform. Think about it, they're actually succeeding in getting types added to every single JS package out there, slow
228.
▲
by
sbjs
8y ago
Probably 90% of third party libraries I ever used in my TypeScript projects have TypeScript interfaces built into them, so you just install the package like normal `npm i -P somelib`, and TypeScript automatically knows its types. Maybe 9% o
229.
▲
by
sbjs
8y ago
More and more projects are adding TypeScript definition files for us, and many are even being written (or rewritten) using TypeScript directly! I honestly think TypeScript is the future of JavaScript. In fact, I can't help but wonder w
230.
▲
by
sbjs
8y ago
I was told that I should start speaking at conferences right away, because "teaching is the best way to learn". I guess it's supposed to motivate me to learn "faster" if I have a deadline and the pressure of regurgi
231.
▲
by
sbjs
8y ago
I read what I have time for at the moment and that’s it. I accept that I won’t ever be able to read or even do all the things I want in life and just take it moment by moment. If something seems important than I use my built in memory to re
232.
▲
by
sbjs
8y ago
To clarify, I don't recommend it. Just giving food for thought.
233.
▲
by
sbjs
8y ago
I figured it would take 1% and keep it, but ads might make more sense.
234.
▲
by
sbjs
8y ago
You can still care about yourself more than the person but at the same time want something from them badly enough that you'll reverse this when you interact with them. It's called sucking up.
235.
▲
by
sbjs
8y ago
Ah right, thanks. Yes this always looks backwards to me. The body of a loop should be inside of it. But here it is the body of the loop. That is very strange.
236.
▲
by
sbjs
8y ago
For as long as I can remember, news television has been a total joke. There's Democratic News and Republican News and both are obvious liars. I never read newspapers so I don't know if those are any better but I imagine not.
237.
▲
by
sbjs
8y ago
You would absolutely be surprised how far you can get using a process’s memory as it’s official database and just dumping it out to disk periodically for persistence. I kind of want to write an article but the article can’t do it justice: I
238.
▲
by
sbjs
8y ago
That’s literally all traditional news is. One questionable and undoubtedly biased source writes an article. If it’s likely to get attention, then other news stations copy it verbatim. Social media is just an “unpolished” version of this pre
239.
▲
by
sbjs
8y ago
I don't think so? The product is too simple to get destroyed from money pressure and bloat. All it needs to do to make it worth their while is skim a little off the top, maybe 1%.
240.
▲
by
sbjs
8y ago
This is especially important when dealing with potential clients. Can't risk putting them off and losing that relationship! Wait til you get to know them, go to the bar and have a few drinks first, see if they have the same humor as yo
More ›