RSS feed [root] /




login:

password:

title search:




 


Sat Nov 21 22:02:03 HKT 2020



(google search) (amazon search)
second
download zip of files only

Wed Dec 02 21:09:08 HKT 2020 From /weblog/design

logging


http://www.codemonkeyism.com[..]08/12/16/7-good-rules-to-log-exceptions/ - look obvious but a lot of program still make those mistakes.

Do you prefer log more or log smarter? It is good to log smart but if you log more, even if you not smart enough, you still have the data. - http://www.codinghorror.com/blog/archives/001192.html

Basic log techniques - http://www.ddj.com/cpp/212902973?cid=RSSfeed_DDJ_All

Advances and Challenges in Log Analysis - http://queue.acm.org/detail.cfm?id=2082137&ref=fullrss

Filtering only useful stacktrace - http://www.javacodegeeks.com[..]ter-irrelevant-stack-trace-lines-in.html

Some suggestion about logging - http://www.javacodegeeks.com[..]/10-tips-proper-application-logging.html and http://googletesting.blogspot.com.au/2013/06/optimal-logging.html

9 Logging Sins in Your Java Applications, the "Logging Plain User Input" is a good one - https://dzone.com[..]9-logging-sins-in-your-java-applications

Java Logging Best Practices: 10+ Tips You Should Know to Get the Most Out of Your Logs - https://sematext.com/blog/java-logging-best-practices/

https://snyk.io[..]ogging-what-should-you-log-and-what-not/

(google search) (amazon search)


Mon Sep 28 22:53:18 HKT 2020 From /weblog/misc

news


真假難辨?Google 攜手 MyGoPen 教你用查核工具拆解不實資訊 - https://www.inside.com.tw[..]5-google-mygopen-factcheck-give-you-tips

(google search) (amazon search)


Sun Sep 27 21:19:10 HKT 2020 From /weblog/science

material


Graphene - https://www.zmescience.com[..]/graphene-superconductor-insulator-43242

Around 40% of all the plastic we use is packaging. Single-use, plastic packaging. - https://www.zmescience.com[..]esign-revolution-plastic-design-02082018

metallic-wood - https://www.zmescience.com/science/metallic-wood-nickel-6250128

recycled plastic - https://www.inside.com.tw[..]what-should-we-do-about-recycled-plastic

Scientists make an 18-atom ring of pure carbon - https://www.zmescience.com[..]sts-make-an-18-atom-ring-of-pure-carbon/

https://www.zmescience.com[..]e/pumice-uses-structure-feature-geology/

https://www.zmescience.com[..]are-alive-and-double-as-hi-tech-sensors/

https://www.zmescience.com[..]t-are-its-main-types-a-simple-explainer/

https://www.zmescience.com[..]/geology/roman-concrete-seawater-043432/

https://www.zmescience.com[..]material-we-stuff-our-wine-bottles-with/

https://www.zmescience.com/science/what-is-chromium/

Volcano-dwelling beetle inspires new ‘passive cooling’ material - https://www.zmescience.com[..]e/longicorn-beetle-coating-heat-9325234/

Metal-eating bacteria discovered in dirty lab glassware - https://www.zmescience.com[..]e/metal-eating-bacteria-manganese-05235/

https://www.zmescience.com[..]s-the-worlds-first-un-cuttable-material/

Persians were making proto-stainless steel 1,000 years ago - https://www.zmescience.com[..]ng-proto-stainless-steel-1000-years-ago/

(google search) (amazon search)


Sat Sep 26 23:54:02 HKT 2020 From /weblog/security

sms


Security Analysis of SMS as a Second Factor of Authentication - https://queue.acm.org/detail.cfm?ref=rss&id=3425909

(google search) (amazon search)


Sat Sep 26 23:09:02 HKT 2020 From /weblog/design

performance


http://highscalability.com[..]6/big-list-of-20-common-bottlenecks.html

