Collection for Y2017W31 (2017-07-31 Mon 00:00:00 +0800 ~ 2017-08-07 Mon 00:00:00 +0800)

blog

cli

ctf

  • DEFCON 25 CTF参赛记 | MaskRay
    • 原來 cLEMENCy 不只 9-bit byte 還有 27-bit register width 和 middle-endian 真夠怪
    • HITCON 跟第三名差不少分 好猛啊

defcon

gke

golang

k8s

mysql

programmer

programming

  • S.O.L.I.D: The First 5 Principles of Object Oriented Design ― Scotch
    • These principles, when combined together, make it easy for a programmer to develop software that are easy to maintain and extend. They also make it easy for developers to avoid code smells, easily refactor code, and are also a part of the agile or adaptive software development.

    • 這篇很清楚的介紹了 OOP 裡頭會提到的 SOLID 各自代表什麼意思,也有給出實際程式碼的例子,排版也很乾淨舒服。
    • 仔細想想大學修 OOP 的時候好像根本沒提到這個,只是在學 C++,修軟體工程的時候好像也只有提到 KISS。出來工作後也看到很多物件導向的程式碼沒照這個原則走,自己其實也沒有很嚴格遵守,現在看起來,如果都可以遵守的話,程式碼一定會好改不少吧,期許自己之後在寫物件導向有關的程式碼的時候可以謹記這 5 個原則。
    • SOLID
      • S - Single-responsiblity principle
        • A class should have one and only one reason to change, meaning that a class should have only one job.
      • O - Open-closed principle
        • Objects or entities should be open for extension, but closed for modification
      • L - Liskov substitution principle
        • Let q(x) be a property provable about objects of x of type T. Then q(y) should be provable for objects y of type S where S is a subtype of T.
      • I - Interface segregation principle
        • A client should never be forced to implement an interface that it doesn't use or clients shouldn't be forced to depend on methods they do not use.
      • D - Dependency Inversion Principle
        • Entities must depend on abstractions not on concretions. It states that the high level module must not depend on the low level module, but they should depend on abstractions.

python

security


trivia

  • 一青窈與平井堅XD - YouTube
    • 靠北 用 Audacity 試了一下發現這是真的說
    • 一青窈的もらい泣き用改變音高的那種放慢 80% 就會變成平井堅的歌聲
    • 以前聽這首歌完全不知道 太神奇了 XDDD

life

misc

youtube


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts