oldratlee / translations Goto Github PK
View Code? Open in Web Editor NEW🐼 Chinese translations for classic software development resources
Home Page: https://github.com/oldratlee/translations
License: Other
🐼 Chinese translations for classic software development resources
Home Page: https://github.com/oldratlee/translations
License: Other
Strategic Scala Style: Principle of Least Power
http://www.lihaoyi.com/post/StrategicScalaStylePrincipleofLeastPower.html
Warts of the Scala Programming Language http://www.lihaoyi.com/post/WartsoftheScalaProgrammingLanguage.html
http://weibo.com/1715118170/F56QFtwcB
【Warts of the Scala programming language】Scala编程语言之”疣“。Scala是我目前最喜欢的通用编程语言。 但是它绝对有缺点。 虽然有些在设计语言时有很大的权衡,但其它的则是微不足道的愚蠢的问题导致沮丧程度远远超出了它们的复杂程度:“疣”。 这篇文章将探讨一些在我看来是Scala编程语言之“疣”,希望提高他们作为问题的存在意识,并建立一个愿望在更广泛的社区以解决它们。
CodeHaus Manifesto
https://github.com/codehaus/www-codehaus-org/blob/master/app/manifesto.md
信息来自 @ShawnQianx 大大 2018年9月的技术分享:
分享内容中@ShawnQianx 大大 对 CodeHaus Manifesto 貌似随性又自然的翻译(更准确地说应该是点评) 神采飞扬!
您好,请教一个问题:
在TransmittableThreadLocal
类中的 backupAndSet()
方法中,如下代码:
for (Iterator<? extends Map.Entry<TransmittableThreadLocal<?>, ?>> iterator = holder.get().entrySet().iterator();
iterator.hasNext(); ) {
Map.Entry<TransmittableThreadLocal<?>, ?> next = iterator.next();
TransmittableThreadLocal<?> threadLocal = next.getKey();
// 此处将线程池所在线程threadlocal备份
backup.put(threadLocal, threadLocal.get());
// 没太理解此处,为何将copied中不存在,holder中存在的 threadlocal remove?
if (!copied.containsKey(threadLocal)) {
iterator.remove();
threadLocal.superRemove();
}
}
iterator.remove()
本来不属于当前线程的threadlocal
也会被remove
,这样假如此时另外一个线程池中的线程调用了copy()
方法,就会丢失部分数据?不知我哪里理解错误,望批评指正。
期待回复
原文有这么一段话:
git pull --rebase
# 【译注】:
# 原文用的命令是 git push --rebase origin master
# 原因同上
其中 git push --rebase origin master 应为
git pull --rebase origin master
https://github.com/oldratlee/translations/tree/master/git-workflows-and-tutorials
中 包含的链接,如 https://www.atlassian.com/git/tutorial/git-basics#!init
,都已经失效了。
同步自http://blog.jobbole.com/76847/#comment-62656 ,typhoon 的关于集中式工作流的问题:
No programming language offers what Python does philosophically.
在编程哲学上,Python
超越了其它编程语言。
在小红完成功能开发中,本地some-feature分支先是合并了远程develop分支,然后本地develop分支合并了本地some-feature分支之后提交,然后删除了本地some-feature分支。
A practical introduction to functional programming
https://maryrosecook.com/blog/post/a-practical-introduction-to-functional-programming
来自非常好的FP
书籍《Functional Programming,Simplified(Scala edition)》 ❤️
When I first started learning FP, I was aware that pure functions were important, but this point was really driven home when I came across an article titled A Practical Introduction to Functional Programming by Mary Rose Cook.
Ms. Cook used to work at the Recurse Center (formerly known as “Hacker School”) and now works at Makers Academy, and in her “Practical Introduction to FP” essay, she refers to using only pure functions as a Guide Rope to learning FP:
When people talk about functional programming, they mention a dizzying number of ‘functional’ characteristics. They mention immutable data, first class functions, and tail call optimisation. These are language features that aid functional programming.
They mention mapping, reducing, pipelining, recursing, currying and the use of higher order functions. These are programming techniques used to write functional code.
They mention parallelization, lazy evaluation, and determinism. These are advantageous properties of functional programs.
Ignore all that. Functional code is characterised by one thing: the absence of side effects. It (a pure function) doesn’t rely on data outside the current function, and it doesn’t change data that exists outside the current function. Every other ‘functional’ thing can be derived from this property. Use it as a guide rope as you learn.
When she writes about the “absence of side effects,” she’s referring to building applications from pure functions.
Her guide rope statement is so good, it bears repeating:
Functional code is characterised by one thing: the absence of side effects.
When I first read this quote, the little light bulb went on over my head and I began focusing even more on writing only pure functions.
If you think about it, this statement means exactly what I wrote at the beginning of this lesson:
Functional programming is a way of writing software applications using only pure functions and immutable values.
可否把github上的wiki的用法简介给写一下呢?或者推荐一个相关文档也可以。多谢啦! @oldratlee
For example, QMimeSourceFactory in Qt 3 could have been called QImageLoader and have a different API.
举个例子,在Qt 3中,QMimeSourceFactory不应命名成QImageLoader并有不一样的API。
could have 虚拟语气。 如果不是为了简介清晰,QMimeSourceFactory 在Qt 3中会被叫做QImageLoader并有一套不同的API.
Nobody cares about your code https://mortoray.com/2015/04/20/nobody-cares-about-your-code/
从这篇文章得知: 技术面试中常被问到是否参与开源,那如何清晰展示 GitHub 项目呢? http://blog.jobbole.com/112322/
- 尽管这些框架都能适应 不能形式 的并行程序,他们优化了Fork/Join的设计:
+ 尽管这些框架都能适应 不同形式 的并行程序,他们优化了Fork/Join的设计:
这条其实是一个迷题,先不要看解答。看看你能不能自己找出解法。
运行下面的代码:
for (int i = 0; i < 10; i++) {
System.out.println((Integer) i);
}
…… 然后要得到类似下面的输出(每次输出是随机结果):
92
221
45
48
236
183
39
193
33
84
Output:
0
1
2
3
4
5
6
7
8
9
从 千万不要把 BOOL 设计成函数参数 - coolshell 了解到这篇文章。
hall of api shame: boolean trap https://ariya.io/2011/08/hall-of-api-shame-boolean-trap
同步自http://blog.jobbole.com/76867/#comment-152803 ,Cstars 的关于Gitflow工作流的问题:
写的非常好,解答了不少疑惑,问一下, git checkout -b issue-#001 master
后面的master
是什么参数啊?我只知道 git checkout -b issue-#001
这个是检出新分支并切换到该分支.求解惑.
已经有 译文稿 Java Fork Join 框架 http://ifeve.com/a-java-fork-join-framework/
值得改进,原因:
更多参见: Doug Lea并发编程文章全部译文 http://ifeve.com/doug-lea/
PS:
PPS:
Fork/Join Framework vs. Parallel Streams vs. ExecutorService: The Ultimate Fork/Join Benchmark http://blog.takipi.com/forkjoin-framework-vs-parallel-streams-vs-executorservice-the-ultimate-benchmark/
文中提到的,hotfix
分支使用方式是不是点问题。因为从图上看,这个似乎是不能像release
分支一样,去走一个发布流程,这不符合规范吧。
The Rise of Worse is Better http://dreamsongs.com/RiseOfWorseIsBetter.html
已有的翻译稿:
欢迎大家贡献!
修改 Job
的翻译 从 任务 -> 作业,加上英文原词
希望楼主能整理一下Git
及Github
术语的中英文对照表,比如
Repository
是否对应仓库Pull Request
是否对应提交?2、参考数据来自作者提供的链接nvie的流程图
Coding is not the new literacy; Modeling is the new literacy
http://www.chris-granger.com/2015/01/26/coding-is-not-the-new-literacy/
PS
http://www.zcfy.cc/original/tag/484/hot 这里收集了一些文章
博主你好:你的个人站域名已经被回收了。
feed
本文表示的是 用于数据处理生产新数据的输入数据,『喂养』的本意 体现了 feed
驱动了数据处理过程。
可能的翻译:
上面的用词都不理想,没有体现出『喂养』形象感,但技术翻译中不合适使用『喂养』这个词。
译文中使用
feed
?意义没错,但很平淡。。。
同步自http://blog.jobbole.com/76867/#comment-154472 ,超级旋风 的关于Gitflow工作流的问题:
小红完成功能开发那边
git pull origin develop
git checkout develop
这两条命令是不是应该换一下位置,先切换到develop这个分支,然后在pull
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.