Nothing specific, mostly code clean up, refactoring and simplification, the performance boost was a surprise. <- This is a good one - http://bad-concurrency.blogspot.com.au[..]12/07/disruptor-v3-faster-hopefully.html

Is there anything we can do about this when designing algorithms and data-structures? Yes there is a lot we can do. If we perform chunks of work on data that is co-located, and we stride around memory in a predictable fashion, then our algorithms can be many times faster. For example rather than using bucket and chain hash tables, like in the JDK, we can employ hash tables using open-addressing with linear-probing. Rather than using linked-lists or trees with single items in each node, we can store an array of many items in each node. - http://mechanical-sympathy.blogspot.com.au[..]emory-access-patterns-are-important.html

Skip lists are used instead of b-trees because b-trees don’t scale. - http://highscalability.com[..]ast-mvcc-inmem-lockfree-codegen-and.html

Beware about the performance issue of static initalization - http://stackoverflow.com[..]-cause-problems-with-multi-threading-how

Experiment show why arraylist is better in most cases - http://www.javaadvent.com/2013/12/arraylist-vs-linkedlist.html

How to design low latency application in java - http://vanillajava.blogspot.com.au[..]5/chronicle-and-low-latency-in-java.html

http://highscalability.com[..]ciples-of-high-performance-programs.html http://blog.libtorrent.org[..]principles-of-high-performance-programs/

Suggestion about how to determine number of thread pool - http://venkateshcm.com[..]rmine-Web-Applications-Thread-Poll-Size/

Beware the performance penalty of logging - https://plumbr.eu/blog/locking-and-logging

Keep thing dynamic - http://highscalability.com[..]ciples-of-high-performance-programs.html

http://www.rationaljava.com[..]st-rule-of-performance-optimisation.html

http://www.eecs.berkeley.edu[..]u/~rcs/research/interactive_latency.html

http://highscalability.com[..]aling-data-platforms.html?SSLoginOk=true

Discuss about developing low latency financial application - http://queue.acm.org/detail.cfm?ref=rss&id=2770868

Discussion of object pooling - http://highscalability.com[..]-but-forgotten-trick-object-pooling.html http://coffeenco.de[..]m_performance_part_1_object_pooling.html

Efficiency - the amount of work you need to do.
Performance - how fast you can do that work
Efficiency - governed by your algorithm
Performance - governed by your data structures.
http://www.rationaljava.com[..]e-difference-between-efficiency-and.html


Turning off power save mode on the CPU reduced brought the max latency from 11 msec down to 8 msec.
Guaranteeing threads will always have CPU resources using CPU isolation and thread affinity brought the maximum latency down to 14 microseconds.
http://highscalability.com[..]eduler-jitter-using-cpu-isolation-a.html
http://epickrram.blogspot.co.uk[..]o.uk/2015/09/reducing-system-jitter.html

About design for performance for webapi - http://tech.forter.com[..]y-decision-as-a-service-design-patterns/

check list - http://techbeacon.com[..]ery-software-development-team-should-ask

Beware if system utilization over 80% - http://www.infoq.com/cn/news/2016/02/utilisation-wait-latency http://robharrop.github.io[..]/20/service-latency-and-utilisation.html

scalable-io-events-vs-multithreading-based - https://thetechsolo.wordpress.com[..]lable-io-events-vs-multithreading-based/

How to find out bottleneck - https://vanilla-java.github.io[..]entile-latencies-in-Chronicle-Queue.html

https://www.inkandswitch.com/slow-software.html

Compiler Performance and LLVM - http://pling.jondgoodwin.com/post/compiler-performance/

Know Thy Complexities! - https://www.bigocheatsheet.com[..]oW9D2qyCTt3qMftzYxsdz7KJs8LkSeRPWLzguwpA

10 大高性能开发宝石 - https://xie.infoq.cn/article/a0d418bf29915ecad5d5eeab0

(google search) (amazon search)


Thu Sep 24 21:21:09 HKT 2020 From /weblog/health/food

oil


http://www.mr-sport.com.tw/post/oil.html

https://www.zmescience.com[..]ealthiest-oils-to-cook-with-an-explainer

Extra virgin olive oil is rich in antioxidants and vitamin E, and researchers have found that it’s better at protecting against LDL cholesterol than other types of olive oil. Other types of olive oil are processed after the oil is extracted, which causes them to lose some nutritional qualities. - https://www.bbc.com[..]0903-which-cooking-oil-is-the-healthiest

They’re most commonly found in oils and oily foods such as hazelnuts, sunflower seeds and avocados. - https://www.zmescience.com[..]s-essential-brain-development-263263467/

(google search) (amazon search)


Sun Sep 20 22:10:28 HKT 2020 From /weblog/design

cache


5 Hints You're Using A Map When You Should Be Using a Cache? - http://dsoguy.blogspot.com[..]ints-your-using-map-when-you-should.html

How hibernate design the cache - http://www.javalobby.org/java/forums/t48846.html

Consider to do more careful update, not just update DB and dirty cache, but update DB and cache in a same time - http://dormando.livejournal.com/495593.html

Caching can be architectural smell, some hint and some alternative - http://www.codingthearchitecture.com[..]2/is_caching_an_architectural_smell.html

General caching discussion - http://tutorials.jenkov.com[..]are-architecture/caching-techniques.html http://www.infoq.com/cn/news/2017/01/Program-design-how-cache

http://highscalability.com[..]10-program-busting-caching-mistakes.html http://www.codeproject.com[..]B/web-cache/cachingmistakes.aspx?azid=74

缓存穿透?击穿?雪崩? - https://xie.infoq.cn/article/39495c2d568aca1d6db5c9c50?y=qun0918

(google search) (amazon search)


Fri Sep 18 14:05:58 HKT 2020 From /weblog/house

construction


【地球放大鏡】除了台北101,世界上還有哪些知名防震建築? - https://dq.yam.com/post.php?id=13009

(google search) (amazon search)


Thu Sep 17 16:04:41 HKT 2020 From /weblog/business

presentation


one suggestion about layout of presentation - http://zachholman.com/posts/slide-design-for-developers/

Some nice tips of having presentation

Do not spend half of your talk "motivating" your topic.
Have a rhythm. Let's be honest
Tell a story.
Make sure you solve an actual problem.
Not everything you say has to be brand new.
Never let anyone touch your slides after you have last seen them.

http://www.eaipatterns.com/ramblings/51_javaone.html http://www.worthytips.com/6-excellent-tips-give-presentation/ http://java.dzone.com/articles/presenting-lessons-ive-learned http://jchyip.blogspot.com[..]/how-to-get-better-at-presenting-in.html

The secret of Steve Job presentation - http://cn.wsj.com/big5/20100215/bog103159.asp http://blogs.wsj.com[..]-to-give-a-presentation-like-steve-jobs/

Don't just start slamming slides together
Don't be a compulsive bullet-pointer
Don't do live demosDon't do live demos
Don't darken the room
Don't use age-old clipart
Don't drone
http://www.learninggeneralist.com[..]6-mistakes-you-should-never-make-as.html

An average is better than an arbitrary point
A range is better than an average
A histogram is better than a range
A time series is better than a histogram

http://jchyip.blogspot.com/2011/02/on-presenting-data.html

Tip, try to distrace yourself??? - http://cn.wsj.com/big5/20110818/wvh075902.asp

Tip for using online tool for presentation - http://smashinghub.com/10-best-online-presentation-tools.htm

Compare about doing slide for presentation and information sharing - http://martinfowler.com/bliki/Slideument.html also tips about creating infodeck ( e.g. user guide ) - http://martinfowler.com/bliki/Infodeck.html

看直播學簡報-解析陳時中部長的簡報技巧 - https://www.inside.com.tw[..]ticle/19791-Chen-Shih-chung-presentation

聲音不好聽還能做節目嗎?無意識的冗言贅字該怎麼克服?INSIDE 專訪口語表達訓練講師潘月琪為創作者解惑! - https://www.inside.com.tw[..]icle/20976-how-podcaster-to-be-talkative

