Live data from Hacker News

Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

codewich.com

41–50 of 52 posts

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#41
post #5
post #2

I've found that there's almost no "first class" support for TypeScript in similar apps like JSFiddle, Codepen, Plunker, etc. If they do support it, it's only the syntax, not the autocomplete and error highlighting (the cool parts!). So I decided to try making my own. Here are a few quick things I've written with it so far: https://goo.gl/zZy697 ("Flocking" behavior in a simple particle system) https://goo.gl/1q2kmr (…

It was really fun to change some values in your Flocking script and see how the particles react.

I agree that it's a great example, and would be cool to have a similar example when you first load the site. Being able to play with code that exists is much more engaging than having a blank slate.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#42

Earlier quoted context omitted.

No, this is hyperbole and misleading. Follow their roadmap and stated direction. They have always been committed to aligning with standards and whenever ES adopts new functionality they gravitate to it's lead. They will never drift off to some mutation that isolates you from the JS ecosystem or its benefits.

If you look up "embrace, extend and extinguish" in the textbook, you will see Microsoft mentioned in the first sentence [1]. If you are old enough to remember Internet Explorer, you've already seen how this works. Consider then that static types do in fact extend JS and perhaps you'll see why this is not so reassuring after all. [1] https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish

In 2017 blurting out EEE every time MS does something good is spreading FUD.

Typescript is an open language anyways, there is nothing to extinguish

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#43
post #39
post #26

Earlier quoted context omitted.

Flow is JavaScript (with type annotations) while Typescript is an entirely different language that needs to compile to JavaScript. You do not need any source maps for Flow as it just replace the type annotations with spaces. So you get to eat the cookie and keep it, while with Typescript you eat the cookie and lock yourself in.

This is completely untrue. If you follow the progress of TS, you'll see they are completely committed to only adding features that will end up in JS proper. Time and time again they have refused to add features because they aren't part of Ecmascript.

Making Typescript work in pure js files with commented types is a requested feature.

I have absolutely no doubt that it will get implemented sooner or later. Typescript + vscode team pay great attention to the community.

If you want to see it happen, this is the issue to vote on: https://github.com/Microsoft/TypeScript/issues/9694

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#44

Earlier quoted context omitted.

What do you mean by "the next feature you would logically want"?

well in my experience, and this has happened a few times with different requirements which is why I was generic, what happens is you try to use more and more of TypeScript's features to get strict typing (keyof, mapped types, discriminated unions etc) and they work great for 80% of cases. Then you push the feature too far and it falls down. For example, I managed to get tsc to hit a "stack depth exceeded" error by ad…

Yes, TS does have limits. Its still very expressive compared to most mainstream type systems.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#45
post #18

I wish Facebook would drop FlowTypw at this point. It's been a nice contribution and spurred some competition. But there is no real vision for how it's going to add a lot of value above and beyond TS. One immediate benefit would be better support for react. Yes it works but not always as seamlessly as Angular/TypeScript.

I wish the same. Unfortunately not many devs are trying out TypeScript. I've used React+TS for a year now. It works perfectly. The decorators in TS are great to use with the react-redux implementations - makes the code look less verbose The only problems I have faced is when type definitions are not available for certain libs. The workaround is simple - using "require(...)" instead of "import .. from ..." statements…

You should try the "allowJs" tsconfig option, it should allow to use the JS libraries without types with normal syntax (if you do that already with require trick, you are basically doing that anyhow).

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#46

I wish Facebook would drop FlowTypw at this point. It's been a nice contribution and spurred some competition. But there is no real vision for how it's going to add a lot of value above and beyond TS. One immediate benefit would be better support for react. Yes it works but not always as seamlessly as Angular/TypeScript.

Yeah, using Flow with React is painful. Which is weird, considering they're both from Facebook. Want to add a propType for 'children'? Sorry, nope. Want to use the equivalent of PropTypes.node? Good luck with that. The biggest thing that I see as a barrier to entry for TS (and someone please correct me if this is no longer a problem) is integration with build tools from the rest of the ecosystem. Webpack with fancy l…

