Migrating WordPress from Subdomain to be Subdirectory under Laravel and Nginx
My company originally has a blog using WordPress served under a subdomain, let’s call it blog.foo.com. One day, there was a...
I’M PRAPAT (IK-Q)
A Web Developer
Hi, I'm a developer from Bangkok, Thailand. I love to write a neat code following the best practices. I love to learn new technologies. Not only the technical side I am fascinated in but also business side. I believe that business understanding all together with a strong technical knowledge can produce a better quality of code.
My company originally has a blog using WordPress served under a subdomain, let’s call it blog.foo.com. One day, there was a...
Dependency Injection (DI) และ Mocking สองคำนี้หลายๆ ท่านอาจจะเคยได้ยินผ่านหูกันมาบ้างแล้ว แต่ก็อาจสงสัยว่ามันคืออะไรกันแน่ แล้วทำไมเมื่อมี Dependency Injection แล้วก็ต้องมีคำว่า Mocking ตามมา สองคำนี้มีดีอย่างไร? ลองมาดูกันครับ 😉 Dependency คำว่า Dependency นั้นตามความหมายก็คือ...
และก็มาถึงหลักการข้อสุดท้ายของ SOLID Principles ที่ชื่อว่า Dependency Inversion Principle (DIP) กันแล้ว มีหลายคนอาจจะสับสนกับอีกหลักการที่ชื่อว่า Dependency Injection ซึ่งจริงๆ แล้วสองหลักการนี้ไม่เหมือนกันนะครับ Dependency Inversion != Dependency Injection แต่ก็ยังมีความเกี่ยวเนื่องกันเพราะว่าการที่เราจะทำตามหลักการ...
สำหรับหลัก ISP ของ SOLID Principles ตอนนี้อาจจะเน้นหนักไปทาง Interface นิดนะครับ ดังนั้นถ้าท่านใดยังไม่ค่อยคุ้นกับ Interface แนะนำให้ลองอ่านลิงค์ตามด้านล่างก่อนเริ่มนะครับ PHP Interface Java Interface Why interface is useful? (Stackexchange)...
มาถึงหลักการข้อที่ 3 ของ SOLID Principles กันแล้วนะครับ และหลักการนี้มีชื่อว่า Liskov Substitution Principle (LSP) ซึ่งถูกตั้งตามชื่อของผู้ที่คิดหลักการนี้ขึ้นมาเป็นคนแรก Barbara Liskov [1] และในภายหลังก็ถูกนำมารวมอยู่ใน SOLID Principles ด้วย มาดูกันครับว่าหลักการนี้พูดถึงอะไรบ้าง...
หลังจากเราได้ทราบถึงหลักการแรกของ SOLID Principles กันไปแล้วนั่นก็คือ Single Responsibility (SRP) ซึ่งพูดถึงการกำหนดขอบเขตการทำงานและหน้าที่ของ Class ให้มีเพียงอย่างเดียว สำหรับบทความนี้เราจะมาดูหลักการที่ชื่อว่า Open Closed Principle (OCP) กันครับ สารบัญสำหรับตอนอื่นๆ ตอนที่ 1 –...
My main expertise is in Laravel 4-5, PHP, MySQL, MongoDB, HTML, SASS, LESS, Bootstrap 3, JQuery, Git, OS X, Ubuntu. My DevOps skills are mostly on Amazon Web Services (AWS) — Amazon EC2, Continuous deployment and auto scaling with AWS OpsWorks, Redis with AWS ElastiCache, Amazon RDS (MySQL), Amazon S3, Amazon SES, Amazon SQS, Amazon Route53. I am familiar with Scrum methodology (via JIRA), SOLID Principles, design patterns, API development and TDD.
Linkedin Profile2016 © Ikq.me. All Rights Reserved. For any inquiries please contact hi@ikq.me.