(google search) (amazon search)


Tue Sep 15 21:12:43 HKT 2020 From /weblog/health/food

flavor


Slideshow: Surprising Food Combos for Big Flavor - http://www.webmd.com/food-recipes/ss/slideshow-food-combos

The unusual origins of our favorite spices - https://www.zmescience.com[..]-unusual-origins-of-our-favorite-spices/

Health Benefits of Cinnamon - https://www.webmd.com/diet/ss/slideshow-cinnamon

薑黃已成為流行健康食品 研究稱或能緩解膝關節疼痛 - https://acd.com.au[..]%a3%e8%86%9d%e9%97%9c%e7%af%80%e7%96%bc/

(google search) (amazon search)


Tue Sep 15 21:09:27 HKT 2020 From /weblog/health/food

egg


嚴說養生 立夏吃雞蛋 - http://www.yimho.com/1443.html

烹制雞蛋美食的四種方法 - http://cn.wsj.com/big5/20140513/DJL071521.asp?source=rss

More ways of cooking egg - http://www.buzzhand.com/post_282334.html

http://list25.com/25-awesome-egg-facts-you-might-not-know/

二十文錢劏房飯:仿西班牙蛋餅 - https://thestandnews.com[..]%BF%E7%8F%AD%E7%89%99%E8%9B%8B%E9%A4%85/

In-depth analysis - https://www.bbc.com/future/article/20190916-are-eggs-good-for-you

https://www.healthline.com[..]gs-are-the-healthiest-food-on-the-planet

(google search) (amazon search)


Tue Sep 15 21:08:57 HKT 2020 From /weblog/history

game


從木匠到水管工 瑪利歐的「跳躍」史 - https://dq.yam.com/post.php?id=12999

(google search) (amazon search)


Tue Sep 15 20:42:20 HKT 2020 From /weblog/%E6%97%A5%E5%B8%B8%E7%94%9F%E6%B4%BB

light


https://www.solarquotes.com.au/energy-efficiency/led-lights/

(google search) (amazon search)


Fri Sep 11 20:54:13 HKT 2020 From /weblog/learning

English


http://list25.com[..]ling-origins-of-popular-idioms/?view=all

http://list25.com[..]english-speakers-often-confuse/?view=all

【英文本色】Even though 和 although 的分別 - http://hk.apple.nextmedia.com/realtime/news/20160518/55116297

How to learn language in 30 days - http://www.fourhourworkweek.com[..]k.com/blog/2009/01/20/learning-language/

http://www.articlesbase.com[..]power-of-daily-positive-words-15115.html

Use "Nothing beats xxx", "mindful of" to replace "remember" and "dismiss the idea" - http://thehousenews.com[..]%AB%E5%8D%81%E5%BE%8C%E5%AF%AB%E7%A5%9E/

Language make the difference - http://www.chinahush.com[..]shocked-by-chinese-multiplication-table/

crazy-facts-about-languages - http://list25.com/25-crazy-facts-about-languages/?view=all

直譯英文誤會多,掌握「痛點」讓你高效學習 - http://www.inside.com.tw/2016/04/18/painpoint-in-learning-english

【世界公民】都是「小」,該用 Small 還是 Little? - https://www.inside.com.tw/article/20924-small-or-little

(google search) (amazon search)


Fri Sep 11 10:16:38 HKT 2020 From /weblog/science/animal

cat


https://list25.com/25-bizarre-cat-facts-you-need-to-know/

The Short Happy Life of a Serengeti Lion - https://www.nationalgeographic.com[..]ic.com/magazine/2013/08/serengeti-lions/

Meet the güiña—a six-pound 'mystery cat' vulnerable to extinction - https://www.nationalgeographic.com[..]-guina-mystery-cat-vulnerable-extinction

https://www.nationalgeographic.com[..]-of-earths-most-extreme-environs-feature

