Live data from Hacker News

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

codewich.com

31–40 of 52 posts

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

#31
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…

> Unfortunately not many devs are trying out TypeScript.

Really? I've seen so much hype for typescript (though not as much recently). How much is enough?

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

#32

Earlier quoted context omitted.

Couldn't the same be said about TypeScript? "I wish Microsoft would drop TypeScript 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 Flow."

This is a bit meta, but both of you stated a position without providing a concrete rationale. Something to consider is that people can gloss over an explanation for convenience. For example: in the previous sentence, I didn't provide any proof that it's accurate. You could make the argument that nobody glosses over explanations for convenience. I don't think it's necessarily worth proving every statement, because tha…

> This is a bit meta, but both of you stated a position without providing a concrete rationale.

The primary difference being that "my position" was not actually my position, it was just an attempt to point out exactly what you're trying to say.

I guess I failed ;)

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

#33
post #25

This is the cleanest layout I've seen for one of these playgrounds. 95% of my screen estate is the editor and preview - you shot the UI off the side and kept it out of my way. Thank you for that! The only thing missing for me are transpilers for CSS/HTML. I'm a bit spoiled in being able to use SCSS and Pug over at Codepen. Between choosing between autocomplete/error highlighting for .ts or SCSS/Pug support I sadly wi…

Glad you like the simple layout!

One of my goals for this is to avoid anything that requires a backend and do everything in the browser. This lets you keep your code private and makes Codewich basically maintenance-free (hopefully). Looks like sass can run in the browser with emscripten, so that should be possible, but seemingly not pug?: https://github.com/pugjs/pug/issues/2655.

Feel free to file an issue for SASS if you'd like to track the progress. https://github.com/calebegg/codewich

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

#34

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 loaders, third party language tools (linters, etc.), top-tier non-VS Code editor support, and so on.

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

#35

Earlier quoted context omitted.

This is a bit meta, but both of you stated a position without providing a concrete rationale. Something to consider is that people can gloss over an explanation for convenience. For example: in the previous sentence, I didn't provide any proof that it's accurate. You could make the argument that nobody glosses over explanations for convenience. I don't think it's necessarily worth proving every statement, because tha…

> This is a bit meta, but both of you stated a position without providing a concrete rationale. The primary difference being that "my position" was not actually my position, it was just an attempt to point out exactly what you're trying to say. I guess I failed ;)

So you disagree or just were wanting to understand the backstory? I would try to help you but the sarcasm makes it unclear the best way to do that.

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

#36
post #26

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.

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.

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.

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

#37
This is quite possibly the coolest thing I've seen so far.

I would be quite happy if you added some collaboration controls (give read access without giving write access) because I could use this for a lot of our training.

I just put together a websocket demo for anyone who wants some live documentation on how to integrate actioncable-js with their non-actioncable enabled application for client-side updates ->

https://codewich.com/#v1,,,bVHLTuMwFGWNxD9YHiQSiTriMSwKqdTpA...

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

#38
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…

TypeScript is the 9th most used language on the StackOverflow survey - ahead of languages like Ruby, Swift, and Objective-C - so I wouldn't say that "not many devs" are trying it out. :)

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

#39
post #26

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.

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.

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

#40
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.

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

Post reply on HN