Friday, September 17, 2021

Best Practices & Principles in OOP

SOLID principles

Before even beginning to introduce all the essential OOP principles and patterns, keep in mind that:

  • Focus only on KISS ("Keep it simple and stupid") and OOP Principles first, then observe your code to see which pattern it might need for a code quality improvement -> apply patterns  

1. Single Responsibility 

"A class should have one, and only one, reason to change."

Wednesday, September 15, 2021

HOW GOOD IS GODD ENOUGH? By H.P. Schoener (On quantitative evaluation of functionalities in self-driving vehicles)

最近在寫論文的前言與動機的部分,看了一篇有趣的文章。這邊簡單做個重點紀錄供日後閱讀。

1. “How Good is Good Enough?“ in Autonomous Driving? by H.P. Schoener
本文提出一個量化自駕車功能"是否夠好"的方法。

自動駕駛就是把人類開車時95%會做對的事情自動化,把剩下5%最小化。據統計,德國高速公路(Autobahn)平均每行駛750萬公里會有一次S0等級(S0是最輕微的)事故,也就是說自駕車測試至少要跑750萬公里且不能發生任何事故。
五大常見的意外起因:

德國汽車產業近年的困境

註:本文於2020年九月完成,時隔一年才發布,但是疫情還沒結束,所以內容都適用啦~

最近因為corona疫情影響,德國汽車產業備受打擊,政府出手Kaufprämie(消費津貼)救車市,否則會有更多人失業...到底為什麼德國舉世聞名的汽車產業會面臨這窘境呢? 除了疫情影響,其實原本產業就不太好? 本文會簡單介紹一下我的看法。

Tuesday, September 14, 2021

Generics in Java

What are Generics?

Enable us to parameterize the type of variables in a class or interface by its definition, so code can be reused for more general types of inputs. Moreover, the type of variables would be checked more thoroughly at compile time, so errors in run-time due to misinterpretation of data are minimized.