https://www.nationalgeographic.com[..]imals/2020/09/cheetahs-snow-south-africa

(google search) (amazon search)


Wed Sep 09 08:35:28 HKT 2020 From /weblog/trip/travelling

France


A nice place to visit - http://thenatureoftheworlds.blogspot.com[..]/04/mont-saint-michel-castle-france.html

巴黎美味牛角面包何處尋? - http://cn.wsj.com/big5/20140416/lux112636.asp?source=rss

http://blog.kkday.com/2017/01/food-in-paris.html

http://www.ruerodier.com/ruerodier/2017/10/22/bordeaux-city-guide

https://handluggageonly.co.uk[..]1-beautiful-unique-chateaus-stay-france/

【法國|南法】古羅馬建築 嘉德水道橋(Pont du Gard)/ 世界唯一的三層水道橋。 - http://travelwithmice.blogspot.com/2018/07/pont-du-gard.html

Eze 艾日山城/踏上普羅旺斯的天空之城 - http://travelwithmice.blogspot.com/2019/02/eze.html

Nice - http://travelwithmice.blogspot.com/2019/05/nice.html

【法國|南法】走進法國的霍格華茲:歐洲最大雙牆城堡卡爾卡松 Carcassonne - http://travelwithmice.blogspot.com/2019/10/carcassonne.html

France national park - https://www.nationalgeographic.com[..]ark-a-new-model-for-sustainable-tourism/

(google search) (amazon search)


Tue Sep 08 09:16:25 HKT 2020 From /weblog/science/animal

dog


about-search-and-rescue-dogs - http://list25.com[..]arch-and-rescue-dogs-youll-want-to-know/

https://list25.com/25-bizarre-dog-facts-you-need-to-know/

絕跡山林50年 荒野歌神「唱犬」再度現身 - https://dq.yam.com/post.php?id=12957

Why chocolate is really, really bad for dogs - https://www.zmescience.com[..]/science/why-chocolate-bad-dogs-0532532/

(google search) (amazon search)


Mon Sep 07 09:41:59 HKT 2020 From /weblog/learning

child


When child lie... http://cn.wsj.com/big5/20120508/lif074336.asp?source=rss

How to encourage child - http://blog.sina.com.cn/s/blog_4701280b0102ek51.html

http://www.hackerchick.com[..]4/09/fun-ways-to-teach-kids-to-code.html

Give Child some duty for good - http://cn.wsj.com/big5/20141229/PHO095935.asp?source=rss

步入青春期的孩子最需要從父母那裡得到什麼? - http://cn.wsj.com/big5/20160824/LIF092635.asp?source=rss

初中男生多煩惱,父母可知道? - http://cn.wsj.com/big5/20161220/LIF162636.asp?source=rss

研究發現和沒有做家務或者十幾歲才開始做家務的孩子相比,3-4歲就開始做家務的青年成人更有可能和家人及朋友關系融洽、學習優秀、較早實現事業成功及經濟獨立。 - http://cn.wsj.com/big5/20170105/LIF172240.asp?source=rss

https://blog.google[..]uter-science-and-computational-thinking/

專家回答:這不容易,但還是有可能的。人際關系專家兼咨詢專欄作家April Masini說:“家長既要讓孩子繼續保持這種精神氣,又讓他們知道自己行為的後果,要在兩者之間找好平衡點。”她稱,家長可以通過具體的事例,來給孩子講述,在什麼場合、用哪些方法來質疑老師和長輩是OK的,還要解釋這樣做的可能後果。你這樣教育的目的,是讓孩子知道,有時候規則可以打破,邊界可以移動,但行為卻是會帶來風險的。 http://cn.wsj.com/big5/20170222/LIF145613.asp?source=rss

如何培養出真正的成年人 - http://cn.wsj.com/big5/20170526/OPN173543.asp?source=rss

所以,你要做的不是告訴你的孩子冷靜下來,而是應該告訴他們,有機會展現自己的才能,是一件特別幸運的事。<- this is a simple suggestion - http://cn.wsj.com/big5/20170626/LIF172732.asp

