Posts

Showing posts from February, 2023

Câu hỏi phỏng vấn - Technical

Image
 1 - Kiến trúc phần mềm - Architecture 1.1 n tier layer 1.2 event driven 1.3 Object oriented  1.4 Micro service 1.5 Plugin (extensions) Browser 2 - Design Pattern 2.1 Singleton Pattern - Không dùng new để khởi tạo object, thay vào đó sẽ có 1 hàm dạng như static getInstance  - 1 lớp chỉ có 1 đối tượng - Các object có cùng 1 state 2.2 Prototype Pattern - Copy one object to another without creating new object - Đối tượng ban đầu được gọi là prototype 2.3 Builder Pattern https://laraveldaily.com/post/design-patterns-laravel-builder-example - Dùng các setter để thay đổi value của property của 1 object - Không cần khai báo new object với đầy đủ param ở constructor, khi cần chỉ cần dùng setter để set giá trị cho các param 2.4 Repository Pattern 3 - ORM là gì - Object relation mapping - 1 table = 1 object - manage data in that table by object (ORM) 4 - agile engineering practices 4.1 Continuous Integration 4.2 Automated Unit Testing 4.3 Automated Acceptance T...

Git: What's the best practice to "git clone" into an existing folder?

  git clone https://myrepo.com/git.git temp mv temp/.git code/.git rm -rf temp