V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  dtysky  ›  全部回复第 10 页 / 共 22 页
回复总数  440
1 ... 6  7  8  9  10  11  12  13  14  15 ... 22  
2018-02-18 13:12:14 +08:00
回复了 admirez 创建的主题 问与答 你们过年发红包收支平衡了吗
收 6.66 支出 1w+
@uolcano 弹幕堆得,为了播放器不卡,从一开始页面的特效我已经尽量从简了。
2018-02-16 12:21:26 +08:00
回复了 gowl 创建的主题 问与答 这是我给 Electron 开的减肥药,你觉得行么?
electron 还解决了和一些浏览器做不到的系统调用问题。。。你真的有所误解
2018-02-15 10:42:27 +08:00
回复了 wasmir 创建的主题 MacBook Pro 为什么那么多人推荐 mbp 一定要上 16g 内存呢
8G 的话 估计几个稍大项目 webpack watch hot loader 卡到怀疑人生
2018-02-11 23:20:44 +08:00
回复了 WillieYang 创建的主题 程序员 倒计时!现在还有坚守岗位的同志吗?
除夕加班到初三……
这么说吧,有些东西迟早会变得无用,但你现在因为一些缘由又不得不做— ssr 就是这样的一种东西,而 nextjs 就是一种 react 的 ssr 同构框架。
2018-01-30 00:00:30 +08:00
回复了 deepred 创建的主题 求职 求大佬指点下简历
对于应届生,项目经验积累不错了,如果是还有氛围的 B 站(半年以前)挺想给你内推的,现在就算了吧。
可以试试 BAT,不过基础知识( JS、CSS、HTTP 协议)这些没怎么看到描述,这个还是挺重要的,大厂面试都会细问。

简历来看就是广度够了,深度看不太出来(除了基础知识,还有 React 源码、MVC/MVVM 原理、RXJS 使用场景和深度这些东西),面试的时候可能会被抓重点。
顺便那个 H5 网页可视化编辑工具可以重点写出来吧,感觉会是个加分项。
2018-01-14 15:37:40 +08:00
回复了 mb135 创建的主题 程序员 猿们,还记得前几年火热的 nosql 吗?
这叫螺旋上升,条件有了,以前做不好的就可以做好了

至于理念么,工程界玩的大都是学界上个阶段的东西,没什么好说的,很多年翻来覆去也很正常

需求才是一切,需要什么用什么
2018-01-12 13:22:53 +08:00
回复了 luoluoluo 创建的主题 程序员 如果花 3~5 年时间去研究一个项目,你会研究哪个项目?
游戏引擎
2018-01-12 13:20:47 +08:00
回复了 hubert3 创建的主题 JavaScript TC39 委员会正式写入 ES6 规格:请不要省略分号!
Error Correction

One of the most hotly contested religious wars in the JS community (besides tabs vs. spaces) is whether to rely heavily/exclusively on ASI or not.

Most, but not all, semicolons are optional, but the two ;s in the for ( .. ) .. loop header are required.

On the pro side of this debate, many developers believe that ASI is a useful mechanism that allows them to write more terse (and more "beautiful") code by omitting all but the strictly required ;s (which are very few). It is often asserted that ASI makes many ;s optional, so a correctly written program without them is no different than a correctly written program with them.

On the con side of the debate, many other developers will assert that there are too many places that can be accidental gotchas, especially for newer, less experienced developers, where unintended ;s being magically inserted change the meaning. Similarly, some developers will argue that if they omit a semicolon, it's a flat-out mistake, and they want their tools (linters, etc.) to catch it before the JS engine corrects the mistake under the covers.

Let me just share my perspective. A strict reading of the spec implies that ASI is an "error correction" routine. What kind of error, you may ask? Specifically, a parser error. In other words, in an attempt to have the parser fail less, ASI lets it be more tolerant.

But tolerant of what? In my view, the only way a parser error occurs is if it's given an incorrect/errored program to parse. So, while ASI is strictly correcting parser errors, the only way it can get such errors is if there were first program authoring errors -- omitting semicolons where the grammar rules require them.

So, to put it more bluntly, when I hear someone claim that they want to omit "optional semicolons," my brain translates that claim to "I want to write the most parser-broken program I can that will still work."

I find that to be a ludicrous position to take and the arguments of saving keystrokes and having more "beautiful code" to be weak at best.

Furthermore, I don't agree that this is the same thing as the spaces vs tabs debate -- that it's purely cosmetic -- but rather I believe it's a fundamental question of writing code that adheres to grammar requirements vs. code that relies on grammar exceptions to just barely skate through.

Another way of looking at it is that relying on ASI is essentially considering newlines to be significant "whitespace." Other languages like Python have true significant whitespace. But is it really appropriate to think of JavaScript as having significant newlines as it stands today?

My take: use semicolons wherever you know they are "required," and limit your assumptions about ASI to a minimum.
2018-01-09 11:24:42 +08:00
回复了 a752252255 创建的主题 业界八卦 阿里程序员穿特步鞋相亲,被拒绝+吐槽
这种事吧,咋说呢,喜欢你的不会因为这点介意,自己不邋遢干散就行了
在下穿衣风格属于突变型的,夏天 COSPA 彩色宅 T,冬天全身休闲正装+衬衫,妹子也没说什么(逃
2018-01-09 11:18:45 +08:00
回复了 xiyangyang 创建的主题 程序员 怎么隐藏页面的查看源代码功能,急!!!
@xwhxbg 这两个都是可以逆向的,只是相对安全点罢了
@bombless 那你试试 rust 的 yew 吧 2333
2018-01-01 13:47:47 +08:00
回复了 dtysky 创建的主题 JavaScript 编译 TypeScript、C++和 Rust 到 WebAssembly
@zhouheyang0919
嗯,昨儿有人提了个 issue,我早上加到说明里了

Now, rustc supports another method to generate pure wasm file, please see here for resolution: [Rust for the Web]( https://www.hellorust.com/setup/wasm-target/):

```bash
rustc --target wasm32-unknown-unknown yourCode.rs -o yourCode.wasm
```

For reducing the size of file, your need to install **wasm-gc**:

```bash
cargo install --git https://github.com/alexcrichton/wasm-gc
wasm-gc yourCode.wasm small-yourCode.wasm
```
2017-12-31 20:18:39 +08:00
回复了 SIFT2009 创建的主题 2018 v2ers 们,请用一句话概括 2017 年,一句话展望 2018 年。
2017: open shit
2018: opeb source
2017-12-31 18:45:26 +08:00
回复了 pseudo 创建的主题 程序员 2018 年,你希望在前端上看到什么样的进步?
webcv 有可能不?
2017-12-24 15:15:59 +08:00
回复了 IC0ZB 创建的主题 程序员 程序员的一生要经历多少苦难?救救我吧
人生除死无大事,加油
2017-12-12 10:55:36 +08:00
回复了 superelepant 创建的主题 职场话题 自学前端工作数月后的迷茫
你不会私下自己做项目放 github,写文章输出么。。。
没路子就自己找路子,机会是自己抢来的,不是求来的
1 ... 6  7  8  9  10  11  12  13  14  15 ... 22  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3179 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 13:36 · PVG 21:36 · LAX 05:36 · JFK 08:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.