No gifted child - https://www.theguardian.com[..]such-thing-as-a-gifted-child-einstein-iq

公平地“偏心”。確保每個孩子都得到優待:例如,如果把周末花在女兒的足球比賽上,那就在工作日找些時間關注你兒子的興趣愛好。 - http://cn.wsj.com/big5/20170801/LIF154506.asp?source=rss

Science Says the Most Successful Kids Have Parents Who Do These 9 Things - https://www.inc.com[..]ids-who-thrive-science-says-do-thes.html

From 0 to 12 months - https://www.webmd.com[..]nting/baby/ss/slideshow-baby-development

但為什麼不在早期教育中教授這些技能呢? 現任利茲大學商學院的Wandi Bruine de Bruin及其同事已經證明, 決策失誤的討論可以納入高中學生的歷史課程中 。 它不僅提高了後續合理性測試的表現; 它也促進了他們對歷史事實的了解。 - http://www.bbc.com[..]9-has-humanity-reached-peak-intelligence


“Part of what is so interesting and surprising about our study is that a simple manipulation — just the way people think about a past event — is changing their conclusions about what they’re doing and whether they’re interested or not,” Niese said.

“It’s something people could do on their own if they wanted to and gain these benefits in situations where cultural stereotypes or pre-existing beliefs might be likely to bias their judgment or cloud their memories.”

https://www.zmescience.com[..]erception-perspective-enjoyment-8235342/

Instead it is the quality of the conversation that is important. That is, the back and forth, turn-taking nature that requires listening and responding. It’s what Hirsh-Pasek and her long-time collaborator Roberta Golinkoff refer to as a “conversational duet”, because “you can’t sing it alone”. In fact, another study found that if a conversation is interrupted by a phone call, the child does not learn a newly presented word, but will learn it if the conversation is not interrupted. - https://www.bbc.com[..]-that-affects-how-your-babys-brain-grows https://dq.yam.com/post.php?id=11656

They found that children who watched Sesame Street were more likely to be academically on track, and less likely to be held back, than those who didn’t. - https://www.bbc.com[..]ren-find-weird-television-so-mesmerising

Instead of repeating the mistakes of previous generations with heavy-handed tactics, let’ understand the psychological source of the problem. Ultimately, parents’ goal should be to help kids learn strategies for coping with overuse on their own so that they do what’s good for them even when we’re not around. By teaching self-regulating habits, promoting intentional gaming, and helping kids find suitable alternatives, parents can help kids find what they are really looking for. - https://getpocket.com[..]mes-it-s-about-unmet-psychological-needs

Materials - http://www.blake.com.au/Blake-eClub-Members-Resources-s/2170.htm https://readingeggs.com.au/free-resources/ https://digital.scholastic.com[..]lp/#/login?productCode=tcb&ucn=637963938 User ID: schteachables46 Password: blue

因為讀書和上堂時,重要的是注意「大圖畫(Big Picture)」 - https://faith100.media[..]6%9B%B8%E7%9A%84%E6%96%B9%E6%B3%95/65984

Indoor science experiment - https://omsi.edu/at-home/activities

https://www.nationalgeographic.com[..]/family/2020/05/screen-time-alternatives

Young children would pass up a reward for a chance to explore - https://www.zmescience.com[..]science/young-children-explore-15082020/

Zooming in on keeping kids focused - https://www.nationalgeographic.com[..]g-in-on-keeping-kids-focused-coronavirus

How to Set Up a Remote Learning Space for Your Kids - https://www.nytimes.com[..]utter/blog/remote-learning-space-set-up/

(google search) (amazon search)


Sat Sep 05 22:20:27 HKT 2020 From /weblog/languages

rust


memory management - https://blog.discordapp.com[..]s-switching-from-go-to-rust-a190bbca2b1f https://www.infoq.cn/article/0scE4VCqzm8JWc50Jzsm

