TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Usable Live Programming

82 点作者 ryanbrush将近 11 年前

7 条评论

danabramov将近 11 年前
Shameless plug: though unrelated to the article, for the past few days I&#x27;ve been working on live reload for React components.<p>As you edit JSX files, after a small delay, components re-render in browser, using React&#x27;s diff algorithm to reconcile DOM. This means their state is not destroyed. For example, you can live-edit a modal window without having to refresh and open it again. You can change event handlers and debug a complex component on the fly.<p>There are no browser plugins involved, it&#x27;s all just JS. This is implemented on top of Webpack, if you want to give it a try, check it out! (I assume familiarity with Webpack, but I plan to write an explanatory blogpost later.)<p>I&#x27;m very excited about this because I think it&#x27;s the future of front-end development. It is possible thanks to React&#x27;s separation of side-effects and Webpack&#x27;s powerful plugin system (loaders are essentially macros).<p>Project on Github: <a href="https://github.com/gaearon/react-hot-loader" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gaearon&#x2F;react-hot-loader</a> (contains an example you can run)<p>Demo video: <a href="http://vimeo.com/m/100010922" rel="nofollow">http:&#x2F;&#x2F;vimeo.com&#x2F;m&#x2F;100010922</a>
评论 #8028573 未加载
asgard1024将近 11 年前
I am not a big fan of &quot;immediate feedback&quot; in coding (such as instant compilation). I find it distracting.<p>What I think I would appreciate more than &quot;live&quot; values of variables etc. would be integration of some statistics into IDE. For example, how often was this function called? What is the usual value of this parameter? What is the mean&#x2F;modus value? What are the outliers? How often was this condition true? And so on.
评论 #8027236 未加载
评论 #8027657 未加载
评论 #8027299 未加载
mike_hearn将近 11 年前
The Glitch paper was discussed previously on HN and is very interesting:<p><a href="http://research.microsoft.com/pubs/211297/managedtime.pdf" rel="nofollow">http:&#x2F;&#x2F;research.microsoft.com&#x2F;pubs&#x2F;211297&#x2F;managedtime.pdf</a><p>It&#x27;s great research. Near term applicability would be more useful to me as an IDE plugin that works with existing reactive frameworks. For instance, it turns out that the latest Java UI framework (JavaFX) has a reactive&#x2F;lazy functional bindings framework in it. Every property of every UI widget can be connected to other properties or derived expressions of those properties. Of course Java itself has no support for this so it&#x27;s all framework level stuff. An IDE plugin &#x2F; embeddable DSL that understood these constructs and allowed for real-time debugging like in the videos would be useful indeed: whilst I love binding UI widgets to the backend data model with that framework, debugging it can be a total timesink.
评论 #8027376 未加载
sitkack将近 11 年前
I love this stuff. I&#x27;d love a heat map superimposed over the code that represents the range of the values and the likelihood or risks of sub expressions overflowing or underflowing.<p>I&#x27;d like to capture the execution flow of a method, visualize it and then watch those visualizations diverge from the old code to the new code.<p>The runtime could collect a minimal representative set of function invocations and then use that in a visualization during the edit,debug cycle one could see exactly how the new code diverges (kinda like having a column of inputs in a spreadsheet).
kilon将近 11 年前
Live coding is not a &quot;new thing&quot;, both Smalltalk and Lisp , two of the oldest programming languages are live coding languages. I am using a modern Smalltalk implementation called Pharo.<p><a href="http://pharo.org/" rel="nofollow">http:&#x2F;&#x2F;pharo.org&#x2F;</a><p>When it comes to live coding, Pharo is &quot;hardcore&quot; , everything is live, direct , accessible and easily modifiable. Pharo is based on Squeak , which is based on Smalltalk-80 which is based on Smalltalk that means 45 years of live coding experience condensed in beatiful language, IDE and evironment. Pharo can already do all the things that the linked article tries to accomplish.<p>The end goal is provide a unified direct experience to the user, no delays, no complexities just what you want to do with your code.<p>So to anyone whos really interested to live coding, try Pharo or some modern implementation of Lisp. Even if you create your own live coding implementation it will give you a good idea how great live coding can be.
评论 #8041239 未加载
评论 #8030803 未加载
thikonom将近 11 年前
reminds me of <a href="http://vimeo.com/36579366" rel="nofollow">http:&#x2F;&#x2F;vimeo.com&#x2F;36579366</a>
erokar将近 11 年前
Looks a lot like Apple&#x27;s Playgroud for Swift.
评论 #8027273 未加载