TypeScript's strong part is the IDE support. It worked great with Eclipse years ago (using the same language server), it worked with Atom years ago. It has Sublime plugin that also uses the language server (not tried this myself). This is because the whole language is build with IDE tooling in mind. It's also approachable, as more language servers are being built the same way, like the PHP language server that is now gathering steam and will be used in several IDE's also besides VS Code.

Webpack and fancy loaders could be issue if you want type checking on really fancy syntax plugins. (Not sure what they are, since JSX is part of TS) These days you need one Webpack loader anyway for new ES features. It's really great that you can just remove Babel and use ts-loader in place as many of the ES features are already in TS.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#47

Earlier quoted context omitted.

No, this is hyperbole and misleading. Follow their roadmap and stated direction. They have always been committed to aligning with standards and whenever ES adopts new functionality they gravitate to it's lead. They will never drift off to some mutation that isolates you from the JS ecosystem or its benefits.

If you look up "embrace, extend and extinguish" in the textbook, you will see Microsoft mentioned in the first sentence [1]. If you are old enough to remember Internet Explorer, you've already seen how this works. Consider then that static types do in fact extend JS and perhaps you'll see why this is not so reassuring after all. [1] https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish

I appreciate you standing up to bad behavior of companies. The thing is that was a long time ago in a industry where things change very quickly.

MS has for a while now been opening more of its own systems, embracing linux, following standards instead going proprietary etc.

I'm not saying they've found Jesus, it's mostly pragmatic. A few new leaders have found that this approach simply works better and is less douchey at the same time.

So I would say let go of the EEE era. There is lots of bad behavior still going on that is a greater threat. They could benefit from your energy.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#48
post #2

I've found that there's almost no "first class" support for TypeScript in similar apps like JSFiddle, Codepen, Plunker, etc. If they do support it, it's only the syntax, not the autocomplete and error highlighting (the cool parts!). So I decided to try making my own. Here are a few quick things I've written with it so far: https://goo.gl/zZy697 ("Flocking" behavior in a simple particle system) https://goo.gl/1q2kmr (…

This is a neat project. One thing that might make it more immediately clear would be an "show example" button that randomly loads one of those three links.

I probably would have just left the blank page and forgotten about it if I hadn't seen your comment, but after seeing the examples, I won't forget the site for quite a while.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#49
post #46

Earlier quoted context omitted.

Yeah, using Flow with React is painful. Which is weird, considering they're both from Facebook. Want to add a propType for 'children'? Sorry, nope. Want to use the equivalent of PropTypes.node? Good luck with that. The biggest thing that I see as a barrier to entry for TS (and someone please correct me if this is no longer a problem) is integration with build tools from the rest of the ecosystem. Webpack with fancy l…

TypeScript's strong part is the IDE support. It worked great with Eclipse years ago (using the same language server), it worked with Atom years ago. It has Sublime plugin that also uses the language server (not tried this myself). This is because the whole language is build with IDE tooling in mind. It's also approachable, as more language servers are being built the same way, like the PHP language server that is now…

The IDE support I yearn for is the really nice autocomplete support you see in tools designed specifically for TS. Last I used it, it was very flimsy in Sublime and Atom--very little in the way of helpful suggestions. Perhaps that's been improved, which I would welcome.

The loaders I use in webpack are mostly around asset loading. Style loaders, integration with other languages (coffeescript...ugh) for some weird legacy code, etc.

Re: Show HN: Codewich – A live-updating TypeScript/CSS/HTML playground

#50

I wish Facebook would drop FlowTypw at this point. It's been a nice contribution and spurred some competition. But there is no real vision for how it's going to add a lot of value above and beyond TS. One immediate benefit would be better support for react. Yes it works but not always as seamlessly as Angular/TypeScript.

Yeah, using Flow with React is painful. Which is weird, considering they're both from Facebook. Want to add a propType for 'children'? Sorry, nope. Want to use the equivalent of PropTypes.node? Good luck with that. The biggest thing that I see as a barrier to entry for TS (and someone please correct me if this is no longer a problem) is integration with build tools from the rest of the ecosystem. Webpack with fancy l…

[deleted]
Post reply on HN