Rust - http://www.infoq.com/cn/articles/rust-core-components http://kamalmarhubi.com[..]t-nix-easier-unix-systems-programming-3/

深入了解 Rust 异步开发模式 - https://xie.infoq.cn/article/0b2cf4ce21a9ff65a833e7116?y=qun0904

(google search) (amazon search)



Fri Sep 04 13:26:55 HKT 2020 From /weblog/software_engineering/testing

junit


A nice example of convert dbunit from using junit to testng - http://www.realsolve.co.uk[..]h/blog.php?name=philzoio&mydate=20050826

redirect junit output to a file - http://www.diotalevi.com/weblog/?p=43

invokeNCopiesWithTimeout, run a test ( in runnable() ) for n times and see if it ok for multi-thread likely or not - http://binkley.blogspot.com[..]/running-n-foreground-tasks-in-java.html

Use theories to execute test with a lot difference input, probably possible for all cases - http://blog.schauderhaft.de[..]010/01/31/new-feature-of-junit-theories/ http://bloritsch.d-haven.net[..]using-junit-4-theories-to-test-contracts http://blog.schauderhaft.de/2010/02/07/junit-theories/

The other features, rule, perform some rule on test cases - http://blog.schauderhaft.de/2009/10/04/junit-rules/

Adding timeout - http://www.javaexperience.com/add-timeout-to-junit-test-cases/

Testing exceptions at Junit - http://fahdshariff.blogspot.gr[..]ting-expected-exceptions-with-junit.html http://blog.codeleak.pl[..]ays-of-handling-exceptions-in-junit.html

http://www.ssiddique.info[..]-java-unit-testing-frameworks-tools.html

Skip test for some cases, or create test only for some cases - http://www.codeaffine.com[..]unit-rule-to-conditionally-ignore-tests/

What new in junit5 - https://jaxlondon.com[..]it-5-next-generation-testing-on-the-jvm/ https://98elements.com/blog/improve-your-tests-with-junit-5/

Compare with jupiter - https://sormuras.github.io[..]8-09-13-junit-4-core-vs-jupiter-api.html

Beyond the simple: An in-depth look at JUnit 5’s nested tests, dynamic tests, parameterized tests, and extensions - https://blogs.oracle.com[..]tests-parameterized-tests-and-extensions

(google search) (amazon search)


Wed Sep 02 13:47:43 HKT 2020 From /weblog/languages

chinese


Chinese character detail - https://chardb.iis.sinica.edu.tw/

(google search) (amazon search)


Wed Aug 26 14:25:14 HKT 2020 From /weblog/java/features

reflection


Good : dynamic, generic
Bad: slow, don't work with Obfuscators and most searching and refactoring tools

http://jroller.com/page/ie?entry=time_to_reconsider_reflection

A very nice tool to get parameter name - https://github.com/paul-hammant/paranamer (e.g.: user of getUser(User user))

How to improve the performance - http://coding-masters.blogspot.com[..]-reflection-as-fast-as-direct-calls.html

The problem of using reflection to modify final field - http://www.azulsystems.com[..]7-writing-to-final-fields-via-reflection

Using reflection for using test - http://www.javaadvent.com[..]f-hacking-enums-and-modifying-final.html

Sharing about using invokedynamic - http://www.infoq.com/presentations/invokedynamic http://www.infoq.com[..]ticles/Invokedynamic-Javas-secret-weapon https://www.infoq.com/articles/Invokedynamic-Javas-secret-weapon

LamdbaMetafactory is pretty fast. (*) - https://www.optaplanner.org[..]8/01/09/JavaReflectionButMuchFaster.html

(google search) (amazon search)


Fri Aug 21 21:54:46 HKT 2020 From /weblog/design

API design guideline


This is a message from a management blog, but I think the arguement is also apply API design. In fact, I think most critical difference of good and bad API is knowing which small detail is important and which is not - http://www.goodproductmanager.com[..]er.com/2007/11/08/sweat-the-small-stuff/

Design tips:
http://www.artima.com/weblogs/viewpost.jsp?thread=142428
http://openide.netbeans.org/tutorial/api-design.html
http://www.cincomsmalltalk.com[..]gView?showComments=true&entry=3258158706
http://today.java.net[..]its-of-highly-profitable-developers.html
http://www.infoq.com/news/2007/08/why-api-design-matters
http://www.infoq.com/presentations/effective-api-design
http://neuroning.com/2006/11/19/on-api-design-guidelines

About Compatibility issues
http://wiki.eclipse.org/Evolving_Java-based_APIs

A blog of using interfaces-vs-abstract-classes
http://hoskinator.blogspot.com[..]6/04/interfaces-vs-abstract-classes.html

XOM design overview - http://www.xom.nu/designprinciples.xhtml#d0e309

You need to identify the business value but not pick any tools/design just because it is cool - http://myarch.com/what-is-good-soa

A lot of links here - http://kasparov.skife.org/blog-live/src/api-design-refs.writeback http://discuss.joelonsoftware.com/default.asp?design.4.527465

An introduction of good OSS project to study their source - http://techkriti.wordpress.com[..]com/2007/06/28/learning-from-the-source/

CCCCDPIPE - http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Discussion of why getting feedback quick is important - http://blog.objectmentor.com[..]u-dont-know-until-you-take-the-next-step

Someone saying that routines is the greatest invention in CS, I agree - http://www.codinghorror.com/blog/archives/001129.html

New way of modeling system then layering, The Onion Architecture - http://jeffreypalermo.com/blog/the-onion-architecture-part-1/

SOLID - http://www.lostechies.com[..]of-the-month-march-solid-principles.aspx http://dotnet.dzone.com/news/solid-software-works <-- very good picture! http://www.blackwasp.co.uk/SOLIDPrinciples.aspx https://www.freecodecamp.org[..]d-principles-explained-in-plain-english/

Idempotent, Orthogonality, Immutability - http://www.codinghorror.com/blog/archives/001244.html

Some example of how to driven good API - http://jdegoes.squarespace.com[..]al/2009/5/11/good-api-design-part-3.html

It's not enough to write tests for an API you develop, you have to write unit tests for code that uses your API. When you do, you learn first-hand the hurdles that your users will have to overcome when they try to test their code independently. http://butunclebob.com[..]MichaelFeathers.TheGoldenRuleOfApiDesign

Active interface vs. Passive interface, for me this is another way to under "Tell, don't ask" - http://code-o-matic.blogspot.com[..]-on-api-design-call-stack-as-source.html

The Principles of Good Programming - http://www.artima.com/weblogs/viewpost.jsp?thread=331531

http://net.tutsplus.com[..]software-principles-you-must-understand/

Difference choice of how API evolute with change - http://blog.jooq.org[..]sive-api-evolution-with-java-interfaces/

JUnit's evolving structure. - http://edmundkirwan.com/general/junit.html

API performance contract - http://queue.acm.org/detail.cfm?ref=rss&id=2576968

Consistent naming conventions
Standard terminology
Uniform error responses
Attention to detail (that’s the love part for APIs)
REST APIs that work with only 2 resources and use 4 HTTP verbs (oh, there is so much more to talk about here…)
Avoid API design by way of method-driven approach – that leads you down a slippery slope
- See more at: http://blogs.ancestry.com[..]are-like-parenting/#sthash.Ux1LHMNU.dpuf

http://blog.jooq.org[..]ake-this-mistake-when-developing-an-spi/

Guideline for webapi - https://cloud.google.com/apis/design/

Good naming is part of design. It sets expectations and communicates a model, showing how something should be understood and used. If you mean to tell the reader getMillisSince1970, don’t say getTime. Specific names inspire you to consider alternatives, to question whether you’re capturing the right abstraction in the right way. It’s not just labeling and it’s not just java.util.Date: This is about the code you write and the code you use. - https://medium.com/97-things/name-the-date-c82bafdc4c44

(google search) (amazon search)