vi
stringlengths
846
10.5k
en
stringlengths
799
10.5k
Như đã giới thiệu ở bài trước, mình sẽ giới thiệu về twlve-factor app. Đây là 12 yếu tố cần thiết để xây dựng 1 ứng dụng “xịn xò”, ổn định, dễ mở rộng, dễ deploy. Trong bài này, mình sẽ giải thích các yếu tố từ 8 tới 12 nhé: 8. Concurrency : Một app nên được chia tách thành nhiều process nhỏ để tăng concurrency 9. Disposability : Process của web app nên sống nhanh, chết nhẹ nhàng, để có thể dễ dàng chạy/kill process nhanh chóng 10. Dev/prod parity : Các môi trường dev/staging/production nên giống nhau hết sức có thể 11. Logs : Logs nên được viết ra dạng stream ở stdout 12. Admin Processes : Một số task dạng admin (tạo database, fix dữ liệu) nên được chạy trong cùng môi trường với app đang chạy Đây là phần 3 trong series 3 phần về Twelve-Factor App: 8. Concurrency – Một app nên được chia tách thành nhiều process nhỏ để tăng concurrency Trong các ngôn ngữ Java, C#, ta thường quản lý concurrency (chạy song snog) thông qua Thread/Task. Các web app này thường được chạy trong 1 process siêu to khổng lồ, sử dụng thread để xử lý nhiều cùng lúc. Theo khuyến khích của Twelve-Factor App, do CPU và RAM không thể scale tới vô hạn. Vì vậy, để ứng dụng dễ scale, ta nên scale bằng cách chạy nhiều process . Khi cần ta có thể dễ dàng chạy thêm process, hoặc thêm server rồi chạy process của ứng dụng trong server mới. Ngoài ra, ta cũng nên tách biệt process theo chức năng . Ví dụ những tác vụ hiển thị trang web, cần xử lý song song nhiều, đưa kết quả nhanh cho user thì ta dùng web process. Những tác vụ chạy ngầm (encode file, tính toán nhiều, gọi API ngoài) tốn nhiều thời gian thì ta có thể cho vào worker/background process. Nếu các bạn từng deploy ứng dụng NodeJS trên Production, chạy bằng PM2 , bạn sẽ thấy nó cũng đi theo mô hình này. PM2 sẽ tạo ra nhiều process NodeJS để scale khi cần. 9. Disposability – Process của web app nên khởi động nhanh, chết nhẹ nhàng Chuyện kể rằng, ngày xửa ngày xưa, có những dự án Java/Rails siêu to khổng lồ , với những process kinh khủng tớm phải, mỗi lần khởi động phải mất tận 1-2 tiếng mới chạy lên được. Hệ quả là mỗi lần cần release code mới, hoặc phải sửa chữa/nâng cấp server, cả team dev và Operation phải đóng cửa/bảo trì tận 3-4 tiếng để nâng cấp. Do vậy, process của 1 web app nên khởi động càng nhanh càng tốt (vài giây hoặc vài phút). Nhờ vậy, khi cần release phiên bản mới, scale hệ thống, ta có thể dễ dàng chạy lại process , hoặc chạy process trên server mới. Ngoài ra, process cũng phải chết nhẹ nhàng . Khi hệ thống ra lệnh cho nó chết, nó sẽ làm xong việc (hoặc ngừng) rồi chết chứ không dây dưa. Ví dụ như web process, khi nhận được SIGTERM signal sẽ tự động tắt exit. Với các process chạy ngầm thì vấn đề này nan giải hơn tí. Ví dụ process đã nhận 1 task từ message queue , nhưng đang xử lý thì … bị giết. Trước khi chết, nó phải tìm cách đưa task đó lại queue , nếu không task đó sẽ không bao giờ được xử lý; dẫn đến lỗi hệ thống, mất dữ liệu. 10. Dev/prod parity – Các môi trường dev/staging/production nên giống nhau hết sức có thể Một hệ thống trên production thường có rất nhiều thành phần: Web Server, Database, Cache Server, Message Queue, … Để chạy ứng dụng ở local/staging, dev cũng phải chạy những thứ này, sử dụng version khác hoặc bản nhẹ hơn, mới hơn. Điều này dẫn đến 1 số bug … lạ, chỉ xảy ra ở production mà không xảy ra ở dev, staging. Do vậy, ta nên đảm bảo các công nghệ sử dụng ở môi trường dev/staging giống production hết sức có thể! Ví dụ, Production dùng .NET 6.0 + Postgres 12 thì dev/staging cũng nên vậy, đừng đú đởn .NET 7.0 + Postgres 13 để tránh lỗi thư viện, bug không đáng có. 11. Logs – Log nên được viết ra dưới dạng stream và stdout Logging là một công cụ đơn giản và mạnh mẽ, ghi lại toàn bộ những hoạt động của hệ thống . Nhờ có logging, ta có thể tra cứu lại trạng thái của hệ thống trong quá khứ, những code nào đã được chạy, từ đó tìm ra lỗi và fix dễ dàng hơn. Mỗi ngôn ngữ như Java, C#, PHP đều có 1 số thư viên phổ biến để quản lý log như log4net, log4j, serilog , … Các thư viện này hỗ trợ ghi log ra file, thiết lập các level log (debug, info, warning). Twelve-Factor app khuyên rằng ứng dụng không nên tự quản lý log của nó , chỉ gần ghi ra dưới dạng stream trong stdout (giống ghi ra console ấy). Sau đó, những log này sẽ được các log router như Logplex và Fluentd xử lý thêm bằng cách lưu vào file, gửi tới nguồn khác để lưu trữ, hiển thị trong dashboard v…v Cá nhân mình thấy lời khuyên này chỉ hữu ích nếu bạn deploy app lên cloud/heroku/Kubernetes . Nếu các bạn chạy app trên VPS hay server thì cứ log file như thường hoặc dùng ELK cũng được nhé. 12. Admin Processes – Một số task dạng admin (tạo database, fix dữ liệu) nên được chạy trong cùng môi trường với app đang chạy Trong quá trình phát triển app, đôi khi bạn sẽ cần chạy 1 số task dạng admin, chỉ chạy 1 lần như sau: Migrate database và dữ liệu (thêm/sửa table hoặc cột). (Chạy rake db:migrate hoặc npm run migrate ) Chạy script để sửa dữ liệu, xoá bỏ dữ liệu thừa ( python scripts/fix_money.py hoặc node scripts/fix.js ) Truy cập REPL của Python, Rails để kiếm tra dữ liệu, chạy thử hàm Những script này nên được để cùng với codebase để đảm bảo code của scripts luôn là code mới nhất! Mấy anh developer/opeator sẽ ssh vào server đang chạy code production để chạy các script này, đảm bảo script chạy ở cùng môi trường với app đang chạy. Tạm kết Như đã nói ở phần 1, 12 lời khuyên này chỉ là kinh nghiệm và khuyến cáo, phù hợp với các ứng dụng web chạy trên cloud, các app sử dụng kiến trúc microservice. Với các ứng dụng cũ hơn, chạy trên server vật lý, bạn vẫn có thể áp dụng 1 số lời khuyên để ứng dụng chạy ổn định hơn, dễ quản lý và bảo trì hơn nhé. Các nội dung mình chia sẻ trong bài hơi nặng tính chuyên ngành, đôi khi khó hiểu nếu bạn chưa áp dụng vào dự án thực tế. Do vậy, nếu có đoạn nào không hiểu, các bạn cứ comment để mình giải thích kĩ hơn nha! Rate this: Like this: Related
As introduced in the previous article, I will introduce the twlve-factor app. These are 12 necessary elements to build a "genuine" application, stable, easy to expand, and easy to deploy. In this article, I will explain factors 8 to 12: 8. Concurrency: An app should be split into many small processes to increase concurrency 9. Disposability: The web app's process should live quickly, die gently, so that it can easily run/kill the process quickly 10. Dev/prod parity: Dev/staging/production environments should be as similar as possible 11. Logs: Logs should be written as a stream to stdout 12. Admin Processes: Some admin tasks (creating database, fixing data) should be run in the same environment as the running app This is part 3 in a 3-part series about Twelve-Factor App: 8. Concurrency - An app should be divided into many small processes to increase concurrency In the Java and C# languages, we often manage concurrency (running in parallel) through via Thread/Task. These web apps are often run in one giant process, using threads to process many things at the same time. As recommended by Twelve-Factor App, CPU and RAM cannot be scaled infinitely. Therefore, to make the application easy to scale, we should scale it by running multiple processes. When needed, we can easily run additional processes, or add a server and then run the application process in the new server. In addition, we should also separate processes according to function. For example, for web page display tasks that need a lot of parallel processing and quick results for the user, we use web process. Tasks running in the background (encoding files, doing a lot of calculations, calling external APIs) that take a lot of time can be put into a worker/background process. If you have ever deployed a NodeJS application on Production, running with PM2, you will see that it also follows this model. PM2 will create multiple NodeJS processes to scale as needed. 9. Disposability - The process of a web app should start quickly and die gently. The story goes that, once upon a time, there were super huge Java/Rails projects, with terrible processes, having to start each time. It takes 1-2 hours to get there. As a result, every time new code needs to be released, or the server needs to be repaired/upgraded, both the dev and Operations teams have to close/maintain for 3-4 hours to upgrade. Therefore, the process of a web app should start as quickly as possible (a few seconds or a few minutes). Thanks to that, when we need to release a new version or scale the system, we can easily run the process again, or run the process on a new server. In addition, the process must also die gently. When the system orders it to die, it will finish its job (or stop) and then die, not lingering. For example, a web process, when receiving a SIGTERM signal, will automatically exit. With processes running in the background, this problem is a bit more difficult. For example, the process received a task from the message queue, but while processing it... was killed. Before it dies, it must find a way to put that task back in the queue, otherwise that task will never be processed; leading to system errors and data loss. 10. Dev/prod parity – Dev/staging/production environments should be as similar as possible. A production system usually has many components: Web Server, Database, Cache Server, Message Queue, ... To run the application At local/staging, the dev must also run these, using a different version or a lighter, newer version. This leads to some strange... bugs that only happen in production but not in dev or staging. Therefore, we should ensure that the technologies used in the dev/staging environment are as similar as possible to production! For example, if Production uses .NET 6.0 + Postgres 12, so should dev/staging, don't mess with .NET 7.0 + Postgres 13 to avoid unnecessary library errors and bugs. 11. Logs – Logs should be written as stream and stdout Logging is a simple and powerful tool that records all system activities. Thanks to logging, we can look up the state of the system in the past, what code has been run, thereby finding errors and fixing them more easily. Each language such as Java, C#, PHP has a number of popular libraries for log management such as log4net, log4j, serilog, etc. These libraries support writing logs to files, setting log levels (debug, info, warning). Twelve-Factor app recommends that the application should not manage its own logs, only write them as a stream to stdout (like writing to the console). These logs will then be further processed by log routers such as Logplex and Fluentd by saving to files, sending to other sources for storage, displaying in dashboards, etc. Personally, I find this advice only useful if You deploy the app to cloud/heroku/Kubernetes . If you run the app on a VPS or server, just log the file as usual or use ELK. 12. Admin Processes – Some admin tasks (create database, fix data) should be run in the same environment as the app is running. During app development, sometimes you will need to run some admin tasks, just run 1 time as follows: Migrate database and data (add/edit tables or columns). (Run rake db:migrate or npm run migrate ) Run script to fix data, remove redundant data (python scripts/fix_money.py or node scripts/fix.js) Access REPL of Python and Rails to check data and test functions These scripts should be placed with the codebase to ensure the scripts' code is always the latest! The developers/operators will ssh into the server running the production code to run these scripts, ensuring the scripts run in the same environment as the running app. Conclusion As mentioned in part 1, these 12 tips are only experience and recommendations, suitable for web applications running on the cloud, applications using microservice architecture. For older applications running on physical servers, you can still apply some advice to make the application run more stably and be easier to manage and maintain. The content I share in the article is a bit specialized, sometimes difficult to understand if you have not applied it to a real project. Therefore, if there is any part you do not understand, please leave a comment so I can explain more carefully! Rate this: Like this: Related
Bạn nào học lập trình, nhất là học lập trình web sẽ biết kênh Travesy Media ( ). Đây là 1 kênh chuyên dạy lập trình, với hơn 800 video cực kì chất chơi người dơi. Các video thường có độ dài tầm 1 tiếng, giới thiệu nhập môn một công nghệ nào đó ( React, Angular, MongoDB ), không dài dòng lê thê, tóm gọn vấn đề trong 60 phút. Các clip của ông cũng rất dễ hiểu, từ tốn (không chém gió ào ào như thằng Code Dạo ). Người mới nhập môn, chưa biết gì biết gì cũng có thể học được. Điển hình như các clip dưới: Người đứng sau kênh Traversy Media là Brad Traversy , thần tượng của mình. Ông là 1 ông chú mập mập, hiền lành, vừa có tâm vừa có tầm, gây dựng được 1 đế chế Udemy vài trăm ngàn học viên, kênh Youtube hơn 1 triệu sub. Tìm hiểu về ông, mình mới thấy câu chuyện thành công của ông khá là hay ho, đáng tự hào, đáng học hỏi . Do vậy mình chia sẻ với các bạn nhé! Thành công dù đường đời không bằng phẳng Mặc dù ra lò hơn vài trăm clip dạy công nghệ, tiền từ Youtube và khoá học rất nhiều, nhưng Brad rất ít khi khoe khoang về tiền bạc hay về bản thân . Con đường đời của mình khá bằng phẳng. Nhà mình cũng khá giả, mình chỉ lo học hành. Học đúng ngành CNTT, ra trường mình chỉ tập trung đi làm, đi đây đi đó. Brad thì khác! Đường đời của ông không hề bằng phẳng mà khá trắc trở gập ghềnh: Thưở nhỏ, nhà ông không có điều kiện, cha ông thì nghiện rượu, nghiện mai thuý 17 tuổi, do đàn đúm với bạn xấu, ông sa đà vào nghiện rượu, chơi hàng trắng, từng mấy bận phải vào tù ra khám 24 tuổi, trở thành cha, ông tự thấy mình phải sống tốt hơn, vợ con dựa vào mình. Ông tự học, mở công ty, rồi cơ duyên đưa đẩy nên làm khoá học trên Youtube Con trai ông bị bệnh tự kỉ và một số bệnh khác, đến 8 tuổi vẫn chưa nói được Bị bệnh hoa mắt chóng mặt không ngồi lâu, code lâu được. Gần đây, bệnh trở nặng hơn, ông còn không có sức ngồi làm khoá học ! Clip chia sẻ của Brad Traversy về cuộc đời ông trước khi làm Youtube Những điều mình học hỏi được từ ông Các bạn thấy đấy, Brad Traversy có xuất phát điểm không cao. Để đạt được những thành công như hôm nay, ông đã phải trải qua nhiều khó khăn, nỗ lực hơn rất nhiều . Dù cuộc sống luôn cho ăn hành, ông vẫn rất lạc quan nhiệt tình. Dù con bị tự kỷ, ông vẫn hay khoe con trai mình rất lạc quan yêu đời nhất nhà. Khi bệnh nặng không code được, ông bắt đầu mời creator từ các channel Youtube khác về giảng dạy, xây dựng đế chế cho mình. Từ khi theo dõi ông, mình nhận ra được khá nhiều bài học quý giá cho bản thân: 1. Đừng so sánh cuộc sống của mình với người khác Trong cuộc sống, mỗi người đều có những khó khăn riêng mà người ngoài không thấy được. Đứa bạn code giỏi hơn bạn , có khi do nó phải thức khuya hơn, cày code nhiều hơn , đọc sách nhiều hơn . Ông sếp lương cao hơn bạn, nhưng ổng phải chịu nhiều trách nhiệm hơn , công việc căng thẳng stress hơn Do vậy, thay vì so sánh và cảm thấy mình thua kém người khác, hãy so sánh mình với mình trước kia . Liệu mình có giỏi hơn mình năm ngoái , mình có nhiều tiền hơn mình tháng trước không? Làm vậy, bạn sẽ bớt gato, có động lực để phát triển bản thân nhé. 2. Kiếm tiền từ nhiều nguồn, xây dựng cho mình 1 đế chế Ngoài thu nhập chính là lương, bạn cũng nên kiếm thêm nhiều nguồn thu nhập bổ sung , đề phòng khi mất việc . Bản thân ông Brad vừa có tiền Patreon, vừa có tiền bán khoá học, tiền donate, vừa có tiền quảng cáo Youtube v…v 3. Tập trung xây dựng content cho tốt, người dùng sẽ tự tìm tới Thay vì làm nội dung nhảm nhí câu view, clickbait rẻ tiền, hãy xây dựng content chất lượng , mang lại giá trị cho người dùng. Đa phần những clip của Traversy Media đều khá ngắn gọn, súc tích, chỉ 1 tiếng nhưng đủ để bao quát vấn đề , đủ kiến thức để các bạn nhập môn, tìm hiểu kĩ hơn về Công Nghệ. Mình thấy những clip dạng này có ích cho người xem hơn mấy clip chém gió khoe giàu của TechLeah, Joma gì đó nhiều! Clip Docker 30 phút cũng hay lắm nè!. Tạm kết Đấy, mỗi khi bạn cảm thấy khó khăn, hãy nhớ rằng: Đâu đó ngoài kia, có 1 ông chú từng nghiện rượu nghiện thuốc, nãy đã trở thành lập trình viên nổi tiếng. Có 1 ông chú bị đau đầu hoa mắt vẫn làm khoá học triệu view được được. Vậy cớ gì dăm ba cái sự dốt toán, dốt tiếng Anh, lười biếng có thể ngăn cản việc học, việc lập trình của bạn đúng hông nè! Còn bản thân bạn thì sao? Bạn có thần tượng ai trong ngành lập trình không? Người đó có ảnh hưởng gì đến bạn? Hãy chia sẻ trong mục comment nhé! Rate this: Like this: Related
Anyone who studies programming, especially web programming, will know the Travesy Media channel (). This is a channel specializing in teaching programming, with more than 800 extremely cool Batman videos. The videos are usually about 1 hour long, introducing a certain technology (React, Angular, MongoDB), not lengthy, summarizing the problem in 60 minutes. His clips are also very easy to understand and calm (not gossiping like Code Dao). Beginners who don't know anything can learn. Typically the clips below: The person behind the Traversy Media channel is Brad Traversy, my idol. He is a fat, gentle man with both heart and vision, building a Udemy empire of several hundred thousand students and a Youtube channel with more than 1 million subs. Learning about him, I found that his success story is quite interesting, worth being proud of, and worth learning from. So I share it with you guys! Success even though life's path is not flat Although he has released more than a few hundred technology teaching clips and has a lot of money from Youtube and courses, Brad rarely brags about money or himself. My life path is quite flat. My family is quite wealthy, I only worry about studying. Studying the right IT major, after graduating, I only focused on working, traveling here and there. Brad is different! His life path was not smooth but quite bumpy: When he was young, his family was poor and his father was an alcoholic and drug addict At the age of 17, due to hanging out with bad friends, he fell into alcoholism, drug abuse, and had to go to jail several times. At the age of 24, becoming a father, he felt he had to live better, with his wife and children relying on him. He taught himself, opened a company, and then fate led him to create a course on Youtube His son has autism and some other diseases, and at the age of 8 he still could not speak If you have dizziness, you can't sit for a long time or code for a long time. Recently, his illness got worse, he didn't even have the strength to sit through the course! Brad Traversy's sharing clip about his life before making YouTube Things I learned from him You see, Brad Traversy didn't have a high starting point. To achieve today's success, he had to go through many difficulties and put in a lot of effort. Even though life always gives him trouble, he is still very optimistic and enthusiastic. Even though his son is autistic, he still brags that his son is very optimistic and loves life the most in the family. When he was seriously ill and couldn't code, he started inviting creators from other Youtube channels to teach and build his empire. Since following him, I have realized many valuable lessons for myself: 1. Don't compare your life with others. In life, everyone has their own difficulties that outsiders cannot see. . Your friend is better at coding than you, maybe because he has to stay up later, code more, and read more books. The boss has a higher salary than you, but he has more responsibility and the job is more stressful Therefore, instead of comparing and feeling inferior to others, compare yourself to your former self. Am I better than I was last year, do I have more money than I did last month? By doing so, you will be less jealous and motivated to develop yourself. 2. Earn money from many sources, build yourself an empire In addition to the main income which is salary, you should also earn many additional sources of income, in case you lose your job. Mr. Brad himself has money from Patreon, money from selling courses, money from donations, money from YouTube advertising, etc. 3. Focus on building good content, users will find it themselves instead of making nonsense content. Cheap clickbait, clickbait, build quality content that brings value to users. Most of Traversy Media's clips are quite short and concise, only 1 hour but enough to cover the issue and enough knowledge for you to get started and learn more about Technology. I find these types of clips to be more useful to viewers than the clips of TechLeah, Joma, etc. that boast of their wealth! The 30-minute Docker clip is also very good!. Conclusion Well, every time you feel difficult, remember: Somewhere out there, there is an uncle who used to be an alcoholic and drug addict, and has become a famous programmer. There was an uncle who had headaches and dizziness but still managed to create a million-view course. So why can some ignorance of math, ignorance of English, and laziness prevent your learning and programming, right! What about yourself? Do you have an idol in the programming industry? What influence does that person have on you? Please share in the comments section! Rate this: Like this: Related
Như đã giới thiệu ở bài trước, mình sẽ giới thiệu về twlve-factor app. Đây là 12 yếu tố cần thiết để xây dựng 1 ứng dụng “xịn xò”, ổn định, dễ mở rộng, dễ deploy. Trong bài này, mình sẽ giải thích các yếu tố từ 3 tới 7 nhé: 3. Config : Lưu trữ thiết lập vào biến môi trường (environment variable) 4. Backing services : Xem các service đi kèm (database, API, …) như là resource của app 5. Build, release, run : Tách riêng quá trình release, build và run 6. Processes : App nên chạy dưới dạng 1 (hoặc nhiều) stateless processes 7. Port binding : Mỗi service có thể được truy cập thông qua 1 port cố định Đây là phần 2 trong series 3 phần về Twelve-Factor App: 3. Config : Lưu trữ thiết lập vào biến môi trường Như đã nói ở phần 1, một source code có thể được deploy ở nhiều môi trường khác nhau. Mỗi môi trường sẽ có các thiết lập khác nhau như: Connection String tới Database (App staging sẽ kết nối tới DB Staging, App Production sẽ kết nối tới DB Production) API Key, Token để gọi tới các service khác Hostname, URL của ứng dụng, ….. Cách … ngu nhất là hard code toàn bộ các thiết lập này, sau đó sửa code lại mỗi lần deploy. Một số cách khác ổn hơn thì lưu các thiết lập này vào 1 file riêng, mỗi môi trường sẽ có 1 file: Bên C#, ta sẽ có Web.config, Web.staging.config chứa các thiết lập Staging, Web.production.config chứa các thiết lập Production Bên NodeJS, ta có thể lưu vào file .env , tách thành .env.staging, .env.production Cá nhân mình thấy cách lưu file này cũng đã tạm ổn. Tuy nhiên, ta sẽ phải đảm bảo chỉ một số ít người mới có quyền xem các thiết lập Production (Lộ DB là chết á), hoặc dễ quên lưu nhầm file vào source control. Theo Twelve Factor app, toàn bộ các thiết lập này nên được bỏ vào biến môi trường. Các biến này có thể dễ dàng được thay đổi lúc Deploy. 4. Backing services : Tách rời các service đi kèm (database, API, …), xem như là resource của app Như mình đã nói ở phần 3, để 1 ứng dụng chạy được, ngoài trừ server chạy app, ta phải có các server đi kèm như Database Server (SQL, MongoDB) , Cache Server (Redis Memcache) , Message Queue . Các service này nên được tách rời, deploy tách riêng với app. Khi ta muốn nâng cấp cache server, hoặc muốn SQL Server trên Cloud thay cho server nội bộ để dễ mở rộng hơn; ta đều có thể dễ dàng nâng cấp mà không cần đụng tới app hiện tại. Ngoài ra, như đã nói ở điều 3. ta cũng nên lưu kết nối tới các server này vào file config/biến môi trường , khi thay đổi db server, message queue chỉ cần thay đổi các biến này và restart app là xong, không cần phải sửa source code. 5. Build, Release, Run -> Tách rời các môi trường build, release và chạy app Để biến source code thành 1 ứng dụng chạy được, ta thường phải đi qua 3 bước sau: Build : Lấy code từ source control, tải các thư viện (dependencies) cần thiết. Thực hiện build để biến code thành binary (.jar, .dll) có thể chạy được. (Với 1 số ngôn ngữ như PHP, NodeJS, Python thì không cần build, nhưng vẫn cần tải thư viện) Release : Kết hợp source code đã được build, cùng với các thiết lập môi trường (config trong phần 3) để gom thành 1 cục có thể chạy được. Chuyển cục này vào server production để có thể chạy. Run : Chạy cục vừa chuyển (bằng lệnh node server.js, python index.py) trên server production Tại sao phải tách rời 3 bước này làm chi cho mệt vậy?? Việc này có 1 số lợi thế sau: Ngăn cản việc sửa code trực tiếp khi ứng dụng đang chạy Bước build thường khá phức tạp, dễ gặp lỗi, tốn nhiều tài nguyên. Tách rời bước build giúp developer có thể dễ dàng test/build thử trên server trước khi deploy. Dễ dàng lưu trữ, xem lại log của những lần release. Ta cũng có thể lưu trữ các release trong quá khứ, dễ dàng rollback lại khi hệ thống có vấn đề Tách rời bước Run ra giúp ta dễ dàng restart lại hệ thống khi hệ thống bị crash hoặc server gặp vấn đề. 6. Process – Chạy app dưới dạng 1 (hoặc nhiều) stateless process Để dễ quản lý và mở rộng, 1 app nên chạy dưới dạng 1 hoặc nhiều stateless process. Nói đơn giản, stateless process tức là… không lưu trữ state, không lưu trữ bất kì thông tin gì trong quá khứ. Giao thức HTTP cũng là stateless, nó không nhớ được bạn là ai (nên phải dùng kèm với cookie để server nhận biết được người dùng). Với stateless process, khi cần lưu trữ (session, cache, …), ta sẽ lưu trữ vào cache server riêng bên ngoài. Chạy app dưới dạng stateless process mang lại rất nhiều lợi ích: Mỗi lần deploy lại code, đổi config, restart server, ta có thể restart lại app mà không sợ mất dữ liệu (Vì dữ liệu đã lưu ở server ngoài, đâu có gì mà mất) Khi lưu lượng truy cập nhiều , ta có thể dễ dàng scale bằng cách tăng số lượng process , chạy nhiều process trên nhiều máy. Các process này stateless nên có thể chạy hoàn toàn độc lập với nhau. 7. Port binding – Mỗi service có thể được truy cập thông qua 1 port cố định Nếu từng làm Java hoặc PHP, các bạn không thể chạy trực tiếp ứng dụng, mà phải dựa vào 1 web server nào đó (PHP thì phải có Apache , Java thì phải dùng Tomcat hay JBoss ). Tuy nhiên, theo khuyến cáo của Twelve Factor, ứng dụng nên chạy độc lập, không phụ thuộc vào web server. Nếu các bạn dùng Python hoặc NodeJS sẽ thấy, bạn có thể dễ dàng chạy node server.js hoặc python server.py mà không cần cài web server gì. Những logic xử lý HTTP/port binding đã nằm trong code của ứng dụng. Cách này sẽ giúp ứng dụng dễ chạy, dễ deploy hơn. Developer cũng không cần phải cài web server vào máy. Khuyến cáo : Hiện tại, phần lớn các app có thể chạy đơn lẻ, không phụ thuộc vào web server. Tuy nhiên, trong thực tế, thường người ta vẫn cho các app nằm sau 1 reverse proxy như nginx/haproxy để có các chức năng như SSL, Logging, Rate Limit , block IP, gzip …. mà không cần phải implement lại vào trong app. Tạm kết Bài này đã dài rồi nên mình tạm kết thúc ở đây. Mình sẽ tiếp tục giải thích các yếu tố còn lại ở những phần sau nhé. Các nội dung mình chia sẻ trong bài hơi nặng tính chuyên ngành, đôi khi khó hiểu nếu bạn chưa áp dụng vào dự án thực tế. Do vậy, nếu có đoạn nào không hiểu, các bạn cứ comment để mình giải thích kĩ hơn nha! Rate this: Like this: Related
As introduced in the previous article, I will introduce the twlve-factor app. These are 12 necessary elements to build a "genuine" application, stable, easy to expand, and easy to deploy. In this article, I will explain factors 3 to 7: 3. Config: Stores settings in environment variables (environment variable) 4. Backing services: View accompanying services (database, API, ...) as resources of the app 5. Build, release, run: Separate release, build and run processes 6. Processes: App should run as 1 (or more) stateless processes 7. Port binding: Each service can be accessed through a fixed port This is part 2 in a 3-part series about Twelve-Factor App: 3. Config: Store settings in environment variables As mentioned in part 1, a source code can be deployed in many different environments. Each environment will have different settings such as: Connection String to Database (App staging will connect to DB Staging, App Production will connect to DB Production) API Key, Token to call other services Hostname, application URL, ….. The dumbest way is to hard code all of these settings, then edit the code every time you deploy. Some other better ways are to save these settings in a separate file, one file for each environment: In C#, we will have Web.config, Web.staging.config contains Staging settings, Web.production.config contains Production settings In NodeJS, we can save to .env file, separated into .env.staging, .env.production Personally, I find this way of saving files to be okay. However, we will have to make sure that only a few people have access to the Production settings (leaving the DB is dead), or it's easy to forget to save the wrong file to source control. According to the Twelve Factor app, all of these settings should be put into environment variables. These variables can easily be changed at Deploy. 4. Backing services: Separate accompanying services (database, API, ...), considered as resources of the app As I said in part 3, for an application to run, in addition to the server running the app, we must have the following services: Included servers are Database Server (SQL, MongoDB), Cache Server (Redis Memcache), Message Queue. These services should be separated and deployed separately from the app. When we want to upgrade the cache server, or want SQL Server on the Cloud instead of the internal server for easier expansion; We can easily upgrade without touching the current app. In addition, as mentioned in article 3. we should also save the connection to these servers in the config/environment variable file. When changing the db server or message queue, we only need to change these variables and restart the app, no need to edit the source code. 5. Build, Release, Run -> Separate the build, release and run app environments To turn source code into a running application, we usually have to go through the following 3 steps: Build: Get code from source control, download necessary libraries (dependencies). Perform a build to turn the code into an executable binary (.jar, .dll). (For some languages ​​such as PHP, NodeJS, Python, there is no need to build, but you still need to download the library) Release: Combine the built source code, along with the environment settings (config in part 3) to compile into a executable unit. Transfer this to the production server so it can run. Run: Run the newly transferred department (using the command node server.js, python index.py) on the production server Why is it so tiring to separate these 3 steps?? This has a number of advantages: Prevents editing code directly while the application is running The build step is often quite complicated, prone to errors, and consumes a lot of resources. Separating the build step helps developers easily test/build on the server before deploying. Easily store and review release logs. We can also store past releases, easily rolling back when the system has problems Separating the Run step helps us easily restart the system when the system crashes or the server has problems. 6. Process – Run the app as 1 (or more) stateless processes For ease of management and expansion, an app should run as 1 or more stateless processes. Simply put, stateless process means... does not store state, does not store any information in the past. The HTTP protocol is also stateless, it cannot remember who you are (so it must be used with cookies for the server to recognize the user). With stateless process, when we need to store (session, cache, ...), we will store it on a separate external cache server. Running an app as a stateless process brings many benefits: Every time we redeploy the code, change the config, restart the server, we can restart the app without fear of losing data (Because the data is saved on an external server, nothing is lost). When there is a lot of traffic, we can easily scale by increasing the number of processes, running multiple processes on multiple machines. These processes are stateless so they can run completely independently of each other. 7. Port binding - Each service can be accessed through a fixed port. If you have ever done Java or PHP, you cannot run the application directly, but must rely on a certain web server (PHP must have Apache). , Java must use Tomcat or JBoss). However, according to Twelve Factor's recommendations, the application should run independently, not dependent on the web server. If you use Python or NodeJS, you can easily run node server.js or python server.py without installing any web server. The logic that handles HTTP/port binding is already in the application code. This will make the application easier to run and deploy. Developers also do not need to install a web server on their computer. Recommendation: Currently, most applications can run alone, independent of the web server. However, in reality, people often still let apps lie behind a reverse proxy like nginx/haproxy to have functions like SSL, Logging, Rate Limit, block IP, gzip... without having to re-implement it into the app. Conclusion This article is already long so I will end here for now. I will continue to explain the remaining factors in the following sections. The content I share in the article is a bit specialized, sometimes difficult to understand if you have not applied it to a real project. Therefore, if there is any part you do not understand, please leave a comment so I can explain more carefully! Rate this: Like this: Related
Cách đây không lâu, mình có giới thiệu về Design Pattern , những mẫu thiết kế code giúp giải quyết vấn đề, giúp code dễ bảo trì, dễ mở rộng hơn. Kì này, ta sẽ nói về anti-pattern. Khác với design pattern , anti pattern cũng là những cách thiết kế để giải quyết vấn đề , nhưng sử dụng nó lại… gây ra nhiều vấn đề hơn. Một anti-pattern được nhiều người biết đó là hút thuốc lào thay cho thuốc lá , cách này cai được thuốc lá nhưng sẽ gây ra nhiều vấn đề vệ sinh và môi trường hơn. Trong bài này, mình sẽ chia sẻ những anti-pattern chúng ta hay .. lỡ để nhầm vào code, hậu quả và cách giải quyết nó nhé! Thật ra mà nói, số lượng anti-pattern nhiều không đếm xuế, tính từ tầm planning, thiết kế architecture hệ thống , thiết kế object/module, cho tới lúc viết code. Ngồi kể chắc phải hết cả cuốn sách mới xong (có nguyên 1 cuốn sách về AntiPattern ). Do vậy, mình chỉ giới thiệu những Anti Pattern phổ biến nhé! Hard-code, Magic String và Number Đây là 3 Anti Pattern, nhưng do chúng na ná giông giống nhau nên mình gom lại luôn: Hard-code tức là… code cứng 1 số giá trị, 1 số logic cần thay đổi vào thẳng trong code (database connection, 1 số config). Magic string và magic number tức là code cứng 1 con số, 1 string ảo diệu nào đó, mà không ghi rõ số/string đó từ đâu ra, nó là gì Ví dụ như đoạn code dưới đây vừa hard code vừa dùng magic number Cách giải quyết : Anti Pattern này rất dễ xử lý. Chỉ cần không hardcode những giá trị config (mà đọc từ file config hoặc biết môi trường), tách các magic number ra thành biến riêng hoặc viết thêm comment là được. Code sau khi sửa dễ hiểu hơn nhiều phải không nào! God Class (The Blob) – Class siêu to không lồ Đây là một pattern hay gặp ở những bạn sinh viên đang làm đồ án, hoặc ở các dự án quá cũ, do dev non tay viết. Gob Class tức là Class siêu to khổng lồ Thần Thánh , làm gì cũng được nên gọi là God. Tình trạng này xảy ra khi mấy ông dev gom quá nhiều tính năng vào 1 class. Class này có những cái tên như Helper, Utils, Controller, Main… và rất bự (có khi tới 3-5000 dòng code). Mỗi lần chỉnh sửa, thêm bớt tính năng là 1 cực hình. Cách giải quyết Tuân thủ nguyên tắc Single Responsibility trong SOLID , mỗi class chỉ nên giữ 1 trách nhiệm Refactor dần lại code, tách class thành các class nhỏ hơn , gom nhóm các function/data hay dùng chung thành 1 class riêng Code theo phong cách Copy và Paste Các bạn đừng lầm tưởng AntiPattern này là copy code trên mạng về bỏ vào code của mình nhé! Đây là pattern theo kiểu viết code 1 lần, những lần sau cần dùng thì copy nguyên đoạn code cũ qua, sửa sửa lại 1 chút cho chạy được. Về lâu dài, điều này sẽ làm số lượng code của dự án bị phình lên. Code lặp lại nhiều, những khi cần chỉnh sửa hoặc fix bug sẽ phải fix ở rất nhiều chỗ . Nếu quên hoặc sót sẽ để bị sót bug. Cách giải quyết Cách đơn giản nhất vẫn là tách đoạn code cần sử dụng thành hàm riêng, library riêng để dùng Lưu ý : Có nhiều khi 3,4 hàm khác nhau quá thì đừng nên ráng viết thành 1 hàm rồi tái sử dụng, code sẽ còn… rối hơn tách riêng ra. Premature Optimization Optimize code (Tối ưu code) là việc chỉnh sửa/viết lại code nhằm giảm dung lượng, hạn chế input/output, tăng tốc độ thực thi , giảm lượng phần cứng cần sử dụng. Đôi khi, việc optimize code quá sớm (chưa biết chạy chậm chỗ nào, otpimize đoạn nào) là hoàn toàn không cần thiết, nó còn làm code phức tạp hơn, khó đọc, khó debug hơn. Cách giải quyết Không optimize vội hay optimize quá sớm. Hãy hỏi xem code đó có cần, có đáng để optimize hay không Khi code chạy chậm, hãy dùng profiler để xác định đoạn code gây chậm, sau khi optimize thì dùng profiler để đo lại trước Các bạn có thể xem lại bài Luận về Optimize Code của mình. Spaghetti Code Spaghetti Code để chỉ code rối như canh hẹ, lộn, … rối như mấy cọng mì spaghetti. Đây là những dòng code móc nối nhiều module/class với nhau, flow đi vòng vèo, cực kì khó đọc và khó sửa. Nguyên nhân là do team code mà không có design cụ thể, do developer lười nên code đại. Hoặc do requirement đổi liên tục, chồng chéo nhau , nhưng các module và design không được update, nên cũng gọi nhau chồng chéo luôn! Cách giải quyết Đây là Anti Pattern khó giải quyết triệt để nhất ! Vì nó không chỉ liên quan tới code, mà còn liên quan tới thiết kế của các module trong hệ thống Cách dễ nhất là đập bỏ và viết lại khi đã hiểu rõ logic ban đầu, nhưng sẽ tốn nhiều thời gian, có thể thiếu requirement Nên refactor code dần dần, tách thành từng phần nhỏ. Có thể design lại các module nếu cần Tạm kết Đấy, kể sơ sơ vài cái Anti Pattern mà bài viết đã dài quá trời rồi. Đọc xong các bạn có thấy nhột nhột, thấy quen quen không? Đừng lo, ai rồi cũng mắc phải những anti pattern này lúc mới học, thiếu kinh nghiệm thôi! Qua thời gian, trình độ và kinh nghiệm tăng lên thì bạn sẽ không dùng nhầm những Anti Pattern như vậy nữa. Nếu quan tâm, các bạn có thể đọc thêm về các Anti Pattern này theo những nguồn phía dưới nhé. Nguồn tham khảo thêm: Rate this: Like this: Related
Not long ago, I introduced Design Patterns, code design patterns that help solve problems, make code easier to maintain and expand. This time, we will talk about anti-patterns. Unlike design patterns, anti patterns are also design ways to solve problems, but using them... causes more problems. An anti-pattern that many people know is smoking waterpipes instead of cigarettes. This method can help you quit smoking but will cause more hygiene and environmental problems. In this article, I will share the anti-patterns we often accidentally put in the code, the consequences and how to solve it! To be honest, the number of anti-patterns is countless, from planning, system architecture design, object/module design, to writing code. It would take a whole book to sit down and talk about it (there's an entire book about AntiPattern). Therefore, I only introduce popular Anti Patterns! Hard-code, Magic String and Number These are 3 Anti Patterns, but because they are similar, I gathered them together: Hard-code means... hard code some values, some logic that needs to be changed directly into the code (database connection, some config). Magic string and magic number means hard coding a number, a magic string, without specifying where that number/string comes from or what it is. For example, the code below is both hard code and uses magic numbers Solution: This Anti Pattern is very easy to handle. Just don't hardcode the config values ​​(but read from the config file or know the environment), separate the magic numbers into separate variables or write additional comments. The code after editing is much easier to understand, isn't it! God Class (The Blob) - Super huge class This is a common pattern in students working on projects, or in very old projects written by inexperienced developers. Gob Class means the super giant Divine Class, can do anything, so it is called God. This situation occurs when developers combine too many features into one class. This class has names like Helper, Utils, Controller, Main... and is very large (sometimes up to 3-5000 lines of code). Every time you edit, add or remove features, it's a torture. Solution Complying with the Single Responsibility principle in SOLID, each class should only hold one responsibility Gradually refactor the code, separate the class into smaller classes, group commonly used functions/data into a separate class Code in Copy and Paste style. Don't mistake this AntiPattern for copying code from the internet and putting it into your code! This is a pattern of writing code once, the next time you need to use it, copy the old code and modify it a bit to make it work. In the long run, this will increase the amount of code in the project. The code repeats a lot, when it needs to be edited or fixed, it will have to be fixed in many places. If you forget or miss it, you will miss a bug. Solution The simplest way is still to separate the code to be used into separate functions and separate libraries to use Note: There are times when 3 or 4 functions are too different, so don't try to write one function and then reuse it, the code will be... more confusing than separate functions. Premature Optimization Optimize code is editing/rewriting code to reduce capacity, limit input/output, increase execution speed, and reduce the amount of hardware needed. Sometimes, optimizing code too early (not knowing where it runs slow, what parts to otpimize) is completely unnecessary, it also makes the code more complicated, harder to read, and harder to debug. Solution Do not optimize hastily or optimize too early. Ask whether the code is necessary or worth optimizing or not When code is running slow, use profiler to identify the slow code segment. After optimizing, use profiler to measure again first. You can review my Essay on Optimize Code. Spaghetti Code Spaghetti Code refers to code that is tangled like chive soup, salad,... tangled like a few strands of spaghetti. These are lines of code that connect many modules/classes together, the flow is circular, extremely difficult to read and difficult to edit. The reason is because the team codes without a specific design, because the developer is lazy so the code is haphazard. Or because the requirements are constantly changing and overlapping, but the modules and designs are not updated, so they are also called overlapping! Solution This is the most difficult Anti Pattern to completely solve! Because it is not only related to the code, but also related to the design of the modules in the system The easiest way is to destroy and rewrite once you understand the initial logic, but it will take a lot of time and may lack requirements. You should refactor the code gradually, separating it into small parts. Modules can be redesigned if needed Conclusion That's it, let's briefly tell you a few Anti Patterns but this article is already too long. After reading it, do you feel tickled or familiar? Don't worry, everyone makes these anti patterns when they first learn and lack experience! Over time, as your level and experience increase, you will no longer mistakenly use such Anti Patterns. If you are interested, you can read more about these Anti Patterns from the sources below. Additional reference sources: Rate this: Like this: Related
Đây là một câu chuyện bi hài dở khóc dở cười về một cây cầu mang tên Chó Lu Té Ca (Choluteca) ở Honduras (Trung Mỹ). Vào những năm 90, chính quyền Honduras muốn xây dựng 1 cây cầu băng qua con sông Choluteca. Khu vực này vốn có nhiều thiên tai, nên cây cầu phải có sức chống chịu tốt trước giông bão . Trong vòng 3 năm (từ 1996 tới 1998), cây cầu được công ty Nhật Hazama Ando xây dựng, bằng công nghệ Nhựt Bổn hiện đại, chấp luôn mọi thể loại giông bão thiên tai. Thế rồi, cầu vừa xây xong, vài tháng sau đó, cơn bão nhiệt đới Mitch ập tới, gây thiệt hại hơn 7000 nhân mạng ở nước Honduras. Số phận cây cầu ra sao, các bạn xem tiếp sẽ rõ! Số phận éo le của cây cầu Choluteca sau cơn bão Cơn bão Mitch phá huỷ khá nhiều cây cầu ở Honduras. Thế nhưng, nhờ sử dụng công nghệ hiện đại của Nhật Bản, cây cầu Choluteca vẫn đứng vững, không hề suy suyễn trước cơn giông. Thế nhưng, người tính không bằng trời tính. Mặc dù không phá huỷ được cây cầu, cơn bão và lũ lụt đã quét sạch đường xá 2 bên bờ sông, làm đổi chiều con sông Choluteca dưới chân cầu, Thế là, cây cầu Chó Lu Té Ca bỗng dưng trở thành 1 cây … cầu cạn, vì không có đường nối, sông cũng đã đổi chiều mất tiêu, không còn nằm dưới chân cầu nữa. Đội ngũ engineer và quản lý của cây cầu lúc này chỉ biết câm nín , vì họ chỉ dự đoán là cây cầu sẽ phải chịu tải trươc giông bão; chứ không lường được rằng… con sông cũng đổi chiều mất tiêu. Bài học rút ra sau câu chuyện Câu chuyện về cây cầu Choluteca đã trở thành 1 bài học kinh điển về công nghệ, về quản trị , lên kế hoạch trước những biến đổi của tự nhiên. Chúng ta có thể dự đoán, lên kế hoạch để chuẩn bị cho tốt, nhưng cũng có những thứ hoàn toàn nằm ngoài kế hoạch, nằm ngoài khả năng thay đổi của chúng ta. Trong ngành công nghệ cũng vậy. Dù sản phẩm của bạn có tốt đến mấy , chịu tải cao đến mấy , nhưng … không có người dùng, hoặc thị trường thay đổi thì sản phẩm cũng ngoắc ngoải theo! Nói đâu xa, các hệ thống xịn xò như Agoda, AirBnB dư sức chịu tải hàng triệu người dùng, xử lý cả trăm triệu giao dịch một ngày.. Tuy nhiên, chỉ cần dính Covid 1 phát, ảnh hưởng ngành du lịch , làm công ty sập hoặc phá sản là các hệ thống này cũng … đi đời theo. (Adoga đã phải đuổi việc 1500 nhân viên , AirBnB cũng phải đuổi gần 2000 nhân viên ). Hoặc như các hệ thống tự động định giá vé máy bay của các hãng hàng không Mĩ, hoạt động rất tốt khi thị trường ổn định. Tuy nhiên, do dịch Covid, số người bay quá ít , hệ thống … giảm giá cực thấp đến mức lỗ vốn, nên các hãng phải tạm dừng hệ thống, chuyển qua hệ thống chạy bằng cơm (nhân viên) để tự định giá vé. Cá nhân mình cũng vậy thôi! Mình chịu khó viết blog, đầu tư content làm vlog khá nhiều. Lỡ một ngày nào đó chán chán, nhà nước chặn bà Facebook, Youtube, Wordpess … lúc đấy những thứ mình bỏ công xây dựng coi như đi tong cả, lúc đấy mình lại phải kiếm đường khác làm ăn. Ngẫm lại, ngày xưa các cụ cũng có câu “mưu sự tại nhân, thành sự tại thiên”, “người tính không bằng trời tính”, … quả là chí lý. Tạm kết Đọc đến đây, hẳn nhiều bạn cảm thấy thương xót cho 1 kiếp người, lộn, kiếp cầu. Cũng may, nỗ lực xây cầu cũng không đến nỗi uổng phí! Vào năm 2003, nhà nước Honduras đã nối cây cầu với đại lộ và 1 cây cầu khác, biến nó thành cao tốc xinh tươi. Cái kết âu cũng tạm gọi là có hậu. Cuộc sống thật thì đôi khi không được may mắn như vậy! Có rất nhiều công ty, nhiều dự án qui tụ nhiều anh tài engineer khủng, đội ngũ khủng, xây dựng hệ thống hầm hố mất vài năm trời. Thế nhưng, cuối cùng hệ thống cũng phải vứt bỏ vì … công ty cạn vốn, không bán được sản phẩm, không có người dùng. Công sức bao năm trời của cả đội ngũ coi như vứt sông đổ biển. Ngẫm lại, mình cũng không có lời khuyên gì cho các bạn, ai biết được ngày mai sẽ ra sao đâu! Chỉ là mình muốn share câu chuyện bi hài mà ý nghĩa này, cùng với vài lời nhắn nhủ: Nguồn + Fact Check : Rate this: Like this: Related
This is a tragic and funny story about a bridge named Choluteca in Honduras (Central America). In the 90s, the Honduran government wanted to build a bridge across the Choluteca River. This area is prone to many natural disasters, so the bridge must be able to withstand storms well. Within 3 years (from 1996 to 1998), the bridge was built by the Japanese company Hazama Ando, ​​using modern Nhut Bon technology, able to withstand all types of storms and natural disasters. Then, just after the bridge was built, a few months later, tropical storm Mitch struck, causing more than 7,000 deaths in Honduras. As for the fate of the bridge, you will see if you continue watching! The sad fate of the Choluteca bridge after storm Hurricane Mitch destroyed many bridges in Honduras. However, thanks to the use of modern Japanese technology, the Choluteca bridge is still standing, not weakened by the storm. However, human calculation is not as good as heaven's calculation. Although the bridge could not be destroyed, the storm and flood wiped out the roads on both sides of the river, changing the direction of the Choluteca river under the bridge. Thus, the Dog Lu Te Ca bridge suddenly became a bridge... Viaduct, because there is no connecting road, the river has also changed direction and is no longer under the bridge. The bridge's engineering and management team could only remain speechless at this time, because they only predicted that the bridge would have to bear the load of the storm; But I didn't expect that... the river would also change direction and disappear. Lessons learned from the story The story of the Choluteca bridge has become a classic lesson about technology, management, and planning before natural changes. We can predict and plan to prepare well, but there are also things that are completely unplanned and beyond our ability to change. The same is true in the technology industry. No matter how good your product is, how high the load it can handle, but... if there are no users, or the market changes, the product will also fail! Needless to say, high-end systems like Agoda and AirBnB are more than capable of handling millions of users, processing hundreds of millions of transactions a day. However, it only takes one Covid hit to affect the tourism industry, making When a company collapses or goes bankrupt, these systems also... go away. (Adoga had to fire 1,500 employees, AirBnB also had to fire nearly 2,000 employees). Or like the automatic ticket pricing systems of US airlines, which work very well when the market is stable. However, due to the Covid epidemic, the number of people flying was too small, the system... reduced prices extremely low to the point of losing capital, so the airlines had to temporarily suspend the system, switch to a system that runs on rice (employees) to set ticket prices themselves. . Personally, the same goes for me! I work hard on blogging and invest a lot in vlogging content. What if one day I get bored and the government blocks Facebook, Youtube, Wordpress... then everything I've worked hard to build will be gone, and I'll have to find another way to do business. Thinking back, in the past, the elders also had the saying "planning things depends on people, achieving things depends on heaven", "human nature is not as good as heaven's nature",... it is indeed true. Conclusion Having read this far, many of you probably feel sorry for a human life, a wrong life, a miserable life. Fortunately, the effort to build a bridge is not in vain! In 2003, the Honduran state connected the bridge to the avenue and another bridge, turning it into a beautiful highway. The ending is also temporarily called happy. Real life is sometimes not so lucky! There are many companies, many projects that bring together many talented engineers and huge teams, building underground systems that take several years. However, in the end the system had to be abandoned because... the company ran out of capital, could not sell products, and had no users. Years of effort by the entire team seemed like a waste of money. Looking back, I don't have any advice for you guys, who knows what tomorrow will bring! I just want to share this tragic yet meaningful story, along with a few words of advice: Source + Fact Check: Rate this: Like this: Related
Đây là một câu hỏi mình đã nghe không dưới … chục lần, người hỏi thường là những bạn đang học Đại Học hoặc sắp đi làm. Gần đây, do có nhiều bạn sắp theo ngành này, muốn học web/làm web developer , do vậy mình biết bài trả lời, chia sẻ 1 lần và duy nhất luôn nhe. Câu trả lời là … không, hết thời thế đ*o nào được! Đấy, nếu là các trang khác họ sẽ viết dài dòng blah blah 1 hồi, rồi mới đi đến kết luận. Còn mình thì mình nói thẳng ngay từ đầu luôn là …. KHÔNG ! Từ 15-20 năm trước đây, trước khi có các dịch vụ như Wix/Shopify ra đời, đã có những CMS rất mạnh như WordPress/Joomla/Drupal . Chỉ cần làm theo hướng dẫn, deploy lên host, người dùng đã có thể tạo 1 trang web mà không cần viết 1 dòng code nào cả. WordPress đã ra đời từ 17 năm về trước Các CMS này càng ngày càng mạnh, cộng đồng lớn, đủ thứ plug-in và theme . Muốn làm web bán rau củ quả? Có ngay theme rau sạch. Muốn thêm chức năng hiển thị ảnh, xem 3 vòng của rau? Cài plug-in gallery ảnh là xong, không cần phải code dòng nào. Cho đến hôm nay, hơn 30% website trên internet vẫn đang chạy bằng WordPress (kể cả cái blog này cũng vậy). Ở Việt Nam, các dịch vụ làm web giá rẻ cũng làm bằng WordPress/Joomla, click vài phát là có ngay web cho doanh nghiệp, theme đẹp, SEO siếc ổn, ngon bổ rẻ . WordPress vẫn chiếm thị phần siêu to khổng lồ trong tổng số trang web Ấy thế mà mấy chục năm nay mấy ông Web Developer có hết thời đâu? Job vẫn đăng tuyển ầm ầm kìa? Sao lại vậy nhỉ? Ủa vậy sao mấy ông Web Developer chưa thất nghiệp? Thật ra, những CMS như WordPress/Joomla và các service như Wix/Shopify khá phù hợp khi làm web cá nhân, web doanh nghiệp, web bán hàng nho nhỏ. Tuy vậy, làm web không chỉ là làm mấy cái đấy, mà còn đủ thứ khác: Web review hàng hoá quán ăn, so sánh giá Web doanh nghiệp: quản lý nhân sự, quản lý kho, quản lý tả phí lù Web mạng xã hội: Facebook, Youtube, …. …. Những web này không thể dễ dàng build bằng cách kéo, thả , gắn plugin vào, mà phải có 1 team để build từ đầu, code thêm chức năng. Những thứ “ăn sẵn” có thể làm ra sản phẩm nhanh , ngon bổ rẻ, nhưng khi cần tinh chỉnh, sửa đổi cho hợp thì rất cực. Ví dụ bạn có thể dùng Magento để làm web bán đồ điện tử, nhưng chỉ cần thêm chức năng “lạ” như: cho phép tự build dàn máy, gợi ý build trong tầm giá … là phải cần thuê dev để code ngay. Một số chức năng lạ như hỗ trợ build dàn máy, gợi ý giá thì … kéo thả tới mùi quít Vì thế, đa phần những người làm web như mình là code để build những sản phẩm như vậy , build những thứ không dễ dàng kéo thả là có. Do vậy, mấy ông developer vẫn còn việc dài dài, làm hoài không hết nha! Ủa vậy hả, còn low-code thì sao? Low-code phổ biến thì dev có thất nghiệp không? Để Code Dạo nói cho mà nghe. Bản thân loài developer là 1 loài quý hiếm , tìm developer xịn khá khó, giá lại cao, làm 1 thời gian mà chán là bọn nó nhảy ngay , nên build team dev rất mệt và tốn kém. Do vậy, từ cách đây vài chục năm, mấy lão bên business lẫn engineer đã tìm cách … tự động hoá việc viết code của dev, để đỡ tốn tiền thuê team dev. Bao nhiêu công nghệ hầm hố, đầu tư bạc triệu ra đời. Công nghệ nào cũng được quảng cáo chỉ cần kéo thả là có phần mềm (Visual FoxPro, Microsoft Access là ví dụ). Tiếc thay, công nghệ càng phát triển, business lại càng đòi hỏi những tính năng (feature) phức tạp hơn, mà những đồ chơi kéo thả này không đáp ứng được. Low-Code cũng vậy. Trong tương lai, mình nghĩ low code sẽ trở nên phổ biến. Thay vì “xoá sổ” developer, nó sẽ giúp developer và business tiết kiệm thời gian làm những chức năng “thêm bớt xoá sửa, quản lý” nhàm chán; mà sẽ có thời gian làm những flow khó, những chức năng đem lại giá trị hơn cho người dùng nha. Công nghệ low-code với no-code quá trời, mà cái ngày chúng thay thế được developer vẫn còn xa lắm! Còn mấy cái dùng AI để tạo code ấy hả? Xin lỗi chứ dân trong ngành nhìn demo chỉ cười cười xong bỏ quá thôi thôi. Dùng cái đấy làm Proof of Concept, loè newbie hoặc demo cho business thấy tiềm nặng thì được. Chứ nếu áp dụng, làm cái web nho nhỏ thôi mà đợi AI generate ra code chắc cũng tới mút mùa lệ thuỷ rồi! Nói vậy chứ chờ 5 năm nữa xem mấy thuật toán AI phát triển thế nào rồi mình mới dám phán tiếp nhé! Ai biết được bọn AI sau này bọn nó làm gì??? Tạm kết Như mình thường hay nói, công việc của lập trình viên không chỉ có code . Công việc của developer làm tìm ra vấn đề, đưa ra giải pháp, giải quyết vấn đề bằng cách viết code . Giả sử ta có 1 công nghệ hiện đại tới mức … tự viết ra luôn code, thì người dùng công nghệ cũng phải biết code sẽ giải quyết chuyện gì, logic ra sao …. thì mới tạo ra code được (Ủa sao giống lập trình vậy ta? Viết ngôn ngữ bậc cao rồi nó compile ra assembly ). Do vậy, trước khi lo web hết thời, lo làm web developer thất nghiệp; hãy lo học kĩ kiến thức cơ bản , rèn luyện tư duy logic , nắm vững ngôn ngữ lập trình trước đã. Có mấy cái đó thì sau này web hay lập trình có lỗi thời thì anh em ta vẫn sống phây phây, không lo thất nghiệp đâu. Rate this: Like this: Related
This is a question I have heard no less than... dozens of times, the people who ask are usually people who are studying at university or about to go to work. Recently, because many of you are about to follow this industry and want to learn web/become a web developer, so I know the answer and will share it once and only. The answer is... no, the end of the world is out of the question! See, if it were other sites, they would write blah blah for a while, then come to a conclusion. As for me, I'll say it straight from the beginning... ARE NOT ! 15-20 years ago, before services like Wix/Shopify were born, there were very powerful CMSs like WordPress/Joomla/Drupal. Just follow the instructions, deploy to the host, users can create a website without writing a single line of code. WordPress was born 17 years ago. These CMSs are becoming more and more powerful, with a large community, all kinds of plug-ins and themes. Want to make a website to sell fruits and vegetables? Get the clean vegetable theme right away. Want to add the function of displaying photos and viewing 3 rounds of vegetables? Install the photo gallery plug-in and you're done, no need to code any lines. As of today, more than 30% of websites on the internet are still running on WordPress (including this blog). In Vietnam, cheap website making services are also made using WordPress/Joomla, with a few clicks you will have a website for businesses, beautiful themes, good SEO, delicious and cheap. WordPress still holds a huge market share in the total number of websites. Yet, have Web Developers gone out of fashion in the past few decades? Jobs are still posting loudly? Why is that? So why aren't Web Developers unemployed yet? In fact, CMSs like WordPress/Joomla and services like Wix/Shopify are quite suitable for making personal websites, business websites, and small sales websites. However, making a website is not just about doing those things, but also many other things: Website reviews restaurant goods, compares prices Enterprise website: human resource management, warehouse management, inventory management Social networking websites: Facebook, Youtube, .... …. These websites cannot be easily built by dragging, dropping, or attaching plugins, but must have a team to build from scratch and code additional functions. "Ready-to-eat" things can make quick, delicious and cheap products, but when you need to tweak and modify them to suit them, it's very difficult. For example, you can use Magento to make a website to sell electronics, but just adding "strange" functions such as: allowing to build your own system, suggesting builds within price range... then you need to hire a dev to code immediately. Some strange functions such as support for building rigs, price suggestions... drag and drop until it smells like tangerine. Therefore, most web developers like me code to build such products, build things that are not easy to drag and drop. release is there. Therefore, developers still have a lot of work to do and can't finish it! So, what about low-code? If low-code is popular, will developers be unemployed? Let Code Dao tell you. Developers themselves are a rare species, finding good developers is quite difficult, the price is high, if they get bored after working for a while they will immediately quit, so building a dev team is very tiring and expensive. Therefore, since a few decades ago, businessmen and engineers have been looking for ways to... automate dev coding, to save money on hiring a dev team. So many advanced technologies and millions of investments were born. Every technology is advertised as just drag and drop software (Visual FoxPro, Microsoft Access are examples). Unfortunately, as technology develops, business demands more and more complex features, which these drag-and-drop toys cannot meet. Low-Code is the same. In the future, I think low code will become popular. Instead of "erasing" developers, it will help developers and businesses save time doing boring "add, delete, edit, and manage" functions; but will have time to do difficult flows and functions that bring more value to users. Low-code and no-code technologies are so great, but the day they can replace developers is still far away! Are there any other ones that use AI to create code? Sorry, but people in the industry just laugh and laugh and then ignore it. It's okay to use that as Proof of Concept, to show off newbies or to demo to show businesses the potential. But if you apply it, just make a small website and wait for AI to generate code, it will probably be the end of tears! Having said that, I'll have to wait another 5 years to see how AI algorithms develop before I dare to judge again! Who knows what AI will do in the future??? Conclusion As I often say, a programmer's job is not just about coding. A developer's job is to find problems, come up with solutions, and solve problems by writing code. Suppose we have a technology so modern that we... write the code ourselves, then technology users must also know what the code will solve, what the logic is... Only then can we create code (Why is it like programming? Write a high-level language and then compile it into an assembly). Therefore, before worrying about the end of the web, worry about making web developers unemployed; Please learn the basic knowledge thoroughly, practice logical thinking, and master the programming language first. With those things, if the web or programming becomes outdated in the future, we will still live comfortably and not worry about unemployment. Rate this: Like this: Related
Sau một thời gian lập trình, bạn sẽ dần nhận ra một điều: Build một ứng dụng là một chuyện khá khó. Thế nhưng, khi ứng dụng đã bắt đầu có người sử dụng (lên production), ta sẽ gặp phải nhiều vấn đề còn … khó hơn nữa: Làm sao thêm tính năng, sửa lỗi mà không ảnh hưởng đến ứng dụng đang chạy Làm sao để những tính năng mới, bug fix có thể được release nhanh chóng đến tay người dùng Khi lượng người dùng tăng gấp 5, gấp 10 lần, làm sao để có thể nhanh chóng scale hệ thống Làm sao để mấy bạn developer mới gia nhập có thể dễ dàng chạy ứng dụng ở local, test và push code Đây là những vấn đề làm đau đầu nhiều team, vì nó đòi hỏi không chỉ kiến thức lập trình, mà còn là kiến thức về system architecture, operation, qui trình…. Do vậy, trong bài này, mình sẽ chia sẻ về Twelve-Factor App ( 12factor.net ). Đây là 12 yếu tố cần thiết để xây dựng 1 ứng dụng “xịn xò”, ổn định, dễ mở rộng, dễ deploy nhé. Đây là phần 1 trong series 3 phần về Twelve-Factor App: Twelve-Factor App này có cái gì hay ho? Đây là những kinh nghiệm được tổng hợp từ các developer đã tham gia phát triển về deploy, vận hành vài trăm app trên nền tảng Heroku . Bạn có thể xem 12 yếu tố này là cách để build 1 web app dễ mở rộng, dễ deploy, dễ tiếp cận cho developer mới gia nhập luôn. Cá nhân mình thấy những kinh nghiệm này khá hữu ích, nó giải quyết được khá nhiều vấn đề chúng ta thực sự gặp phải khi xây dựng, vận hành 1 ứng dụng web. Bản thân mình khuyên các bạn nên đọc bản gốc tiếng Anh trước ( 12factor.net ). Mình sẽ trình bày lại 12 yếu tố này theo cách hiểu của mình, đưa thêm 1 số ví dụ thực tế nhé! 12 yếu tố này bao gồm: Nếu các bạn đọc qua thấy không hiểu cũng không sao. Mình sẽ giải thích kĩ hơn và đưa 1 số ví dụ cụ thể cho từng yếu tố nhé. Có 1 số yếu tố mình không đồng tình, hoặc không phù hợp khi áp dụng vào các ngôn ngữ như C#, Java, nên mình cũng sẽ giải thích và chia sẻ thêm. 1. Codebase : Một source code trong source control, có nhiều deploy Mỗi app chỉ nên có 1 source code (codebase) duy nhất, nằm trong source control như Git/SVN. Mỗi khi code được build và chạy trên một môi trường nào đó, ta gọi nó là một bản deploy. Code chạy trên môi trường Production gọi là Production deploy, chạy trên Staging gọi là Staging deploy. Deploy trên staging có thể có nhiều commit hơn, nằm ở branch khác Production, nhưng 2 code này đều nằm trong 1 source control. Nhờ vậy, khi có developer mới gia nhập, ta có thể dễ dàng lấy và đọc source code từ source control. Gần đây, khi kiến trúc microservice đang thịnh hành, ta có thể dùng monorepo – 1 repo chứa toàn bộ source code của các service. Hoặc có thể coi mỗi service là 1 app, lưu source code của service đó vào 1 repo riêng. 2. Dependencies : Dependencies rõ ràng, tách biệt Cho các bạn chưa biết, depedencies tức là các package/thư viện/tool của bên thứ 3, mà app của bạn cần có để chạy được. Một app cần phải thiết lập rõ ràng những dependency mà nó sử dụng, không lệ thuộc vào các dependency có sẵn của hệ thống. Các dependencies này phải tách biệt trong từng app. Giả sử thế này, bạn đang viết ứng dụng nhận dạng JAV Idol, sử dụng thư viện IdolRec ver 2.1. Thằng bạn của bạn cũng viết ứng dụng nhận diện EU Idol, sử dụng IdolRec ver 1.3: Cách thức đúng ở đây là: app sẽ ghi rõ mình dùng thư viện IdolRec + version. Thư viện này sẽ bỏ vào thư mục của app, chạy trong app. Nếu ứng dụng phụ thuộc vào dependencies ngầm trong máy , sẽ dễ dẫn đến tình trạng “It works on my machine” => Chạy được trên máy của dev, nhưng lên Production thì tèo… Nếu không ghi rõ, tách biệt dependeices, khi 2 ứng dụng chạy trên 1 máy sẽ bị conflict vì 2 thư viện khác nhau. Hoặc có thể … không chạy được vì máy kia chưa xài IdolRec Hiện tại, đa phần các ngôn ngữ lập trình đều có cách package manager hỗ trợ chuyện này ( NodeJS thì lưu dependencies vào file package.json, Ruby thì có bundler lưu depedencies vào gemfile, C# thì lưu vào Web.config hoặc App.config ….). Nhờ vậy, khi ta deploy ứng dụng lên server, hoặc developer mới gia nhập pull code về, ta chỉ cần chạy npm install hoặc bundle install để tải thư viện về, là ứng dụng có thể chạy bình thường, không cần cài dependencies ngầm. Tạm kết Bài này đã dài rồi nên mình tạm kết thúc ở đây! Mình sẽ tiếp tục giải thích các yếu tố còn lại ở những phần sau nhé. Rate this: Like this: Related
After a while of programming, you will gradually realize one thing: Building an application is quite difficult. However, when the application begins to have users (in production), we will encounter many more... difficult problems: How to add features and fix errors without affecting the running application How can new features and bug fixes be released quickly to users? When the number of users increases 5 or 10 times, how can we quickly scale the system? How can new developers easily run applications locally, test and push code These are problems that cause headaches for many teams, because it requires not only programming knowledge, but also knowledge of system architecture, operations, processes, etc. Therefore, in this article, I will share about Twelve-Factor App (12factor.net). These are the 12 necessary elements to build a "genuine" application, stable, easy to expand, and easy to deploy. This is part 1 in a 3-part series about Twelve-Factor App: What's cool about this Twelve-Factor App? These are experiences compiled from developers who have participated in developing, deploying, and operating several hundred apps on the Heroku platform. You can see these 12 elements as a way to build a web app that is easy to expand, easy to deploy, and easy to access for new developers. Personally, I find these experiences quite useful, it solves many problems we actually encounter when building and operating a web application. I personally recommend that you read the original English version first (12factor.net). I will present these 12 elements in my understanding, giving some practical examples! These 12 elements include: If you read it and don't understand it, it's okay. I will explain in more detail and give some specific examples for each factor. There are some elements that I do not agree with, or are not suitable when applied to languages ​​such as C#, Java, so I will also explain and share more. 1. Codebase: One source code in source control, with many deploys. Each app should only have one source code (codebase), located in source control like Git/SVN. Every time code is built and run in an environment, we call it a deployment. Code running on the Production environment is called Production deploy, running on Staging is called Staging deploy. Deployment on staging may have more commits, located in a different branch than Production, but these 2 codes are in 1 source control. Thanks to that, when a new developer joins, we can easily get and read the source code from source control. Recently, when microservice architecture is popular, we can use monorepo - a repo containing the entire source code of the services. Or you can consider each service as an app, save the source code of that service in a separate repo. 2. Dependencies: Dependencies are clear and separate. For those of you who don't know, dependencies are 3rd party packages/libraries/tools that your app needs to run. An app needs to clearly set up the dependencies it uses, not depending on the system's available dependencies. These dependencies must be separate in each app. Let's assume this, you are writing a JAV Idol recognition application, using the IdolRec ver 2.1 library. Your friend also wrote an EU Idol recognition application, using IdolRec ver 1.3: The correct way here is: the app will clearly state that it uses the IdolRec + version library. This library will be placed in the app's directory and run in the app. If the application depends on implicit dependencies in the machine, it will easily lead to the situation "It works on my machine" => It can run on the dev machine, but when it comes to Production, it's terrible... If you do not clearly state and separate dependencies, when 2 applications run on 1 machine, there will be conflict because of 2 different libraries. Or maybe... it can't run because the other computer hasn't used IdolRec yet Currently, most programming languages ​​have a package manager to support this (NodeJS saves dependencies in the package.json file, Ruby has a bundler that saves dependencies in gemfile, C# saves dependencies in Web.config or App.config). ….). Thanks to that, when we deploy the application to the server, or a new developer joins to pull the code, we only need to run npm install or bundle install to download the library, and the application can run normally, without needing to install implicit dependencies. Conclusion This article is already long so I will end here for now! I will continue to explain the remaining factors in the following sections. Rate this: Like this: Related
Phận developer 12 bến nước, hơn thua nhau là ở tấm chồng, lộn, … ở cái công ty mình làm việc. May mắn vào được công ty ngon thì đời lên hương : Lương cao, đồng nghiệp cool ngầu, công việc thú vị, thăng tiến vù vù. Xui xẻo vào trúng công ty trời đánh thì coi như xuống chó : lương thấp, sếp chán đời, nhân viên không lo làm chỉ làm dìm hàng nhau, làm hoài không phát triển được. Thế nhưng, phải chui vô chăn mới biết chăn có rận, phải vào làm việc (hoặc có tay trong) mới biết công ty đó có gì ngon, có gì dở. May thay, ở Việt Nam gần đây có khá nhiều trang review . Các bạn developer có thể lên khoe công ty, hoặc chém gió phàn nàn … để bà con đi đường biết mà né ra, đừng có dại dột mà chui đầu vào. Do vậy, trong bài này, mình chia sẻ một số trang review công ty, cũng như một số kinh nghiệm và thủ thuật để anh em có thể tìm hiểu về công ty thông qua các trang review nhé. Có thể xem review ở những trang nào Ở Việt Nam, bạn có thể xem review ở một số trang sau đây: Kinh nghiệm xem review Tất nhiên, xem review cũng cần có nghệ thuật, nếu không sẽ dễ bị lừa và dắt mũi. Do vậy, mình chia sẻ thêm 1 số kinh nghiệm mình “lụm” được, qua quá trình đi phỏng vấn, tìm hiểu về công ty: Nên xem review từ nhiều nguồn khác nhau , nhiều trang khác nhau để có kết quả khách quan. Nên cẩn thận khi xem các công ty 4-5 sao, toàn review tốt, nhiều review ngắn 5 sao. Có thể là do HR bơm tiền để … xóa review xấu (Một số trang như Haymora và Glassdoor không cho phép xóa review , ta có thể yên tâm hơn) Nên bỏ qua những review quá thấp, sặc mùi chê bai hoặc công kích cá nhân (nếu nhiều tức là công ty có phốt hoặc drama, nên né) Các công ty lớn thường có nhiều team, mỗi team sẽ có trải nghiệm khác nhau , có team tốt team xấu. Do vậy nên xem kĩ chứ đừng đánh giá chung. Nếu có khá nhiều comment tốt, nhưng có 1,2 review chê, thường các comment chê sẽ … là comment thật , còn các review điểm cao khác có thể do HR gài vào Nếu thấy tên người review, có thể add account LinkedIn để liên hệ hỏi rõ hơn. Hoặc có người quen làm trong công ty đó để hỏi thì càng tốt! Các review được confirm là của nhân viên công ty thường đáng tin tưởng hơn (hiện tại chỉ haymora có chức năng này) Giới thiệu Haymora – Trang review hay anh em nên vào xem Bản thân mình thấy: Bên itviec thì review bị xét duyệt nhiều quá; bên reviewcongty hay tamsudev thì khá nhiều spam và review chửi. Tuy nhiên, các bạn có thể thử lên Haymora ( ) xem thử. So với những trang kia, haymora có nhiều tính năng vượt trội: Trừ những review cực đoan, tất cả những đánh giá tốt hay không tốt của cty đều được cho hiển thị . Hoàn toàn không can thiệp chỉnh sửa bất cứ thông tin nào! Các công ty có thể tạo tài khoản và phản hồi lại thông tin đánh giá. Tài khoản cty phải do bên Haymora duyệt trước. => Điều này giúp bạn có thể tin tưởng review do chính người công ty đó viết. Hệ thống đang tiếp tục được hoàn thiện và nâng cấp, xây dựng thêm các tính năng mới để mang lại nhiều lợi ích thêm cho người đánh giá lẫn công ty Trong thời gian này bên Haymora đang có chương trình tặng sách cho reviewer thay cho lời cám ơn đến những người đã đóng góp cho site Kết Đấy, nếu các bạn có hứng thú thì nhớ vào Haymora viết review và đọc review nhen. Biết đâu còn được tặng sách nữa đấy! Còn bạn thì sao, bạn hay xem review ở những trang nào? Nếu có kinh nghiệm đọc review, tìm hiểu công ty, hãy comment trong mục bình luận nhé. Rate this: Like this: Related
In the developer department of 12 countries, the difference is in overlap, confusion, etc. in the company I work for. If you are lucky enough to get into a good company, your life will improve: High salary, cool colleagues, interesting work, rapid advancement. If you're unlucky enough to get into a God-damned company, it's like you're going down the drain: low salary, boring boss, employees who don't care about their work just bring each other down, work forever and can't grow. However, you have to get under the blanket to know that the blanket has lice, you have to go to work (or have an insider) to know what's good and what's bad about that company. Fortunately, in Vietnam recently there are quite a few review sites. Developers can show off the company, or gossip and complain... so that people on the street know to stay away, don't be foolish and get in. Therefore, in this article, I share some company review sites, as well as some experiences and tips so you can learn about the company through review sites. What pages can you see reviews on? In Vietnam, you can see reviews on the following pages: Experience in viewing reviews Of course, reviewing reviews also requires art, otherwise you will easily be deceived and led by the nose. Therefore, I share some more experiences I "gathered" through the interview process and learning about the company: You should look at reviews from many different sources and many different pages to get objective results. Be careful when looking at 4-5 star companies, all have good reviews, many short 5 star reviews. It could be because HR pumps money to... delete bad reviews (Some sites like Haymora and Glassdoor do not allow deleting reviews, we can feel more secure) You should ignore reviews that are too low, smell of criticism or personal attacks (if there are many, it means the company has scandals or drama, so avoid them) Large companies often have many teams, each team will have different experiences, some are good and some are bad. Therefore, you should look carefully and not judge in general. If there are quite a few good comments, but there are 1 or 2 negative reviews, usually the negative comments will... be real comments, and the other high-scoring reviews may be planted by HR. If you see the name of the reviewer, you can add your LinkedIn account to contact and ask for more information. Or if you have someone you know working in that company to ask, even better! Confirmed reviews from company employees are often more trustworthy (currently only Haymora has this function) Introducing Haymora - A good review site that you should check out. I personally see: On itviec, reviews are reviewed too much; On reviewcongty or tamsudev, there's a lot of spam and cursed reviews. However, you can try going to Haymora ( ) to see. Compared to other sites, Haymora has many outstanding features: Except for extreme reviews, all good and bad reviews of the company are displayed. Absolutely no intervention to edit any information! Companies can create accounts and respond to reviews. Company accounts must be approved in advance by Haymora. => This helps you trust the review written by the company itself. The system is continuing to be improved and upgraded, adding new features to bring more benefits to reviewers and companies. During this time, Haymora is having a program to give away books to reviewers as a thank you to those who have contributed to the site. In conclusion, if you are interested, remember to go to Haymora to write a review and read the review. Who knows, you might even get a book as a gift! What about you, which sites do you often read reviews on? If you have experience reading reviews and learning about the company, please comment in the comments section. Rate this: Like this: Related
Lâu lâu mình lại nghe mấy câu hỏi hơi … ngộ ngộ, hông biết trả lời sao, nên lên viết blog kể lể tâm sự với anh em cho vui. Vài hôm trước, mình lướt Facebook, đọc trong mấy group thì thấy có một câu hỏi khá hài, đó là “ Mấy ông developer ổng làm gì mà lương cao quá vậy? ” Sau khi ngẫm lại, mình cũng tự hỏi mình, ủa mình làm mẹ gi mà trả lương cho mình nhiều vậy?? Do đó, mình viết bài chia sẻ vui với anh em bạn đọc nhé! Lương cao cái quần quề ý! Đầu tiên, phải nói trước là lương developer không hề cao so với mặt bằng chung ! Mấy con số chục triệu một tháng chỉ là vài cá nhân, không phải toàn bộ ngành. Thật đấy, báo chí cứ đồn thổi là developer là ngành hái ra tiền, lương chục triệu . Tuy nhiên, nếu thật sự là dân “ngành”, các bạn sẽ thấy: Lương cho intern, fresher sẽ tầm 6-10 triệu. Thực tập đôi khi không có lương hoặc lương 3-4 triệu là cùng Tầm 1-3 năm kinh nghiệm thì lương vô chừng từ 10-20 triệu. Tầm 3 năm kinh nghiệm trở lên thì tuỳ khả năng, giỏi thì 30-70 triệu, tà tà thì vẫn 10-20 triệu Tính ra, lương developer cũng tạm đủ sống, đủ nuôi vợ con, chứ không hề cao hơn các ngành như bác sĩ, kinh doanh, ngân hàng; lượng công việc, kiến thức phải học cũng không hề ít hơn luôn. À mà cũng hơi hơi cao thật! Mà nghĩ lại, chắc mình đi làm lâu, quen nhìu ông senior giỏ i (ở cả Việt Nam lẫn nước ngoài) mới thấy mấy ổng lương cao thiệt. Bạn bè mình làm dev ở VN lương đứa nào cũng không dưới 50 củ , ở Sing thì gấp đôi số đấy! Hừm, ngẫm lại, tại sao lương cho developer giỏi lại cao dzị ta? Dưới đây là vài “suy đoán” của mình. 1. Vì ngành khó, cung không đủ cầu Thật sự mà nói, lập trình là một ngành khó học , chứ cũng không dễ dàng gì. Để học tốt ngành, bạn phải biết cách tư duy , có kĩ năng suy luận logic. Đấy là học tốt, còn muốn làm lập trình viên giỏi còn cần rất nhiều yếu tố nữa (nhiều đến mức thằng Code Dạo viết blog 5 năm vẫn chưa hết cái để nói). Do đó, developer tàm tàm thì nhiều, nhưng developer giỏi thì khá ít. Mà nhu cầu developer thì ngày càng nhiều. Công ty nhỏ, outsource hoặc ít tiền thì chỉ cần developer tàm tàm đã làm được việc, trả lương thấp là được. Công ty lớn, có tiền, giành giật nhau mấy ông engineer giỏi, nên phải nâng lương thiệt cao mới giật được chứ sao! 2. Vì ngành này mang tính international Một số ngành như luật, kế toán, ngân hàng … học ở VN khi qua nước ngoài sẽ phải tìm hiểu lại khá nhiều, vì mỗi vùng mỗi khác. Ngành IT thì không như vậy. Code C, JavaScript chạy ở Mĩ như thế nào thì chạy ở VN cũng y như thế . Developer code giỏi ở VN thì cũng code giỏi được ở Mĩ luôn (nếu giỏi tiếng Anh). Do vậy, mấy ông developer giỏi tiếng Anh có rất nhiều lựa chọn: Đi ra nước ngoài làm việc, nhận lương nước ngoài Làm việc ở các công ty nước ngoài tại VN Làm remote hoặc freelance, nhận lương nước ngoài. Chưa có tiếng thì 10-20$ tiếng, đã có mối rồi thì charge từ 40$-80$/tiếng thôi Đấy, cứ qui tiền đô ra tiền Việt thì thấy nó cao vậy thôi. Thay vì trả cho mấy ông dev thường ở Mĩ tầm 50-100k$/năm , trả cho mấy ông VN tầm 40k-50k$/năm là chiêu dụ được mấy ông khá siêu rồi. 3. Vì giá trị họ mang lại Tất nhiên, công ty không phải trường học hay trung tâm từ thiện . Khi họ trả mới lương vài nghìn cho 1 developer, họ cũng sẽ kiếm lời được chừng ấy hoặc nhiều hơn! (Tất nhiên là trừ 1 số công ty startup, trả bằng tiền investor, hoặc 1 số công ty rửa tiền mở ra cho vui) Ví dụ như các công ty outsource như FPT, họ nhận dự án tầm vài chục đến vài trăm nghìn đô. Sau đó vắt sức nhân viên và trả cho dev 1 phần, phần còn lại thì công ty giữ lại làm lợi nhuận. Hoặc một số công ty product cũng vậy, họ tuyển developer vào để phát triển sản phẩm mới. Sản phẩm này bán được, mang lại công ty tiền gấp mấy lần lương trả cho dev . Bán phần mềm thì không giống như bán đồ ăn. Bán đồ ăn thì mỗi lần bán phải tốn phí vật liệu, còn bán phần mềm chỉ tốn phí phát triển 1 lần (và phí bảo trì nâng cấp), bán được càng nhiều càng có lãi . 4. Vì thị trường “bong bóng” Thật ra, giai đoạn này, khá nhiều công ty nước ngoài vào Việt Nam, do nhân công ở mình trình độ cao, giả cũng khá rẻ . Hồi mình làm ở Aswig, cả team 4 người cộng lại chắc lương tháng cũng chỉ tầm 80 củ, chưa bằng 1 ông engineer ở bên Úc của công ty mẹ nữa. Thế là, các công ty có thể trả mức lương … khá khá cao so với mặt bằng. Thế rồi anh em developer lương cao, nhìn mấy mẫu tuyển dụng lương 20-30 triệu thấy lười chả thèm apply gửi CV . Thấy vậy, các bạn HR lại … bơm lên, nói lương upto 40-50 triệu để dụ dỗ ứng viên, sau khi PV thì hạ xuống vì chỉ trả được tầm đấy. Bà con xung quanh nhìn vào lại nghĩ: “Ồ vị trí này lương tầm 40-50 triệu cơ”, vô hình chung làm nâng giá trị thường lên. Tạm kết Cá nhân mình thấy, lương của developer VN hiện nay cũng ngang ngang với bọn Thái, Mymanar rồi, về lâu dài chắc sẽ bão hoà, khó tăng nhiều . Nói chung, không ai biết trước tương lai sẽ thế nào! Hiện tại ngành mình đang khá hot do cung không cầu. Các công ty được rót vốn nhiều nên developer lương khá, dễ nhảy việc, tha hồ chọn công ty. Lỡ vài năm nữa, kinh tế Mĩ nó sụp, nhà đàu tư rút bớt vốn, nhu cầu giảm, lúc đấy lắm anh em dev sẽ phải ra đường code thay cơm . Do vậy anh em nào đang ấm chỗ thì cứ dành dụm, phòng sau này trái gió trở trời nhé. Bản thân mình cũng phải đi quảng cáo dạo, kiếm tiền mua mì tôm đề phòng sau này thất nghiệp nè hihi. 30s quảng cáo : Anh Song bạn mình bên CyberSoft đang có khoá BootCamp – Lập trình full-stack JavaScript . Đây là khoá học dành cho các bạn mới bắt đầu học lập trình, mất gốc, trái ngành, hoặc đã học nhưng mất phương hướng, không biết học gì làm gì. Sau 8 tháng, các bạn hoàn toàn có thể học và xin việc vào các vị trí như FullStack Dev hoặc Front End Dev. Các bạn nào quan tâm có thể xem thử tại: nhé! Rate this: Like this: Related
Every once in a while, I hear some questions that are a bit... funny, I don't know how to answer them, so I write a blog to share my thoughts with you guys for fun. A few days ago, I was surfing Facebook, reading in a few groups, and saw a rather funny question, "What do developers do that earns them such high salaries?" ” After thinking about it, I also asked myself, why am I a mother to pay myself so much?? Therefore, I wrote a fun article to share with my readers! The salary is high and the pants are ridiculous! First of all, it must be said that developer salaries are not high compared to the average level! The numbers of tens of millions a month are just a few individuals, not the entire industry. Really, the press keeps saying that developers are a money-making industry with salaries of tens of millions. However, if you are truly an "industry" person, you will see: Salary for interns and freshers will be around 6-10 million. Internships sometimes do not have a salary or a salary of 3-4 million is the same With about 1-3 years of experience, the salary ranges from 10-20 million. About 3 years of experience or more depends on ability, good is 30-70 million, bad is still 10-20 million In fact, a developer's salary is enough to make a living, enough to support a wife and children, and is not higher than other industries such as doctors, business, and banking; The amount of work and knowledge that must be learned is no less. Well, it's actually a bit high! But thinking back, I must have worked for a long time and known many good senior men (both in Vietnam and abroad) to see that they have really high salaries. My friends working as developers in Vietnam have a salary of no less than 50 euros, but in Singapore it's double that amount! Hmm, think about it, why is the salary for good developers so high? Below are some of my "speculations". 1. Because the industry is difficult, supply is not enough to meet demand. Honestly speaking, programming is a difficult industry to learn, but it is not easy. To study well in this field, you must know how to think and have logical reasoning skills. That's learning well, but wanting to be a good programmer requires many other factors (so many that Code Dao has been blogging for 5 years and still hasn't run out of things to say). Therefore, there are many good developers, but there are quite a few good developers. The need for developers is increasing. Small companies, outsourced or with little money, just need a good developer to get the job done and pay low wages. Big companies with money compete for good engineers, so they have to raise their salaries really high to win, right? 2. Because this industry is international. Some fields such as law, accounting, banking... studying in Vietnam when going abroad will have to learn a lot again, because each region is different. The IT industry is not like that. How C code and JavaScript run in the US will run the same way in Vietnam. A developer who is good at coding in Vietnam can also code well in the US (if he is good at English). Therefore, developers who are good at English have many options: Go abroad to work, receive foreign salary Work at foreign companies in Vietnam Work remotely or freelance, receive a foreign salary. If you don't have a connection, it will cost 10-20$ per hour. If you already have a relationship, then the charge will be from 40$-80$/hour. Well, if you convert dollars into Vietnamese currency, you'll see that it's that high. Instead of paying the regular developers in the US around 50-100k$/year, paying the Vietnamese developers around 40k-50k$/year is a great way to lure them. 3. Because of the value they bring Of course, companies are not schools or charity centers. When they pay a new salary of a few thousand to a developer, they will also make that much profit or more! (Except, of course, some startup companies that pay with investor money, or some money laundering companies that open for fun) For example, outsourcing companies like FPT, they receive projects ranging from a few tens to a few hundred thousand dollars. . Then, squeeze out the staff's efforts and pay a part to the dev, the company keeps the rest as profit. Or some product companies do the same, they recruit developers to develop new products. This product sold, bringing the company several times more money than the salary paid to the dev. Selling software is not like selling food. Selling food requires materials to be sold each time, but selling software only costs one-time development fees (and maintenance and upgrade fees), the more you sell, the more profitable you are. 4. Because of the "bubble" market Actually, during this period, many foreign companies entered Vietnam, because their workers were highly qualified and the prices were also quite cheap. When I worked at Aswig, the whole team of 4 people combined, the monthly salary was probably only about 80 USD, not as much as an engineer in Australia of the parent company. So, companies can pay salaries... quite high compared to the average. Then, high-salary developers, looking at the recruitment samples with salaries of 20-30 million, felt too lazy to apply and send their CV. Seeing that, the HR people... pumped it up, saying the salary was up to 40-50 million to entice candidates. After PV, they lowered it because they could only pay that range. People around look at it and think: "Oh, this position's salary is around 40-50 million", which invisibly increases the value. Conclusion Personally, I think that the current salary of Vietnamese developers is on par with Thai and Mymanar people. In the long run, it will probably be saturated and difficult to increase much. In general, no one knows what the future will be like! Currently our industry is quite hot due to supply not demand. Companies are invested heavily in capital, so developers have good salaries, can easily change jobs, and are free to choose companies. In a few years, the US economy will collapse, investors will withdraw capital, demand will decrease, at that time many developers will have to go out to code instead of rice. So, those of you who have a warm place, just save it, just in case the weather turns sour in the future. I also have to go on advertising trips to earn money to buy instant noodles in case I become unemployed in the future hihi. 30 seconds of advertising: My friend Song from CyberSoft is having a BootCamp course - Full-stack JavaScript programming. This is a course for those who are just starting to learn programming, have lost their roots, are in the wrong field, or have studied but are disoriented and don't know what to learn. After 8 months, you can completely study and apply for positions like FullStack Dev or Front End Dev. Those who are interested can check it out at: okay! Rate this: Like this: Related
Lâu lâu, dạo quanh mấy forum và group, mình lại thấy vài câu hỏi ngộ ngộ dạng thế này: Em không giỏi tiếng Anh thì có theo lập trình được không? Em code không giỏi sau này có theo nghề được không? Tư duy logic em không tốt chắc không vào FPT được huhu? Người hỏi cũng nhiều, mà chắc anh em trong ngành đọc xong chỉ cười cho qua, hoặc chán méo thèm trả lời. Vì thế, mình viết bài này để trả lời luôn 1 lượt những câu hỏi như thế. Nếu anh em thấy ai hỏi câu tương tự cứ share bài này ra là được nha :3. Câu trả lời ngắn cho những câu hỏi dạng này là: Méo liên quan, bạn thích thì cứ làm thôi, đừng sợ đừng ngại mẹ gì hết. Câu trả lời dài thì… dài lắm, các bạn đọc hết bài sẽ rõ nha. Chuyện ông thầy chuyên Lý thời cấp 3 Thời cấp 3, mình may mắn đậu vào trường chuyên Nguyễn Du, vào lớp chuyên Lý. Giáo viên chủ nhiệm là một thầy đã hơi lớn tuổi, tóc cũng hơi bạc. Thầy đi đứng từ tốn, chậm rãi nên mấy đứa trong trường hay đặt biệt danh là thầy Asimo luôn. Hồi đó, đa phần bọn lớp mình vừa sợ vừa không ưa thầy, vì thầy hay cho những bài cực khó, hoặc một đống bài tập để … thử thách học sinh. Thường thường, cuối tuần nào bọn mình cũng phải ngồi giải hơn 20 bài Lý trong sách nâng cao (Tự luận chứ không phải trắc nghiệm nhé). Nhiều bài khó phèo râu, giải không nổi, phải lên lớp chờ có đứa nào giải được thì mượn tham khảo. Kiểm tra cũng thế, có những đợt kiểm tra 15 phút, cả lớp (mang tiếng học sinh trường chuyên) đồng loạt ăn 3,4 điểm chỉ vì không giải nổi 1 bài thầy ra. Tuy vậy, thầy có làm một điều khiến mình nhớ đến bây giờ. Mỗi lần kiểm tra bài tập, bắt lên bảng giải bài, hễ tụi mình nói là “khó quá, không làm được”; thầy đều nghiêm khắc nhắc lại chưa làm được, không phải không làm được! Một phần nhờ câu nói chưa làm được, không phải không làm được đó, một phần nhờ sự “bạo hành” của thấy, bọn lớp mình thi Đại Học môn Lý toàn 7-9 điểm trở lên cả (Thời đó thi ĐH đề rất khó, điểm sàn ĐH tầm 13-14 điểm, học khá mới thi nổi trên 5đ mỗi môn). Với nỗ lực, bạn có thể biến không thành có Khi nói “ không làm được “, ta thường mang ý định bỏ cuộc. Thay vì nói “không”, hãy nói “chưa”, bạn sẽ nhận ra mình có thể cố gắng nhiều hơn: Thay vì không làm được, ta nói chưa làm được bài. Chỉ việc học thêm, cày thêm, xem sách giải sẽ làm được Thay vì không biết bơi, ta nói chưa biết bơi. Chưa biết thì đi học bơi sẽ bơi được thôi Thay vì code không giỏi, ta nói code chưa giỏi. Bạn sẽ thấy mình có thể tham khảo cách code giỏi, luyện tập code nhiều hơn. Thay vì nói anh không có tiền, hãy nói anh chưa có tiền. Chờ anh ra trường đi làm lương nghìn đô sẽ biết tay nhai thôi! Bạn thấy đấy, tất cả những thứ mà các bạn sợ như: Tiếng Anh không giỏi, logic không tốt… đều trở nên bớt đáng sợ hơn nếu các bạn thay chữ không bằng chữ chưa . Trừ những thứ bất khả kháng như: Em không nói được thì có đi làm rapper được không, hoặc em bị lùn 1m5 thì có làm phi công lái máy bay được không? Còn lại đa phần những thứ chưa tốt, chưa giỏi, các bạn đều có thể cải thiện được cả! Trước đây, mình cũng từ chia sẻ về việc Không có năng khiếu có theo ngành được không? Câu trả lời của mình đến giờ vẫn vậy: Tạm kết Túm cái váy lại, thay vì hỏi những câu như ở đầu bài, hãy hỏi những câu như : Làm sao để t rở nên giỏi tiếng Anh , học tiếng Anh ra sao để đọc được tài liệu lập trình Làm sao để code giỏi hơn, trở thành LTV giỏi trong nghề Làm sao để luyện tư duy logic , làm sao ôn thì đầu vào FPT Đặt ra những câu hỏi như vậy, bạn sẽ có mục tiêu, có động lực để phấn đấu nha! Tuy nhiên, cũng đừng mang tư tưởng: Đấy là tao không học/làm thôi, tao học thì cũng giỏi chứ có gì đâu! Ai cũng có thể giỏi tiếng Anh, giỏi lập trình, … Nhưng chỉ những người thật sự nỗ lực, bỏ thời gian mới đạt được thành quả! Nếu cứ nghĩ là mình có thể, nhưng không chịu bỏ công sức ra thì bạn cũng sẽ … méo có cái gì đâu ! Đấy, bài viết cũng dài rồi, hi vọng những lời khuyên trong bài có ích cho các bạn. Nếu thấy ai hay hỏi những câu như đầu bài thì nhớ quăng bài này cho họ đọc nha! Rate this: Like this: Related
Every now and then, when I go around forums and groups, I see some strange questions like this: I'm not good at English, can I learn programming? If I'm not good at coding, will I be able to pursue a career in the future? If you don't have good logical thinking, you probably won't be able to get into FPT, huh? A lot of people asked, but probably the people in the industry after reading it just laughed it off, or were bored and didn't want to answer. Therefore, I wrote this article to answer such questions at once. If you see anyone asking the same question, just share this post :3. The short answer to questions like this is: It doesn't matter, if you like it then just do it, don't be afraid, don't be shy at all. The long answer is... it's very long, read the whole article and you'll understand. The story of the physics teacher in high school. In high school, I was lucky enough to get into Nguyen Du specialized school and enter the physics class. The homeroom teacher is a slightly older teacher with slightly gray hair. He walks slowly and slowly, so the kids in school often nickname him Mr. Asimo. Back then, most of my class both feared and disliked the teacher, because he often gave extremely difficult lessons, or a bunch of exercises to... challenge the students. Usually, every weekend we have to sit and solve more than 20 Physics problems in advanced books (Essay, not multiple choice). Many of the problems were so difficult that I couldn't solve them, so I had to go to class and wait for someone to solve them so I could borrow them for reference. It's the same with tests. There are 15-minute tests where the whole class (famous for specialized school students) simultaneously gets 3 or 4 points just because they couldn't solve a problem the teacher gave them. However, he did something that reminds me to this day. Every time we check the homework and go to the board to solve the problem, we say "it's too difficult, we can't do it"; The teacher sternly reminded me that if I can't do it, it doesn't mean I can't do it! Partly thanks to the saying that we can't do it, not that we can't do it, partly thanks to the "violence" of seeing, our class all got 7-9 points or more on the Physics exam (At that time, the university entrance exam was very difficult). It's difficult, the university average score is about 13-14 points, if you study well, you can pass the exam with over 5 points in each subject). With effort, you can turn nothing into something. When we say "can't do it", we often have the intention of giving up. Instead of saying “no”, say “not yet”, you will realize you can try harder: Instead of not being able to do it, we say we couldn't do it. Just study more, practice more, read textbooks and you will be able to do it Instead of not knowing how to swim, we say we don't know how to swim. If you don't know yet, take swimming lessons and you'll be able to swim Instead of not being good at coding, we say not being good at coding. You will find that you can refer to how to code well and practice coding more. Instead of saying you don't have money, say you don't have money yet. Wait until you graduate and get a job with a salary of thousands of dollars and you'll know what to do! You see, all the things that you are afraid of such as: not good English, not good logic... become less scary if you replace the word no with the word not. Except for force majeure things like: If I can't speak, can I be a rapper? Or if I'm 5 feet short, can I be a pilot? Most of the remaining things that are not good or good, you can improve! Previously, I also shared about Can I pursue a major if I don't have talent? My answer is still the same: Temporarily wrap up the dress, instead of asking questions like at the beginning of the article, ask questions like: How to become good at English, how to learn English to read programming documents How to code better and become a good LTV in the profession How to practice logical thinking, how to review FPT entrance exams Asking questions like these, you will have goals and motivation to strive! However, don't think: I just don't study/work, I'm good at studying, that's nothing! Anyone can be good at English, good at programming, etc. But only those who really put in the effort and put in the time can achieve results! If you think you can, but don't put in the effort, you'll end up with nothing! Well, the article is already long, I hope the advice in the article is useful to you. If you see anyone asking questions like the beginning of the article, remember to toss this article for them to read! Rate this: Like this: Related
Ở phần trước , mình đã chia sẻ về những trải nghiệm, những điều mình đã học được khi còn ở Việt Nam và UK. Trong phần này, mình sẽ chia sẻ về những thứ giúp mình “tiến hoá” khi làm việc tại Singapore nhé. Đây là phần 2 trong series 2 phần Tôi đã lên cấp và tiến hoá như thế nào : Phần 1 – Những năm đầu đi làm ở Việt Nam và UK Phần 2- Làm developer ở Singapore Năm 5,6 – Làm Senior Full Stack Developer tại startup Algomerchant Lúc này, do đã có kinh nghiệm nên mình chém gió phỏng vấn khá ok, vào công ty là đã có title Senior . Vị trí thì là front-end, nhưng công việc thì full-stack từ front-end đến back-end luôn. Về sản phẩm thì mình đã kể rồi, hồi đó mình làm 1 cái app hỗ trợ trading, thu phí khách hàng 90$/tháng để tự mua/bán chứng khoán. Gia nhập start-up, ít người, nhiều việc, mình học được rất nhiều thứ so với các công ty lớn: Sales và khách hàng : Mình tham gia vào sales event của công ty để xem khách hàng là ai, làm sao sales bán được sản phẩm. Khi người dùng nhiều lên, mình nói chuyện với cả Customer Support để hiểu những vấn đề khách hàng gặp phải, những tính năng mà họ cần… Build sản phẩm : Mình được build 1 sản phẩm từ đầu tới cuối, từ lúc chưa có gì tới lúc nó thành 1 sản phẩm bự, lúc cao điểm thì tổng số tiền trading lên đến 1 triệu SGD. Cách đưa ra ý kiến và quyết định : Do startup ít người nên tiếng nói của mình rất có trọng lượng: Mình được quyền tranh cãi trực tiếp với PM, CTO, CEO về cách hệ thống hoạt động như thế nào. Mình học được cách dẫn chứng, thuyết phục cấp trên. Cloud Computing (Azure) và Microservice : Sản phẩm khá phức tạp, nên mình phải học thêm rất nhiều thứ. Mình học việc sử dụng Cloud, tạo máy ảo, sử dụng Kubernetes này nọ. Do công ty sử dụng kiến trúc Microservice , mình mới biết Microservice viết như thế nào, các service nói chuyện với nhau ra sao, sử dụng database gì, rồi sử dụng message queue này nọ Monitor hệ thống, sửa lỗi Production : Sau này khi hệ thống ổn định rồi, mình bắt đầu xây dựng các hệ thống phụ bên ngoài để mà monitoring. Monitoring và logging giúp mình biết hệ thống của mình có ổn định hay không, trade được bao nhiêu tiền 1 ngày, lời lỗi ra sao, hệ thống có sập thay chết gì không Hồi trước mình chỉ viết code thôi. Còn bây giờ mình làm luôn cả Operation . Code xong rồi, mình không chỉ quăng cái code cho người ta lo, mà còn phải deploy code đó lên môi trường thực tế (production) để khách hàng sử dụng Lâu lâu hệ thống chạy chậm, người dùng báo lỗi, hoặc không trade được v…v, mình phải kiểm tra và sửa lỗi ngay để hệ thống hoạt động lại bình thường Khối lượng công việc khá là nhiều, làm nhiều lúc mình thấy hơi mệt . Tuy nhiên, nhờ vậy mà mình học được rất nhiều thứ so với 1-2 năm đầu, mình cảm thấy khả năng code và kiến thức ngày càng tiến bộ. Sau 2 năm, có kinh nghiệm và quan hệ, mình tự tin đi phỏng vấn và nhảy việc qua công ty khác, lương tăng gấp rưỡi. Chuyện sau đó – Làm Senior, lên Team Lead tại 90Seconds Từ giã AlgoMerchant , mình nhảy qua 90Seconds làm Senior Front-end Engineer. Bên 90Seconds cũng là startup, nhưng được cái team đông hơn, có cả team back-end, front-end lẫn DevOps. Mặc dù lúc này đã hơn 5 năm kinh nghiệm, nhưng mình vẫn khá ngạc nhiên khi có rất nhiều thứ mình học được: TypeScript : TypeScript là một ngôn ngữ compile ra JS, với Type Checking khá là bá đạo. Từ hồi dùng TypeScript, mình code thấy sướng và đỡ lỗi hơn hẳn. Nhắc lệnh này nọ cũng mạnh hơn, không còn vừa code vừa mò như thời JavaScript nữa GraphQL : Trước giờ, để giao tiếp với server, mình toàn dùng RestAPI. Dùng GraphQL có hơi khó học hơn 1 tí, nhưng bù lại mình có thể dễ dàng kiểm soát dữ liệu nhận về. Cộng thêm TypeScript để generate type dựa theo query nữa là bá chấy luôn Qui trình làm việc : May mắn là đồng nghiệp của mình khá là giỏi và thân thiện. Các team có qui trình rất bài bản: Code xong phải có Merge Request, phải được review kĩ rồi mới được merge. Nhờ review code mà mình có thể hướng dẫn các bạn junior rằng code thế này có vấn đề gì, cần cải tiến như thế nào. Hoặc các bạn khác có thể chỉ mình cách cải thiện code, viết code rõ ràng, dễ hiểu hơn. DevOps và CI/CD : Hồi đó team DevOps có 1 anh người Việt tên Tommy, rất là đẹp trai và tài năng. Nhờ làm chung với ảnh, mình hiểu rõ hơn về công việc của mấy anh DevOps làm trò gì, làm sao để build 1 cái CI/CD pipeline cho nó chuẩn. Làm sao để chỉ cần bấm nút là deploy code thẳng lên Production luôn. Kĩ năng lead : Làm hồi lâu, chắc nhờ mình lượn lẹo hay đẹp trai hay gì đấy, nên mình được lên chức team lead. Mình phải nhận nhiều trách nhiệm hơn. Thay vì chỉ ngồi code không, thì bây giờ mình lead team, phải chia công việc như thế nào để cho mọi người làm. Mệt hơn là phải nói chuyện với CEO, với các phòng ban khác, họp hành nhiều hơn để xem công ty định hướng sẽ làm cái gì . Sau đó phải cho họ biết estimation khoảng bao lâu thì xong Mình cảm thấy mình phải nói nhiều hơn, ít thời gian code lại . Mình tập trung thời gian review, viết document, làm những cái linh tinh nhiều hơn. Có nhiều ngày, mình mất gần nửa ngày chỉ để phân chia task, clean backlog, giải thích, hướng dẫn cho mấy bạn Junior trong team Tạm kết Túm cái quần lại, qua 5-6 năm, nhờ được nhiều công ty vắt sữa, à nhầm, bóc lột, thì mình đã tiến hóa từ 1 thằng Fresher ngáo ngơ lên Senior, lên Full Stack, lên Team Lead . Mặc dù công việc không phải lúc nào cũng vui vẻ, con đường thăng tiến không phải lúc nào cũng thẳng băng, mà cũng có lắm trắc trở và gập ghềnh. May mắn thay là mình vẫn chưa thấy… chán ngành . Mỗi ngày đi làm, mình vẫn cảm thấy có nhiều điều mình chưa biết, có nhiều thứ mình có thể học. Sau cùng, mình chỉ có 1 lời khuyên nhỏ cho các bạn sinh viên: Mới ra trường thì nên làm cho các công ty outsourcing/công ty lớn 1 thời gian. Bạn có thể học hỏi về qui trình, cách làm việc, học hỏi từ mấy ông senior Làm được 2-3 năm thì nên làm ở các công ty vừa hoặc startup . Bạn sẽ được nắm nhiều trọng trách hơn, ôm đồm nhiều thứ hơn, học hỏi được nhiều hơn. Từ nằm 3-4 trở đi thì cứ nhắm những chỗ nào lương ổn, công việc hay, học hỏi được nhiều thì làm thôi! Hãy kiếm những nơi mà bạn có thể học hỏi, nâng cao khả năng của mình. Hãy suy nghĩ: Làm nửa năm, một năm ở đây mình có học được gì hay không? Nếu như làm nửa năm, một năm mà không tiến bộ, năm sau cũng vẫn như năm trước; thì đừng phí 1 năm của bạn, mà hãy kiếm nơi khác phù hợp hơn Đấy, lời khuyên đến đây kà hết rồi. Blog kì này hơi dài, cảm ơn các bạn đã chịu khó xem tới cùng nha. Bonus : Nếu các bạn ngại đọc thì có thể nghe clip Youtube chém gió của mình nhen. Có thể không chi tiết bằng blog nhưng cũng khá hay ho và hấp dẫn nha. Rate this: Like this: Related
In the previous part, I shared about my experiences and things I learned while in Vietnam and the UK. In this section, I will share about things that help me "evolve" when working in Singapore. This is part 2 in the 2 part series How I Leveled Up and Evolved: Part 1 – The first years of working in Vietnam and the UK Part 2- Working as a developer in Singapore Years 5 and 6 - Working as a Senior Full Stack Developer at startup Algomerchant. At this time, because I had experience, I said that the interview was quite ok, and when I joined the company, I had the title Senior. The position is front-end, but the work is full-stack from front-end to back-end. Regarding the product, I already told you, back then I made an app to support trading, charging customers $90/month to buy/sell stocks themselves. Joining a start-up, with few people, lots of work, I learned a lot of things compared to big companies: Sales and customers: I participate in the company's sales event to see who the customers are and how sales can sell the product. As the number of users increases, I talk to Customer Support to understand the problems customers encounter, the features they need... Build a product: I was able to build a product from start to finish, from nothing until it became a big product, at its peak the total trading amount was up to 1 million SGD. How to give opinions and decisions: Because the startup has few people, my voice has a lot of weight: I have the right to argue directly with the PM, CTO, CEO about how the system works. I learned how to cite and convince superiors. Cloud Computing (Azure) and Microservices: The product is quite complex, so I have to learn a lot of things. I learned how to use the Cloud, create virtual machines, use Kubernetes and that. Because the company uses Microservice architecture, I know how Microservices are written, how services talk to each other, what database to use, and how to use message queues and that. Monitor the system, fix errors Production: Later, when the system is stable, I will start building external subsystems for monitoring. Monitoring and logging help you know if your system is stable or not, how much money you can trade per day, what the errors are, and if the system crashes or kills anything. Before, I only wrote code. And now I also do Operation. Once the code is done, I don't just throw the code away for people to worry about, but I also have to deploy that code to the real environment (production) for customers to use. Occasionally, the system runs slowly, users report errors, or cannot trade, etc., we must check and fix the errors immediately so the system can operate normally again. The workload is quite a lot, and sometimes I feel a bit tired after working a lot. However, thanks to that, I learned a lot of things compared to the first 1-2 years, I feel my coding ability and knowledge are improving day by day. After 2 years, with experience and connections, I confidently went for an interview and jumped job to another company, my salary increased by half. Story after that - Becoming a Senior, promoted to Team Lead at 90Seconds. Saying goodbye to AlgoMerchant, I jumped to 90Seconds to become a Senior Front-end Engineer. 90Seconds is also a startup, but has a larger team, including back-end, front-end and DevOps teams. Even though I have more than 5 years of experience now, I am still quite surprised at how many things I have learned: TypeScript: TypeScript is a language that compiles to JS, with quite powerful Type Checking. Since using TypeScript, I feel happier coding and have fewer errors. Prompting this and that command is also stronger, no longer coding and fiddling like in the JavaScript era GraphQL: Before, to communicate with the server, I always used RestAPI. Using GraphQL is a bit more difficult to learn, but in return I can easily control the data received. Plus TypeScript to generate types based on queries and it's awesome Work process: Luckily, my colleagues are quite good and friendly. Teams have a very methodical process: Once the code is finished, it must have a Merge Request, which must be carefully reviewed before it can be merged. Thanks to code review, I can guide juniors about what's wrong with code like this and how it needs to be improved. Or others can show you how to improve the code, write clearer and easier to understand code. DevOps and CI/CD: At that time, the DevOps team had a Vietnamese guy named Tommy, very handsome and talented. Thanks to working with him, I better understand what the DevOps guys do, and how to build a CI/CD pipeline properly. How can I just press a button to deploy the code straight to Production? Leading skills: Been working for a long time, maybe because I'm clever or handsome or something, I was promoted to team lead. I have to take more responsibility. Instead of just sitting around coding, now I lead the team, how do I divide the work so everyone can do it? It's more tiring than having to talk to the CEO, other departments, and have more meetings to see what the company plans to do. Then you have to let them know how long it will take for the estimation to be completed I feel like I have to talk more and spend less time coding. I focus more time reviewing, writing documents, and doing miscellaneous things. There are many days, it takes me nearly half a day just to divide tasks, clean the backlog, explain, and guide the Juniors in the team. Temporarily summarizing, after 5-6 years, thanks to many companies milking, ah, exploiting, I have evolved from a naive Fresher to Senior, to Full Stack, to Team Lead. Although work is not always fun, the path to advancement is not always straight, but also has many difficulties and bumps. Luckily, I still don't feel... bored with the industry. Every day when I go to work, I still feel like there are many things I don't know, and there are many things I can learn. Finally, I only have a little advice for students: If you just graduated, you should work for an outsourcing company/big company for a while. You can learn about the process, how to work, and learn from senior people After working for 2-3 years, you should work at a medium company or startup. You will take on more responsibilities, handle more things, and learn more. From position 3-4 onwards, just aim for places with good salary, good work, and learn a lot, then do it! Find places where you can learn and improve your abilities. Think about it: Do I learn anything by working here for half a year or a year? If you work for half a year or one year without progress, the next year will still be the same as the previous year; Don't waste your 1 year, but look for a more suitable place Well, that's the end of the advice. This blog is a bit long, thank you for taking the time to read it to the end. Bonus: If you're afraid to read, you can listen to my gossip YouTube clip. It may not be as detailed as the blog, but it's still quite interesting and attractive. Rate this: Like this: Related
Mình thường hay khuyên các bạn mới ra trường là: Đừng quan trọng đi làm lương bao nhiêu, mà phải quan trọng là học hỏi được gì? Qua 1 – 2 năm làm ở đấy thì mình có tiến bộ không? Có thể đạt tới trình độ cao hơn, lương cao hơn không? Thông thường, các bạn hay hỏi lại là: Làm sao để biết mình cần học hỏi những gì? Do vậy, trong bài này, mình sẽ chia sẻ về những thứ mà mình đã học được qua 6 năm làm việc nha. Những thứ này đã giúp mình “tiến hóa” từ 1 thằng Fresher bình thường lên Senior , lên Full Stack Developer. Mình nghĩ ai làm vài năm cũng rút ra được thôi, nhưng biết những thứ cần học thì mấy năm đầu đi làm đỡ bỡ ngỡ lạc lối ha. Đây là phần 1 trong series 2 phần Tôi đã lên cấp và tiến hoá như thế nào : Phần 1 – Những năm đầu đi làm ở Việt Nam và UK Phần 2- Làm developer ở Singapore Năm đầu – Làm junior developer tại FPT Hồi mới ra trường, mình vào FPT Software – FSU1, BU26. Hồi đấy đi phỏng vấn, mình bị hỏi ASP.NET, rồi MVC đủ thứ, nhưng khi vào thì lại không cho làm Web mà lại cho làm WPF (Windows Presentation Foundation). Công việc chủ yếu là làm mấy cái app Desktop bằng WPF cho một đối tác bên Mỹ về dầu khí. Hồi đó mình mới ra trường, ngáo ngơ chưa biết gì nên mình đã học được rất rất là nhiều thứ: Quy trình : FPT là một công ty lớn. Họ có quy trình rõ ràng: standing meeting ra sao, phân chia task như thế nào, dev làm gì, tester làm gì, có ticket đầy đủ Hồi đó mình học được rất là nhiều quy trình. Ví dụ như: Code xong phải có người code review, dùng JIRA thế nào để quản lý tasks, meeting và cho điểm task ra sao Kĩ thuật : Mình phải tự học 100% WPF vì trường không dạy . Cũng may mình đã có sẵn nền tảng về C# nên tự học cũng không khó lắm. Nhờ dùng WPF mà mình nắm khá vững mô hình MVVM, Data Binding, Event, Animation v…v, sau này qua học Angular cũng dễ hơn nhiều Cách đọc code, tổ chức code : Hồi đó team mình có một dự án khá là bự, source code cũng được vài năm rồi. Nhờ đọc code dự án mà mình biết được một dự án lớn thì code được tổ chức gồm những phần như thế nào , làm sao để thêm 1 chức năng mới mà không ảnh hưởng chức năng cũ. Sau 6 tháng, mình đã đỡ ngáo ngơ hơn, không còn là thằng junior ngu ngơ nữa. Mình rời FPT Software để qua Aswig Solution . Nhờ đã có kinh nghiệm nên mình trả lời những câu hỏi về qui trình làm việc, Scrum này nọ khá dễ dàng! Năm thứ 2 – Junior Dev tại Aswig Solution Qua Aswig, mặc dù vẫn là junior, nhưng mình được mức lương cao gấp rưỡi FSoft . Chắc do công ty nước ngoài nên họ chịu chi hơn. Hồi đó team mình cũng nhỏ nhỏ, cỡ 3-4 người, mình thì vẫn code C#, nhưng nay đã được làm web chứ không còn phải code WPF nữa. Cũng may, anh team leader khá là nhiệt tình, cởi mở, chịu khó học hỏi, tìm hiểu công nghệ mới . Mình cũng học được khá nhiều điều: Angular & JavaScript : Hồi đấy AngularJS (Angular 1) khá là hot, nên team mình cắm đầu vừa học vừa dùng Angular luôn. Mình có cơ hội được học kĩ JavaScript. JavaScript nâng cao : Nhờ sử dụng Angular 1, mình nắm được các khái niệm nâng cao như: IoC/DI là cái gì; làm sao để phân tách code theo module , theo file; làm sao để build/bundle code JavaScript Cách bắt đầu dự án : Khác với FPT, bên Aswig team mình bắt đầu 1 dự án mới từ đầu. Mình không biết bắt đầu 1 dự án mới ra sao, chia code thành những phần nào. May là trong team có những anh senior . Quan sát họ, mình biết cách xây dựng hệ thống chia thành từng phần ra sao, ba lớp ra sao. Code mới viết ở đâu, database access viết ở đâu chẳng hạn Kĩ năng mềm : Ở Aswig, xung quanh mình có nhiều anh manager giỏi . Anh team leader team mình là Anh Hưng. Anh ấy rất chịu khó ngoại giao các team khác, rồi ngoại giao với PM ở bên Úc nên mình học được các năng nổ nói chuyện, giao tiếp với mọi người xung quanh Bác Manager trên mình là bác Khánh, Engineer Manager của toàn công ty, coi như là người nắm quyền cao nhất của toàn công ty luôn. Nhờ làm việc với bác mà mình học được từ bác cách viết email cho mọi người như thế nào nè; cách thuyết trình, giải thích cho cả công ty; cách để quản lý các team khác nhau. Làm được ở VN tầm 1 năm rưỡi thì mình cũng hơi hơi chán, thế là mình tìm đường qua nước ngoài du học . Năm 3,4 – Du học UK và làm việc nước ngoài Hành trình phỏng vấn, xin việc ở UK , công việc hàng ngày mình cũng đã viết rồi. Nên bài này mình chia sẻ những thứ mình đã học được thôi ha. Ở bên UK, team mình cũng khá nho nhỏ (tầm 6 người). Công việc cũng khá là nhàn vì chỉ làm cái app cho trường thôi, nên không có áp lực doanh thu hay phải OT gì cả. Thêm cả dân UK cũng rất là phè phỡn: 9:00 sáng đi làm, 5:00 chiều xách cặp về mất tiêu. Ở Lancaster ISS, mình lại học được khá nhiều thứ hay ho khác: ReactJS : Cách đây vài năm, React vẫn chưa nổi tiếng như bây giờ, vẫn còn hay bị so sánh với AngularJS (Giờ thì React nổi quá trời, còn AngularJS đã chìm nghỉm). Do dự án dùng React, mình cơ hội được học và làm React luôn. Sau này mình đi phỏng vấn đâu đâu cũng đòi hỏi React cả, khá là may mắn. Làm Product : Ở mấy công ty trước, đa phần là làm outsource nên mình chưa biết cách làm 1 product thật sự như thế nào cả. Ở Lancaster ISS thì khác, team mình làm 1 cái app tên iLancaster: Cho sinh viên điểm danh, xem khoá học, đóng tiền v…v Team nhỏ nhưng có tận 2 bạn Product Manager. Họ đi nói chuyện với học sinh, sinh viên, với các phòng bạn khác để tìm hiểu khách hàng cần gì. Sao đó, Product Manager sẽ viết requirement để team dev tụi mình implement những chức năng đó Hồi đó, team mình khá nhỏ nên mình được đi chung với Product Manager để nói chuyện với khách hàng, với các phòng ban khác để biết người ta cần cái gì và cái app của mình có làm được hay không. Đó là con đường đầu tiên của mình để trở thành người build sản phẩm . Mình không chỉ có nhận yêu cầu xong rồi code, mà mình biết sản phẩm mình tạo ra để làm cái gì, mang giá trị gì không. Điều đó có ý nghĩa hơn nhiều so với việc chỉ nhận task rồi code. Mentor cho junior : Hồi ấy mình chưa tới tầm Senior, nhưng chắc cũng hơi hơi rồi. Do đó, khi có vài bạn Junior mới vào thì mình may mắn được làm mentor , hướng dẫn các bạn ấy làm quen với codebase, cách code cho đúng convention luôn. Nhờ vậy, mình học cách giao tiếp, cách viết document ra sao. Mình cũng học được tính kiên nhẫn, giải thích các vấn đề cho các bạn Junior hiểu. Cũng may là mấy bạn Junior cũng thông minh, chứ ngu là mình chửi sml luôn rồi. Mình làm bên UK chừng 2 năm, tốt nghiệp xong thì có ông anh hồi xưa làm chung bên Aswig, rủ mình qua một công ty start up ở Singapore . Thấy cũng gần nhà, với trước giờ chưa làm startup nên mình cũng… nhắm mắt đưa chân luôn. (Còn tiếp) Tạm kết Blog kì này cũng hơi dài rồi nên mình tạm ngừng tại đây. Ở phần sau, mình sẽ chia sẻ về những điều mình học được từ khi qua Singapore đến bây giờ nha. Rate this: Like this: Related
I often advise new graduates: It's not important how much you earn, but what you can learn? After 1-2 years of working there, will I improve? Is it possible to reach a higher level and higher salary? Usually, you often ask: How do I know what I need to learn? Therefore, in this article, I will share about the things I have learned over 6 years of working. These things have helped me "evolve" from a normal Fresher to a Senior, to a Full Stack Developer. I think anyone who works for a few years can learn it, but if you know what you need to learn, the first few years of working will be less confusing and lost. This is part 1 of a 2 part series How I Leveled Up and Evolved: Part 1 – The first years of working in Vietnam and the UK Part 2- Working as a developer in Singapore First year - Working as a junior developer at FPT When I first graduated, I joined FPT Software - FSU1, BU26. Back then, when I went for an interview, I was asked ASP.NET, then MVC, all sorts of things, but when I entered, I wasn't allowed to do Web work, but instead allowed me to do WPF (Windows Presentation Foundation). The main job is to make some Desktop applications using WPF for an American partner in oil and gas. At that time, I had just graduated from school and didn't know anything, so I learned a lot of things: Process: FPT is a large company. They have a clear process: how to stand a meeting, how to divide tasks, what devs do, what testers do, have full tickets Back then I learned a lot of processes. For example: Once the code is finished, someone must code review it. How to use JIRA to manage tasks, meetings, and how to score tasks. Technical: I had to learn WPF 100% by myself because the school didn't teach it. Fortunately, I already have a foundation in C# so self-studying is not too difficult. Thanks to using WPF, I have a pretty good grasp of the MVVM model, Data Binding, Event, Animation, etc. Later, learning Angular will be much easier. How to read code, organize code: At that time, my team had a pretty big project, the source code was several years old. Thanks to reading the project code, I know how a large project is organized into parts, and how to add a new function without affecting the old function. After 6 months, I was less confused and no longer a stupid junior. I left FPT Software to join Aswig Solution. Thanks to my experience, I can answer questions about the workflow, Scrum and that quite easily! 2nd year - Junior Dev at Aswig Solution Through Aswig, even though I'm still a junior, I get a salary one and a half times higher than FSoft. Probably because it's a foreign company, they pay more. At that time, my team was also small, about 3-4 people, I still coded in C#, but now I was able to make websites and no longer had to code in WPF. Fortunately, the team leader is quite enthusiastic, open, and willing to learn and learn new technology. I also learned quite a few things: Angular & JavaScript: Back then, AngularJS (Angular 1) was quite hot, so my team devoted ourselves to learning and using Angular. I had the opportunity to learn JavaScript thoroughly. Advanced JavaScript: Thanks to using Angular 1, I understand advanced concepts such as: What is IoC/DI; How to separate code by module and file; How to build/bundle JavaScript code How to start a project: Unlike FPT, our Aswig team starts a new project from scratch. I don't know how to start a new project or what parts to divide the code into. Luckily, there are senior guys in the team. Observing them, I know how to build a system divided into parts and three layers. Where to write new code, where to write database access, for example Soft skills: In Aswig, we have many good managers around us. My team leader is Anh Hung. He was very diligent in communicating with other teams, then communicating with the PM in Australia, so I learned how to actively talk and communicate with people around me. The Manager above me is Mr. Khanh, Engineer Manager of the entire company, considered the highest authority of the entire company. Thanks to working with you, I learned from you how to write emails to people; How to present and explain to the whole company; How to manage different teams. After working in Vietnam for about 1 and a half years, I was a bit bored, so I found a way to study abroad. Years 3 and 4 - Studying in the UK and working abroad. I have already written about the journey of interviewing, applying for jobs in the UK, and daily work. So in this article I'm sharing what I've learned. In the UK, our team is quite small (about 6 people). The work is also quite easy because it's just an app for the school, so there's no pressure on revenue or having to do any OT work. Even UK people are very fussy: go to work at 9:00 am, carry your bag home at 5:00 pm and get lost. At Lancaster ISS, I learned many other interesting things: ReactJS: A few years ago, React was still not as famous as it is now, it was still often compared to AngularJS (Now React is very popular, while AngularJS has sunk). Because the project uses React, I have the opportunity to learn and do React. After that, everywhere I went for an interview, React was required, which was quite lucky. Making a Product: In previous companies, most of them were outsourcers, so I didn't know how to actually make a product. At Lancaster ISS, it's different. Our team makes an app called iLancaster: Allows students to take attendance, view courses, pay, etc. The team is small but has up to 2 Product Managers. They talk to students and other departments to find out what customers need. After that, the Product Manager will write requirements for our dev team to implement those functions At that time, my team was quite small, so I was able to go with the Product Manager to talk to customers and other departments to know what people needed and whether my app could do it or not. That was my first path to becoming a product builder. Not only did I receive the request and then code it, but I also knew what the product I created was for and whether it had any value. That's much more meaningful than just accepting a task and then coding. Mentor for juniors: At that time, I wasn't at Senior level yet, but I was probably a little old. Therefore, when a few new Juniors joined, I was fortunate to be a mentor, guiding them to become familiar with the codebase and how to code according to convention. Thanks to that, I learned how to communicate and how to write documents. I also learned to be patient and explain problems to Juniors. Fortunately, the Juniors are also smart, but if they were stupid, I would have cursed sml. I worked in the UK for about 2 years. After graduating, a brother who used to work with Aswig invited me to join a start-up company in Singapore. Seeing that it's close to home, and having never done a startup before, I... closed my eyes and started looking. (To be continued) Conclusion This blog is already a bit long so I will stop here. In the following, I will share what I have learned since coming to Singapore until now. Rate this: Like this: Related
Nhiều bạn hay hỏi mình code bằng tool gì, cài đặt ra sao. Do vậy, hôm này mình hướng dẫn các bạn cách setup Visual Studio Code, cài đặt những extension xịn xò nhen. Visual Studio Code là cái gì cơ? Nếu từng code C#, hẳn bạn cũng biết Microsoft có 1 cái IDE khá là nặng và bự mang tên Visual Studio . IDE này khá ngon lành, đủ chức năng, mỗi tội rất nặng, cài hơi lâu , mỗi lần bật là con lap già nhà mình lại rên rỉ. Khác với Visual Studio, Visual Studio Code là 1 text editor khá mới nhưng free, chạy được trên nhiều hệ điều hành. Tuy chỉ là text editor nhưng ta vẫn có thể compile, run, debug code trên VS Code, không thua gì cái IDE xịn. Vừa nhẹ, vừa free, lại mạnh mẽ, nên dân web developer như mình rất khoái dùng VS Code. Để bắt đầu, các bạn có thể vào đây để tải nha: Cài đặt theme, font và icon cho ngầu Sau khi đã cài xong VS Code, bạn bấm vào mục Extensions bên góc trái, bắt đầu gõ và tìm extension rồi cài thôi ha. Đầu tiên, tụi mình sẽ cài theme, font, icon linh tinh trước. Bạn nên cài thêm 1 số theme để nhìn cho dịu mắt. Cá nhân mình thì thich dùng theme Dracula , màu xanh xanh hường hường tím tím, nhìn lâu hoặc code buổi tối cũng không mỏi mắt. Bên cạnh đó, bạn cũng nên tải thêm 1 số set-icon như vscode-icons , các icon này sẽ giúp bạn nhìn vào danh sách thư mục và dễ nhận biết đâu là folder, file nào là file gì v…v Tiếp theo, bạn nên cài font thuận tiện cho việc viết code. Cá nhân mình dùng Fira Code . Cài xong, bạn vào setting đổi font thành FiraCode, sau đó bật fontLigature lên luôn nha. Bật cái này lên sẽ giúp gom nhóm mấy cái như ==, != thành 1 kí tự, giúp não bộ xử lý nhanh hơn, đọc code cũng nhanh hơn luôn. Một số extension nên dùng cho mọi dev Sau khi cài đủ thứ, VSCode trông cũng khá đẹp rồi, giờ chúng ta cài thêm 1 số Plugin cho việc Code nào: GitLens : VSCode đã hỗ trợ pull/push từ Git, nhưng GitLens bá đạo hơn nhiều. Nó giúp bạn biết từng dòng code do ai viết, viết vào lúc nào, nằm trong commit nào . Bạn cũng có thể …. ngược về quá khứ để xem file đã thay đổi như thế nào, rất tiện Bracket Pair Colorizer : Tô màu các dấu ()[]{} , nhìn 1 phát là biết cái nào đi cặp với cái nào, không còn lẫn lộn, thừa thiếu dấu nữa Bookmark : Giúp bạn “bookmark” lại những dòng code hay đụng tới, cần đọc nhiều, sửa nhiều. Không còn phải search code mỗi lần cần tìm nữa. Code Spell Checker : Rất rất nên cài. Trước kia, lâu lâu mình hay viết comment sai chính tả, đặt tên hàm, tên biến cũng sai chính tả luôn. Extension này sẽ highlight những đoạn sai chính tả để mình sửa nha. Anh em nhớ cài kẻo viết code sai chính tả tụi nó cười đó. Setting Sync : Giúp bạn đồng bộ setting (cài đặt, extension) giữa nhiều máy với nhau. Nhờ cài cái này, mình chỉ cần s etup VS Code 1 lần . Những lần sau, khi đổi máy, mình chỉ cần chạy 1 phát là toàn bộ setting cũ đã được đồng bộ qua máy mới rồi! Những extension hay ho cho dân làm web Tiếp theo, đây là những extension mà dân làm web tụi mình hay dùng. Đa phần những extension này giúp tiết kiệm thời gian, để mình code nhanh hơn, mượt mà hơn. Live Server : Dựng 1 server chạy HTML/CSS/JS, tự động refresh trình duyệt mỗi khi bạn sửa code. Mấy bạn mới học front-end thì nên cài cái này, tiết kiệm thời gian F5 lắm luôn. Auto Import : Hỗ trợ mình Import thư viện JavaScript, component từ các file khác Import Cost : Tất nhiên, import nhiều thư viện thì sẽ đỡ tốn công viết code hơn, nhưng cũng làm cho ứng dụng nặng hơn, tải lâu hơn . Cài Import Cost, bạn sẽ biết những thư viện nào quá nặng, nên thay thế hoặc loại bỏ, hoặc import 1 phần nhỏ thôi Auto Rename Tag + Auto Close Tag : Khi code HTML/JSX, mỗi khi tạo thêm tag mới, extension sẽ đóng tag để khỏi quên. Khi đổi tên tag, extension này sẽ đổi tên closing tag cho phù hợp luôn. npm Intellisense + Path Intellisense : Gợi ý tên npm package, tên file trong thư mục khi mình cần import, giúp giảm lỗi khi import Bộ đôi ESLint + Prettier : Như mình đã giới thiệu về Linter , ESLint sẽ giúp bạn code đúng chuẩn, đúng format, tìm những lỗi linh tinh khi code. Prettier sẽ hỗ trợ bạn format code, sửa theo đúng chuẩn từ ESLint. Cài 2 thằng này xong, chỉ cần code đại rồi Ctrl S để save 1 phát là code vừa đẹp vừa chuẩn ngay. Ngoài ra, tuỳ vào ngôn ngữ/framework đang dùng mà các bạn có thể cài thêm Code Snippets hoặc VSCode Extension cho ngôn ngữ đó. Bản thân mình code từ React tới Angular, từ Golang tới Elixir nên cài đủ thứ luôn. Ngoài ra, còn 2 extension hay ho viết bằng AI, giúp bạn code nhanh hơn nữa (gần như viết code phụ bạn luôn). Mình giới thiệu trong vlog Youtube bên dưới nha. Phải xem clip demo mới thấy được sự bá đạo của tụi nó hihi. Tạm kết Trong bài này, mình đã hướng dẫn các bạn cách cài VSCode , cũng như những extension bá đạo mà các bạn nên dùng rồi. Làm theo hướng dẫn, các bạn sẽ có 1 bản VS Code khá mạnh , đủ xài để code web nhé. Nếu các bạn có kinh nghiệm sử dụng, có extension nào hay muốn chia sẻ cho anh em thì cứ comment phía dưới nhen. Bonus : Các bạn có thể vừa xem vlog vừa làm theo, vừa nhìn khuôn mặt đập chai của mình luôn nhe :3. Rate this: Like this: Related
Many of you often ask me what tool I code with and how to install it. Therefore, today I show you how to set up Visual Studio Code and install great extensions. What is Visual Studio Code? If you have ever coded in C#, you probably know that Microsoft has a quite heavy and large IDE called Visual Studio. This IDE is quite good, fully functional, but the problem is very serious, it takes a while to install, every time I turn it on, my old laptop groans. Unlike Visual Studio, Visual Studio Code is a fairly new but free text editor that can run on many operating systems. Even though it's just a text editor, we can still compile, run, and debug code on VS Code, no less than a good IDE. It's light, free, and powerful, so web developers like me love using VS Code. To get started, you can go here to download: Install cool themes, fonts and icons After installing VS Code, click on Extensions in the left corner, start typing and find the extension and install it. . First, we will install the theme, fonts, and miscellaneous icons first. You should install some more themes to make it look more pleasing to the eyes. Personally, I like to use the Dracula theme, the color is blue-green, pink-purple, looking at it for a long time or coding at night without tiring my eyes. Besides, you should also download some set-icons like vscode-icons, these icons will help you look at the folder list and easily identify which folder is which, which file is which file, etc. Next, You should install a font that is convenient for writing code. Personally, I use Fira Code. After installation, go to settings and change the font to FiraCode, then turn on the fontLigature. Turning this on will help group things like ==, != into 1 character, helping the brain process faster and read code faster. Some extensions that every developer should use After installing everything, VSCode looks quite nice, now let's install some more Plugins for coding: GitLens: VSCode already supports pull/push from Git, but GitLens is much more powerful. It helps you know who wrote each line of code, when it was written, and which commit it is in. You can also …. Going back in time to see how the file has changed is very convenient Bracket Pair Colorizer: Color the marks ()[]{} , see which one goes with which one at a glance, no more confusion, missing or missing marks anymore Bookmark: Helps you "bookmark" frequently touched lines of code that need to be read a lot and edited a lot. No more having to search for code every time you need to find it. Code Spell Checker: Highly recommended to install. In the past, from time to time I often wrote comments with misspellings, function names, and variable names were also misspelled. This extension will highlight misspelled paragraphs so I can correct them. Remember to install it so they won't laugh if you write misspelled code. Setting Sync: Helps you synchronize settings (installations, extensions) between multiple devices. Thanks to installing this, I only need to set up VS Code once. Next time, when I change devices, I only need to run it once and all the old settings will be synchronized to the new device! Cool extensions for web developers Next, these are the extensions that we web developers often use. Most of these extensions help save time, allowing you to code faster and smoother. Live Server: Build a server running HTML/CSS/JS, automatically refresh the browser every time you edit the code. Those who are new to front-end should install this, it will save a lot of F5 time. Auto Import: Supports you to import JavaScript libraries and components from other files Import Cost: Of course, importing many libraries will take less effort to write code, but it also makes the application heavier and takes longer to load. By installing Import Cost, you will know which libraries are too heavy and should be replaced or removed, or just imported a small part. Auto Rename Tag + Auto Close Tag: When coding HTML/JSX, every time a new tag is created, the extension will close the tag to avoid forgetting. When renaming a tag, this extension will rename the closing tag accordingly. npm Intellisense + Path Intellisense: Suggests npm package name, file name in the directory when you need to import, helps reduce errors when importing ESLint + Prettier duo: As I introduced about Linter, ESLint will help you code correctly, in the right format, and find miscellaneous errors when coding. Prettier will help you format code and edit it according to ESLint standards. After installing these two guys, just need to code and then Ctrl S to save once and the code will be both beautiful and accurate. In addition, depending on the language/framework you are using, you can install Code Snippets or VSCode Extension for that language. I myself code from React to Angular, from Golang to Elixir, so I install everything. In addition, there are 2 cool extensions written in AI, helping you code even faster (almost writing code on your own). I introduce it in the Youtube vlog below. You have to watch the demo clip to see their dominance hihi. Conclusion In this article, I have shown you how to install VSCode, as well as awesome extensions that you should use. Follow the instructions, you will have a fairly powerful version of VS Code, enough to use for web coding. If you have experience using it or have any good extensions you want to share with us, please comment below. Bonus: You can watch the vlog while following along, while looking at my bottle smashing face :3. Rate this: Like this: Related
Đi làm một thời gian, lắm lúc anh em sẽ cảm thấy… hơi chán, không muốn code gì, không muốn làm gì. Có khá nhiều nguyên nhân khiến ta cảm thấy chán: Học chán : Bài tập khó quá , học hoài không vô. Điểm thấp quá không biết có theo ngành được không -> Chán Công việc chán : Có cái dự án từ đời thuở nào làm suốt , task na ná nhau lặp đi lặp đại Công nghệ chán : Công nghệ cũ xì từ thời Napolean mặc quần đùi, công hoài chả học được gì mới Việc cảm thấy chán là chuyện… hoàn toàn bình thường , ai theo ngành này cũng có lúc gặp phải, chứ không phải là do bạn không hợp với ngành , hay do bạn thế này thế nọ đâu ha. Do vậy, hôm nay mình sẽ chia sẻ về 3-4 điều mà lập trình viên tụi mình nên làm khi cảm thấy chán ha! Chán code thì nên… code nhiều hơn Thật đấy, nghe hơi vô lý nhưng lại hết sức có bầu, lộn, hết sức thuyết phục. Một trong những cách hiệu quả đề điều trị chứng chán code là… code nhiều hơn! Tất nhiên, hãy code những gì bạn thấy thích , chứ đừng code những cái gì mà bạn làm mà chán: Công ty bắt bạn làm Java, làm Cobol gì đó cách đây mười mấy năm,làm những dự án bảo trì => chán! Để cảm thấy vui trở lại bạn có thể code những thứ bạn muốn học , nhưng trên công ty chưa có cơ hội làm Trước giờ các bạn code web đúng không? Các bạn thử code game xem như thế nào. Hoặc trước giờ các bạn code nhúng đúng không, thử làm cái website giới thiệu bản thân xem sao? Hoặc không nói đâu xa, trước giờ bạn chỉ làm Back-end, bạn thấy làm việc với DB chán quá! Thì nay bạn thử chuyển qua làm Front-end , làm UI/UX xem sao. Nhờ vậy, bạn vừa đỡ chán, vừa học được nhiều cái mới hơn Mình nghĩ rằng, ai theo ngành này cũng có chút đam mê code trong người. Khi được tự do code những thứ hay ho, bạn sẽ cảm thấy thú vị, đỡ chán hơn, lại còn học hỏi và gia tăng kiến thức nữa chứ! Chán Code thì… Code ít lại, làm ít lại và nghỉ ngơi nhiều hơn Tuy nhiên, cũng có nhiều lúc bạn chán code là do đam mê code bị … tắt ngúm, không muốn code gì luôn. Thời đi làm, mình có biết nhiều ông anh vào trúng dự án bị “cháy” (trễ deadline), phải OT (over time) hơn 3 tháng. Rồi thức khuya, cày mì tôm, ông nào ông nấy mặt cũng đờ đẫn, chả còn hứng thú code gì. Do vậy, nếu áp lực công việc làm bạn chán code, hãy hạn chế code lại , uống đủ nước, ngủ đủ giấc cho đỡ stress. Nếu có thể, bạn có thể nghỉ ngơi, đi du lịch. Có đợt thì nghỉ công ty cũ, mình nghỉ 2 tuần, 1 tuần du lịch còn 1 tuần về thăm nhà. Phải có thời gian nghỉ ngơi, để cho bản thân mình refresh lại thì làm việc mới hiệu quả được. Chứ cứ cày đêm, thiếu ngủ thì năng suất làm việc sẽ ảnh hưởng bạn nhé. Còn nếu công ty cứ bóc lột, ép bạn OT này nọ thì sao?? Hmm, xách CV lên và đi tìm việc thoải mái, lương cao hơn này hihi. Tìm thú vui khác ngoài code Để không chán, bên cạnh việc code, các bạn có thể kiếm 1 số thú vui khác . Ví dự như là xem pỏn nè, lộn, như là viết blog, làm vlog như mình nè. Học đọc sách, chơi game, nghe nhạc giải trí cũng được. Tuy vậy, do đặc thù công việc của tụi mình đã ngồi máy tính nhiều rồi, các bạn nên kiếm những thú vui nào ít đụng tới máy tính . Như hồi xưa mình hay chơi papercraft, học vẽ, chơi đá banh với mấy ông trong công ty. Mấy thằng bạn mình thì hay đi phượt, đi quẩy cuối tuần cho relax. Dạo này lo bận, lười rồi nên mình chỉ còn đi dạo, chạy bộ thôi. Nhớ nhé, thú vui gì nho nhỏ cũng được, đừng để cuộc sống chỉ có công việc, ăn ngủ code là không vui đâu nhe. Kiếm hội nhóm đủ chém gió, làm việc chung Các cụ có câu: Một cây làm chẳng lên non, Ba cây chụm lại nên sòng tiến lên. Việc code cũng vậy, có người code chung, học chung sẽ vui hơn, thú vị hơn là tự code một mình. Các bạn có thể kiếm bạn học, đồng nghiệp, bạn bè trong ngành làm group chém gió công nghệ, làm việc chung. Ông bạn mình có cái group chuyên Linux, mình join lâu lâu nghe mấy ông ấy chém gió về DevOps, Kubernetes v…v, nghe cũng vui và học được nhiều thứ. Hoặc lâu lâu mình cũng hay rủ Codeaholicguy code mấy cái linh tinh, vừa học vừa có dự án chạy chơi nè. Ngoài ra, nếu không thích chém gió công nghệ, các bạn cứ rủ bạn bè đi chơi, đi quẩy đi ăn uống bình thường là được. Tiếp xúc với những người mình thích là một cách hay ho để đỡ chán, đỡ stress. Tạm kết À quên, còn một cách khác nữa hay ho mà để đến cuối mình mới nói. Nếu chán lập trình, bạn cứ thử bỏ nghề , đi làm fuho hoặc đi chạy grab 1 thời gian sẽ thấy như thế nào. Mấy ngành đó ít phải suy nghĩ nhiều như lập trình, nhưng phải lao động tay chân, dãi nắng dầm mưa nhiều. Làm dev thì được cái lương cũng khá ổn định , ngồi máy tính, công việc nhẹ nhàng , không cầm gì nặng hơn con chuột hoặc bàn phím. Bù lại, ta phải phải học nhiều, suy nghĩ nhiều . Tiền nhiều thì công việc và trách nhiệm cũng nhiều thôi (cái gì nó cũng có giá của nó cả). Nếu thật sự không muốn đụng code nữa, cứ chọn công việc mà bạn muốn! Có nhiều ông bỏ ngành, đi làm bất động sản, MMO, đầu tư coin, giờ cũng giàu đâu thua gì dev đâu đâu nè. Cuộc đời có bao lâu, cứ làm việc gì bạn thích nhe. Chúc bạn may mắn. Bonus : Nếu ngại đọc, các bạn có thể xem vlog, sẵn ngắm khuôn mặt đập chai của mình nha :3 Rate this: Like this: Related
After working for a while, sometimes you will feel... a bit bored, not wanting to code, not wanting to do anything. There are many reasons why we feel bored: Studying is boring: The exercises are too difficult, I can't study all the time. My score is too low, I don't know if I can pursue this major -> Boring Boring work: I have a project from my childhood that I work on all the time, the tasks are similar over and over again Technology is boring: Technology is so old since the time Napolean wore shorts, we never learn anything new Feeling bored is... completely normal, everyone in this industry sometimes experiences it, it's not because you are not suitable for the industry, or because you are this or that. Therefore, today I will share about 3-4 things that we programmers should do when we feel bored! If you're bored with code, you should... code more Really, it sounds a bit absurd but it's very pregnant, confused, very convincing. One of the effective ways to treat coding boredom is… code more! Of course, code what you like, but don't code what you're bored with: The company forced you to do Java, do Cobol something like ten years ago, do maintenance projects => boring! To feel happy again, you can code the things you want to learn, but haven't had the opportunity to do at the company You guys have coded websites before, right? You can try the game code to see how it goes. Or before now, you've embed code, right? Try making a website to introduce yourself? Or not to mention, you've only done Back-end before, you find working with DB so boring! Now, try switching to Front-end and UI/UX work. Thanks to that, you will both be less bored and learn more new things I think that everyone who follows this industry has some passion for coding in them. When you have the freedom to code cool things, you will feel interesting, less bored, and even learn and increase your knowledge! If you're bored with coding... Code less, work less and rest more. However, there are times when you're bored with coding because your passion for coding is... turned off, you don't want to code at all. When I was working, I knew many guys who got into projects that were "burned" (missed deadlines) and had to do OT (over time) for more than 3 months. Then I stayed up late, plowing instant noodles, everyone's face was dull, no longer interested in coding. Therefore, if work pressure makes you bored with coding, limit coding, drink enough water, and get enough sleep to reduce stress. If possible, you can rest and travel. There was a time when I quit my old company, I took 2 weeks off, 1 week to travel and 1 week to visit home. You must have time to rest and let yourself refresh in order to work effectively. If you keep plowing at night and lack of sleep, your productivity will be affected. What if the company keeps exploiting and forcing the OT to do this and that?? Hmm, pick up your CV and go find a comfortable, higher-paying job hehe. Find other hobbies besides coding To not get bored, besides coding, you can find some other hobbies. For example, like watching porn, writing blogs, making vlogs like me. Learning to read books, playing games, listening to music for entertainment is also okay. However, due to the nature of our work, we already spend a lot of time on the computer, so you should find hobbies that rarely involve the computer. Like in the past, I used to play papercraft, learn to draw, and play soccer with the guys in the company. My friends often go on road trips and partying on weekends to relax. Lately I've been busy and lazy, so I just go for walks and jogs. Remember, any small pleasure is okay, don't let life only be about work, eating and sleeping code is not fun. Looking for a group to chat and work together? The elders have a saying: One tree cannot make it to the top of the mountain, Three trees gathered together should make progress. The same goes for coding, having someone to code with, learning together will be more fun and interesting than coding alone. You can find classmates, colleagues, and friends in the industry to become a group to gossip about technology and work together. My friend has a group specializing in Linux. I join from time to time and listen to them talk about DevOps, Kubernetes, etc., it's fun and I learn a lot. Or from time to time, I often invite Codeaholicguy to code some random things, both studying and having fun projects. In addition, if you don't like gossiping about technology, just invite your friends to hang out, go out and eat normally. Contact with people you like is a good way to relieve boredom and stress. Conclusion Oh, I forgot, there's another cool way that I'll leave until the end. If you're bored of programming, just try quitting your job, go to fuho or work as a grabber for a while and you'll see how it goes. Those fields require less thinking than programming, but require manual labor and a lot of sun and rain. As a dev, you get a fairly stable salary, sit at the computer, do light work, don't hold anything heavier than a mouse or keyboard. In return, we have to learn a lot and think a lot. A lot of money means a lot of work and responsibility (everything has its price). If you really don't want to touch code anymore, just choose the job you want! There are many people who quit the industry and went to work in real estate, MMO, and coin investing. Now they are no less rich than developers. Life is short, just do what you like. Good luck. Bonus: If you're shy to read, you can watch the vlog and see my face breaking the bottle :3 Rate this: Like this: Related
Mấy năm gần đây, ngành IT luôn được “gắn mắc” là một ngành hot, việc nhẹ lương cao , nhu cầu tuyển dụng nhiều vô số. Do vậy, có rất nhiều bạn được truyền cảm hứng, đam mê trở thành lập trình viên, “cắm đầu” vào học ngành này! Tuy nhiên, không phải ai cũng phù hợp theo ngành này. Làm developer có rất nhiều cái sướng , nhưng đi kèm với nó là nhiều trả giá/đánh đổi mà không nhiều người biết. Vì vậy, trong bài này, mình sẽ chia sẻ thêm về những đánh đổi, trả giá mà bạn phải chấp nhận nên muốn theo ngành này. Nếu đọc xong mà thấy “sợ” quá thì bạn nên chọn ngành khác phù hợp hơn nhe. Chuyện học công nghệ, bị đào thải và tuổi nghề Trong ngành IT, công nghệ liên tục thay đổi , kiến thức của bạn rất dễ bị … hết hạn nếu không chịu cập nhật kĩ: Cách đây 10 năm , làm web chỉ cần biết sơ về server, biết HTML CSS. Dạo gần đây, web trở nên cực kì phức tạp với đủ thứ phải học: từ front-end, back-end, API, framework . Ngày xưa lập trình di động là viết cho Symbian OS, chạy trên Java ME. Bây giờ lập trình di động là viết Android, iOS, còn Window Phone và Symbia đã … ngỏm từ lâu Bản thân các framework cũng có thay đổi, tiến hoá. Angular 2 khác hoàn toàn Angular 1 (AngularJS). React Hook mới cũng thay đổi khá nhiều cách viết React Component Vì vậy, không hề có chuyện học trong trường xong tà tà đi làm tới già, mà tầm vài tháng, vài năm bạn phải update kiến thức của mình . Nếu không, bạn sẽ dần dần bị lạc hậu, không theo kịp thời đại, khó xin việc. Vì vậy, nhiều người nghĩ rằng làm lập trình viên tuổi nghề thấp . Điều này chỉ đúng khi bạn … già mà không có gắng, đòi lương cao hơn mà lại … không giỏi bằng, không trâu cày bằng giới trẻ. Bản thân mình từng làm với vài ông dev tầm 3x, 4x, có bác lớn hơn tầm 6x già nhưng code trâu, kiến thức cũng trâu, trên thông cờ lao dưới tường DevOps. Nếu già mà vẫn trâu thì không có gì phải lo thất nghiệp nha! Công việc nhiều áp lực, tốn nhiều thời gian Mình từng nguyên 1 bài viết về những áp lực trong ngành lập trình . Theo ngành này, nếu không may các bạn sẽ bị dính áp lực công việc, OT triền miên: Ở những công ty outsource, đôi khi để giảm giá thành, thắng dự án, đội sales phải estimate thời gian ngắn, chi phí thấp , dẫn tới anh em trong dự án phải OT sml cho kịp Ở một số công ty start-up, product, ngày ra mắt sản phẩm đã được định trước. Nếu gần tới lúc đó mà sản phẩm vẫn chưa xong, anh em cũng phải ráng OT cày cho kịp Việc OT nhiều sẽ ảnh hưởng tới sức khoẻ, tâm trạng, năng suất làm việc của anh em. Chưa kể là do mất thời gian OT, chúng ta sẽ ít đi thời gian lo cho gia đình, người thân, đi chơi với gấu v…v Tất nhiên không phải công ty nào cũng vậy, trước giờ mình đi làm cũng khá ít khi OT. Phận dev 12 bến nước, trong nhờ đục chịu, nếu không thích OT thì bạn hãy kiếm những công ty/team nào ít cần OT nha ! Ngẫm lại lại, một số ngành khác như marketing, agency, design … chuyện OT, làm quá giờ cũng là như cơm bữa thui mà. Lương thưởng thật sự ko quá cao Mấy bài báo hay thổi phồng lên là làm lập trình viên lương “nghìn đô”, lương trăm triệu. Con số này là có thật nhưng không nhiều , đa phần là của các bác senior vài năm kinh nghiệm , hoặc làm các mảng Data/AI/ML có bằng thạc sĩ, hoặc làm việc nước ngoài v…v Còn lại, lương của dev cũng chỉ cao hơn lương văn phòng, cao hơn mặt bằng chung chút đỉnh: Junior thì 10-15 triệu, senior/team lead thì 20-100 triệu tuỳ năng lực và trình độ. Ngoài lương ra, thưởng của dev thì càng không thể nào nhiều bằng mấy anh trưởng phòng, manager cấp cao. Lậu thì … hầu như không có, vì mấy ông dev rất ít khi có khái niệm … đi sếp , biếu sếp cái này cái nọ. Sếp mà thái độ là có khi còn chửi sếp, bật lại sếp ấy chứ! Do vậy, làm dev thì lương cũng tạm gọi là khá giả, đủ sống, cao hơn mặt bằng chung 1 tí. Chứ còn để gọi là giàu thì khá khó, có khi không bằng mấy ông tay to làm MMO 1 tháng thu mấy tỉ đâu. Công việc đôi khi không thú vị như bạn nghĩ Hồi chưa vào Đại Học, mình cứ nghĩ sau này làm lập trình viên, mình sẽ được viết những ứng dụng tầm cỡ, hàng triệu người dùng như Windows; hoặc làm game vài triệu người chơi như Final Fantasy; hoặc học và làm thuật toán AI cao siêu này nọ. Đi làm rồi, mình mới biết công việc của lập trình viên thì 69.96% là làm các ứng dụng CRUD “thêm bớt xoá sửa”, ghi dữ liệu, đọc dữ liệu, hiển thị dữ liệu. Nếu làm các ứng dụng doanh nghiệp, bạn sẽ quen đến mức nhàm vì suốt ngày chỉ có tạo form, sửa form, update CSV/Excel, xuất reports. Code 1 hồi cảm thấy giống … trâu cày, tay to, viết code nhiều chứ chất xảm chả có mấy. Hoặc đôi khi bạn sẽ mất 1-2 ngày chỉ để sửa 1 con bug , tìm hiểu lý do tạo sao thư viện/config của mình không chạy. Tuy nhiên, nếu thật sự để ý, các bạn sẽ thấy những thứ “thêm bớt xoá sửa” này chính là thứ đem lại lợi nhuận cho doanh nghiệp , gián tiếp trả lương cho các bạn! Khi requirement và flow trở nên phức tạp, người dùng nhiều lên, việc đảm bảo hệ thống chạy ổn định, dễ mở rộng … cũng là những bài toán hết sức thú vị nha! Đấy, mình chỉ “hù” nhẹ vậy thôi. Nếu đã thích lập trình, việc phải học công nghệ mới, phải … code nhiều sẽ là niềm vui, chứ không phải là khó khăn gì cả. Nếu đã thích tạo ra sản phẩm, dù có làm chức năng lớn hay nhỏ, ít người dùng hay không, bạn đều sẽ thấy vui khi tạo ra nó , mang lại giá trị cho người dùng. Do vậy, nếu thật sự mê ngành, đừng ngại ngần mà “lao đầu” vào nhé! Nếu bạn đã thật sự đam mê ngành, mong muốn theo ngành này thì những đánh đổi này chỉ là rất nhỏ , không đáng giá gì cả đâu! Bonus : Nếu ngại đọc, các bạn có thể xem vlog để nhìn thấy khuôn mặt đập chai của mình nha :3 Rate this: Like this: Related
In recent years, the IT industry has always been "attached" to being a hot industry, with light jobs and high salaries, with countless recruitment needs. Therefore, there are many people who are inspired, passionate about becoming programmers, and "dedicated" to studying this field! However, not everyone is suitable for this industry. Being a developer has a lot of joys, but it comes with many costs/trade-offs that not many people know. Therefore, in this article, I will share more about the trade-offs and prices that you have to accept if you want to pursue this industry. If after reading this you feel too "scared", you should choose another more suitable field. The story of learning technology, being eliminated and career longevity In the IT industry, technology is constantly changing, your knowledge can easily... expire if you don't update it carefully: 10 years ago, making a website only required basic knowledge of servers and HTML and CSS. Recently, the web has become extremely complicated with everything to learn: from front-end, back-end, API, framework. In the past, mobile programming was written for Symbian OS, running on Java ME. Nowadays, mobile programming is written for Android, iOS, and Window Phone and Symbia have... died out a long time ago The frameworks themselves also change and evolve. Angular 2 is completely different from Angular 1 (AngularJS). The new React Hook also changes a lot the way React Components are written Therefore, there is no such thing as studying in school and going to work until old age, but after a few months or years you have to update your knowledge. Otherwise, you will gradually become outdated, unable to keep up with the times, and have difficulty finding a job. Therefore, many people think that being a programmer has a low career. This is only true when you... are old but don't try hard, demand a higher salary but are... not as good, not as hard-working as young people. I myself have worked with a few developers who are around 3x, 4x, some are older than me, around 6x, old but have good code, knowledge is also good, above the standard rushing under the DevOps wall. If you're old but still strong, you don't have to worry about unemployment! The work is stressful and takes a lot of time. I once wrote an entire article about the pressures in the programming industry. According to this industry, if you are unlucky, you will be under constant work pressure and OT: In outsourcing companies, sometimes in order to reduce costs and win the project, the sales team must estimate short time and low costs, leading to the project team having to OT sml in time. In some start-up and product companies, the product launch date is predetermined. If it's almost that time and the product is still not finished, you still have to try to OT to catch up Too much OT will affect your health, mood, and work productivity. Not to mention that due to the loss of OT time, we will have less time to take care of family, relatives, go out with friends, etc. Of course, not all companies are like that, before now I rarely go to work. OT. The dev department has 12 water stations, clear and cloudy, so if you don't like OT, look for companies/teams that rarely need OT! Think back, in some other industries such as marketing, agency, design... OT and overtime are common. The salary is really not too high. Some articles often exaggerate that being a programmer has a salary of "thousands of dollars" or a salary of hundreds of millions. This number is real but not many, most of them are senior doctors with a few years of experience, or work in Data/AI/ML fields with a master's degree, or work abroad, etc. The rest is the developer's salary. It's only higher than the office salary, a little higher than the average: Junior is 10-15 million, senior/team lead is 20-100 million depending on ability and level. In addition to salary, dev bonuses are not as high as those of department heads and senior managers. Pirated is... almost non-existent, because developers rarely have the concept... go boss, give boss this and that. The boss has an attitude that sometimes even curses the boss and turns on the boss! Therefore, as a developer, the salary is considered quite good, enough to live on, a little higher than the average. But to be called rich is quite difficult, maybe not as good as the big guys who make MMOs and earn several billions a month. Work is sometimes not as interesting as you think. Before I went to university, I thought that if I became a programmer, I would be able to write large-scale applications with millions of users like Windows; or make a game with a few million players like Final Fantasy; or learn and do this and that advanced AI algorithm. After going to work, I learned that 69.96% of a programmer's job is to make CRUD applications "add, remove, edit", write data, read data, display data. If you do business applications, you will get used to it to the point of boredom because all day long you only have to create forms, edit forms, update CSV/Excel, and export reports. For a while, coding felt like... a buffalo, big hands, writing a lot of code but not much quality. Or sometimes it will take you 1-2 days just to fix a bug, find out why your library/config is not running. However, if you really pay attention, you will see that these "additions, deletions and corrections" are what bring profits to the business, indirectly paying you salaries! When requirements and flows become complex, users increase, ensuring the system runs stably, is easy to expand... are also very interesting problems! See, I just "scared" it slightly. If you like programming, having to learn new technology and... code a lot will be fun, not difficult at all. If you like creating products, whether they have big or small functions, few users or not, you will have fun creating it, bringing value to users. Therefore, if you really love the industry, don't hesitate to "plunge" into it! If you are truly passionate about the industry and want to pursue this industry, these trade-offs are very small and not worth anything! Bonus: If you're shy to read, you can watch the vlog to see my face breaking the bottle :3 Rate this: Like this: Related
Câu chuyện bắt đầu với một cậu Junior ở công ty phần mềm Ép Dê Dê (hoặc cty F cho gọn) – là tui Thuở đó, Code Dạo chỉ là một thanh niên lông bông vừa ra trường, biết dăm ba cái C# MVC mà đã tưởng mình gì cũng giỏi. Nhận bằng tốt nghiệp, vừa mở sẵn cái CV trên VietnamWorks rồi nằm đung đưa đợi ở nhà nhà thì đã có công ty nọ gọi đi phỏng vấn. Chả nhớ chém gió kiểu gì mà phỏng vấn hôm trước hôm sau đã gọi offer, mình nhận luôn. Trái với giang hồ đồn đại, công việc của mình hồi đó khá nhẹ nhàng, không bị OT bao giờ. Sáng 9h vào làm, đọc voz và web trẻ thơ đến 11h, code nửa tiếng rồi đi ăn. Ăn xong về ngủ, 2h dậy đọc voz tới 3h, sau đó code tới 4h30, điền timesheet rồi chen chân lên xe buýt về nhà nghỉ ngơi. Mấy tháng đầu đi làm, mình chỉ được làm những công việc “ruồi bu” như fix bug, sửa text, sửa layout, đọc document, họp hành báo cáo. Phỏng vấn về Web MVC và vào chỉ làm WPF. Mình đã tự trấn an: “Chỉ cần skills vững là được, ở đâu không quan trọng, hữu xạ tự nhiên hương!” Nhưng thực tế đã cho mình một cú vã sấp mặt, mình quen dần với cuộc sống làng nhàng, sáng lên xe bus tối về nhà, cái “hữu xạ” của mình không còn đủ sức “tự nhiên hương” trong một môi trường như vậy nữa. Lúc đó mình mới bàng hoàng nhận ra rằng chính mình phải tự bắt lấy những cơ hội khác tốt hơn. Và kết quả các bạn thấy đó, có một Code Dạo thường xuyên chém gió cùng anh em như hiện giờ. Cụ thể, mình đã làm điều đó như thế nào? Xin lưu ý, phần này không phải để review hay bóc phốt công ty, cũng không phải để quảng cáo. Trải qua 5-6 năm trong cuộc đời code dạo. Mình rút ra một phương châm hành nghề cơ bản rằng: Cơ hội không bao giờ thiếu, chỉ cần bạn biết tìm chúng ở đúng chỗ, và đúng cách. Một vài tips cơ bản dành cho các bạn: Chủ động ngắm – bắn công việc mà bạn muốn Ngành IT trước giờ vẫn hot, tại sao vẫn phải chủ động? Nếu có ai thắc mắc điều này thì mình xin giải đáp: đơn giản là thế chủ động luôn mang lại lợi ích lớn cho bạn. Ví dụ bạn nghe đồn về môi trường công ty A rất tốt và phúc lợi siêu xịn đã lâu nhưng chưa có cơ hội gia nhập, thì điều bạn cần làm là ghim ngay website việc làm lên bookmark bar, mỗi ngày refresh 1 lần xem có job nào của công ty đó mở chưa. Nhiêu đó chưa đủ, follow luôn facebook, đặt See First, có bạn bè nào đang làm ở đó thì nhắn nhỏ 1 câu: Ê khi nào có job hú tau liền nhé! Việc chủ động ngắm – bắn này giúp bạn tự chủ, tự tin và tự chịu trách nhiệm với lựa chọn của mình (đương nhiên). Bản thân mình cũng đã trải qua dăm ba lần chóng đến rồi cũng chóng đi nên mình hiểu, chỗ ngồi code thì muôn hình vạn trạng, chịu khó bỏ thời gian tìm hiểu kĩ một tí, chứ để ngồi vào rồi mới thấy không vừa, rút ra không có dễ đâu à! Rõ ràng mục tiêu và lộ trình sự nghiệp của mình Cái này tưởng đơn giản nhưng thật ra không hề. Bạn cần biết rõ mình muốn gì để xác định “chỗ ngồi code” hiện tại có phù hợp với bạn không. Nhưng cuộc sống luôn có ups and downs, VD bạn muốn up skills thật nhanh thì nên tìm kiếm cơ hội được tham gia vào các big projects và đồng thời chịu thức đêm debug trong khi bạn bè với công việc tàn tàn đã yên giấc nồng. Người ta hay nói Dev chọn việc chỉ cần lương cao là được, nhưng kinh nghiệm cá nhân mình thấy rõ là những yếu tố môi trường khác cũng ảnh hưởng không nhỏ tới “chỉ số hạnh phục” của tụi mình. Quay lại câu chuyện phía trên của mình, nếu mình vẫn yên vị với job Junior việc nhẹ lương cao đó, hẳn đã không có Code Dạo đang chia sẻ về việc chọn “chỗ ngồi code” với các bạn rồi. Đã có cách, thế còn chỗ thì sao? Demo luôn cho các bạn một chỗ mà mình đã tự trải nghiệm và QA/QC chất lượng: VietnamWorks InTECH (tiền thân là topITworks). Nói sơ một tí, đây là brand tuyển dụng dành riêng cho nhóm ngành IT của VietnamWorks, với “tuổi đời” lâu năm trên thị trường việc làm trực tuyến, trên site luôn có tầm 900 – hơn 1000 jobs uy tín. Ngoài ra InTECH đã và đang tổ chức rất nhiều hoạt động thú vị và bổ ích để anh em trong ngành giao lưu và kết nối. Tạm kết À cuối cùng, bài viết này đã có quảng cáo, không có tiền thì ngồi code làm sao! Nhưng yên tâm đi, tui tin các bạn sẽ tìm được một “chỗ ngồi code” xịn hơn với sự trợ giúp của VietnamWorks InTECH. Thử ngay nhé! Facebook: Website: Rate this: Like this: Related
The story begins with a Junior at the software company Ep De De Goat (or company F for short) - that's me. At that time, Code Dao was just a young man who had just graduated from school, knew a few things about C# MVC and was already working. I thought I was good at everything. Received my diploma, just opened my CV on VietnamWorks and waited at home, when a company called me for an interview. I don't remember how to talk about it, but the day before the interview I called for an offer, and I accepted it. Contrary to rumors, my work back then was quite easy and I never had OT. Go to work at 9am, read children's books and websites until 11am, code for half an hour and then go eat. After eating, I went to bed, woke up at 2 a.m. and read until 3 a.m., then coded until 4:30 a.m., filled out the timesheet and then got on the bus to go home to rest. In the first few months of working, I was only able to do mundane tasks such as fixing bugs, editing text, editing layouts, reading documents, and reporting in meetings. Interview about Web MVC and get into WPF. I reassured myself: "As long as your skills are strong, it doesn't matter where you go, the natural scent comes naturally!" But reality gave me a hard knock, I gradually got used to the average village life, taking the bus home in the morning and going home at night, my "talentedness" was no longer strong enough to "smell naturally" in an environment like that. so again. At that time, I was shocked to realize that I had to take better opportunities for myself. And as a result, you see, there is a Code Dao who often chats with his brothers like now. Specifically, how did I do it? Please note, this section is not to review or expose the company, nor is it for advertising. Spent 5-6 years in the coding life. I draw a basic practice motto: Opportunities are never lacking, as long as you know how to find them in the right place, and in the right way. A few basic tips for you: Proactively aim and shoot for the job you want. The IT industry is still hot, why do you still have to be proactive? If anyone has questions about this, I would like to answer: simply being proactive always brings great benefits to you. For example, you've heard rumors about company A's very good environment and excellent benefits for a long time but haven't had the chance to join, then what you need to do is immediately pin the job website to the bookmark bar, refresh it once a day to see if it works. Is there any job opening for that company yet? That's not enough, follow Facebook, set See First, if you have any friends who are working there, send a small message: Hey when you get a job, I'll be there soon! Actively aiming and shooting helps you be autonomous, confident and responsible for your choices (of course). I myself have also experienced it a few times, quickly coming and quickly leaving, so I understand, the code seats come in all shapes and sizes, so take the time to research a bit, but only when you sit in do you realize it doesn't fit. It's not easy to pull out! Be clear about your goals and career path. This may seem simple, but it's actually not. You need to know clearly what you want to determine whether your current "code seat" is right for you. But life always has ups and downs. For example, if you want to upgrade your skills quickly, you should look for opportunities to participate in big projects and at the same time stay up all night debugging while your friends with ruined jobs sleep peacefully. People often say that Devs only need a high salary to choose a job, but my personal experience clearly shows that other environmental factors also significantly affect our "happiness index". Going back to my story above, if I had still settled with that Junior job with a light, high-paying job, Code Dao would not have been sharing about choosing a "code seat" with you guys. There is a way, so what about the space? Demo always gives you a place where you can experience and do quality QA/QC yourself: VietnamWorks InTECH (formerly topITworks). To put it briefly, this is a recruitment brand dedicated to the IT industry group of VietnamWorks, with a long history in the online job market, with about 900 - more than 1,000 prestigious jobs on the site. In addition, InTECH has been organizing many interesting and useful activities for people in the industry to exchange and connect. Conclusion Finally, this article has ads. If you don't have money, how can you code! But rest assured, I believe you will find a better "code seat" with the help of VietnamWorks InTECH. Try it now! Facebook: Website: Rate this: Like this: Related
Chuyện là, vào 1 ngày đẹp trời nọ, mình bỗng dưng thèm món bánh cuốn Việt Nam. Xem hướng dẫn trên mạng, thấy cũng dễ nên mình bắt tay vào làm luôn. Nhân tiên hũ hành phi gấu mang qua cũng sắp hết, mình nhờ gấu hướng dẫn cách làm hành phi , phi nguyên nửa ký để ăn dần luôn. Câu chuyện về nồi hành cháy và chuyện áp dụng công nghệ bắt đầu từ đấy…. Chuyện nồi hành bị cháy và cú plot twist méo ai ngờ tới Nói là làm, mình mua tận nửa ký hành tím, hì hục xắt mỏng, đổ chảo ngập dầu chờ dầu sôi rồi cho hành vào. Vừa làm, mình vừa video call với gấu để hướng dẫn cho nó chi tiết. Gấu dặn chờ khoảng 5 phút, tới khi hành vàng thì vớt ra. Chờ tận 5 phút, mình thấy nồi hành vẫn còn .. trắng bóc , nhưng gấu vẫn bảo thôi cứ vớt ra đi, kẻo nó cháy Vớt ra xong, nồi hành không vàng cũng không giòn mà cứ … ướt ướt, mềm mềm ỉu ỉu như con ciu tiu nghỉu. Vốn tiếc của, mình thử bỏ đống hành đó lên chảo xào sơ lại xem nó có khô đi không. Xào được 1 chút thì hành … dính chảo, vừa mềm cháy đen thui , phải đem đổ bỏ. Phi hành thất bại làm mình trằn trọc không ngủ được . Rõ ràng mình làm y chang lời gấu dặn nhưng hành bị ỉu, bị cháy. Lẽ nào do mình cắt nhỏ quá nên hành ra nước, đảo nhiều quá nên hành bị nát chăng?? Thế rồi hôm sau đó, mình lại ăn quả plot twist méo thể ngờ từ gấu! Gấu mình dùng hành Bình Định, ít nước hơn , lại dùng bếp ga nên nóng nhanh hơn. Còn mình dùng hành thường, chạy bếp điện , nên nhiều khi phải chờ lâu nồi hành mới chín…. Nửa ký hành đã ra đi oan uổng, vì mình quên không nghe lời khuyên của bác Tào Mạnh Đức. Đến chuyện nghe lời khuyên và áp dụng công nghệ Ủa, mà nồi hành bị cháy thì liên quan gì đến chuyện code mà phải viết vlog? Tưởng như không có liên quan, vậy mà lại có đấy! Nhìn nồi hành bị cháy, mình chợt nhận ra rằng: Ngẫm lại trong lĩnh vực công nghệ, nhiều người lại mải chạy theo công nghệ mà quên mất điều này: Thấy các công ty to như Google, Netflix dùng kiến trúc microservice nên cũng a dua chạy theo dùng. Trong khi công ty người ta vài trăm nhân viên từ Dev với SRE , team mình chỉ le hoe 3, 4 ông dev cỏ. Gắn microservice chỉ làm code lâu hơn, thêm chức năng khó hơn mà chả thấy được lợi ích gì. Thấy nhà nhà dùng React/Angular nên đú theo để code trang web. Trong khi web chỉ là web cỏ dạng tin tức, blog , cần SEO tốt chứ không cần tương tác nhiều. Dùng React vừa tốn công viết front-end lẫn back-end , lại không biết SEO thì vỡ mặt. Sản phẩm của người ta chức năng ổn định, vài chục ngàn người dùng, có unit test/automation test đầy đủ. Sản phẩm của mình chức năng chính chưa xong, chưa có người dùng mà đã vội viết automation test tùm lum. Mỗi lần sửa chức năng là sửa test thấy mẹ ! … Do vậy, không phải có ích với người khác cũng sẽ có ích với mình. Trước khi muốn áp dụng công nghệ, bắt chước qui trình… của những công ty lớn, hãy cố gắng tìm hiểu tại sao họ làm vậy, liệu nó có phù hợp với team mình không ; chứ đừng nhắm mắt cắm đầu làm theo nha! Nhẹ thì chỉ bị cháy nồi hành như mình thôi. Còn nặng hơn có khi phải … đập đi xây lại toàn bộ hệ thống đấy! Cái kết có hậu Tất nhiên, quân tử báo thù 10 năm chưa muộn. Vấp ngã ở đâu thì đứng lên ở đấy. Mình lại tiếp tục … mua thêm nửa kí hành, xắt nhỏ, rắc muối, phơi khô, chiên 15 phút theo lời gấu dặn. Thành phẩm lần này ok hơn rất nhiều, hành hơi vàng giòn là vớt ra, chờ 5 phút để toàn bộ hành chín, sau đó cất vào hũ là mình đã có hành phi ăn dần rồi. Câu chuyện kết thúc hoàn toàn có hậu, mình vừa có hành phi ăn chung với bánh cuốn, thoả được cơn thèm đồ Việt Nam; vừa có 1 bài học để đời, có cái để viết blog chia sẻ với các bạn. Đấy, câu chuyện của mình đến đây là hết rồi. Còn câu chuyện của bạn thì sao?? Đã có bao giờ bạn áp dụng lời khuyên ngu xong mới thấy không hiệu quả chưa? Đã bao giờ team bạn áp dụng qui trình, công nghệ như người ta, xong mới thấy nó … không hề phù hợp chưa? Hãy chia sẻ chuyện của bạn trong mục comment nhé! Rate this: Like this: Related
The story is, one fine day, I suddenly craved Vietnamese rice rolls. I looked at the instructions online and found it easy, so I started doing it. By the way, the jar of fried onions brought by the bear was about to run out. I asked the bear to show me how to make fried onions, frying a whole half a kilo to eat later. The story of the burning onion pot and the application of technology begins from there... The story of the pot of burnt onions and the plot twist that no one expected. That said, I bought half a kilo of purple onions, chopped them into thin slices, filled a pan with oil, waited for the oil to boil, then added the onions. As I did, I video called the bear to give him detailed instructions. Bear told me to wait about 5 minutes, until the onion turned golden, then take it out. After waiting for 5 minutes, I saw that the pot of onions was still... white, but the bear still told me to take it out, lest it burn. After taking it out, the pot of onions was neither golden nor crispy, but just... wet, soft and squishy. like a miserable child. Feeling sorry for myself, I tried putting those onions in the pan and stir-frying them to see if they would dry out. After stir-frying for a bit, the onions... stuck to the pan, became soft and burned black, and had to be thrown away. The failed flight made me unable to sleep. Obviously I did exactly as he told me, but the onions were soggy and burned. Could it be that I cut the onions too finely and the onion water leaked out? Is it possible that I stirred too much and the onions got crushed?? Then the next day, I ate an unexpected plot twist from a bear! I use Binh Dinh onions, less water, and use a gas stove so it heats up faster. As for me, I use regular onions and run an electric stove, so sometimes I have to wait a long time for the onions to cook... Half a kilogram of luggage passed away in vain because I forgot to listen to Uncle Cao Manh Duc's advice. When it comes to listening to advice and applying technology, what does a pot of burned onions have to do with coding and having to write a vlog? It seems unrelated, but it is! Looking at the pot of burnt onions, I suddenly realized: Thinking back in the technology field, many people are so busy chasing technology that they forget this: Seeing that big companies like Google and Netflix use microservice architecture, they also started using it. While other companies have several hundred employees from Dev to SRE, our team only has 3 or 4 grass developers. Attaching microservices only makes the code take longer, adding more difficult functionality without seeing any benefits. Seeing that they use React/Angular, I followed it to code the website. While the web is just a news and blog website, it needs good SEO but does not need much interaction. Using React takes a lot of effort to write front-end and back-end, and if you don't know SEO, you'll be broke. Their product has stable functionality, tens of thousands of users, and has full unit testing/automation testing. The main function of my product is not yet completed, there are no users yet, but I have to rush to write automation tests everywhere. Every time you fix a function, you fix it and test it! … Therefore, being useful to others does not necessarily mean being useful to yourself. Before wanting to apply technology, imitate processes... of big companies, try to find out why they do it, whether it is suitable for your team; Don't close your eyes and just follow along! If it's mild, it'll just burn the pot of onions like me. Even worse, you might have to... destroy and rebuild the entire system! Happy ending Of course, it is not too late for a gentleman to take revenge after 10 years. Wherever you stumble, stand up. I continued... bought another half kilo of onions, chopped them, sprinkled with salt, dried them, and fried them for 15 minutes as instructed. The finished product this time is much better, the onions are slightly golden and crispy, then take them out, wait 5 minutes for all the onions to cook, then put them in a jar and you will have fried onions to eat. The story ended completely happily, I just had fried onions to eat with rice rolls, satisfying my craving for Vietnamese food; Just had a life lesson, something to blog about and share with you. Well, this is the end of my story. What about your story?? Have you ever applied stupid advice only to find it ineffective? Has your team ever applied the same process and technology as others, only to find it... not suitable at all? Please share your story in the comments section! Rate this: Like this: Related
Cách đây vài hôm, có thằng bạn nhờ mình coi hộ nó cái web, chỉ có cách chống DDOS, cách hạn chế web bị crawl, bị spam v…v Sau 1 hồi nghiên cứu, tìm hiểu cách DDOS và chống DDOS, cách crawl và chống crawl, mình bỗng nhận ra: trong giới công nghệ, có nhiều cuộc “chạy đua vũ trang” ngầm, kéo dài cả thập kỉ, rất hay ho mà nhưng lại ít ai biết. Do vậy, mình viết bài này để chia sẻ cho các bạn biết nhé! Ad-block vs Chống Ad-block Hầu như 69.96% các trang tin tức đều có gắn quảng cáo, tracking để … kiếm thêm tiền (kể cả blog này cũng vậy). Đây là nguồn doanh thu chính của các trang này. Thế nhưng, từ phía góc nhìn người dùng, không ai muốn xem web mà bị quảng cáo , không ai muốn mình bị Google, Facebook theo dõi , biết mình đã ghé thăm trang ABC bậy bạ… Thế là các chương trình ad-block ra đời. Cơ chế hoạt động của chúng khá đơn giản: Chặn các URL có chứa ad, tracking của Facebook, Google (Chặn từ browser hoặc file host/DNS) Can thiệp vào HTML của trang web, ẩn đi các banner, ad quảng cáo Tất nhiên, không có quảng cáo thì sẽ không có thu nhập. Các trang phải tìm cách … chống ad-block. Hiện nay, họ làm theo 1-2 cách sau: Sử dụng các chương trình chống ad-block ( ) nếu script quảng cáo bị chặn, thì sẽ … hiển thị popup to đùng đề nghị các bạn disable ad-block Hiển thị ad 1 cách “lượn lẹo”, tránh bị ad-block phát hiện. Tất nhiên, vỏ quýt dày có móng tay nhọn. Giờ giang hồ cũng đang phát triển 1 số addon chống anti-ad-block , giúp ngăn chặn trang web phát hiện người dùng đang dùng ad-block. Mệt mỏi ghê chưa! Capcha vs Bot Một cuộc chạy đua vũ trang khác không kém phần sôi động là cuộc chạy đua giữa Capcha và Bot. Với những trang web có tính năng cho phép người dùng đăng, post bài, mấy anh dev có thể dễ dàng viết bot hoặc automation để làm trò y hệt như người vậy. Làm sao để ngăn chặn bot? Cách đơn giản nhất là kiểm tra xem người đăng bài là người hay bot ! Ngày xưa, với ReCaptcha v1 , ta hiển thị 1 dòng chữ, bắt con người đọc và gõ vào. Nếu là bot thì bot sẽ … bó tay, không đọc được. Dần đà, bot trở nên khôn hơn . Với công nghệ OCR, việc nhận dạng chữ viết không còn quá khó khăn nữa. Thế là, mấy bạn làm Captcha bắt đầu phát triển ReCaptcha v2 , bắt mấy con bot nhận diện nhà cửa, xe cộ. Đấy, mỗi lần các bạn phải gõ captcha mệt phở, thì hãy chửi mấy ông dev viết ra bot , để dân tình phải dùng captcha chặn nha! Có một số trang như Facebook thì họ cao tay hơn, có rate limit , nếu người dùng có hành động lạ (unfriend, gửi kết bạn quá nhiều) sẽ chặn lại bớt, lúc đó bot hoặc người cũng bó tay (tất nhiên dân mạng VN cao tay hơn, FB chặn gì cũng qua được hết). Scraper/Crawler và Anti Crawler Một số trang web như tin tức, thông tin chứng khoán, dữ liệu công, … có rất nhiều dữ liệu, nhưng lại không cung cấp API cho người dùng. Hoặc 1 số trang TMDT như Tiki, Shopee , Thegioididong , có thông tin giá sản phẩm, nhưng không có API để truy cập. Tức mình, mấy ông dev (lại mấy ông dev) lại ra tay viết mấy con bot/crawler để tải dữ liệu từ mấy trang đấy đem về hệ thống của mình. Có nhiều trang thì họ cho cào thoải mái, nhưng có nhiều trang thì họ lại … cực ghét vụ này: Cào nhiều sẽ tốn tài nguyên, làm chậm hệ thống bên họ (Có nhiều bác … cào sập cbn server nhà người ta) Các thông tin này mặc dù công khai, nhưng không được phép đi chia sẻ lung tung khi chưa cho phép Cố ý không cho người ngoài xem và lưu các thông tin này (VD các trang TMDT họ không lưu, không hiện lịch sử giá, vì có thể ảnh hưởng đến sale) Thế là họ tung ra những “chiêu” sau: Sử dụng rate limit, chặn hoặc throttle khi thấy có quá nhiều request tới từ cùng 1 IP Load dữ liệu từ JSON, AJAX, nếu cào HTML sẽ không thấy gì cả Hiển thị capcha nếu thấy đối tượng tình nghi (các bạn xài adblock lâu lâu lướt lazada, shopee sẽ thấy captcha nhé) Một số trang truyện ở VN chơi trò … chuyển chữ thành ảnh, thêm watermark, mã hoá file ảnh … để tránh chuyện bị chôm mất Tiếc thay, đạo cao 1 tấc, ma cao 1 trượng. Giang hồ có rất nhiều cách để vượt qua những chiêu này: Dùng 3G, 4G hoặc proxy để đổi và xoay vòng IP, tránh bị block Không cào được HTML thì chạy luôn cả cái browser (Selenium, Puppeteer) để hiển thị dữ liệu. (Nhiều trang họ detect nếu là HeadlessChrome v…v thì họ cũng… chặn cmnl) Cuộc chiến tới bây giờ vẫn… chưa có hồi kết =)). Các bạn có thể tìm hiểu thêm nhiều trò hay ho ở đây: DDoS và chống DDoS DDoS (Distributed Denial-of-Service) – Tấn công từ chối dịch vụ là hình thức tấn công bằng cách gửi rất nhiều request tới 1 server nào đó. Mục đính là làm hết băng thông, hết tài nguyên, để service này không tiếp tục hoạt động được. Ví dụ đơn giản, gần nhà bạn có tiệm trà sữa. Kẻ DDOS sẽ t hả vài trăm thằng giang hồ vào xếp hàng, mua trà sữa xong đổ bỏ. Người qua đường muốn uống cũng không thể vào mua trà sữa được nữa. Trò này dân tình dùng rất nhiều, có nhiều hacker còn có cả botnet (một hệ thống vài trăm, vài ngàn bot), khi cần nguyên botnet này sẽ đồng loại tấn công vào 1 trang web , gây nghẽn cmn mạng. Có khá nhiều cách chống DDOS: Chống, chặn các request lại từ tầng Firewall Nhiều forum ngày xưa hiển thị 1 tấm hình, phải click thì mới vào được, chống được 1 phần DDOS Sử dụng các service chống DDOS như Cloudflare để họ lo hết Tất nhiên, các biện pháp này chỉ mang tính tương đối. Bản thân Cloudflare cũng t ừng bị DDOS với lưu lượng gần 400 Gbps (50GB/s) . Thật ra, chuyện DDOS và chống DDOS là 1 chủ đề rất dài và hay ho, nói cả quyển sách may ra mới hết. Trong phần này mình chỉ tóm gọn cho anh em biết sơ thôi nhé. Tạm kết Các bạn thấy không, những cuộc “chạy đưa vũ trang” này diễn ra lặng lẽ trong cả thập kỉ nhưng chúng ta vẫn không hề hay biết. Đến khi tìm hiểu, ta mới thấy mấy ông dev đã bỏ công sức ra nghiên cứu, chạy đua như thế nào. Còn bạn thì sao, bạn có biết cuộc chạy đua vũ trang nào hay ho trong giới công nghệ nữa không? Nhớ comment chia sẻ cho người khác biết nhé. Rate this: Like this: Related
A few days ago, a friend asked me to take a look at his website. There were only ways to prevent DDOS, how to limit the website from being crawled, spammed, etc. After a while of research, I learned how to DDOS and prevent DDOS, how to crawl. and anti-crawling, I suddenly realized: in the technology world, there are many underground "arms races" that have lasted for decades, very interesting but few people know about. Therefore, I wrote this article to share with you guys! Ad-block vs Anti-Ad-block Almost 69.96% of news sites have ads and tracking installed to... make more money (including this blog). This is the main source of revenue for these sites. However, from the user's perspective, no one wants to view the web and be exposed to ads, no one wants to be tracked by Google or Facebook, knowing that they have visited a dirty ABC site... So ad-block programs appear. life. Their mechanism of action is quite simple: Block URLs containing ads and tracking from Facebook and Google (Block from browser or host/DNS file) Interfere with the website's HTML, hide banners and advertising ads Of course, without advertising there would be no income. Sites must find ways to... prevent ad-blocking. Currently, they do it in 1-2 ways: Use anti-ad-block programs ( ) if the advertising script is blocked, it will... display a large popup asking you to disable ad-block Display ads in a "sneaky" way, avoiding detection by ad-block. Of course, thick tangerine peels have sharp nails. Now Gypsy is also developing a number of anti-ad-block addons, which help prevent websites from detecting that users are using ad-block. So tired yet! Capcha vs Bot Another equally exciting arms race is the race between Capcha and Bot. With websites that have features that allow users to post articles, developers can easily write bots or automation to do the same thing as humans. How to prevent bots? The simplest way is to check whether the person posting is a human or a bot! In the past, with ReCaptcha v1, we displayed a line of text and forced people to read and type it. If it's a bot, the bot will... give up and can't read it. Gradually, the bot becomes smarter. With OCR technology, handwriting recognition is no longer too difficult. So, Captcha makers started developing ReCaptcha v2, forcing bots to identify houses and vehicles. See, every time you have to type a captcha, you should curse the devs who write bots, so people will have to use captchas to block it! There are some sites like Facebook that are more skilled, have a rate limit, if a user has strange actions (unfriending, sending too many friends) they will block them, then bots or people will also give up (of course netizens). Vietnam is more skilled, anything FB blocks can get through). Scraper/Crawler and Anti Crawler Some websites such as news, stock information, public data, etc. have a lot of data, but do not provide APIs for users. Or some e-commerce sites such as Tiki, Shopee, Thegioididong, have product price information, but no API to access. Angry, the devs (again, the devs) decided to write bots/crawlers to download data from those sites and bring them to their system. There are many sites where they allow scratching freely, but there are many sites where they... really hate this: Scratching too much will waste resources, slowing down their system (There are many people... raking down other people's cbn servers) Although this information is public, it is not allowed to be shared freely without permission Intentionally do not let outsiders see and save this information (for example, they do not save or display price history on e-commerce sites, because it can affect sales). So they launched the following "tricks": Use rate limit, block or throttle when you see too many requests coming from the same IP Load data from JSON, AJAX, if you scratch the HTML you won't see anything Show captcha if you see a suspect (If you use adblock from time to time to surf lazada or shopee, you will see the captcha) Some comic pages in Vietnam play games... converting text into images, adding watermarks, encrypting image files... to avoid being stolen. Unfortunately, the Tao is 1 inch tall, the devil is 1 meter tall. Gypsy has many ways to overcome these tricks: Use 3G, 4G or proxy to change and rotate IP, avoid being blocked If you can't scrape the HTML, run the browser (Selenium, Puppeteer) to display the data. (Many sites they detect, if they are HeadlessChrome etc., they also... block cmnl) The war is still... not over yet =)). You can learn more cool games here: DDoS and anti-DDoS DDoS (Distributed Denial-of-Service) - Denial-of-service attack is a form of attack by sending many requests to a certain server. . The purpose is to run out of bandwidth and resources, so that this service cannot continue to operate. For a simple example, there is a milk tea shop near your house. The DDOS guy will put a few hundred gangsters in line, buy milk tea and then throw it away. Passersby who want to drink can no longer come in to buy milk tea. People use this game a lot, many hackers even have botnets (a system of several hundred, several thousand bots). When needed, this entire botnet will simultaneously attack a website, causing network congestion. There are many ways to prevent DDOS: Prevent and block requests from the Firewall layer Many forums in the past displayed a picture that had to be clicked to access, partially preventing DDOS Use anti-DDOS services like Cloudflare and let them take care of everything Of course, these measures are only relative. Cloudflare itself was also DDOSed with traffic of nearly 400 Gbps (50GB/s). Actually, the story of DDOS and anti-DDOS is a very long and interesting topic, it would take a whole book. In this part, I will only briefly summarize it for you. Conclusion You see, these "arms transfers" have been going on quietly for a decade but we still don't know about them. When we learn more, we see how much effort the developers put into researching and racing. How about you, do you know any other interesting arms races in the technology world? Remember to comment and share with others. Rate this: Like this: Related
Kì trước, mình đã có chia sẻ về cái gọi là căn bản và tư duy lập trình , cùng với tầm quan trọng của việc tư duy trong ngành lập trình . Mình cũng có khuyên là rèn luyện tư duy lập trình cũng giống như tập tạ, muốn giỏi thì phải chịu khó rèn luyện thường xuyên . Nhiều bạn mới hỏi mình: Ủa vậy rèn luyện tư duy lập trình như thế nào hả anh? Vì vậy, trong bài này mình sẽ chia sẽ về 4 phương pháp rèn luyện tư duy lập trình mà mình thấy hiệu quả nhé! 1. Học kĩ và nắm vững căn bản trước Khi mới học code, những kiến thức căn bản như: hàm, biến, mảng, vòng lặp là những thứ nền tảng của tư duy lập trình. Bạn phải hiểu cách biến, mảng lưu giữ giá trị, cách tách hàm ra sao thì mới ra có thể áp dụng chúng vào giải quyết vấn đề. Học sâu hơn, sau một thời gian, bạn sẽ biết có những thuật toán, cấu trúc dữ liệu khác ngoài mảng. Mỗi cấu trúc dữ liệu sẽ có ưu điểm nhược điểm riêng, nhưng bạn phải hiểu rõ chúng thì mới biết cách tư duy, áp dụng vào bài toán. Giả sử, bài toán yêu cầu lưu trữ danh sách 1 triệu sinh viên, tra cứu sinh viên theo mã số sao cho nhanh nhất: Nếu chỉ biết về mảng, bạn sẽ lưu toàn bộ 1 triệu sv này vào 1 mảng, sau đó loop để tìm từng sinh viên. Nếu nắm vững về cấu trúc dữ liệu, bạn sẽ biết cấu trúc HashMap/Hashtable rất phù hợp để lưu trữ, lấy dữ liệu theo dạng key-value, tra cứu rất nhanh với độ phức tạp O(1) Về sau, khi học những thứ khó hơn, cao siêu hơn như thư viện/framework cũng vậy; chỉ cần bạn nắm vững căn bản của chúng thì sẽ dễ học, dễ áp dụng hơn nhiều. 2. Làm bài tập về thuật toán Để có tư duy tốt, phải nắm vững cơ bản. Nhưng làm sao để nắm vững chúng bây giờ?? Bật mí nhỏ nè, dù bạn có học kĩ lý thuyết tới mấy, chúng cũng chỉ là … lý thuyết thôi! Để nắm vững kiến thức lập trình, thuật toán, bạn phải chịu khó .. làm bài tập để áp dụng chúng. Ví dụ như một bài toán mà Google hay hỏi: Làm sao để cân bằng một cây nhị phân (binary tree). Bài toán này sẽ có nhiều cách giải: Có cách giải đơn giản nhưng không optimize Có cách giải gọn nhưng khó hiểu Có cách độ phức tạp cao nhưng không cần memory Có cách chạy nhanh nhưng tốn memory Khi giải những bài tập này, bạn sẽ học được cách áp dụng những cấu trúc dữ liệu vào thực tế, cách viết code cho chúng chạy ra sao. Nguồn học thì trên mạng có cũng nhiều, mình chỉ giới thiệu một số sách/web hay nên học: Sách Cracking the Coding Interview Sách Algorithm 4th Edition Các trang thi thố, giải bài tập code: Hackerank, Code Fight … 3. Làm sản phẩm để có tư duy sản phẩm Việc giải bài tập sẽ rèn cho bạn cách tư duy, cách giải quyết những vấn đề nhỏ. Tuy nhiên, khi đi làm thực tế , các dự án phần mềm đa phần là những vấn đề … to to , do nhiều vấn đề nhỏ ghép lại. Vì thế, bên cạnh tư duy thuật toán, tư duy sản phẩm cũng rất quan trọng. Nó sẽ giúp bạn phát hiện được sản phẩm cần những tính năng gì, khi dự án bự lên thì code như thế nào cho không bị rối, dễ bảo trì. Do vậy, sau khi làm toán nhiều, các bạn có thể làm một số pet project nhỏ để luyện kĩ năng sản phẩm. Bạn sẽ vô cùng ngạc nhiên trước những thứ mình có thể học được như: Cách nghĩ requirement cho sản phẩm Cách thiết kế flow, UI/UX cho tốt Cách tổ chức code trong một project Hiểu sâu hơn về ngôn ngữ lập trình , về những công nghệ mình sử dụng Nếu bạn đã đi làm, đừng nghĩ là mình đã làm dự án thực tế rồi, cần gì phải làm pet project nhé! Đa phần các dự án thực tế đã có cấu trúc sẵn, có qui trình rõ ràng, có design làm hết, công việc của chúng ta chỉ có implement là nhiều. Tự làm một dự án từ đầu, bạn sẽ học được nhiều điều hơn đấy! Nếu các bạn mới học, muốn làm dự án nhưng chưa có ý tưởng thì có thể tham khảo bài Những project nhỏ bạn có thể dùng để luyện tập nha. 4. Học rộng hơn, học những thứ mình chưa biết Một trong những cách hiệu quả để rèn luyện tư duy lập trình, đó là học hỏi cách người khác tư duy ; học những thứ khác hoàn toàn với những thứ mình hay dùng để học cách tư duy mới: Trước giờ bạn làm việc với những ngôn ngữ static typing như Java, C# , cảm thấy phải khai báo đủ thứ method, class rất mệt mỏi? Hãy thử những ngôn ngữ dymanic typing như Python, JavaScript sida để xem code có thể viết ngắn gọn ra sao. (Các bạn Python cũng nên thử Java, C++ xem). Hoặc trước giờ các bạn code dùng OOP, tạo class và hàm, kế thừa v…v. Hãy thử dùng Scala, Haskell hoặc JavaScript , code theo phong cách Functional Programming , sử dụng function thay vì class xem sao! Không chỉ gói gọn trong ngôn ngữ, bạn làm back-end có thể thử học front-end để chửi thề với CSS, JavaScript ; bạn là front-end có thể học back-end để nhức đầu với server configuration, với SQL. Học một thứ mới, bạn sẽ có cái nhìn rộng hơn, tổng quát hơn về ngành mình; đồng thời mở rộng đầu óc, nâng cao khả năng tư duy của bạn. Nói nhỏ nhé, nếu muốn làm full-stack developer thì cũng phải nắm đủ thứ hết ấy: từ front-end, back-end, security, database, DevOps đủ cả! Kết Trong bài này, mình đã chia sẻ về 4 phương pháp khá hiệu quả mà mình hay dùng để nâng cao khả năng tư duy lập trình. Nếu các bạn có kinh nghiệm, phương pháp nào mà mình cảm thấy hiệu quả thì cứ comment phía dưới nha! 30s quảng cáo Anh Lê Quang Song bạn mình, CEO của Cybersoft.vn cũng có một khóa học về Tư Duy Lập Trình, Phân Tích Bài Toán . Khoá này khá phù hợp cho các bạn trái ngành, hoặc hổng căn bản muốn tìm hiểu kiến thức cơ bản nha. Bạn nào có hứng thú có thể tìm hiểu thêm tại đây: . Password là bạn anh Code Dạo để được hưởng ưu đãi nhen =)). P/S 2: Bonus vlog cho những bạn nào muốn ngắm khuôn mặt cute của mình. Các bạn nhớ subscribe tại: bit.ly/codedaotube nha Rate this: Like this: Related
Last time, I shared about the so-called basics and thinking of programming, along with the importance of thinking in the programming industry. I also advise that practicing programming thinking is like lifting weights. If you want to be good, you have to practice regularly. Many people have asked me: So how do you practice programming thinking? Therefore, in this article I will share about 4 methods to practice programming thinking that I find effective! 1. Study carefully and master the basics first. When first learning to code, basic knowledge such as functions, variables, arrays, and loops are the foundations of programming thinking. You must understand how variables and arrays store values ​​and how to separate functions to be able to apply them to solve problems. Study deeper, after a while, you will know there are other algorithms and data structures besides arrays. Each data structure will have its own advantages and disadvantages, but you must understand them clearly to know how to think and apply them to the problem. Suppose, the problem requires storing a list of 1 million students, looking up students by code in the fastest way: If you only know about arrays, you will save all 1 million students in an array, then loop to find each student. If you have a good grasp of data structures, you will know that the HashMap/Hashtable structure is very suitable for storing and retrieving data in key-value form, looking up very quickly with O(1) complexity. Later, when learning more difficult and advanced things like libraries/frameworks; As long as you master their basics, it will be much easier to learn and apply. 2. Do exercises on algorithms To have good thinking, you must master the basics. But how to master them now?? A little secret, no matter how carefully you study the theories, they are still just... theories! To master programming and algorithm knowledge, you have to work hard... do exercises to apply them. For example, a problem that Google often asks: How to balance a binary tree. This problem will have many solutions: There is a simple solution but no optimization There is a short explanation, but it's difficult to understand There is a highly complex way that does not require memory There is a way to run it fast but it consumes memory When solving these exercises, you will learn how to apply data structures in practice, and how to write code for them to run. There are many learning resources online, I just recommend some good books/websites to learn: Cracking the Coding Interview book Algorithm Book 4th Edition Pages for competing and solving code exercises: Hackerrank, Code Fight... 3. Make products to have product thinking Solving exercises will train you how to think and how to solve small problems. However, when it comes to real work, software projects are mostly big problems, due to many small problems combined. Therefore, besides algorithmic thinking, product thinking is also very important. It will help you discover what features the product needs, and when the project gets bigger, how to code so that it is not confusing and easy to maintain. Therefore, after doing a lot of math, you can do some small pet projects to practice your product skills. You will be amazed at the things you can learn such as: How to think about product requirements How to design flow and UI/UX well How to organize code in a project Gain a deeper understanding of the programming language and technologies you use If you are already working, don't think that you have already done a real project, there is no need to do a pet project! Most real projects already have a pre-structured structure, a clear process, and design to do it all, our job is just implementation. Doing a project yourself from scratch, you'll learn a lot more! If you are new to studying and want to do a project but don't have any ideas, you can refer to the article Small projects you can use for practice. 4. Learn more broadly, learn things you don't know. One of the effective ways to practice programming thinking is to learn how other people think; Learn things that are completely different from the things you usually use to learn new ways of thinking: Have you worked with static typing languages ​​like Java, C# before, and feel that having to declare all kinds of methods and classes is very tiring? Try dynamic typing languages ​​like Python, JavaScript sida to see how concise the code can be. (Python friends should also try Java and C++). Or before, you coded using OOP, creating classes and functions, inheritance, etc. Try using Scala, Haskell or JavaScript, code in the Functional Programming style, use functions instead of classes! Not only limited to the language, back-end workers can try learning the front-end to swear with CSS, JavaScript; If you are a front-end, you can learn the back-end to deal with server configuration and SQL. Learning something new, you will have a broader, more general view of your industry; At the same time, expand your mind and improve your thinking ability. To put it simply, if you want to be a full-stack developer, you have to know everything: from front-end, back-end, security, database, DevOps, everything! Conclusion In this article, I have shared about 4 quite effective methods that I often use to improve my programming thinking ability. If you have experience or any method that you feel is effective, please comment below! 30 seconds of advertising My friend Le Quang Song, CEO of Cybersoft.vn also has a course on Programming Thinking and Math Problem Analysis. This course is quite suitable for those who are not interested in the field or want to learn basic knowledge. If you are interested, you can learn more here: . Password is your friend Code Dao to enjoy the promotion =)). P/S 2: Bonus vlog for those who want to see my cute face. Remember to subscribe at: bit.ly/codedaotube Rate this: Like this: Related
Binh pháp Tôn Tử tuy viết rất nhiều về kinh nghiệm chiến tranh, cách chiến thắng mọi trận chiến. Thế nhưng, Tôn Tử lại cho rằng cảnh giới cao nhất chính là … không chiến mà vẫn thắng . Đọc đi đọc lại một hồi, mình ngẫm thấy điều này cũng khá đúng với ngành lập trình . Do vậy, mình chia sẻ trong bài này để anh em cùng nghiền ngẫm nhé! Luận lý của Tôn Tử Ngoài 2 câu nói trên, ông cũng phân tích rộng thêm Đây là một cách nhìn khá độc đáo vào thời đại đó, nhưng ngẫm lại thì lại rất chuẩn xác! Bắt đầu một cuộc chiến đòi hỏi đầu tư rất nhiều tài nguyên, tiền của đề huấn luyện binh linh, rèn đúc vũ khí, chuẩn bị lương thực hậu cần … Trực tiếp đánh trận sẽ có thương vong, hao binh tổn tướng, gây thù oán giữa 2 bên. Cách hay nhất là nghĩ cách để thắng trận, mà không cần phải chiến đấu. Đỡ tốn tài nguyên, đỡ hao binh tổn tướng. Ngẫm lại, mình bỗng thấy điều này không chỉ áp dụng được trong chiến tranh, mà còn áp dụng được trong ngành lập trình chúng mình. Cảnh giới cao nhất của việc code chính là… không code Ngẫm lại, mấy ông developer tụi mình cũng chẳng khác mấy ông tướng ngày xưa. Mấy ông tướng ngày xưa thì đam mê xông pha trận mạc, còn mấy ông dev mình thì đam mê code . Mỗi khi có tranh cãi, xung đột, mấy ông tướng chỉ muốn cầm quân ra trận, dùng vụ lực giải quyết vấn đề. Mỗi khi có yêu cầu, có vấn đề cần làm, mấy ông dev mình chỉ muốn … code thêm tính năng , thêm hệ thống để giải quyết vấn đề. Thế nhưng, nếu bình tĩnh ngẫm lại, các bạn sẽ thấy tuy việc code rất sướng, nhưng khi code nhiều lên thì hệ thống sẽ gặp phải rất nhiều vấn đề : Mỗi tính năng code thêm sẽ đòi hỏi phải có document, test cho tính năng đó. Mỗi công nghệ dùng thêm sẽ đòi hỏi các thành viên phải biết công nghệ đó! Thêm một thành phần vào hệ thống (server, database, message queue ) thì phải có chỗ để deploy nó, phải có người quản lý, update nó, giữ cho nó hoạt động Hệ thống càng nhiều code, càng phức tạp thì càng dễ xảy ra lỗi, khó quản lý . Code càng để lâu mà không bảo trì sẽ có rất nhiều technical debt, khó mở rộng, sửa chữa Khi code quá nhiều tính năng, hệ thống quá phức tạp, không có document, những thành viên của team sẽ không thể nào nắm được toàn bộ hệ thống Do vậy, những người có kinh nghiệm sẽ thấy t hêm code là thêm phiền , càng nhiều code là càng nhiều gánh nặng. Cách hay nhất là giải quyết vấn đề bằng cách … không code , hoặc bỏ bớt code luôn cho nó gọn. Mấy bác developer nước ngoài cũng rất hưởng ứng cách nghĩ này. Repo nocode có đến hơn 40k starts là biết Chuyện của anh Senior và cậu Junior Có 1 câu chuyện cười ngắn như thế này Đấy, thay vì mất thời gian design, viết code, test, anh senior chỉ cần hiểu qui trình, áp dụng lên Google Sheet là xong. Tính năng phòng nhân sự yêu cầu vẫn đầy đủ, mà lại ít tốn thời gian, đỡ phải bảo trì/nâng cấp. Tạm kết Tất nhiên, không phải vấn đề nào cũng có thể giải quyết bằng cách … không code. Nếu thế thì chắc nhiều ông developer thất nghiệp hết rồi. Thế nhưng, đôi khi viết thêm code, làm hệ thống phức tạp lên chưa hẳn đã là cách giải quyết vấn đề tốt nhất! Mong rằng, sau khi đọc xong bài này, bạn sẽ … lười code đi một chút . Mong rằng, mỗi khi viết code, bạn sẽ có suy nghĩ “Có cách nào giải quyết vấn đề này nhanh gọn hơn, ít phức tạp hơn không”. Suy cho cùng, chúng ta được trả tiền để giải quyết vấn đề , không phải để viết nhiều code, phải không nè! Rate this: Like this: Related
Although Sun Tzu wrote a lot about war experiences and how to win every battle. However, Sun Tzu believes that the highest realm is... winning without fighting. Reading it over and over for a while, I realized that this is also quite true for the programming industry. Therefore, I share it in this article for you all to ponder! Sun Tzu's logic In addition to the above two sentences, he also analyzed it further. This is a quite unique perspective at that time, but when you think about it, it is very accurate! Starting a war requires investing a lot of resources and money to train soldiers, forge weapons, prepare food and logistics... Directly fighting battles will have casualties, loss of soldiers, loss of generals, and enemies. resentment between the two sides. The best way is to think of ways to win the battle, without having to fight. Save resources, save soldiers and generals. Thinking back, I suddenly see that this is not only applicable in war, but also applicable in our programming industry. The highest realm of coding is... no code. Thinking back, we developers are no different from the generals of the past. The generals of the past were passionate about going into battle, and the developers were passionate about coding. Whenever there is a controversy or conflict, the generals just want to lead their troops into battle and use force to solve the problem. Every time there is a request or a problem that needs to be done, we developers just want to code more features and systems to solve the problem. However, if you calmly think back, you will see that although coding is very fun, when there is a lot of code, the system will encounter many problems: Each additional code feature will require documentation and testing for that feature. Each additional technology will require members to know that technology! To add a component to the system (server, database, message queue), there must be a place to deploy it, someone must manage it, update it, keep it running. The more code and more complex the system, the more likely it is that errors will occur and the more difficult it is to manage. The longer the code is left without maintenance, the more technical debt it will have, making it difficult to expand and repair When the code has too many features, the system is too complex, and without documentation, team members will not be able to grasp the entire system. Therefore, experienced people will find that adding code is more troublesome, more code is more burdensome. The best way is to solve the problem by... not coding, or removing code altogether to make it concise. Foreign developers also respond to this way of thinking. Repo nocode has more than 40k starts so you know the story of Senior and Junior There is a short joke like this. Instead of wasting time designing, writing code, testing, the senior just needs to understand the process and apply it. Google Sheet is done. The required HR department features are still complete, but are less time consuming and require less maintenance/upgrading. Conclusion Of course, not every problem can be solved by... not coding. If so, many developers would probably be unemployed. However, sometimes writing more code and making the system more complicated is not necessarily the best way to solve the problem! Hopefully, after reading this article, you will... be a little lazy to code. Hopefully, every time you write code, you will think "Is there a faster, less complicated way to solve this problem?" After all, we are paid to solve problems, not to write a lot of code, right! Rate this: Like this: Related
Đây là phần 2 trong series 3 phần “Sập Server có phải muôn đời”. Ở kì trước, chúng ta đã cùng bạn Hùng xấu số tìm ra lỗi, khôi phục hệ thống chạy lại như thường. Ở kì này, chúng ta sẽ cùng tìm hiểu về những điều chúng ta nên làm, cách viết post-moterm sau khi sự cố xảy ra nha. Những điều này tuy nhỏ nhưng vô cùng quan trọng, vì nó giúp chúng ta tránh được những sai lầm tương tự trong tương lại đấy. Post-mortem là cái chi chi? Nếu coi mỗi lần sập server là một vụ án mạng, tìm bug là quá trình điều tra, sửa bug là quá trình truy bắt hung thủ; thì việc post-motern chính là việc … viết cáo trạng, tóm tắt lại nguyên do án mạng , động cơ gây án, thủ phạm, nạn nhân v…v Nói tóm lại, sau khi xử lý xong sự cố, chúng ta sẽ viết post-mortem ghi rõ những gì đã xảy ra, nguyên nhân server bị sập, thiệt hại về người và của, cách xử lý, cách phòng chống v…v Tại sao lại phải viết post-mortem? Ủa, cái gì qua rồi thì cho nó qua đi, còn nhắc lại quá khứ đau thương mà làm gì?? Sai rồi, đằng sau mỗi lần hệ thống bị sụp là 1 … sai lầm của team (chưa test code, chạy script ẩu). Nếu như không có post-mortem, không nhìn lại sai lầm, không nghĩ cách cải thiện, thì những sai lầm này sẽ vẫn tiếp tục xảy ra nữa. Chưa hết, viết post-mortem còn để cho team và các thành viên mới nhìn lại, để thấy sai lầm trong quá khứ, tránh lập lại ở tương lai . Ta cũng có thể viết post-mortem cho khách hàng/cấp trên, để họ hiểu hơn về lý do sập, cũng như tin tưởng chúng ta hơn khi thấy ta có các biện pháp phòng chống Quay lại chuyện của Hùng, sau khi viết post-mortem, cả team nhìn lại mới thấy nguyên nhân sâu xa hơn là: Không ai quản lý tiền bạc/credit khi tích hợp với API bên thứ 3. Tra kĩ hơn, hệ thống còn dùng Twillio để gửi SMS và SendGrid để gửi email, nhưng đã nợ tiền gần 1 tháng. Nếu không trả tiền thì tầm 1-2 tháng nữa là chức năng gửi SMS/Email sẽ … ngừng hoạt động luôn. May thay, anh lead nhắn 1 phát để bên accounting thanh toán, rồi tạo task để nhắc nhở thanh toán 3 tháng/lần là xong. Mọi thứ lại chạy ngon lành. Đừng đổ lỗi, đừng tìm thủ phạm, hãy tìm vấn đề Điều quan trọng nhất khi viết post-mortem là: Ta viết ra để học, để rút kinh nghiệm , chứ không phải để trù dập hay đổ lỗi cho ai đó. Có nhiều công ty rất lạ, có vấn đề thì cứ lo tìm người code lỗi, lôi người để sót bug ra chỉ trích trước. Đây là 1 nét văn hoá cực kì có hại , dễ ảnh hưởng đến tinh thần cả team. Theo mình, 1 sự cố xảy ra là lỗi của cả team. Khi có vấn đề thì cùng nhau sửa , chứ không phải chỉ chăm chăm tìm ra thủ phạm! Văn hoá này giúp anh em tin tưởng lẫn nhau , làm việc thoải mái hơn. Lúc viết post-mortem cũng thế, thủ phạm trong post-mortem chính là bug, là thiếu sót trong qui trình ; chứ không phải là bạn Hùng code ẩu, hay bạn Kha quên test case A,B,C; hay do bạn Sơn chạy nhầm sciript xoá sạch database. Đơn cử như có vụ bạn engineer bên AWS chạy script làm đi tong vài con server. Mới đầu, ta tưởng thủ phạm là bạn engineer đó, nhưng nhìn kĩ hơn, ta sẽ nhìn ra vấn đề thật sự: Lỗi qui trình : Script quan trọng vậy tại sao không có code review trước khi chạy? Lỗi hệ thống : Khi server bị xoá tại sao không ai biết Lỗi kĩ thuật : Tại sao không thể restore lại các server khi bị xoá. Tại sao backup lại mất vài tiếng mới chạy được. Các bạn thấy đấy, tìm ra tận gốc vấn đề sẽ giúp ta phòng tránh chúng trong tương lại Vậy, viết post-mortem như thế nào cho đúng? Một bản post-mortem chuẩn thường bao gồm những phần sau: Timeline : Dòng thời gian những chuyện đã xảy ra: Lúc mấy giờ sự cố xảy ra, bao lâu khách hàng phát hiện, lúc mấy giờ khôi phục Ảnh hưởng : Những ai bị ảnh hưởng, trong bao lâu, thiệt hại về người và của là bao nhiêu Cách khôi phục : Team đã khôi phục hệ thống như thế nào, mất bao lâu, có gặp rắc rối hay khó khăn gì Tìm hiểu nguyên nhân : Nguyên nhân gây ra sự cố là gì? Đừng chỉ quan tâm nguyên nhân bề mặt, mà hãy đào sâu, tìm hiểu những sai sót trong qui trình làm việc, thiết kế hệ thống Cách phòng chống : Những biện pháp mà team đã làm/sẽ làm để tránh xảy ra vấn đề tương tự trong tương lai Hầu như các công ty lớn đều bị … sập server có đôi vài lần. Đa phần họ đều công khai bản post-mortem cho khách hàng đọc nên các bạn có thể tham khảo và viết theo nha: Note nhẹ : Các bản post-mortem này viết cho đối tượng là user/khách hàng nên không đi quá sâu vào chi tiết hệ thống. Khi viết post-mortem cho team mình, bạn có thể đi sâu vào hệ thống, services, code , qui trình của team nha. Tạm kết Ở phần này, mình đã chia sẻ với các bạn việc cần làm sau khi hệ thống sụp. Mình cũng chia sẻ cách viết post-mortem thế nào cho phù hợp. Tất nhiên, những việc như khôi phục hệ thống, viết post mortem chỉ là việc… chữa cháy. Ông bà ta đã dặn phòng bệnh hơn chữa bệnh . Một team engineer giỏi là một team giữ cho hệ thống hoạt động ổn định , không bị sập, nhờ có các biện pháp phòng chống. Do vậy, ở phần 3, mình sẽ chia sẻ những biện pháp phòng chống này . Các bạn có thể áp dụng để giúp hệ thống ổn định và khoẻ mạnh hơn nha. Nhớ đón xem tuần sau nhé! Rate this: Like this: Related
This is part 2 in a 3-part series "Is server failure forever?" In the previous period, we worked with the unfortunate Hung to find the error and restore the system to run as usual. In this session, we will learn about what we should do and how to write post-moterm after an incident occurs. These things are small but extremely important, because they help us avoid similar mistakes in the future. What is post-mortem? If we consider every server crash as a murder, finding bugs is the investigation process, fixing bugs is the process of catching the culprit; The post-mortem job is to... write an indictment, summarizing the cause of the murder, the motive for the crime, the perpetrator, the victim, etc. In short, after handling the incident, we will write post-mortem clearly states what happened, the cause of the server crash, damage to people and property, how to handle it, how to prevent it, etc. Why do we have to write a post-mortem? Well, what's past is over, so what's the point of bringing up the painful past?? That's wrong, behind every system crash is a... mistake of the team (not testing the code, running the script carelessly). If there is no post-mortem, no looking back at mistakes, no thinking of ways to improve, these mistakes will continue to happen. Furthermore, writing a post-mortem also allows the team and new members to look back, to see mistakes in the past, to avoid repeating them in the future. We can also write a post-mortem for customers/supervisors, so they can better understand the reason for the collapse, as well as trust us more when they see that we have preventative measures. Back to Hung's story, after writing the post. -mortem, the whole team looked back and saw the deeper reason: No one managed money/credit when integrating with 3rd party APIs. Looking more closely, the system also used Twillio to send SMS and SendGrid to send email. , but have owed money for nearly a month. If you don't pay, in about 1-2 months the SMS/Email sending function will... stop working. Fortunately, the lead sent a message to the accounting side to pay, then created a task to remind the payment every 3 months and that was it. Everything runs fine again. Don't blame, don't look for the culprit, look for the problem. The most important thing when writing post-mortem is: We write to learn, to learn from experience, not to blame or blame someone. There are many very strange companies, if there is a problem, they just worry about finding the person who coded the error, and bringing the person who left the bug out to criticize first. This is an extremely harmful cultural trait that can easily affect team morale. In my opinion, an incident that occurs is the entire team's fault. When there is a problem, let's fix it together, not just focus on finding the culprit! This culture helps brothers trust each other and work more comfortably. The same is true when writing post-mortem, the culprit in post-mortem is the bug, the flaw in the process; It's not like Hung coded carelessly, or Kha forgot to test cases A,B,C; Or maybe Son accidentally ran script and deleted the database. For example, there was a case where an engineer at AWS ran a script that took down several servers. At first, we thought the culprit was that engineer, but looking closer, we see the real problem: Process error: Script is important so why is there no code review before running? System error: When the server was deleted, no one knew why Technical error: Why can't the servers be restored when deleted? Why does the backup take several hours to run? You see, finding the root of the problem will help us prevent them in the future. So, how to write a post-mortem correctly? A standard post-mortem usually includes the following parts: Timeline: Timeline of what happened: What time did the incident occur, how long did it take for customers to discover it, what time did it recover Impact: Who is affected, for how long, and how much is the loss of life and property How to restore: How did the team restore the system, how long did it take, and did they encounter any problems or difficulties? Find out the cause: What is the cause of the problem? Don't just pay attention to the surface causes, but dig deep and find out the errors in the work process and system design. Prevention: Measures the team has taken/will take to avoid similar problems in the future Almost all big companies have had their servers crash a few times. Most of them publish the post-mortem for customers to read, so you can refer to it and write along: Light note: These post-mortems are written for users/customers so they do not go too deeply into system details. When writing a post-mortem for your team, you can go deep into the team's system, services, code, and processes. Conclusion In this part, I have shared with you what to do after the system crashes. I also share how to write post-mortem appropriately. Of course, things like restoring the system and writing post mortem are just... firefighting. Our grandparents told us that prevention is better than cure. A good engineering team is a team that keeps the system operating stably, without crashing, thanks to preventative measures. Therefore, in part 3, I will share these prevention measures. You can apply it to make the system more stable and healthy. Remember to watch next week! Rate this: Like this: Related
Đây là phần 3 trong series 3 phần “Sập Server có phải muôn đời”. Ở 2 phần trước, mình đã chia sẻ về những việc cần làm khi hệ thống sập bất ngờ, nên viết post motern như thế nào để tránh gặp phải những sai lầm tương tự. Tuy vậy, như các cụ đã nói “phòng bệnh hơn chữa bệnh”, phòng chống hệ thống sập thì tốt hơn là chờ hệ thống tèo rồi mới sửa chứ nhỉ. Do vậy, ở kì này, mình sẽ chia sẻ những kinh nghiệm phòng chống nhé. Tại sao không nên chờ “nước đến chân mới sửa”? Phần đông những hệ thống của doanh nghiệp, của các công ty lớn đều có 1 cái gọi là SLA (Service-Level Agreement) . Nói nôm na, nó là 1 bản cam kết chất lượng dịch vụ. Thông thường, trong SLA, các dịch vụ đều phải high availbility tầm 99.9% hoặc 99.99% , tức là 1 tháng chỉ được sập tầm 5 phút (99.99) hoặc hoặc 45 phút (99.9%). Nếu thời gian sập quá mức này, vi phạm SLA, đơn vị cung cấp sẽ bị mất uy tín, đồng thời phải bồi thường 1 khoản không hề nhỏ. Vì vậy, nếu chờ hệ thống sập rồi mới sửa thì gần như không kịp! Mấy anh dev phải nghĩ cách phòng chống, tìm bệnh trước, để có thể sửa chữa hệ thống khi nó mới hắt hơi/sổ mũi , chứ không đợi tới lúc nó ngủm luôn nha! Làm sao để anh em ngủ ngon, không lo server sập Đây là những kinh nghiệm xương máu, rút ra từ mồ hôi nước mắt các thế hệ sysadmin/developer/devops ở các công ty nha. Failover là 1 trong những biện pháp cơ bản nhất, đơn giản nhất để tránh server sập. Nói đơn giản, failover system tức là 1 hệ thống … dư thừa , chạy song song với hệ thống chính. Khi hệ thống chính bị sập, ta sẽ tự động chuyển người dùng qua hệ thống failover nà y, để tránh làm gián đoạn dịch vụ. (Giống như khi các bạn đi mát xa, mấy em nhân viên đẹp bị nghỉ ốm, failover sẽ là mấy em nhân viên ế khách ra phục vụ các bạn vậy á). Đa phần các database có hỗ trợ failover qua cơ chế master/slave . Khi master có vấn đề thì slave sẽ được promote lên làm master. Ở tầm webserver, ta thường dùng load balancing để cân bằng tải trong 1 cluster nhiều server, 1 server sụp cũng không ảnh hưởng hệ thống. Cách này khá hiệu quả, nhưng có thể sẽ khá… tốn kém, vì ta phải bỏ chi phí bảo trì, vận hành thêm hệ thống phụ mà không dùng tới. Thông thường, một hệ thống sập sẽ có 1 số dấu hiệu bất thường trước khi sập. Do vậy, ta phải setup monitoring, có dashboard để dễ dàng nhận thấy những bất thường trong hệ thống. Thông thường, người ta hay monitor những thứ như CPU/RAM , dung lượng ổ cứng. Nếu là web thì họ sẽ monitor thêm số lượng API được gọi, thời gian API chạy, status trả về là 200 hay 500. Ở tầm cao hơn thì họ monitor những thứ thực tế như số cuốc xe đặt trong 10 phút, số đặt phòng trong 1 giờ v…v Với vô số những thứ cần monitor như vậy, ta cần có 1 cái dashboard để dễ dàng quan sát tình hình chung. Tất nhiên, không phải ai cũng rảnh mà ngồi nhìn dashboard cả ngày, nên ta sẽ phải setup 1 số notificaiton luôn. Ví dụ, khi CPU/RAM lên quá cao, hoặc khi lượng order tụt xuống nhiều, hệ thống sẽ notify bằng cách gửi SMS/email đến mấy anh DevOps để họ vào kiểm tra, trước khi người dùng phát hiện. Khi cần, hệ thống cũng có thể tự recover bằng cách tăng thêm instance, restart server v..v Tất nhiên, notify quá nhiều sẽ làm chúng ta … lờn mặt, bỏ qua notification . Do vậy, phải làm 1 thời gian chúng ta mới biết nên theo dõi những thông số gì, notify khi nào nha. Hệ thống sập thì có thể chạy lại được. Nhưng dữ liệu mà mất là coi như … công ty đi đứt . Do vậy, việc lưu trữ, backup dữ liệu là vô cùng quan trọng! Nếu công ty bạn sử dụng Cloud, đa phần các dịch vụ database đều đã có tự động back-up/recovery , chỉ cần tốn thêm phí là xong. Nếu tự chạy, các bạn nên có script backup mỗi ngày, mỗi tuần hoặc… mỗi giờ nếu cần thiết! Ngoài ra, điều quan trọng hơn là … phải kiếm tra xem dữ liệu đã back-up đấy có đúng không, có restore lại được hay không ! Mình thấy có nhiều chỗ back-up dữ liệu cả năm nhưng… chưa restore bao giờ , tới lúc cần restore thì mới thấy restore rất chậm, tool restore bị lỗi, dữ liệu back-up bị thiếu. Do vậy, có back-up là tốt, nhưng phải nhớ kiểm tra xem back-up đó có hoạt động được hay không nhé. Đương nhiên, nếu hệ thống sụp là do bug, do lỗi của developer , thì để hệ thống ổn định, chúng ta phải tìm cách phát hiện, tiêu diệt những bug này trước khi hệ thống lên production . Các bạn tester sẽ test để tìm lỗi hệ thống . Tuy vậy, khi hệ thống lớn, nhiều tính năng, việc test này sẽ vô cùng mất thời gian . Do vậy, người ta thường dùng unit test để test code , kết hợp với automation test để test toàn bộ hệ thống. Thông thường, trước khi code được merge, được deploy lên staging, các test này sẽ được chạy để đảm bảo hệ thống không bị lỗi. Ngoài ra, phần đông nguyên nhân sự cố thường là do… developer sửa code (thêm tính năng mới, fix bug). Do vậy, người ta thường release bản beta/canary để một số người dùng test trước. Ở hệ thống web, họ cũng hay dùng feature flag để test tính năng mới ở 1 số người dùng/khu vực, trước khi phổ cập cho toàn bộ người dùng. Nhờ cách này, nếu phiên bản beta, tính năng mới bị lỗi, số lượng người bị ảnh hưởng sẽ ít hơn rất nhiều! Team dev sẽ có thời gian chỉnh sửa cho phù hợp trước khi release bản chính thức. Tạm kết Phù, series này khá dài, cảm ơn các bạn đã chịu khó đọc đến hồi kết. Trong bài này, mình chỉ nói sơ 1 số biện pháp phòng chống, giữ cho hệ thống hoạt động ổn định thôi. Nếu nói chi tiết, chắc là phải mất vài cuốn sách + mấy khoá học vẫn chưa hết. Do vậy, các bạn có thể tìm hiểu thêm về high availability system và DevOps nha. Lời cuối cùng của series : Nếu hệ thống của bạn có bị lỗi hay bị sụp, cũng đừng quá buồn, hay trách móc team mình. Hệ thống các công ty lớn còn có lúc sụp, nên của ta bị sụp cũng bình thường. Hãy xem mỗi lần sụp là 1 lần được học hỏi, là cơ hội để ta làm hệ thống ổn định hơn nhé! Rate this: Like this: Related
This is part 3 in the 3-part series "Is server failure forever?" In the previous two parts, I shared what to do when the system suddenly crashes, and how to write a new post to avoid making similar mistakes. However, as the old saying goes, "prevention is better than cure", preventing the system from crashing is better than waiting for the system to fail before fixing it. Therefore, in this period, I will share my prevention experiences. Why should we not wait for "water to reach our feet to fix it"? Most systems of businesses and large companies have something called SLA (Service-Level Agreement). Simply put, it is a commitment to service quality. Normally, in SLA, services must have high availability of about 99.9% or 99.99%, which means that each month can only be down for about 5 minutes (99.99) or or 45 minutes (99.9%). If the downtime exceeds this limit and violates the SLA, the supplier will lose reputation and will have to pay a large amount of compensation. Therefore, if we wait for the system to crash before fixing it, it will almost be too late! Developers must think of ways to prevent and find diseases first, so that they can fix the system when it first sneezes/runny nose, not wait until it dies! How can you sleep well without worrying about the server crashing? These are hard-earned experiences, learned from the sweat and tears of generations of sysadmins/developers/devops at companies. Failover is one of the most basic and simplest measures to avoid server crashes. Simply put, a failover system means a system... redundant, running in parallel with the main system. When the main system crashes, we will automatically switch users to this failover system, to avoid service interruption. (Like when you go for a massage, the beautiful staff members are on sick leave, the failover will be the lazy staff coming out to serve you). Most databases support failover through the master/slave mechanism. When the master has a problem, the slave will be promoted to master. At the webserver level, we often use load balancing to balance the load in a cluster of multiple servers. If one server crashes, it will not affect the system. This method is quite effective, but can be quite... expensive, because we have to spend on maintenance and operating additional subsystems that are not used. Normally, a collapsed system will have some unusual signs before collapsing. Therefore, we must set up monitoring and have a dashboard to easily notice abnormalities in the system. Normally, people monitor things like CPU/RAM and hard drive capacity. If it's a web, they will monitor the number of API calls, the time the API runs, and whether the status returned is 200 or 500. At a higher level, they monitor practical things like the number of trips booked in 10 minutes, the number of reservations. in 1 hour etc. With so many things that need to be monitored, we need a dashboard to easily observe the overall situation. Of course, not everyone has free time to sit and look at the dashboard all day, so we will have to set up some notifications. For example, when CPU/RAM is too high, or when the number of orders drops a lot, the system will notify by sending SMS/email to the DevOps guys so they can check, before users detect it. When needed, the system can also self-recover by adding more instances, restarting the server, etc. Of course, too many notifications will make us... ignore and ignore notifications. Therefore, it takes a while for us to know what parameters to monitor and when to notify. If the system crashes, it can run again. But if data is lost, it is considered... the company is gone. Therefore, storing and backing up data is extremely important! If your company uses Cloud, most database services already have automatic back-up/recovery, just need to pay extra. If you run it yourself, you should have a backup script every day, every week or... every hour if necessary! In addition, the more important thing is... to check whether the backed-up data is correct and whether it can be restored or not! I've seen many places that have backed up data for a whole year but... have never restored it. When it's time to restore, I find that restoring is very slow, the restore tool is faulty, and the back-up data is missing. Therefore, having a back-up is good, but remember to check whether the back-up works or not. Of course, if the system crashes due to a bug, due to the developer's error, then in order for the system to be stable, we must find a way to detect and destroy these bugs before the system goes into production. Testers will test to find system errors. However, when the system is large and has many features, this testing will be extremely time consuming. Therefore, people often use unit testing to test code, combined with automation testing to test the entire system. Normally, before the code is merged and deployed to staging, these tests will be run to ensure the system is error-free. In addition, most of the causes of problems are usually due to... developers modifying the code (adding new features, fixing bugs). Therefore, people often release beta/canary versions for some users to test first. In web systems, they also often use feature flags to test new features in some users/regions, before making them available to all users. Thanks to this, if the beta version or new feature fails, the number of people affected will be much less! The dev team will have time to edit accordingly before releasing the official version. Conclusion Phew, this series is quite long, thank you for taking the trouble to read until the end. In this article, I will only briefly discuss some prevention measures to keep the system operating stably. If we talk about it in detail, it will probably take a few books + a few courses that are still not finished. Therefore, you can learn more about high availability systems and DevOps. Final words of the series: If your system fails or crashes, don't be too sad or blame your team. Large company systems sometimes collapse, so it's normal for ours to collapse. See each collapse as a learning experience, an opportunity for us to make the system more stable! Rate this: Like this: Related
Lâu rồi, Code Dạo không biên bài phong cách kiếm hiệp, sợ anh em đồng đạo quên rằng ngoài chém gió kĩ thuật, Code Dạo còn có khả năng mượn chuyện kiếm hiệp để nói chuyện lập trình . Kì này, Code Dạo tái xuất giang hồ, kể anh em nghe đôi câu chuyện vui về optimization, database và index nhé. Truyện chỉ có tính chất hư cấu, anh em đồng đạo đọc xong đừng vội cho là thật . Thiện tai, thiện tai! Quyển Thượng – Mãng Xà Vong, Thiên Địa Lập Phàm thế cuộc trong thiên hạ , chia rồi lại hợp , hợp rồi lại chia. Chuyện kể rằng, mười mấy năm về trước, ở xứ An Nam có một tổ chức bí ẩn mang tên Mãng Xà hội (m*cxi nếu anh em nào còn nhớ). MX hội là nơi huynh đệ đồng dâm khắp thiên hạ tụ tập, chia sẻ dâm thư, lộn chia sẻ kiếm phổ và bí kiếp võ công. Tiến lành đồn xa, Mãng Xà hội từ một tổ chức nhỏ, trở thành một thế lực lớn, hùng bá một phương, lúc cao điểm có đến tận 30 vạn tinh trùng, nhầm…, tinh binh lớn nhỏ. Sợ bách tính bị những kẻ này dụ dỗ, tu luyện dâm thư đến tẩu hỏa nhập ma, làm phong hóa suy đồi, triều đình vội cắt quân diệt trừ. Đánh rắn dập đầu, bè lũ giáo chủ cầm đầu Mãng Xà hội bị tróc nã , đem ra xét xử. Mãng Xà hội đóng cửa, bỏ lại bách tính bơ vơ, khổ không bút mực nào tả xiếc. Ngán ngẩm trước cảnh sinh linh đồ thán, vài huynh đệ ở hải ngoại tụ hội, quyết định thành lập Thiện Địa Hội, đặt đại bản doanh tận Mĩ Quốc . Nhờ vậy mà tránh được tai mắt của người đời, tránh được sự tróc nã của triều đình An Nam. Thiên Địa Hội ra đời từ đó! Quyển Trung – Thế sự khó lường, lên voi xuống chó Thiên Địa Hội thành lập, anh hùng hào kiệt khắp nơi rủ nhau kéo đến, bình phẩm về thanh lâu nổi tiếng, luận bàn về nhan sắc giai nhân. Các anh hùng giờ đây không chỉ truyền bá kiếm phổ, mà còn lưu truyền cho nhau khẩu quyết, ví như gọi số 9403 cho Lâm Nhu tài nữ , đọc khẩu quyết là bạn anh Hoàng, trả 400 lạng bạc sẽ được cùng nàng phiêu diêu chống bồng lai tiên cảnh. Nhờ có Thiên Địa Hội, hào kiệt khắp giang hồ không còn gặp cảnh bị Thanh Lâu treo dê bán chó (tức trá hàng), hoặc đang mơ màng bên người đẹp thì bị thảo khấu nhảy vào hành hung chém đẹp. Dần đà, Thiên Địa Hội nhanh chóng bành trướng, không chỉ bình phẩm về thanh lâu hay tài nữ, mà còn luận bàn về tửu điếm tửu lâu (bar, khách sạn). nhạc quán (tiệm karaoke ôm), tẩy thủ đường (tiệm mát xa gội đầu trên đầu dưới), … Tiếng lành đồn xa. triệu triệu anh hùng gia nhập. Danh tiếng Thiên Địa Hội tăng cao như mặt trời giữa trưa vậy. Hỡi ôi, cổ nhân có câu, khi cực thịnh cũng là lúc khởi suy. Hệ thống server, database già cỗi của Thiên Địa Hội không thể nào chịu nỗi sức công phá mãnh liệt của ngàn vạn dũng sĩ. Do quá đông, Thiên Địa Hội chậm dần, đôi khi phải chờ tận nửa nén nhang mới load xong thread review mĩ nữ. Lúc cao điểm, Thiên Điạ Hội phải hạ cờ trắng đầu hàng, sập tậm thời để bảo trì. Cám cảnh hệ thống chậm, server sập, các huynh đệ lũ lượt rũ nhau bỏ đi nơi khác. Quả là: mất nhân hòa, ngàn đời khóc hận. Quyển Hạ – Thỉnh cao nhân, Thiên Địa thái bình Thế nhưng, vẫn còn thiên thời, địa lợi, thiên địa hội không thể một sớm một chiều mà sụp đổ. Nghe tin ở Cầm Dao Sơn có ngài Đặng Bảo Ân (DBA tức Database Administrator) đại sự tiếng tăm lừng lẫy, chuyên trị hệ thống, database, optimize. Thẩm Chí Du – Bang chủ Thiên Đại Hội , không quản đường xa, vượt vạn lý chỉ mong được ngài chỉ điểm. Chuyện Chí Du thỉnh ngài Bảo Ân cũng gian khổ không kém gì Lưu Bị thỉnh Gia Cát Khổng Minh xưa kia: Lần đầu đến nơi, ngài đang bận đi lo DB cho Zia Lô Đảng – Ổ rau lớn nhất giang hồ. Lần thứ hai, ngày đã được tông sư của Gạ Phò tức Gapo mời về đại bản doanh xem xét lại hệ thống Lần thứ ba, khi Chí Du vừa đi vào thanh lâu gần đó để giải tỏa. Chợt thấy một ông lão râu tóc bạc phơ, nhãn thần sắc bén, khí độ phi phàm, đang cưỡi nữ nhân , lộn…, cưỡi phi kiếm ngao du; chỉ nhìn thôi cũng biết chính là Bảo Ân lão đạo. Chí Du mừng lắm, liền kể hết sự tình cho Ân sư nghe. Nghe xong câu chuyện, ngài cười khà một tràng dài, sau đó ngẩng mặt lên trời hỏi 1 câu: Thí chủ… đã đánh index chưa? Quả là một khắc ngồi với bậc đại sư còn hơn trăm năm ngồi với kẻ ngu. Thẩm Chí Du chợt đốn ngộ. Chàng quẳng hết đồ đạc ở thanh lâu, cưỡi ngựa chạy về, kết nối vào DB, chạy 4 dòng code. Từ đó về sau, Thiên Đại thái bình, hệ thống nghìn người triệu người vẫn chạy nhanh như thường lệ. Thiên Địa Hội giữ vững được vị trí Thiên Hạ Đệ Nhất Bang Hội . Thiên Đại Hội nay đã thái bình, ngoại trừ vài gã ma cô bơm hàng, tráo hàng, đăng hình dâm nữ giao hàng đười ươi , … nhưng chuyện đó về sau hãy nói. Ủa vậy index là cái chi chi? Câu chuyện trên chỉ có ba phần là thật , vì thật sự không hệ thống rùa bò nào có thể chạy nhanh mà chỉ cần đánh 2 index . Tuy nhiên, việc đánh đúng index và optimize hợp lý có thể làm câu truy vấn trong database trở nên nhanh hơn rất nhiều (Từ vài phút hay nửa tiếng xuống còn … vài giây). Vậy index là cái chi chi mà … bá đạo vậy? Làm sao để biết đánh index ra sao, index có những ưu nhược điểm gì? Quý vị nhớ đón xem … hồi sau sẽ rõ! Rate this: Like this: Related
For a long time, Code Dao has not written articles about swordplay style, for fear that fellow believers forget that in addition to talking about techniques, Code Dao also has the ability to borrow swordplay stories to talk about programming. This time, Code Dao reappears, telling you a few funny stories about optimization, database and index. The story is only fictional, fellow believers should not rush to assume it is true after reading it. Good ears, good ears! The Upper Book - Mang Xa Vong, Thien Dia Lap Pham, the situation in the world, divided then combined, combined then divided again. The story is that, more than ten years ago, in An Nam, there was a mysterious organization called Mang Xa Hoi (m*cxi if any of you remember). MX Society is a place where homosexual brothers from all over the world gather, share erotic books, exchange swords and martial arts secrets. Advancing far away, Mang Xa Hoi from a small organization became a large, powerful force in one direction. At its peak, there were up to 300,000 sperm, many large and small soldiers. Afraid that the common people would be seduced by these people, cultivating obscene books to the point of becoming possessed by ghosts and causing degeneracy, the court quickly dispatched troops to eradicate them. After beating the snake, the group of cult leaders leading the Mang Xa Hoi were excommunicated and brought to trial. Mang Xa Society closed, leaving the common people helpless, suffering that no pen could describe. Fed up with the suffering of the living beings, a few overseas brothers gathered and decided to establish the Thien Dia Association, setting up its headquarters in the United States. Thanks to that, he could avoid the eyes and ears of the people and avoid being wanted by the An Nam court. Thien Dia Hoi was born from there! The middle book - Unpredictable events, ups and downs, ups and downs, Thien Dia Hoi was established, heroes and heroes from all over invited each other to come, comment on the famous castle, and discuss the beauty of beautiful women. Heroes now not only spread the word sword, but also pass on the secret to each other, for example, call 9403 for talented lady Lam Nhu, recite the secret to be Mr. Hoang's friend, pay 400 taels of silver to go on adventures with her. against the fairyland. Thanks to Thien Dia Hoi, heroes all over the world no longer have to face the situation of Thanh Lau hanging goats and selling dogs (i.e. cheating), or while daydreaming with a beautiful woman, a robber jumps in and attacks and slashes her. Gradually, Thien Dia Hoi quickly expanded, not only commenting on young men and talented women, but also discussing pubs and restaurants (bars, hotels). music shop (a karaoke shop), a massage parlor that washes hair from the top and bottom of the head, etc. Good news spreads far and wide. Millions of heroes join. Thien Dia Hoi's reputation rose as high as the midday sun. Oh my, there is an ancient saying that when there is prosperity, there is also a time of decline. Thien Dia Hoi's aging server and database system cannot withstand the fierce attack of thousands of brave warriors. Due to overcrowding, Thien Dia Hoi slows down, sometimes having to wait half a stick of incense to finish loading the thread reviewing beautiful women. At peak times, Thien Dia Hoi had to lower the white flag of surrender and temporarily collapse for maintenance. Feeling sorry for the system's slowness, the server crashing, the brothers flocked to other places. The result is: losing humanity and harmony, thousands of years of crying and hatred. Book Ha - Dear noble people, Heaven and Earth are peaceful. However, there are still favorable times and favorable conditions. Heaven and earth will not collapse overnight. I heard that in Cam Dao Son there is Mr. Dang Bao An (DBA, Database Administrator) who is a famous and famous person, specializing in system management, database, optimization. Tham Chi Du - the leader of the Thien Dai Hoi gang, does not care about long distances, traveling thousands of miles just hoping for his guidance. Chi Du's request to Mr. Bao An was no less arduous than Liu Bei's request to Zhuge Liang in the past: When he first arrived, he was busy taking care of DB for Zia Lo Dang - the largest vegetable drive in the country. The second time, he was invited by Ga Pho's master, Gapo, to return to headquarters to review the system The third time, when Chi Du just went into a nearby bar to relieve himself. Suddenly I saw an old man with white hair and beard, sharp eyes, extraordinary temperament, riding a woman, flying..., riding a flying sword; Just looking at it, I knew it was old man Bao An. Chi Du was very happy and immediately told Master An the whole story. After listening to the story, he let out a long laugh, then raised his face to the sky and asked a question: Donor... have you indexed yet? It is true that one moment of sitting with a great master is better than a hundred years of sitting with a fool. Tham Chi Du suddenly realized. He threw all his belongings at the castle, rode back on horseback, connected to the database, and ran 4 lines of code. From then on, Thien Dai was peaceful, the system of thousands of millions of people still ran as fast as usual. Thien Dia Hoi maintained its position as the First Guild in Thien Ha. Thien Dai Hoi is now at peace, except for a few pimps pumping goods, swapping goods, posting pictures of prostitutes delivering orangutans,... but let's talk about that later. So what is an index? Only three parts of the above story are true, because really no turtle system can run fast with just 2 indexes. However, properly indexing and optimizing properly can make database queries much faster (From a few minutes or half an hour to... a few seconds). So what is an index that is so... powerful? How to know how to index, what are the advantages and disadvantages of indexing? Remember to watch... it will be clear later! Rate this: Like this: Related
Đây là phần 1 trong series 3 phần “Sập Server có phải muôn đời”. Đây là câu chuyện của Hùng, một developer quèn tại 1 công ty startup . Một chiều thứ 6 đẹp trời nọ, Hùng đang thư thả về nhà, dắt gấu đi chơi cuối tuần, đi ăn khuya. Ăn uống no say, Hùng dắt gấu vào nhà nghỉ (tất nhiên là chỉ để nghỉ thui nha , blog này cho cả các bạn chưa đủ 18 tuổi). Vào đến nhà nghỉ, Hùng vừa mới tuột quần, chuẩn bị … chạy thẳng vào toilet (chắc do nồi lẩu vừa ăn không sạch lắm). Bỗng dưng, di động reo, anh Sơn team leader trên công ty réo: Hùng ơi, hệ thống sập con bà nó rồi, khách hàng không vào được trang chủ , em lên công ty phụ anh và anh Kha kiểm tra với. Vội vàng chưa kịp mặc quần, bỏ gấu nằm bơ vơ trong khách sạn, Hùng bắt vội chiếc Grab chạy thẳng lên công ty để tìm lỗi… Còn tiếp! Hệ thống sụp là chuyện… bất khả kháng! Câu chuyện này tuy không có thật, nhưng hẳn sẽ rất quen thuộc với những anh em SysAdmin/DevOps , anh em làm product và startup. Hệ thống nào dù to đến nhỏ, trong quá trình chạy thể nào chả có vài lần xì hơi sổ mũi, nhẹ thì server bị down từ vài phút đến vài giờ, nặng thì … bay luôn database, mất sạch dữ liệu . Nói thật, chúng ta không thể nào phòng chống 100% chuyện “sập bất ngờ” này. Đến AWS/Google cũng có lần bị down , khiến vài chục công ty khốn đốn; Gitlab cũng có lần xoá nhầm DB, mất 18h để khôi phục . Do vậy, ta chỉ còn cách “sống chung với lũ”, sẵn sàng giải quyết khi hệ thống có vấn đề. Trong bài viết này, mình sẽ chia sẻ 1 số kinh nghiệm khi hệ thống bị sụp nha. Chuyện của Hùng (phần cuối) Quay lại câu chuyện của Hùng. Sau khi vác đít chạy lên công ty, Hùng thấy anh Sơn Lead và Kha Đép Ộp đã ở đấy. Hai người kiểm tra Database, kiểm tra network nhưng không thấy lỗi đâu. Hùng bật log của web server lên, thấy toàn trả về 500. Truy vết 1 hồi, thì lòi ra là do chức năng recommend sản phẩm của công ty có dùng API của bên thứ 3. Nhưng do … chưa thanh toán tiền nên API họ quăng lỗi vì hết limit free, code của bên mình lại … quên xử lý trường hợp đấy nên crash. Do tối, cả sếp lẫn kế toàn đều nghỉ, Hùng và anh lead quyết định tắt tạm chức năng này , không gọi API nữa, chỉ trả về danh sách trống. Sau khi sửa và deploy, hệ thống hoạt động lại bình thường. Thở phào nhẹ nhõm, Hùng vội bắt taxi quay lại khách sạn, lấy quần và dắt gấu về. May quá, cả gấu lẫn quần vẫn còn đó , chưa bị ai ôm đi mất. Hùng thở phào nhẹ nhõm lần 2. Hết chuyện! Những việc cần làm khi hệ thống bị sụp Đấy, câu chuyện của Hùng có kết thúc khá có hậu. Nhưng không phải anh em nào cũng may mắn như vậy. Do vậy, mình chia sẻ một số kinh nghiệm xử lý khi hệ thống bị sụp nhé. 1. Hết sức bình tĩnh! Với các hệ thống quan trọng, chỉ cần hệ thống sụp 1 giờ, công ty sẽ thiệt hại cả trăm triệu đồng , sụp 1 ngày là cả tỉ đồng. Do vậy, anh em rối và sợ là điều tất nhiên. Tuy vậy, việc áp lực và hoảng loạn sẽ làm anh em rối trí, khó tìm được cách giải quyết phù hợp. Đôi khi “làm đại” sẽ còn gây ra hậu quả nghiêm trọng hơn. Do vậy, đầu tiên ta phải hít sâu, thở nhẹ cho bình tĩnh rồi mới tiếp tục nhé! 2. Khôi phục hệ thống trước, điều tra sau Trên lý thuyết, khi tìm được nguyên nhân làm hệ thống sụp, ta sẽ tìm được cách giải quyết đúng hơn, hợp lý hơn. Trên thực tế, đôi khi việc này sẽ tốn nhiều thời gian hơn , ảnh hưởng tới hình ảnh/doanh thu công ty. Do vậy, người ta thường khôi phục hoạt động của hệ thống trước, rồi mới tìm nguyên nhân sau. Việc này giúp bạn có thêm thời gian để debug, tìm nguyên nhân. Một số cách làm phổ biến: Nhiều khi chỉ cần restart server là đã giải quyết được phần lớn vấn đề Nếu gần đây có deploy bản mới của code, nhiều khả năng lỗi là do bản mới. Rollback lại code về phiên bản trước đó có thể giải quyết được Trường hợp xấu nhất, thay vì để server crash, có thể để 1 thông báo “Hệ thống đang bảo trì v…v” để hiện cho người dùng 3. Thu thập dữ liệu để “điều tra” Nếu xui xẻo hơn, bạn không có cách nào để phục hồi hệ thống nhanh chóng , bạn sẽ phải tìm hiểu nguyên nhân gây lỗi và fix. Quá trình này cũng giống như fix bug vậy, nhưng phải vừa chạy vừa fix. Theo kinh nghiệm của mình, đây là những thứ các bạn có thể “Điều tra”: Nhờ người dùng chụp màn hình bị lỗi, xem có gì lạ Nếu có dùng các tool như Sentry/LogRocket, lên đó kiểm tra xem có exception nào lạ lạ hay không Kiểm tra log hệ thống để tìm lỗi, kiểm tra các công cụ monitoring xem CPU/RAM có tăng đột biến hay không Nếu dùng Cloud thì lên Dashboard xem có warning gì lạ, có lỗi gì lạ hay không (AWS ngỏm, Google Cloud tèo). Kiểm tra service của các bên thứ 3 tích hợp với hệ thống có lỗi gì không, nhiều khi do lỗi của bên họ! 4. Cập nhật tình hình cho stakeholder Khi hệ thống sụp, người sốt ruột nhất thực ra không phải là bạn mà là … sếp của bạn, hoặc sếp của sếp của bạn. Vì vậy, bạn nên báo cáo, cập nhật tình hình cho sếp, chứ đừng im im mà làm kẻo họ sốt ruột. Bạn chỉ cần báo cáo tiến độ, dự đoán thời gian, thiệt hại: Đã khôi phục được DB, người dùng không ảnh hưởng gì, tầm 1 tiếng nữa xong | Không khôi phục được DB gần nhất, sẽ mất toàn bộ dữ liệu tháng này. Đã tìm ra nguyên nhân gây lỗi, team dev đang nghĩ cách fix Team dev đang test cách fix, sẽ deploy trong vòng 15 phút nữa | Bug khó hơn dự tính, sẽ mất tầm 2-3 tiếng để fix và khôi phục dữ liệu Những báo cáo này không mất quá nhiều thời gian, nhưng sẽ giúp sếp của bạn có cái mà báo cáo, và các sếp trên cũng đỡ … sốt ruột. Tạm kết Ở phần 1, mình đã chia sẻ với các bạn một số kinh nghiệm xương máu để xử lý khi hệ thống bị sập. Hi vọng chúng sẽ giúp các bạn tự tin, đỡ căng thẳng để xử lý khi … server sập thật nhé! Nếu trong quá trình đi làm, đã từng gặp tình trạng như vậy, hãy comment chia sẻ cách bạn xử lý cho bà con biết nha! Ở phần 2, mình sẽ chia sẻ cách viết post-mortem, nhìn lại lý do hệ thống bị lỗi, tìm cách rút kinh nghiệm và cải thiện nha! Rate this: Like this: Related
This is part 1 in a 3-part series "Is server failure forever?" This is the story of Hung, a lowly developer at a startup company. One beautiful Friday afternoon, Hung was leisurely returning home, taking his bear out for the weekend, and going out to eat late at night. After eating and drinking, Hung took the bear to the motel (of course just to rest, this blog is for those under 18 years old). Arriving at the motel, Hung just took off his pants, prepared to... run straight to the toilet (probably because the hot pot he just ate wasn't very clean). Suddenly, his cell phone rang, Mr. Son's team leader at the company shouted: Hung, the system is down, customers can't access the home page, please go to my sub-company and Mr. Kha to check. In a hurry, without even having time to put on pants, leaving his pants lying helplessly in the hotel, Hung quickly took a Grab and ran straight to the company to find the mistake... To be continued! System collapse is... inevitable! Although this story is not true, it will be very familiar to SysAdmin/DevOps brothers, product and startup workers. No matter how big or small any system is, during the process of running, there will always be a few times of runny nose and gas. If it's mild, the server will be down for a few minutes to a few hours. If it's serious, the database will be blown away and all data will be lost. To be honest, we cannot 100% prevent this "sudden collapse". Even AWS/Google had a downtime, causing dozens of companies to suffer; Gitlab also once deleted the wrong DB, it took 18 hours to restore. Therefore, we have no choice but to "live with the flood", being ready to solve problems when the system has problems. In this article, I will share some experiences when the system crashes. Hung's story (final part) Back to Hung's story. After running up to the company, Hung saw Son Lead and Kha Dep Op already there. Two people checked the database, checked the network but found no errors. Hung turned on the web server's log, and saw that it returned 500. After a while of tracing, it turned out that the company's product recommendation function used a 3rd party API. But because... they hadn't paid yet, their API The error is because the limit free ran out, our code... forgot to handle that case so it crashed. Due to the evening, both the boss and the accountant were off, Hung and the lead decided to temporarily turn off this function, no longer calling the API, just returning an empty list. After repairing and deploying, the system works normally again. Breathing a sigh of relief, Hung quickly took a taxi back to the hotel, got his pants and took his bear home. Luckily, both the hem and the pants were still there, and no one had taken them away. Hung breathed a sigh of relief for the second time. End of story! What to do when the system crashes There, Hung's story has a quite happy ending. But not all brothers are so lucky. Therefore, I will share some experiences in dealing with system crashes. 1. Be very calm! With important systems, if the system crashes for just 1 hour, the company will lose hundreds of millions of dong, and if the system crashes for 1 day, it will cost billions of dong. Therefore, it is natural that you are confused and afraid. However, pressure and panic will confuse you, making it difficult to find a suitable solution. Sometimes "doing it big" will cause even more serious consequences. Therefore, first we have to take a deep breath and breathe lightly to calm down before continuing! 2. Restore the system first, investigate later. In theory, when we find the cause of the system crash, we will find a more correct and reasonable solution. In fact, sometimes this will take more time, affecting the company's image/revenue. Therefore, people often restore system operation first, then find the cause later. This gives you more time to debug and find the cause. Some popular ways: Many times, just restarting the server solves most of the problems If you have recently deployed a new version of the code, it is likely that the error is due to the new version. Rolling back the code to the previous version may solve the problem In the worst case, instead of letting the server crash, a message "The system is under maintenance etc" can be left to show to the user. 3. Collect data to "investigate" If you are unlucky, you have no way to quickly restore the system, you will have to find out the cause of the error and fix it. This process is similar to fixing a bug, but must be run and fixed at the same time. In my experience, here are the things you can "Investigate": Ask the user to take a screenshot of the error and see what's strange If you use tools like Sentry/LogRocket, go there and check to see if there are any strange exceptions Check the system log for errors, check monitoring tools to see if CPU/RAM spikes or not If you use Cloud, go to the Dashboard to see if there are any strange warnings or errors (AWS sucks, Google Cloud sucks). Check if the 3rd party service integrated with the system has any errors, sometimes it's their fault! 4. Update the situation to stakeholders When the system crashes, the most impatient person is actually not you but... your boss, or your boss's boss. Therefore, you should report and update the situation to your boss, but don't stay silent or they will become impatient. You just need to report progress, predict time, and damage: DB has been restored, users are not affected, it will be done in about 1 hour | If you cannot restore the most recent DB, you will lose all of this month's data. The cause of the error has been found, the dev team is thinking of a way to fix it The dev team is testing the fix, will deploy within 15 minutes | The bug is more difficult than expected, it will take about 2-3 hours to fix and restore data These reports do not take too much time, but will help your boss have something to report, and the bosses above will also be less... impatient. Conclusion In part 1, I shared with you some painful experiences to handle when the system crashes. Hopefully they will help you be confident and less stressed to handle when... the server really crashes! If during the process of working, you have ever encountered such a situation, please comment to share how you handled it for everyone to know! In part 2, I will share how to write a post-mortem, look back at the reasons the system failed, and find ways to learn from it and improve! Rate this: Like this: Related
Hôm trước, mình có làm livestream nhẹ về kinh nghiệm làm việc tại công ty startup/product, kinh nghiệm làm blockchain với anh Trần Hoàng Giang – Giảm độc sản phẩm của AkaChain. Do clip hơi dài nên mình tóm tắt lại 1 vài cái hay ho mà 2 anh em chém gió cho các bạn nhen: Có phải làm outsourcing/IT services chỉ là gia công “đưa gì code nấy”, như “thợ hồ công nghệ”? Tuỳ dự án, ở tầm IT Services thì chúng ta sẽ lo toàn bộ từ architecture design, UI/UX Design, vận hành hệ thống , tư vấn cho khách hàng, chứ không chỉ là đi kiếm requirement rồi làm việc. Nên làm outsourcing/IT services hay làm product/sản phẩm? Mỗi thứ đều có cái hay riêng . Làm IT services sẽ học được về qui trình, document, domain của khách hàng nhưng hơi gò bó. Làm product thì vui hơn, được quyết định nhiều thứ hơn, nhưng cũng khó khăn và phải mò mẫm nhiều hơn. Làm product/startup có gì vui? Làm ra sản phẩm thật, có user dùng chứ không chỉ là code rồi bàn giao. Dev ở product/startup có tiếng nói hơn, được tham gia quyết định hướng đi của sản phẩm. Muốn làm product/startup thì cần những tố chất gì? Phải biết ôm đồm nhiều thứ như full stack , đôi khi nhảy cóc từ front-end, back-end tới DevOps. Phải có cái nhìn sản phẩm, code 1 chức năng cũng biết suy nghĩ cho người dùng chứ không chỉ thuần là code Về AkaChain ( akachain.io ) : AkaChain là 1 hệ thống định danh điện tử, dựa trên công nghệ blockchain, hỗ trợ các doanh nghiệp thiết lập hệ thống điểm thưởng, chăm sóc khách hàng mà vẫn đảm bảo tính privacy. Kinh nghiệm tự tìm hiểu blockchain: Đừng cố gắng build một 1 blockchain ngay từ đầu, mà hãy thử build ứng dụng dựa trên cái có sẵn , vừa làm vừa tìm hiểu dần dần. Một số kĩ năng cần có để làm về blockchain: Lập trình back-end ( Golang , Rust hoặc NodeJS) , hiểu biết về Server/DevOps , cách triển khai các hệ thống phân tán (30s quảng cáo) Tại akaChain nói riêng, cũng như FPT Software nói chung, có khá nhiều dự án làm product hay ho , các bạn mới ra trường hoặc thích làm product có thể tìm hiểu nhé. Các bạn quan tâm có thể xem clip full 60 phút không che tại đây nha: Rate this: Like this: Related
The other day, I did a light livestream about my experience working at a startup/product company, my experience making blockchain with Mr. Tran Hoang Giang - AkaChain's product mitigation. Because the clip is a bit long, I'll summarize a few interesting things that the two brothers gossiped about for you: Is outsourcing/IT services just outsourcing, like "tech masons"? Depending on the project, at the IT Services level, we will take care of everything from architecture design, UI/UX Design, system operation, consulting for customers, not just looking for requirements and then working. Should I do outsourcing/IT services or do products/products? Each thing has its own beauty. Working in IT services will help you learn about the customer's processes, documents, and domains, but it's a bit restrictive. Making a product is more fun, you get to decide more things, but it's also difficult and requires more groping. What's fun about working on a product/startup? Make a real product that users can use, not just code and hand it over. Devs at product/startup have more voice and can participate in deciding the direction of the product. What qualities do you need to become a product/startup? Must know how to handle many things such as full stack, sometimes jumping from front-end, back-end to DevOps. Must have a product view, a functional code that also thinks about the user, not just pure code About AkaChain (akachain.io): AkaChain is an electronic identity system, based on blockchain technology, supporting businesses to set up reward points systems, customer care while still ensuring privacy. Experience in learning about blockchain yourself: Don't try to build a blockchain from the beginning, but try building an application based on an existing one, learning gradually while doing it. Some skills needed to work on blockchain: Back-end programming (Golang, Rust or NodeJS), understanding of Server/DevOps, how to deploy distributed systems (30 seconds of advertising) At akaChain in particular, as well as FPT Software in general, there are many interesting product projects that you can learn about if you have just graduated or are interested in making products. Those who are interested can watch the full 60-minute uncensored clip here: Rate this: Like this: Related
Mấy nay, khi tư vấn, mình hay nhận được mấy câu hỏi vui vui từ mấy bạn sinh viên, sắp ra trường: Mấy anh senior trâu bò lắm hay sao mà lương ông nào ông nấy cao khủng thế ạ? Nghe nói mấy ông Full Stack cái gì cũng biết, trên thông Cờ Lao dưới tường Đép Ộp phải không ạ? Nghe kể công ty em có mấy ông senior cái gì cũng biết, code bay tóc không cần Google Do vậy, hôm nay mình sẽ tự bóc phốt mấy ông Full Stack/Senior (trong đó có cả mình), mấy ổng không trâu cho như các bạn tưởng đâu nhe! Full Stack không phải gì cũng biết! Thông thường, khi tìm developer full-stack, các công ty thường có 1 số yêu cầu như sau: Thông thạo, biết code back-end (C#, Java, PHP, Ruby …), thiết kế API và Database Thông thạo, biết dùng 1 hoặc một số framework front-end (React, Angular, Vue hoặc JS thuần) Biết chút chút về các thứ linh tinh khác: Cloud, DevOps, System Architecture Nói túm lại, full stack là phải biết nhiều thứ . Nhớ biết nhiều thứ, họ có thể code 1 chức năng từ đầu tới cuối, có thể giao tiếp với nhiều team khác nhau. Bản thân mình có title là Full Stack, tập trung nhiều vào front-end (vì team ít front-end). Mình phải đi lăn lê với team design, năn nỉ team back-end khi cần API khó, la liếm mấy ông DevOps để xem hệ thống chạy thế nào. Do vậy, Full Stack khá hữu dụng trong các công ty nhỏ, startup, vì họ có thể làm đủ thứ, nhiều thứ. Tuy vậy, họ sẽ không thể có kiến thức sâu rộng về tất cả các mảng , mà chỉ tập trung 1 số mảng nhất định , biết sơ sơ các mảng còn lại. (Ví dụ mình code front-end bay tóc, back-end cũng chơi nhưng bắt mình đi deploy, setup server thì hơi bị phê hà…) Đó là lý do mà đôi khi nhiều ông thuần Front-end, thuần Back-end, thuần DevOps lương cũng ngang ngửa Full Stack, mặc dù Full Stack thường biết cả 3 cái đấy các bạn nhé! Senior cũng phải đi Google cả thôi! Cách đây không lâu, anh DHH có đăng 1 bài về chuyện: dù ổng đã làm ra Ruby on Rails, nhưng giờ bắt viết thuật toán cơ bản này nọ thì anh bó tay, lúc nào cũng phải Google tìm code Hưởng ứng trào lưu đó, các bác senior khác cũng vào “tự thú” một cách rất nhiệt tình. Các bạn thấy đấy, có những con người ở tầm leader, làm ở các công ty khủng, chục năm kinh nghiệm, nhưng khi cần thì … vẫn phải Google như thường . Bản thân mình, khi làm dự án bự, lâu lâu gặp lỗi hoặc code module mới vẫn phải Google hoặc mở lại code cũ xem đoạn này code kiểu gì. Việc Google chẳng có gì là đáng xấu hổ cả ahihi. Câu hỏi đặt ra là: Đạt tới trình độ nào thì không cần Google mấy cái cơ bản nữa. Câu trả lời là … méo, não người chứ có phải ổ cứng đâu, làm sao nhớ hết được, chỉ cần nhớ cách Google là được ồi. Vậy senior hơn junior cái gì? Sau khi nghe bóc phốt, các ban hẳn cũng thấy mấy ông senior/fullstack cũng không “trâu bò” như giang hồ đồn đại. Vậy mấy ổng hơn senior ở cái gì? Tại sao mấy ổng lại được lương cao vậy?? Mình đã trả lời vấn đề này ở vài bài trước trong blog Sự khác biệt giữa senior và junior : Kinh nghiệm : Làm việc lâu hơn, bạn sẽ tiếp xúc được nhiều công nghệ hơn, nắm rõ về qui trình làm việc hơn, công ty cũng ít tốn thời gian đào tạo hơn. Khả năng kĩ thuật : Có cái nhìn tổng thể về hệ thống, kiến thức sâu rộng hơn về cách viết code. Khi gặp bug, nhờ kinh nghiệm, senior sẽ biết cách tiếp cận vấn đề một cách hệ thống, chứ không mò mẫm sửa đại cho nó chạy Thái độ và trách nhiệm : Senior là người dạy, là người lựa chọn công nghệ, đặt ra qui trình và cải tiến qui trình cho phù hợp. Senior biết những best practice ( unit test , automation test , code review, CI/CD ) và biết khi nào cần áp dụng chúng. Quan trọng hơn, cả senior hay junior đều phải Google cả, Senior chỉ có kĩ năng Google giỏi hơn , tức là biết dùng từ khoá như thế nào để ra kết quả đúng, xem kết quả ở những trang nào tốt hơn thôi! Tạm kết Các bạn thấy đấy, nói gì thì nói, trở thành senior, thành full-stack cũng không phải là thứ quá phức tạp, ngoài tầm với, chỉ dành cho mấy ông “trâu bò”. Bản thân họ cũng là con người, cũng như bạn, không biết thì Google, khó thì đi hỏi. Họ cũng có những thứ không biết, những điều cần học hỏi, cải thiện để tốt hơn thôi. Do vậy, nếu bạn đặt mục tiêu muốn thành senior, các bạn chỉ cần cố gắng là được. Bạn cũng có thể xem vlog của Code Dạo về cách thành senior phía dưới nha. Rate this: Like this: Related
Recently, when consulting, I often receive some funny questions from students who are about to graduate: Are the senior guys so talented or why do they all have such high salaries? I heard that the Full Stack guys know everything, on Co Lao pine under Dap Op wall, right? I heard that your company has a few senior guys who know everything and can code without needing Google Therefore, today I will expose the Full Stack/Senior guys (including myself), they are not as strong as you think! Full Stack is not something everyone knows! Normally, when looking for full-stack developers, companies often have the following requirements: Proficient, knows back-end code (C#, Java, PHP, Ruby...), API and Database design Proficient, know how to use one or several front-end frameworks (React, Angular, Vue or pure JS) Know a little about other miscellaneous things: Cloud, DevOps, System Architecture In short, full stack means knowing many things. Remember to know many things, they can code a function from start to finish, can communicate with many different teams. My own title is Full Stack, focusing a lot on front-end (because the team has little front-end). I have to go around with the design team, beg the back-end team when I need a difficult API, and yell at the DevOps guys to see how the system runs. Therefore, Full Stack is quite useful in small companies and startups, because they can do all kinds of things. However, they will not be able to have extensive knowledge about all areas, but will only focus on certain areas and have a basic knowledge of the remaining areas. (For example, if I code the front-end with flying colors, the back-end is fine, but asking me to deploy and setup the server is a bit annoying...) That's the reason why sometimes many guys are pure Front-end, pure Back-end, Pure DevOps salary is the same as Full Stack, although Full Stack usually knows all 3! Seniors also have to go to Google! Not long ago, Mr. DHH posted an article about: although he created Ruby on Rails, but now when it comes to writing basic algorithms and that, he is at a loss, always having to Google to find the code. Responding to that trend , other seniors also "confessed" very enthusiastically. You see, there are people at leadership level, working in huge companies, with decades of experience, but when needed... they still have to Google as usual. Personally, when working on a big project, sometimes when I encounter an error or code a new module, I still have to Google or reopen the old code to see what this code looks like. There's nothing shameful about Googling. The question is: At what level do you no longer need to Google basic things? The answer is... well, the human brain is not a hard drive, how can you remember everything? Just remember by Google. So what is better than senior than junior? After hearing the scandal, you must also see that the senior/fullstack guys are not as "buffalo" as rumored. So in what ways are they better than seniors? Why do they get such high salaries?? I answered this question in a few previous articles in the blog Difference between senior and junior: Experience: Working longer, you will be exposed to more technology, better understand the work process, and the company will also spend less time training. Technical abilities: Have an overall view of the system, deeper knowledge of how to write code. When encountering a bug, thanks to experience, the senior will know how to approach the problem systematically, rather than blindly trying to fix it to make it work. Attitude and responsibility: Senior is the one who teaches, chooses technology, sets the process and improves the process accordingly. Senior knows best practices (unit testing, automation testing, code review, CI/CD) and knows when to apply them. More importantly, both senior and junior must Google, Seniors just have better Google skills, that is, knowing how to use keywords to get the right results, and seeing which pages get better results! Conclusion You see, no matter what you say, becoming a senior, becoming a full-stack is not something that is too complicated, out of reach, only for the "buff" guys. They themselves are people, just like you, if you don't know then Google it, if it's difficult then ask. They also have things they don't know, things they need to learn and improve to get better. Therefore, if you set a goal of wanting to become a senior, you just need to try. You can also watch Code Dao's vlog about how to become a senior below. Rate this: Like this: Related
Mấy tuần nay mình Work From Home , công việc vẫn nhiều như cũ, chỉ được cái đỡ được thời gian đi lại, ngày có thêm 1-2 tiếng để đọc sách, vui chơi, ngẫm sự đời. Do dịch, mình cũng sống chậm lại, ít đi chơi hơn, ít ra khỏi nhà hơn, tự nấu ăn thay vì ăn tiệm. Nhờ sống chậm, mình có thời gian suy nghĩ linh tinh, nên nay viết mấy dòng này tâm sự với anh em IT cho vui. Đôi lời trong bài viết chỉ là suy nghĩ cá nhân, không phải lời khuyên. Anh em cứ xem như vừa đi nhậu uống Corona, vừa nghe thằng Code Dạo nó chém gió chơi vậy thôi nhen! Cảm thấy theo ngành IT là một điều may mắn Mấy ngày ngày, lên mạng đọc, đâu đâu cũng thấy doanh nghiệp đóng cửa, dân tình mất việc hoặc giảm doanh thu, nhất là mấy ngành du lịch, ăn uống, quảng cáo. May mắn thay, mình vẫn chưa bị… thất nghiệp. Ngẫm lại cũng may, ngành IT của tụi mình vẫn có thể làm remote được. Do vậy, trong ngắn hạn thì công việc của anh em ta vẫn chưa bị ảnh hưởng. Tuy vậy, kinh tế bị đình trệ là chuyện chắc chắn. Anh em ta cũng sẽ gián tiếp gặp khó khăn: công ty không có lợi nhuận, lương khó tăng, còn có thể bị giảm; các công ty khác ngại tuyển người, khó nhảy việc; các dự án freelance cũng ít lại. Chưa kể, nhiều startup sẽ bị ảnh hưởng nặng nề trong giai đoạn này (vận chuyển, giáo dục, du lịch v…v). Lương anh em IT khá cao , nên dễ thành đối tượng bị cắt giảm khi các công ty gặp khó khăn, hoặc … phá sản. Nên có để dành nguồn thu nhập thêm Do vậy, mình khuyên anh em nên chịu khó để dành, có nguồn thu nhập thêm. Việc để dành thì mình chắc anh em dev mình cũng khá rành. Ngành mình không cần ăn diện nhiều , không cần đầu tư xã giao. Do vậy, nếu chắc anh em nào độc thân, chưa vợ con, không bay lắc, chắc để dành cũng đc kha khá. Ngoài ra, có những khoản thu nhập bên ngoài cũng sẽ giúp anh em đỡ lo lắng. Ngoài việc chính trên công ty, mình còn có 1 số nguồn thu nhập tay trái như: Tiền quảng cáo từ blog/youtube/fanpage ( bit.ly/codedaotube ) Làm MMO – affliate dụ bạn đọc mua sách , mua bàn laptop Chạy grab, đi fuho Chụp hình cosplay sexy đăng patreon ( ) … Số tiền này dù không là bao so với lương, nhưng nếu thất nghiệp cũng đủ tiền cơm sườn cà phê ba bữa một ngày rồi. Cá nhân mình thì luôn để dành ít nhất 3-6 tháng chi phí sinh hoạt, để lỡ có mất việc đột xuất (sếp đuổi, công ty phá sản, tự rage quit…) vẫn thong thả được. Cuộc sống này làm gì có thứ gọi là … ổn định Ngẫm lại, anh em sẽ thấy thế cuộc nó vô thường lắm: Bà bán bún một ngày bỏ túi vài triệu tiền lời, giờ ế ẩm lo nghĩ làm sao kiếm chục triệu trả tiền mặt bằng Anh dev làm trong công ty to bự hàng ngàn nhân, việc nhàn lương cao, ổn định. Nay do dịch, công ty tìm cách cắt giảm nên ngày nào cũng … sống trong sợ hãi Anh dev khác đang có lương cao, vợ đẹp, con ngoan. Bỗng dưng lỡ đi mát xa, dính corona từ em gái mát xa . Nhẹ thì họ gà ho khan, nặng thì ho ra máo, lại lo vợ con ở nhà ai chăm… Ngẫm lại, đôi khi chúng ta quá quen với cuộc sống thường ngày : đi làm, chém gió với đồng nghiệp, nhận lương, … nên cảm thấy nó bình thường, nó nhàm chán. Đến khi ta không được ra khỏi nhà, mới cảm thấy đi làm vui biết chừng nào! Đến khi công ty ta phá sản, mới việc đồng lương nhận được mỗi tháng quí ra sao! Đến khi sốt sốt ho ho nghi nhiễm Covid, ta mới nhận ra sức khoẻ đáng giá và mong manh ra sao! Mà thôi, mất tự do thì từ từ có lại, mất việc thì từ từ kiếm lại, chỉ có mất sức khoẻ là hơi mệt . Anh em nhớ hạn chế đi lại, rửa tay nhiều, làm việc cũng vừa phải thôi, nhớ tập thể dục và chịch đều đặn. Mấy hôm nay, để luyện tập, mình cũng có chơi Ring Fit Adventure. Game luyện tay luyện chân luyện đủ thứ, hôm nào mình cũng tập 15-30 vừa đổ mồ hôi vừa giảm cân. Anh em có thể mua chơi thử nha. Tạm kết Túm cái quần lại, anh em dev chúng ta bị ảnh hưởng khá ít từ dịch lần này. Chúng ta không phải lo tiền mặt bằng vài chục triệu, lo trả lương nhân viên, lo cắt giảm nhân sự. Chúng ta còn được Work From Home, vừa thoải mái, vừa đỡ được thời gian đi lại. Nếu may mắn, dịch hết sớm, vài tháng nữa chúng ta sẽ trở lại cuộc sống thường nhật. Dịch mà hết lâu, có khi anh em ta sẽ phải thay đổi lối sống, thay đổi cách làm việc, cách tiêu tiền. Đó, vài lời chém gió của mình cũng hết rồi! Còn anh em thì sao, cuộc sống của anh em, người quen của anh em có gì thay đổi vì COVID không? Nhớ chia sẻ trong mục comment nha! Rate this: Like this: Related
These past few weeks I've been working from home, my work is still the same, the only thing is that I save time commuting, and have an extra 1-2 hours a day to read, have fun, and reflect on life. Due to the epidemic, I also slowed down, went out less, left the house less, and cooked for myself instead of eating out. Thanks to living slowly, I have time to think about random things, so now I'm writing these lines to confide in my IT friends for fun. Some words in this article are just personal thoughts, not advice. You guys just think of it as if you just went out to drink Corona and listened to Code Dao talking about it all the time! I feel like being in the IT industry is a blessing. Every day, when I go online and read, everywhere I see businesses closing, people losing their jobs or reducing revenue, especially in the tourism, catering, and advertising industries. Luckily, I haven't been... unemployed yet. Looking back, fortunately, our IT industry can still work remotely. Therefore, in the short term, our work has not been affected. However, economic stagnation is certain. Our brothers will also face difficulties indirectly: the company will not be profitable, salaries will be difficult to increase, and may even decrease; Other companies are hesitant to recruit people, making it difficult to change jobs; There are also fewer freelance projects. Not to mention, many startups will be severely affected during this period (transportation, education, tourism, etc.). IT workers' salaries are quite high, so they can easily be subject to cuts when companies encounter difficulties, or... go bankrupt. You should save extra income. Therefore, I advise you to work hard to save and have extra income. I'm sure my devs are quite familiar with saving things. In our industry, we don't need to dress up a lot, and we don't need to invest in socializing. Therefore, if you are single, don't have a wife or children, and don't have any affairs, you can probably save quite a bit. In addition, having outside income will also help you worry less. In addition to my main job at the company, I also have a number of side income sources such as: Advertising money from blog/youtube/fanpage (bit.ly/codedaotube) Make an MMO - an affiliate that entices readers to buy books and laptop tables Run grab, go fuho Take sexy cosplay photos and post on patreon ( ) … Although this amount is not much compared to the salary, if unemployed, it is still enough to pay for rice, ribs, and coffee three meals a day. Personally, I always save at least 3-6 months of living expenses, so that in case of unexpected job loss (boss fires me, company goes bankrupt, rage quits...) I can still relax. There is no such thing as... stability in this life. Thinking back, you will see that life is very impermanent: The vermicelli seller pocketed a few million in profit a day, but now she is depressed and worries about how to earn tens of millions to pay the rent. The dev works in a large company with thousands of employees, has a stable, high-paying job. Now due to the epidemic, the company is looking for ways to cut back, so every day... we live in fear The other dev has a high salary, a beautiful wife, and good children. Suddenly accidentally went for a massage and got corona from the massage girl. If it's mild, they'll have a dry cough, if it's severe, they'll cough up mucus, and they'll worry about who will take care of their wife and children at home... Thinking back, sometimes we are so used to everyday life: going to work, chatting with colleagues, receiving salary,... so we feel it's normal, it's boring. When we can't leave the house, we feel how much fun it is to go to work! When our company goes bankrupt, how precious is the salary we receive each month? Only when we have a fever, cough, or fever and suspect Covid infection do we realize how valuable and fragile health is! Well, if you lose your freedom you will slowly get it back, if you lose your job you will slowly get it back, only if you lose your health you will be a bit tired. Guys, remember to limit travel, wash your hands a lot, work moderately, and remember to exercise and fuck regularly. These days, to practice, I also play Ring Fit Adventure. The game trains my arms and legs to practice everything, every day I practice 15-30 minutes while sweating and losing weight. You can buy it and try it out. Temporary conclusion In short, we devs have been affected quite a bit by this epidemic. We don't have to worry about tens of millions in cash, paying staff salaries, or worrying about personnel cuts. We also get Work From Home, which is both comfortable and saves travel time. If we are lucky, the epidemic ends soon, and in a few months we will return to normal life. If the epidemic lasts for a long time, we may have to change our lifestyle, change our way of working, and change our way of spending money. That's it, some of my gossip is over! What about you, has your life or your acquaintances changed because of COVID? Remember to share in the comments section! Rate this: Like this: Related
Mấy nay do tình hình dịch SoCoLa phức tạp nên công ty mình cho phép Work From Home – Làm việc tại nhà , chỉ cần lên công ty khi cần. Đa phần bạn bè mình làm dev ở Việt Nam cũng làm việc tại nhà khá nhiều. Ban đầu thì bạn sẽ cảm thấy rất … sướng, được ngủ nướng, tiết kiệm được thời gian lên công ty, về nhà. Tuy nhiên, nếu không quen, bạn dễ mắc phải tình trạng … lười không muốn làm gì, buồn vì không ai nói chuyện, giảm năng suất làm việc . Do vậy, trong bài này, mình chia sẻ 1 số kinh nghiệm cá nhân giúp đỡ … lười, tăng năng suất khi làm việc tại nhà nhé. Mặc đồ đàng hoàng – Có chỗ làm việc riêng Bạn nên dành một chỗ riêng trong nhà cho công việc (phòng làm việc hoặc bàn làm việc). Thật ra thì, cơ thể chúng ta quen với việc … giường là nơi nghỉ ngơi, giải trí, không phải nơi làm việc. Ngồi trên giường thư thái hơn, nhưng sẽ không tập trung bằng. Từng có vài hôm mình lười, không thay đồ, không làm việc ngoài bàn mà dùng cái bàn “thần thánh”, ngồi trên giường làm luôn. Cả ngày làm việc cứ phởn phơ, năng suất giảm đi trông thấy. Theo kinh nghiệm, chỉ cần bạn mặc đồ như đi làm (sơ mi, quần jean), ngồi vào góc làm việc; là cơ thể tự cảm thấy hứng khởi như đang đi làm ngay. Code bay tóc! Lên plan cho từng ngày Ngoài ra, do ngồi ở nhà, không lo đồng nghiệp hay cấp trên dòm ngó, ta cũng dễ sa ngã vào các thú vui khác như Facebook, Youtube, Voz, Webtretho (Trên công ty cũng có, nhưng do xung quanh có người nên ta đỡ sa ngã hơn) Cách tốt nhất là chúng ta nên có sẵn 1 kế hoạch về những task sẽ làm trong ngày, hôm nay sẽ hoàn thành những việc gì. Sau đó cứ đi làm và nghỉ ngơi thôi! Cách này mình thấy khá hiệu quả, những hôm lên plan sẵn trước thì mình code tập trung hơn nhiều, không có 15p là vào Facebook 1 lần nữa. Nhớ bật webcam khi họp, mặc đồ đàng hoàng Work From Home nhưng lâu lâu vẫn có meeting. Do vậy, mình khuyên các bạn nên ăn mặc đàng hoàng, bật webcam khi họp . Tại sao vậy: Bật Webcam lên nhìn mặt nhau sẽ … đỡ nhớ, lộn, sẽ dễ nói chuyện hơn. Có 69.96% giao tiếp thông qua nét mặt, cử chỉ chứ không chỉ là lời nói Mặc đồ đàng hoàng rồi họp người ta sẽ thấy bạn nghiêm túc trong công việc Nhìn mặt nhau lúc họp để biết khi nào người khác đã dừng, khi nào mình có thể nói Ngoài ra, có nhiều task mà các bạn cần phải đi hỏi han, giao tiếp nhiều (vì requirement không rõ ràng, vì cần tích hợp nhiều team). Nếu làm việc trên công ty chỉ cần lăng xăng đi hỏi là xong. Nếu WFH thì bạn phải chịu khó tự setup meeting , sau đó hỏi hết những điều cần hỏi nhé! Làm việc đúng lúc – Nghỉ đúng giờ Như mình đã nói, nếu làm việc trong phòng ngủ, bạn sẽ dễ … rối vì không biết khi nào nên ngủ, khi nào nên làm. Nhiều khi lo ngủ nướng tận 10h mới làm việc, hoặc mê làm quá 7-8h mới nghỉ. Để giữ sức khoẻ, đảm bảo năng suất, bạn chỉ cần tập cho mình 1 lịch trình đều đặn , phân biệt nơi nghỉ, nơi làm việc là được: 9h dậy, qua phòng làm việc hoặc ngủ nướng thì 10h làm cũng được Tầm 12h-1h nghỉ ngơi, đi ăn Ăn uống xong nghỉ ngơi, làm tới 6-7h chiều, rời khỏi phòng đi ăn tối (Đừng ra đường kẻo lây SoCoLa cho người khác) Làm sao chứng tỏ mình đang … làm việc Nếu gặp sếp có tâm, tin tưởng bạn (như sếp mình) thì các bạn vẫn cứ làm việc như thường thôi. Tuy nhiên, có 1 số sếp không trực tiếp thấy nhân viên làm việc thì … khó chịu, sợ “bọn” nhân viên WFH thì work thì ít mà chơi thì nhiều . Lúc này, bạn cũng nên … hỗ trợ sếp 1 chút để sếp an tâm (sau này bạn thành sếp sẽ biết): Báo cáo những task mình đã làm, đang làm, sẽ làm cho sếp (không cần quá chi tiết, ngắn gọn thôi cũng được). Nếu có task dài thì nhớ estimate luôn để sếp biết bạn đang làm Online Skype/Slack, nếu có thể thì chịu khó trả lời nhanh khi đồng nghiệp hỏi để người hỏi khỏi sốt ruột (nếu đang code, cần tập trung thì treo status “đang code, làm phiền cắn ráng chịu” là được) Commit code đều đặn, update status các task trên Jira (hoặc phần mềm mà công ty bạn đang dùng) Bonus: Bạn cũng có thể áp dụng những chiêu này nếu bạn đang quẩy nhưng muốn người khác tưởng bạn đang làm việc. Tuy nhiên bần đạo không khuyến khích các hạ làm vậy, thiện tai thiện tai. Kết Trong bài này, mình đã chia sẻ 1 số kinh nghiệm làm việc tại nhà rồi. Anh em có trải nghiệm gì đáng nhớ, kinh nghiệm gì hay ho thì cứ comment nha. Ngoài lề một xí : Tình hình dịch hơi phức tạp, mặc dù hiện tại chưa trực tiếp ảnh hưởng đến chúng ta. Thế những, tiền lương của chúng ta là từ nhà đầu tư, từ khách hàng. Dịch mà lâu quá, khách hàng phá sản thì … cũng không có việc cho ta làm, không ai trả tiền cho mình đâu. Do vậy, anh em cũng nên chi tiêu, dành dụm cẩn trọng nhé (Nhất là những anh em lương cao, làm start-up). Nên xài ít lại, để dành tầm 3-6 tháng chi phí sinh hoạt . Mình thì xài cũng ít nên giờ có mất việc thì tiền để dành cũng đủ sống cả năm trời, không xi nhê =)) Rate this: Like this: Related
Recently, due to the complicated SoCoLa epidemic situation, my company allows Work From Home - Work from home, just come to the company when needed. Most of my friends who are developers in Vietnam also work from home a lot. At first, you will feel very... happy, sleeping in, saving time going to the company and going home. However, if you are not used to it, you can easily fall into the situation of... being lazy and not wanting to do anything, being sad because no one talks to you, and reducing your productivity. Therefore, in this article, I share some personal experiences to help... laziness and increase productivity when working at home. Dress properly – Have a separate place to work You should set aside a separate place in the house for work (office or desk). Actually, our bodies are used to... the bed is a place of rest and entertainment, not a place of work. Sitting in bed is more relaxing, but won't be as focused. There were a few days when I was lazy, didn't change clothes, didn't work at the desk but used the "divine" desk, sitting on the bed to do it. Working all day in a state of euphoria, productivity is noticeably reduced. According to experience, you just need to wear work clothes (shirt, jeans), sit in the corner to work; The body feels excited like it's going to work right away. Hair flying code! Plan for each day In addition, by sitting at home, not worrying about colleagues or superiors watching, we can easily fall into other hobbies such as Facebook, Youtube, Voz, Webtretho (It's also available at the company, but because There are people around so we can avoid falling. The best way is to have a plan in place about the tasks we will do during the day and what we will complete today. Then just go to work and rest! I find this method quite effective. On days when I plan ahead, I code much more focused, without having to go to Facebook again every 15 minutes. Remember to turn on your webcam during meetings, wear proper clothes. Work From Home but occasionally there will be meetings. Therefore, I advise you to dress properly and turn on your webcam during meetings. Why so: Turning on the Webcam and looking at each other's faces will... help you remember and confuse things, and it will be easier to talk. 69.96% of communication is through facial expressions and gestures, not just words Wearing proper clothes to meetings will make people see that you are serious about your work Look at each other during meetings to know when the other person has stopped and when you can speak In addition, there are many tasks that you need to ask questions and communicate a lot (because the requirements are not clear, because many teams need to be integrated). If you work for a company, just go around asking and you're done. If you WFH, you have to take the trouble to set up the meeting yourself, then ask all the questions you need to ask! Work at the right time - Rest on time As I said, if you work in the bedroom, you will easily get confused because you don't know when to sleep and when to work. Sometimes I worry about sleeping in until 10 o'clock before working, or working too hard for 7-8 hours before taking a break. To stay healthy and ensure productivity, you just need to practice a regular schedule, distinguishing between places to rest and places to work: Wake up at 9am, go to the office or sleep in, then you can work at 10am Around 12:00 - 1:00, rest and eat After eating, rest, work until 6-7pm, leave the room to have dinner (Don't go out to avoid spreading SoCoLa to others) How to prove that you are... working If you meet a boss who cares and trusts you (like my boss), you can still work as usual. However, there are some bosses who don't directly see their employees working and are... uncomfortable, afraid that "the group" of WFH employees will work less and play more. At this time, you should also... support your boss a little so he can feel secure (you will know later when you become a boss): Report the tasks you have done, are doing, and will do to your boss (no need to be too detailed, just short is fine). If you have a long task, remember to estimate it so your boss knows what you're doing Online Skype/Slack, if possible, try to answer quickly when colleagues ask so that the questioner doesn't get impatient (if you're coding and need to concentrate, then hang the status "coding, please bear with it" is fine) Commit code regularly, update status of tasks on Jira (or the software your company is using) Bonus: You can also apply these tricks if you're having fun but want others to think you're working. However, poor people do not encourage you to do so, good disasters are good disasters. Conclusion In this article, I have shared some experiences working from home. If you have any memorable or interesting experiences, please comment. On the sidelines: The epidemic situation is a bit complicated, although it currently does not directly affect us. However, our salary comes from investors and customers. If the translation takes too long, the customer goes bankrupt... there's no work for us to do, no one will pay us. Therefore, you should also spend and save carefully (especially those with high salaries and start-ups). You should spend less, save about 3-6 months of living expenses. I spend a little, so now if I lose my job, my savings will be enough to live for a whole year, no big deal =)) Rate this: Like this: Related
Thời gian gần đây, đi liền với sự nổi dậy của cloud computing, microservice cũng đang dần trở thành một từ khóa hot. Bài viết này sẽ giới thiệu tổng quan về microservice một cách đơn giản, dễ hiểu cho bà con gần xa. Micro là rất nhỏ, service là dịch vụ, vậy microservice nghĩa là… dịch vụ vô cùng nhỏ . Nói đơn giản, microservice là một kiếu kiến trúc phần mềm. Các module trong phần mềm này được chia thành các service rất nhỏ (microservice). Có vẻ phức tạp ha? Ủa mà vậy thì liên quan gì đến cái bồn cầu nhỉ?? Đọc hết bài rồi sẽ hiểu ngay thôi! Từ cái bồn cầu và kiến trúc monolith Ngành phần mềm “vay mượn” khá nhiều ý tưởng từ ngành kiến trúc (những từ như architecture, pattern đều là mượn từ ngành kiến trúc cả). Do vậy, để hiểu về microservice, ta hãy xem cách dân kiến trúc xây dựng nó. Bạn thấy gì khi nhìn vào hình dưới? Dĩ nhiên là… thấy một cái bồn cầu. Sai rồi, bạn còn thấy một cái bồn rửa mặt và một cái bồn tắm nữa, tổng cộng là ba cái bồn. Nói đơn giản, trong bức hình không chỉ đơn thuần là cái bồn cầu mà còn là phòng tắm, với bồn tắm bồn cầu bồn rửa mặt. Đây là kiến trúc mà chúng ta thường dùng để xây dựng phần mềm – kiến trúc monolith (một khối). Toàn bộ các module (view, business, database, report) đều được gom chung vào một project lớn . Khi deploy , mấy anh IT sẽ ném khối code này lên server và config để nó chạy. Kiến trúc này hoạt động khá tốt vì nó đơn giản, dễ code. Tuy nhiên, khi phần mềm trở nên lớn và phức tạp thì nó lại dần bộc lộ nhược điểm. Do các module dính với nhau thành … một cục, khi muốn nâng cấp một module, ta phải deploy lại toàn bộ code ; khi muốn phục vụ nhiều người dùng, ta phải nâng cấp server . Ví dụ như trong hình, giả sử mình lấy vợ, muốn mở rộng cái bồn tắm để … hai người tắm chung :”>, mình phải đập cả phòng tắm để mở rộng nó. Trong thời gian đó, cả bồn tắm lẫn bồn rửa mặt đều không thể hoạt động . Cho đến phần mềm và microservice Chúng ta hãy chuyển qua ngắm một cái bồn cầu khác (trong kí túc xá của mình) được xây dựng theo kiến trúc microservice. Thoạt nhìn, cái bồn cầu này có vẻ cũ và bẩn hơn cái trên. Tuy nhiên, nó đã tuân theo kiến trúc microservice một cách hoàn mĩ. Toàn bộ hệ thống được chia làm ba module riêng biệt: bồn rửa mặt, toilet, phòng tắm. Nếu muốn nâng cấp toliet, mình chỉ đập cái cũ, mua cái mới về lắp, không ảnh hưởng tới module khác (bồn rửa mặt hay phòng tắm). Kiến trúc microservice cũng tương tự vậy. Thay vì gom tất cả module thành một khối (monolith), ta tách các module thành những service siêu nhỏ . Mỗi service sẽ được đặt trên một server riêng (Có thể dùng server cloud như AWS hoặc Azure), giao tiếp với nhau thông qua mạng (Gửi nhận message qua giao thức HTTP hoặc sử dụng MessageQueue).. Ủa mà tại sao phải làm như vậy nhỉ? Đọc tiếp tiếp đoạn dưới nhé! Microservice – Lợi và hại Không phải vô duyên vô cớ mà người ta nghĩ ra kiến trúc microservice. Hiện nay, các ứng dụng rất lớn và liên tục được update. Với kiến trúc monolith, việc gom toàn bộ ứng dụng vào một cục làm việc nâng cấp trở nên khó khăn và mất thời gian. Để giải quyết, lập trình viên bắt đầu tách dần ứng dụng lớn ra thành các service nhỏ. Mỗi service quản lý một cơ sở dữ liệu riêng, nằm trên một server riêng, tách biệt hoàn toàn với nhau. Kiến trúc microservice ra đời từ đó. Kiến trúc này có những ưu điểm sau: Dễ nâng cấp và scale , đây là điều quan trọng nhất. Giả sử bạn làm một trang web bán hàng . Tới cuối năm, cần xuất nhiều hóa đơn, chỉ việc nâng cấp server cho service order và report là xong. Với cloud computing, việc nâng cấp server vô cùng dễ dàng chỉ với vài cú click chuột. Điều này rất khó thực hiện với monolith. Do tách biệt nên nếu một service bị lỗi, toàn bộ hệ thống vẫn hoạt động bình thường. Với monolith, một module bị lỗi có thể sẽ kéo theo toàn bộ hệ thống… tiêu đời. Với monolith, các module sử dụng chung 1 ngôn ngữ/framework . Với microservice, các service nằm tách biệt nhau, bạn có thể thoải mái sử dụng ngôn ngữ lập trình riêng, database riêng. VD service xử lý ảnh có thể viết bằng C++, service tổng hợp data có thể viết bằng Python. Tất nhiên là không có bữa trưa nào miễn phí, microserivce cũng đi kèm một số khuyết điểm. Các module giao tiếp qua mạng nên có thể tốc độ không cao bằng monolith. Ngoài ra, mỗi module phải tự giải quyết các vấn đề về bảo mật , transaction, lỗi kết nối, quản lý log files. Mỗi service sử dụng một database riêng, việc đảm bảo tính đồng nhất trong dữ liệu sẽ trở nên phức tạp. Sử dụng nhiều service nên việc theo dõi, quản lý các service này sẽ phức tạp hơn. Do vậy, một số tool/công nghệ ra đời để phục vụ cho việc này (Docker, Ansible, Salt, Octopus, …). Cần một đội ngũ có khả năng và trình độ : Software Architect để phân tách module, Techinical Leader để setup workflow, IT/DevOps để setup CI/CD , deploy lên cloud…. Thử tuyển 1 team 4 dev PHP intern thì tới mùa quýt năm sau cũng chưa triển khai được microservice nhé. Con đường phía trước Kiến trúc Microservice đã được nhiều công ty lớn áp dụng như Amazon, Netflix, chứng tỏ rằng nó hiệu quả, giải quyết được vấn đề . Tuy nhiên, điều đó không có nghĩa chúng ta nên mù quáng, cắm đầu làm theo các công ty lớn. Một số lời khuyên bổ ích mình rút ra được là: Để đơn giản, trước hết hãy tập trung phát triển ứng dụng dạng monolith, với nhiều module riêng biệt trước. Khi vai trò của các module đã rõ ràng, ta có thể dần tách cách module này ra thành các service riêng. Bác Martin Fowler, một cây đa cây đề ngành phần mềm, một người có khá nhiều bài viết kinh điển về Microservice, cũng không dám khẳng định là microservice sẽ hoàn toàn thay thế được monolith trong tương lai. Do vậy, sau khi đọc xong bài viết này, các bạn đừng lên công ty và đề nghị cả team đập hết project hiện tại, thiết kế lại theo hướng microservice để theo kịp xu thế nhé! Nguồn để tìm hiểu thêm Rate this: Like this: Related
Recently, along with the rise of cloud computing, microservices are also gradually becoming a hot keyword. This article will introduce an overview of microservices in a simple and easy-to-understand way for people near and far. Micro is very small, service is a service, so microservice means... extremely small service. Simply put, microservices are a style of software architecture. Modules in this software are divided into very small services (microservices). Seems complicated, huh? Well, what does that have to do with the toilet?? Read the entire article and you will understand immediately! From the toilet and monolith architecture The software industry "borrows" a lot of ideas from the architecture industry (words like architecture, pattern are all borrowed from the architecture industry). Therefore, to understand microservices, let's look at how architects build them. What do you see when you look at the image below? Of course… saw a toilet. That's wrong, you also see a sink and a bathtub, a total of three sinks. Simply put, in the picture there is not just a toilet but also a bathroom, with a bathtub, toilet and sink. This is the architecture we often use to build software - monolith architecture (one block). All modules (view, business, database, report) are combined into one large project. When deploying, the IT guys will throw this block of code onto the server and configure it to run. This architecture works quite well because it is simple and easy to code. However, as software becomes large and complex, it gradually reveals its shortcomings. Because the modules are stuck together into... one piece, when we want to upgrade a module, we have to redeploy the entire code; When we want to serve many users, we must upgrade the server. For example, in the picture, suppose I get married and want to expand the bathtub so that... two people can bathe together :”>, I have to destroy the whole bathroom to expand it. During that time, neither the bathtub nor the sink could operate. Up to software and microservices Let's move on to look at another toilet (in my dorm) built according to microservice architecture. At first glance, this toilet seems older and dirtier than the one above. However, it has followed the microservice architecture flawlessly. The entire system is divided into three separate modules: sink, toilet, bathroom. If I want to upgrade the toliet, I just destroy the old one, buy a new one and install it, it doesn't affect other modules (sink or bathroom). Microservice architecture is similar. Instead of gathering all modules into one block (monolith), we separate the modules into micro services. Each service will be placed on a separate server (Can use cloud server like AWS or Azure), communicate with each other through the network (Send and receive messages via HTTP protocol or use MessageQueue).. Why do we have to do this? Is that so? Continue reading below! Microservices - Benefits and disadvantages It is not without reason that people came up with microservice architecture. Currently, applications are very large and are constantly updated. With monolith architecture, gathering the entire application into one unit for upgrading becomes difficult and time-consuming. To solve it, programmers began to gradually separate large applications into small services. Each service manages a separate database, located on a separate server, completely separate from each other. Microservice architecture was born from there. This architecture has the following advantages: Easy to upgrade and scale, this is the most important thing. Suppose you make a sales website. By the end of the year, many invoices need to be issued, just need to upgrade the server for service orders and reporting and that's it. With cloud computing, upgrading servers is extremely easy with just a few mouse clicks. This is very difficult to do with monolith. Due to separation, if one service fails, the entire system still operates normally. With monolith, one faulty module can bring the entire system... to the end. With monolith, the modules use the same language/framework. With microservices, the services are separate, you can freely use your own programming language and database. For example, image processing services can be written in C++, data synthesis services can be written in Python. Of course there is no free lunch, microservices also come with some disadvantages. Modules communicate over the network so the speed may not be as high as monolith. In addition, each module must resolve issues of security, transactions, connection errors, and log files management. Each service uses a separate database, ensuring data consistency becomes complicated. Using many services makes monitoring and managing these services more complicated. Therefore, a number of tools/technologies were born to serve this task (Docker, Ansible, Salt, Octopus, ...). Need a capable and qualified team: Software Architect to decompose modules, Techinical Leader to setup workflow, IT/DevOps to setup CI/CD, deploy to cloud... Try recruiting a team of 4 intern PHP devs, but by next year's tangerine season, you still won't be able to deploy microservices. The way forward Microservice architecture has been adopted by many large companies such as Amazon and Netflix, proving that it is effective and solves the problem. However, that doesn't mean we should blindly follow big companies. Some useful advice I learned is: For simplicity, first focus on developing a monolith application, with many separate modules first. Once the roles of the modules are clear, we can gradually separate this module into separate services. Mr. Martin Fowler, an expert in the software industry, who has written many classic articles about Microservices, does not dare to assert that Microservices will completely replace monoliths in the future. Therefore, after reading this article, don't go to the company and ask the whole team to destroy the current project and redesign it in a microservice direction to keep up with the trend! Source to learn more Rate this: Like this: Related
Bên cạnh việc đọc sách kĩ thuật , lâu lâu anh em dev chúng mình nên kiếm sách văn học, sách kinh doanh, …. Vừa đọc để giải trí, vừa giúp con người trở nên chững chạc và “sâu sắc” hơn luôn. Kì này, mình giới thiệu sách của Malcolm Gladwell. Nếu chưa từng đọc cuốn nào của ông thì các bạn đã bỏ phí 1 tác giả xuất sắc rồi. Trong bài này, mình sẽ giới thiệu, review sơ sách của ông, dụ dỗ để anh em thấy hay mà đọc chung nha. Giới thiệu sơ về Malcolm Galdwell Malcolm Gladwell là 1 nhà báo, kiêm tác giả, kiêm nhà diễn thuyết. Ông là một cây viết của tờ The New Yorker bên Mĩ Đa phần sách của ông viết về tâm lý, xã hội học. Tuy nhiên, sách của ông không hề buồn ngủ mà lại … rất cuốn hút, đọc xong là khó mà dứt ra được. Ông không trình bày vấn đề theo kiểu triết lý dài dòng, mà theo kiểu kể chuyện, đọc mà không biết tiếp theo sẽ thế nào, xong lại … ơ-rê-ka vì khám phá ra 1 số thứ hay ho. Những cuốn sách hay ho của Malcolm Gladwell Ông viết không nhiều (tầm 5,6 cuốn) nhưng hầu cuốn nào cũng hay và thành best-seller. Do vậy, cuốn nào của ông mình cũng đọc, mình review sơ dựa thứ tự mình đọc nhé. Blink – Trong Nháy Mắt Cuốn đầu tiên mình đọc của ông là Blink – Trong Nháy Mắt . Sách có cách nhìn khá thú vị về tiềm thức, cách ta đưa ra quyết định. Sách mở đầu bằng thí nhiệm của các nhà khoa hoc, chỉ quan sát tầm 3 phút đã có thể dự đoán được … hạnh phúc tương lai của 1 cặp vợ chồng Ta sẽ biết tại sao một số chuyên gia có thể nhìn nhận vấn đề, đưa ra quyết định chính xác … trong chớp mắt (Bật mí: nhờ não bộ đã xử lý quá nhiều trông tin, tự đút kết cách rút được thông tin quan trọng), nhưng lại … không thể giải thích được. Outliers – Những kẻ xuất chúng Tiếp sau đó, mình đọc Outliers – Những kẻ xuất chúng. Trong cuốn này, tác giả viết về những câu chuyện về những con người thành công/xuất chúng. Tuy nhiên, nếu những cuốn sách khác kể về những khó khăn, gian khổ, nỗ lực để thành công; thì Gladwell lại có 1 cái nhìn khác. Ông nhận ra rằng hoá ra … rất nhiều người thành công vì họ có được một số ưu thế, cơ hội đặc biệt mà người khác không có được (sinh sớm hơn, sinh đúng thời, hoàn cảnh tốt). Đọc cuốn này xong, bạn sẽ có 1 cái nhìn khác về thành công , cũng như bớt so do, cay cú với người may mắn thành công, hoặc coi thường những người không may thất bại nhé. David và Goliath Cho những bạn chưa biết điển tích David và Goliath : David là 1 chàng chăn cừu tí hon, phải chiến đấu với Goliath, mỗi gã khổng lồ. dù hình thể chênh lệch, David dùng ná bắn vào mắt gã khổng lồ, hạ gục gã. Điển tích này kể về những người nhỏ bé vẫn có khả năng hạ gục những kẻ to lớn gấp nhiều lần mình . Trong cuốn sách của mình, Gladwell dùng điển tích này, kể về những câu chuyện mà ở đó kẻ yếu (David) chiến thẳng kẻ mạnh hơn mình (Goliath). Bạn sẽ nhận ra rằng đôi khi điểm yếu không thật sự là điểm yếu . Những công ty nhỏ, ít vốn đôi khi lại có lợi thế cạnh tranh hơn những công ty khổng lồ, bộ máy nặng về phức tạp. Điều bạn nghĩ là bất lợi của bạn, biết đâu lại giúp bạn lợi thế hơn người khác. (Cuốn What the Dog Saw hay nhưng hơi lan man, không có 1 chủ đề cụ thể nên mình không review. ) Talking to Strangers – Tâm sự cùng người lạ Đây là cuốn sách mới nhất của Malcolm Gladwell (Ra mắt cuối 2019), nên chưa có bản tiếng Việt. Chúng ta thường tưởng rằng mình … biết nhìn người, có thể đánh giá được cảm xúc, thái độ của người khác. Tuy nhiên, sách chứng minh cho ta thấy … chúng ta không giỏi nhìn người như mình nghĩ, đến cả nhân viên CIA vẫn bị gián điệp lừa như thường. Có một điều hơi lạ là cuốn này mình đọc thấy hay , nhưng những bài học rút ra từ sách thì hơi … chung chung, không áp dụng được mấy. Tạm kết Một điểm khá hay nữa của Malcolm Gladwell là dù ông viết nhiều sách, cùng về tâm lý xã hội nhưng mỗi cuốn sách lại về 1 chủ để khác nhau . Do đó các bạn có thể đọc liền tù tì nhiều cuốn của ông mà không thấy chán một chút nào! Sách của ông khá hay đa phần đều đã xuất bản ở Việt Nam, cũng khá nổi tiếng trong cộng đồng. Nếu muốn đọc thửu các bạn có thể tìm mua trên tiki nha: Còn bạn thì sao, các bạn đọc sách/thích sách nào của Malcolm Gladwell? Hãy chia sẻ trải nghiệm trong comment phía dưới nha! Rate this: Like this: Related
Besides reading technical books, from time to time we developers should look for literature books, business books, etc. Reading is both entertaining and helps people become more mature and "deep" at the same time. This time, I introduce books by Malcolm Gladwell. If you've never read any of his books, you're missing out on an excellent author. In this article, I will introduce and review his books, and encourage you guys to find them interesting and read them together. Brief introduction about Malcolm Galdwell Malcolm Gladwell is a journalist, author, and speaker. He is a writer for The New Yorker in the US. Most of his books are about psychology and sociology. However, his books are not sleepy at all but... very attractive, after reading it it is difficult to put down. He did not present the problem in a long-winded philosophical style, but in a storytelling style, reading without knowing what would happen next, then... well, because he discovered some interesting things. Malcolm Gladwell's great books He didn't write many (about 5 or 6 books) but almost every book was good and became a best-seller. Therefore, I read all of his books, so I will briefly review them based on the order in which I read them. Blink – In a Blink of an Eye The first book I read of his was Blink – In a Blink of an Eye. The book has quite an interesting perspective on the subconscious and how we make decisions. The book opens with an experiment by scientists, only observing for about 3 minutes can predict... the future happiness of a couple. We will know why some experts can see the problem, make accurate decisions... in the blink of an eye (Spoiler: thanks to the brain processing too much information, concluding how to extract important information), but... inexplicable. Outliers – Outliers Next, I read Outliers – Outliers. In this book, the author writes stories about successful/outstanding people. However, if other books tell about difficulties, hardships, and efforts to succeed; Gladwell has a different view. He realized that it turns out... many people are successful because they have some special advantages and opportunities that others don't have (born earlier, born at the right time, good circumstances). After reading this book, you will have a different view of success, as well as less worry and bitterness towards those who are lucky enough to succeed, or look down on those who unfortunately fail. David and Goliath For those of you who don't know the story of David and Goliath: David is a tiny shepherd who has to fight Goliath, each giant. Despite their physical difference, David used his sling to shoot the giant in the eye, defeating him. This story is about small people who still have the ability to defeat people many times larger than themselves. In his book, Gladwell uses this classic, telling stories in which the weak (David) fights against the stronger (Goliath). You will realize that sometimes weaknesses are not really weaknesses. Small companies with little capital sometimes have a competitive advantage over giant companies with heavy and complex machinery. What you think is your disadvantage, may give you an advantage over others. (The book What the Dog Saw is good but a bit rambling, doesn't have a specific topic so I don't review it.) Talking to Strangers - Confiding in strangers This is the latest book by Malcolm Gladwell (Released at the end of 2019), So there is no Vietnamese version yet. We often think that we... know how to look at people, can evaluate the emotions and attitudes of others. However, books prove to us that... we are not as good at seeing people as we think, even CIA agents are still tricked by spies as usual. One strange thing is that I found this book interesting, but the lessons learned from the book are a bit... general, not very applicable. Conclusion Another good point of Malcolm Gladwell is that although he wrote many books, all about social psychology, each book is about a different topic. Therefore, you can read many of his books without getting bored at all! His books are quite good, most of them have been published in Vietnam, and are also quite famous in the community. If you want to try it out, you can buy it on tiki: What about you, what books do you read/like by Malcolm Gladwell? Please share your experience in the comments below! Rate this: Like this: Related
Cá nhân mình hay đọc mấy blog lập trình trên Medium, trên Quora, đọc blog của Uncle Bob, Martin Fowler để nâng cao trình độ. Từ lúc Medium ra đời, kéo theo sự ra đời của HackerNoon, FreeCodeCamp, số lượng developer viết blog kĩ thuật cũng khá nhiều. Ở Việt Nam cũng vậy, cách đây 5 năm chỉ có lèo tèo vài trang, còn gần đây thì mọc lên như nấm. Mình thì rất thích đọc blog. So với đọc sách kĩ thuật, blog thường tóm tắt, ngắn gọn, dễ thấm hơn . Thế nhưng, chẳng hiểu gần đây già rồi hay sao, dạo này càng đọc blog nhiều mình càng cảm thấy … méo nên quá tin mấy cái blog lập trình (điển hình như cái blog TDCD này). Tại sao vậy? Các bạn đọc hết bài rồi sẽ rõ nhé. Từ một bài blog về Database Cách đây không lâu, mình có đọc bài viết này: . Tác giả khuyên mọi người nên gom hết logic bỏ vào database (trigger, procedure), với một số lý do nghe có vẻ khá hợp lí như: Làm cho code đơn giản hơn Để hết logic vào DB, khi chuyển đổi ngôn ngữ (C#, Ruby, Java) không cần phải implement lại từ đầu Thế nhưng, nếu chịu khó kéo xuống đọc comment, các bạn sẽ thấy khá nhiều “gạch đá” từ phía người đọc: Code Procedure trong DB làm sao để unit test , làm sao bỏ vào source control, khi cần làm sao rollback (Tất nhiên có cách hết nha) Database là nơi rất dễ bottleneck, nếu các logic xử lý này bỏ vào web server thì có thể thêm server để scale , bỏ vào database thì .. làm sao scale?? Làm sao để caching , logging , debug code khi bỏ hết cả vào db như vậy?? Các bạn thấy đấy, nếu như không đủ trình độ, cứ đọc sơ blog rồi theo “À, thôi bỏ hết logic vào DB đi”, các bạn sẽ dễ dàng sấp mặt l khi áp dụng vào thực tế. Đừng quá tin vào kiến thức trên Blog Nói cho cùng, một bài blog là do chủ blog viết ra, nội dung bài viết là dựa vào kiến thức chủ quan, góc nhìn của người viết . Mấy bài báo hoặc academic paper còn có peer review, review lại nội dung, chứ blog nho nhỏ thì … hầu như không có. Mà, nhân vô thập toàn, kiến thức của mỗi người có hạn . Những điều mình tưởng đúng bây giờ, có thể về sau lại … sai bét. Vì blog dựa vào góc nhìn của người viết, nên nếu người viết chưa từng trải qua, chưa từng thực sự làm thì sẽ không thể viết chính xác được. Ví dụ, mình trước giờ toàn làm startup, làm product ; bỗng dưng một hôm mình hứng lên viết về làm cho công ty lớn, làm ERP, bài viết sẽ thành một đống bullshit ngay. Hoặc như chuyện lương bổng ngành IT . Bạn bè mình toàn lương cao nên mình tưởng lương ngành IT cao; bạn khác làm công ty nhỏ, lương ít thì tưởng lương ngành IT thấp. Mỗi người 1 cái nhìn, không ai biết hết tất cả để mà đánh giá. Do vậy, trong bài viết của mình, mình thường có tư tưởng là ngành IT lương cao, dễ kiếm việc, trong khi sự thật có thể hoàn toàn ngược lại. Một số lý do khác Ngoài ra, gần đây, do số lượng sinh viên IT, người quan tâm đến ngành IT tăng nhiều. Do vậy có 1 bộ phận viết blog không phải vì đam mê, muốn chia sẻ kinh nghiệm ; mà chỉ là … để có content, viết cho có, viết để SEO lấy traffic (Một số trang mà mình không tiện nhắc tên ở đây). Hậu quả là số lượng nhiều mà chất không bao nhiêu . Nhiều bài tiếng Việt thì copy/xào chế từ blog khác , hoặc dịch từ blog nước ngoài nghe sống sượng. Nhiều bài blog nước ngoài thì chỉ list ra cái này cái kia, chả có chút nghiên cứu cũng như mang lại giá trị gì. Bài viết không hề có sự đầu từ gì, viết chỉ để tăng like, tăng clap trên Medium, tăng sức ảnh hưởng của người viết, chứ không mang lại giá trị cho người đọc. Tạm kết Đấy, vài lời trong bài viết này cũng là vài lời tám nhảm của Code Dạo với bạn đọc thôi. Lời khuyên thì mình đã nói từ đầu: Bạn không nên quá tin mấy cái blog lập trình trên mạng (điển hình là thằng Code Dạo) Vì vậy, khi đọc blog, dù có thấy hay và hợp lý đi chăng nữa, bạn cũng đừng nên tin, mà phải tìm hiểu thêm, thử nhìn từ góc độ khác: Thấy bài viết khen Golang, hãy thử Google “Why Golang sucks” Thấy bài báo chê ngành IT lương cao, hãy thử Google “lập trình viên nghèo” Thấy giang hồ hướng dẫn, tung hộ React/Redux, hãy Google “Why you don’t need React/Redux” Với thái độ “không tin bố con thằng nào cả”, bạn sẽ có cái nhìn khách quan, chuẩn xác hơn. Các bạn cũng nên chắt lọc bớt thông tin lại. Các cụ dặn quí hồ tinh bất quí hồ đa (chỉ cần tốt chứ không cần nhiều). Mỗi tuần đọc 2,3 bài blog hay, sáng tạo còn có ích hơn đọc mấy bài nhảm nhí nhé. Còn về nguồn các blog hay, có ích thì các bạn cứ xem ở đây: Đưa kiến thức lập trình tự tìm đến bạn Top cây đa cây đề trong ngành lập trình Top 5 blog hay về IT đáng đọc Rate this: Like this: Related
Personally, I often read programming blogs on Medium, on Quora, and read the blogs of Uncle Bob and Martin Fowler to improve my skills. Since the birth of Medium, followed by the birth of HackerNoon and FreeCodeCamp, the number of developers writing technical blogs has also been quite large. In Vietnam, too, 5 years ago there were only a few pages, but recently they have grown like mushrooms. I really like reading blogs. Compared to reading technical books, blogs are often more summary, concise, and easier to absorb. However, I don't know why I'm getting old lately. Lately, the more I read blogs, the more I feel... that I trust programming blogs too much (typically this TDCD blog). Why so? Please read the entire article and you will understand. From a blog post about Database Not long ago, I read this article: . The author advises people to put all the logic into the database (trigger, procedure), for some reasons that seem quite reasonable such as: Makes code simpler To leave all logic in the DB, when switching languages ​​(C#, Ruby, Java), there is no need to re-implement from scratch However, if you take the time to scroll down and read the comments, you will see quite a few "criticisms" from readers: How to unit test Code Procedures in the DB, how to put them into source control, and when needed, how to rollback (Of course there is a way) The database is a very easy bottleneck. If these processing logics are put into the web server, you can add a server to scale. If you put these processing logic in the database, how can you scale it?? How to caching, logging, debug code when putting everything in the database like that?? You see, if you are not qualified enough, just read the blog and then say "Ah, stop putting all the logic in the DB", you will easily face down when applying it in practice. Don't rely too much on the knowledge on the Blog. After all, a blog post is written by the blog owner, the content of the post is based on the subjective knowledge and perspective of the writer. Some articles or academic papers also have peer reviews and content reviews, but small blogs...almost do not exist. Well, cause is not perfect, each person's knowledge is limited. What we think is right now, may turn out to be... wrong later. Because blogging is based on the writer's perspective, if the writer has never experienced it or actually done it, he or she will not be able to write accurately. For example, I have always done startups and products; Suddenly one day I was inspired to write about working for a big company, doing ERP, the article would immediately turn into a pile of bullshit. Or like salaries in the IT industry. My friends all have high salaries, so I thought IT salaries were high; Another friend who works at a small company with little salary thinks the salary in the IT industry is low. Each person has an opinion, no one knows everything to judge. Therefore, in my articles, I often have the idea that the IT industry has high salaries and is easy to find a job, while the truth may be quite the opposite. Some other reasons In addition, recently, the number of IT students and people interested in the IT industry has increased. Therefore, there is a group that blogs not because of passion, but because they want to share experiences; but just... to have content, write for it, write for SEO to get traffic (Some pages that I can't mention the names of here). The result is a lot of quantity but not much quality. Many Vietnamese articles are copied/modified from other blogs, or translated from foreign blogs, which sounds crude. Many foreign blog posts just list this and that, without any research or value. The article has no investment whatsoever, written only to increase likes, increase claps on Medium, increase the writer's influence, and not bring value to readers. In conclusion, a few words in this article are just some of Code Dao's gossip to readers. The advice I said from the beginning: You should not trust programming blogs on the internet too much (typically Code Dao). Therefore, when reading a blog, no matter how good and reasonable it seems, you should not Should not believe, but must learn more, try looking from another angle: Seeing an article praising Golang, try Google "Why Golang sucks" Seeing an article criticizing the high-paying IT industry, try Google "poor programmer" If you see some instructions and support for React/Redux, Google "Why you don't need React/Redux" With the attitude of "don't trust anyone", you will have a more objective and accurate view. You should also filter down the information. The elders told us that if we are precious, we don't need to be precious (we only need to be good, not too much). Reading 2-3 good, creative blog posts every week is more beneficial than reading nonsense articles. As for sources of good and useful blogs, you can look here: Bring programming knowledge to you Top multi-tree topics in the programming industry Top 5 good blogs about IT worth reading Rate this: Like this: Related
Hôm trước, mình đã có viết bài về 4 cách rèn luyện tư duy lập trình rồi! Do nhiều bạn muốn cụ thể, chi tiết những trang có thể học tập, luyện thuật toán nên hôm nay mình chia sẻ thêm cho các bạn 5 trang cực kì hay ho để luyện thuật toán/học lập trình nha! Các bạn không cần phải dùng hết cả 2 làm gì, chỉ cần chọn 1-2 cái hay nhất là được rồi nhé! Hackerrank Trang nay rất rất phổ biến trong giới lập trình, từ junior đến senior, từ developer đến mấy bác tuyển dụng. Hackerrank có rất nhiều bài thuật toán, với độ khó từ thấp đến cao, đủ mọi thể loại thuật toán và cấu trúc dữ liệu (Thậm chí cả SQL cũng có luôn). Bạn sẽ viết code, chạy trực tiếp và xem kết quả , bí quá có thể qua mục discussion xem bà con giải ra sao nữa Trong quá trình mình đi phỏng vấn, cũng có khoảng 3,4 công ty cho mình vào đây làm bài test (thuật toán + trắc nghiệm + tự luận). Do vậy, các bạn cứ lên đây làm bài tập nhiều cho quen dần cũng được nha. Leetcode Bên cạnh Hackeerank, Leetcode cũng là 1 trang rất hay để luyện thuật toán. Số lượng bài toán trên này không hề thua hackerrank, có 3 độ khó chính là Easy/Medium/Hard (Nhiều bài easy cũng khó vãi nồi ra). Đợt mình đi phỏng vấn thuật toán thì cũng hay bị hỏi mấy bài tầm Easy để khởi động, Medium để đánh giá khả năng. Tầm Hard thì chắc cỡ phỏng vấn Facebook/Google họ mới hỏi. Trang này còn có 1 cái khá hay ho là nó đo performance/runtime code của bạn, so sánh với người khác để xem code bạn chạy nhanh hay chậm, có thể optimize được hay không (cái này nhiều khi hơi lô, bấm Run lại tự dưng code nhanh hơn hẳn) Geekforgeeks Nếu bạn đã từng bí khi làm bài thuật toán, từng Google tìm lời giải (giống mình ahihi), hẳn bạn sẽ thấy qua trang này một … vài lần. Trang geekforgeeks này giao diện nhìn hơi lô (do dân Ấn Độ làm) , bài tập cũng không phân loại rõ cho lắm. Tuy vậy, nó lại có … rất nhiều bài giải của những bài tập thuật toán thông dụng. Mỗi bài giải lại gồm nhiều cách giải khác nhau, đi kèm với độ phức tạp/memory của mỗi cách giải. Đọc rất là hay và bổ ích. Do vậy, lâu lâu các bạn có thể trang này xem bài giải/code example của các thuật toán phổ biến nha! Exercism.io Nếu như các trang trên để luyện thuật toán, thì Exercism lại là 1 trang khá hay để luyện thành thạo ngôn ngữ lập trình . Trên Exercism cũng có nhiều bài tập, nhưng các bài tập này không quá nặng về thuật toán, mà nặng về cách dùng ngôn ngữ lập trình: Sử dụng if/else, loop. Xử lý ngày tháng, xử lý chuỗi Cách phân tách method, tổ chức class Cách xử lý lỗi, viết code bất đồng bộ… Cá nhân mình từng dùng trang này để học thêm về Golang, Elixir . Vừa làm vừa xem thử bài giải của các bạn khác để … quay cóp, nhầm để học cách viết code! Nếu các bạn đã lập trình 1 thời gian, muốn học ngôn ngữ mới, học cách tư duy mới thì cứ lên Exercism nhé! Daily Coding Problem Trang này hồi trước mình xem Youtube Channel của CS Dojo – Một anh nhân viên Google bỏ nghề đi làm Youtuber thì được giới thiệu. (Quảng cáo nhẹ là Code Dạo cũng có Youtube Channel hay ho lắm nha) Khác với những trang còn lại, trang này không có danh sách bài tập. Thay vào đó, bạn nhập email của bạn vào, mỗi ngày họ sẽ gửi cho bạn 1 bài thuật toán để làm thử. Các bài này cũng mức Easy/Medium, được các công ty như Amazon/Google sử dụng để phỏng vấn ứng viên. Dùng gói Premium thì các bạn sẽ được gửi kèm lời giải luôn! Bản thân mình dùng gói thường, sau đó nếu bí thì Google 1 hồi cũng ra đáp án bên Geekforgeeks. Nếu các bạn sắp đi phỏng vấn, ôn thuật toán thì đăng kí trang này, luyện trước 2-3 tháng là vừa nha! Tạm kết Trong bài này, mình đã chia sẻ cho các bạn 5 trang web cực hay ho để luyện thuật toán, học lập trình rồi nhé! Cá nhân mình thấy không cần học quá nhiều, chỉ cần chọc Hackerrank/Leetcode nếu bạn muốn luyện trước khi phỏng vấn; hoặc chọn Exercism nếu cần học ngôn ngữ mới là được nhé. Nếu bạn có kinh nghiệm nào hay ho ôn thuật toán. luyện phỏng vấn thì cứ chia sẻ trong comment nhé! Chúc các bạn ngày càng trâu, ngày càng giỏi, không sợ thuật toán nữa! 30s Quảng cáo : Anh Song bạn mình bên Cybersoft vừa cho ra mắt hệ thống học trực tuyến tại cyberlearn.vn với khá nhiều thứ hay ho: Học qua dự án, hiểu tận rễ vấn đề Lộ trình phù hợp cho cả bạn mới, trái ngành và nâng cao kỹ năng chuyên sâu Tương tác thảo luận cùng Mentor và Giảng viên Nếu quan tâm, các bạn có thể ghé thăm cyberlearn.vn , hoặc liên hệ fanpage m.me/lophocviet để tư vấn thêm nhen Rate this: Like this: Related
The other day, I wrote an article about 4 ways to practice programming thinking! Because many of you want specific and detailed pages where you can learn and practice algorithms, today I share with you 5 extremely cool pages to practice algorithms/learn programming! You don't need to use all of them, just choose 1-2 of the best ones and you're good to go! Hackerrank This page is very popular in the programming world, from junior to senior, from developers to recruiters. Hackerrank has many algorithmic exercises, with difficulty from low to high, all types of algorithms and data structures (Even SQL is available). You will write the code, run it directly and see the results. In case you don't know, you can go through the discussion section to see how people solve it. During the interview process, there were about 3 or 4 companies that let me take the test here. (algorithm + multiple choice + essay). Therefore, you guys just come here and do a lot of exercises to get used to it. Leetcode Besides Hackeerank, Leetcode is also a very good site to practice algorithms. The number of problems above is not inferior to hackerrank, there are 3 main difficulty levels: Easy/Medium/Hard (Many easy problems are also extremely difficult). When I was interviewing for algorithms, I was often asked questions ranging from Easy to warm up and Medium to evaluate abilities. Hard level is probably like a Facebook/Google interview when they ask. This page also has a pretty cool feature that measures the performance/runtime of your code, comparing it with others to see if your code runs fast or slow, can be optimized or not (this is sometimes a bit confusing, click Run again). suddenly the code is much faster) Geekforgeeks If you've ever been stuck doing an algorithm problem and Googled the solution (like me ahihi), you've probably come across this page a... few times. This geekforgeeks site's interface looks a bit confusing (made by Indians), and the exercises are not very clearly classified. However, it has... many solutions to common algorithmic exercises. Each problem includes many different solutions, along with the complexity/memory of each solution. It's a very good and useful read. Therefore, from time to time you can take a look at this page to see solutions/code examples of popular algorithms! Exercism.io If the above sites are for practicing algorithms, then Exercism is a pretty good site for practicing programming language fluency. There are also many exercises on Exercism, but these exercises are not too heavy on algorithms, but heavy on how to use programming language: Use if/else, loop. Date processing, string processing How to separate methods and organize classes How to handle errors, write asynchronous code... Personally, I used this site to learn more about Golang and Elixir. While doing this, check out other students' solutions to... copy or make mistakes to learn how to code! If you have been programming for a while, want to learn a new language, learn a new way of thinking, then go to Exercism! Daily Coding Problem On this page, I used to watch CS Dojo's Youtube Channel - A Google employee who quit his job to become a Youtuber was introduced. (Light advertisement, Code Dao also has a great Youtube Channel) Unlike the other pages, this page does not have a list of exercises. Instead, you enter your email, and every day they will send you an algorithm to try. These articles are also Easy/Medium level, used by companies like Amazon/Google to interview candidates. If you use the Premium package, you will also be sent the solution! I personally use the regular package, then if I'm stuck, Google it for a while and they'll come up with the answer at Geekforgeeks. If you are about to go for an interview and study algorithms, then register on this site and practice 2-3 months in advance! Conclusion In this article, I have shared with you 5 extremely cool websites to practice algorithms and learn programming! Personally, I don't think you need to study too much, just poke Hackerrank/Leetcode if you want to practice before the interview; Or choose Exercism if you need to learn a new language. If you have any good experience review the algorithm. If you practice interviewing, please share in the comments! Wishing you all to become more and more talented, more and more talented, not afraid of algorithms anymore! 30s Advertisement: My friend Song from Cybersoft has just launched an online learning system at cyberlearn.vn with many cool things: Learn through projects, understand the root of the problem The route is suitable for both new people, non-majors, and to improve in-depth skills Interact and discuss with Mentors and Lecturers If you are interested, you can visit cyberlearn.vn, or contact fanpage m.me/lophocviet for further advice Rate this: Like this: Related
Lâu lâu mình lại nghe anh em/bạn bè than vãn, tâm sự về đủ thứ chuyện buồn vui trên công ty. Vui có, buồn có, khen có, chê có. Tuy nhiên, đa phần những bạn đi làm ít năm thường hay chê công ty nhiều hơn: Công ty gì dùng công nghệ cũ xì, code rối như canh hẹ nhìn chỉ muốn đập đi làm lại Công ty gì lương thấp, trả lương chậm, hay kì kèo. Đồng nghiệp cà giựt, cà chua, cà chớn. Sếp sống xảo trá không tôn trọng nhân viên Công việc dồn dập, suốt ngày OT, vắt chân vắt giò lên cổ Công việc nhàn hạ quá, toàn làm mấy cái cũ xì, không phát triển được Nói chung là có vô vàn thứ để chê. Hồi xưa, mình cũng hay than vãn, chê bai đủ thứ như vậy! Thế nhưng, đi làm nhiều công ty, mình học được một điều khá hay ho . Nhờ điều đó, mình cảm thấy hạnh phúc, vui vẻ hơn khi đi làm, không than phiền nhiều nữa. Muốn biết điều đó là gì, các bạn xem hết bài sẽ rõ. Hồi xưa, mình cũng hay nói xấu công ty Hồi xưa, lúc mới ra trường, vào làm FPT, mình cũng hay than phiền: Công ty gì lương thấp, công việc thì chán, suốt ngày bóc lột nhân viên. Về sau, qua Singapore làm việc, giai đoạn đầu khá là vui . Về sau chắc do funding ít dần, hoặc do thằng CEO dở chứng, anh em cứ ăn trưa xong là lại ngồi nói xấu công ty: Công ty mẹ gì Tết méo thưởng cho nhân viên . Task thì dí như chó mà méo có lương OT CEO gì thái độ hách dịch vl, hứa cho lắm mà chả bao giờ làm được cái gì Lương thì thấp, làm lâu mà không được tăng lương nhiều … Một thời gian sau, nhảy qua công ty khác, lương cao hơn, trả đúng hạn, không than phiền về lương nữa, mình và anh em lại than phiền chuyện khác: Đồng nghiệp nhiều thằng khinh người, bố láo, không thân thiện tí nào Công ty gì không có định hướng rõ ràng, requirement gì thay đổi xoành xoạch ai mà làm được CEO gì phởn phơ suốt ngày đi ngó máy nhân viên, khó chịu sao mà code Các bạn thấy đấy, đi làm mà cứ mang tâm trạng đấy thì không thoải mái tí nào, ảnh hưởng năng suất làm việc nữa. Thế rồi, mình không than phiền nữa Thật vậy, sau khi ngẫm lại, mình tự nghĩ: thay vì nhìn vào mặt xấu, hãy thử nhìn vào mặt tốt công ty xem nào. Và nhìn lại các công ty từng làm thì cũng thấy nó … có cái tốt thật. Như cái công ty mình làm hồi mới qua Singapore , mà mình chửi nãy giờ cũng có điểm tốt: Bạn CTO khá là thông minh, vui tính, kiến thức nhiều . Nói chuyện kĩ thuật khá vui Công việc nhiều, mình được nắm những phần core vô cùng quan trọng của công ty, được ôm đồm làm đủ thứ nên lên trình rất nhanh Mình được tham dự ké seminar sales của công ty để coi mấy bạn sales làm việc, coi mấy bạn customer support làm ra sao Hoặc như công ty sau đó mình chuyển qua cũng vậy, ngoại trừ CEO thì cũng có quá trời thứ hay ho: Công ty trả lương đúng hạn hoặc sớm hạn vào dịp lễ. Có pantry full trái cây, nước ngọt, cà phê, mì tôm free 100%. Có mấy anh em người Việt vui tính, mấy anh DevOps đẹp trai làm mình học thêm nhiều điều. Công nghệ mới và cool ( GraphQL, TypeScript ), qui trình code review rõ ràng , kĩ năng code của mình được cải thiện nhờ được review/đi review người khác Ngẫm lại, mình thấy công ty nào cũng có shit . Công ty to có shit to, nhỏ có shit nhỏ. Quan trọng là mình có biết bơ shit đi mà sống hay không! Thử thách cũng chính là cơ hội! Ngoài ra, công ty có nhiều điều chưa tốt, cũng có nghĩa là nhiều cơ hội cho bạn thể hiện, chứng tỏ khả năng của bản thân: Qui trình không rõ ràng? Thay vì chê hãy cùng ngồi lại với team, vẽ ra qui trình phù hợp Code tởm, thiếu test, thiếu document ? Thay vì chê, hãy chịu khó viết thêm document, viết test, tăng cường review code để tăng chất lượng code Designer và PM hay vẽ requirement, không hiểu hệ thống? Thì vì chửi hãy đi họp chung với họ, giải thích hệ thống làm được gì, không làm được gì! Đấy! Đôi khi khó khăn thử thách cũng chính là cơ hội . Thay vì chửi, nếu tập trung vào cải thiện, các bạn sẽ làm cuộc sống của mình dễ thở hơn, được anh em cấp trên coi trọng nữa! À quên, nhưng nếu công ty trả lương quá thấp, sếp quá hãm thì … nhảy tìm sếp khác, chỗ khác lương cao hơn thôi! Hai cái đó … hơi khó mà cải thiện nha. Tạm kết Túm cái quần lại, mình viết bài này cũng không phải để dạy dỗ ai, chỉ là muốn chia sẻ cách nhìn, cách sống cho anh em thôi! Thật vậy, khi chấp nhận một thực tế rằng “Công ty nào cũng có shit”, bạn sẽ bớt bực mình, bớt so đo thiệt hơn , bớt so sánh mình với bạn bè nữa. Đến cả developer Facebook, Google đôi khi còn không hai lòng với công việc cơ mà! Bạn sẽ nhận ra: Đôi khi bạn mình lương cao hơn, nhưng nó phải OT tới 2,3 h sáng, Hoặc bạn mình công việc nhàn hạ, nhưng ở lâu sẽ không phát triển được. Bớt gato, bớt sân si thì sống sẽ thoải mái hơn nhiều nhé! Rate this: Like this: Related
From time to time, I hear my brothers/friends complain and confide about all kinds of sad and happy things at the company. There is happiness, there is sadness, there is praise, there is criticism. However, most people who have worked for a few years often criticize the company more: What company uses old technology, the code is as confusing as chive soup, just looking at it makes me want to redo it over and over again What company has low wages, slow salary payments, or contracts? Colleagues are grumpy, grumpy, grumpy. The boss lives treacherously and does not respect his employees Work is intense, OT all day, straddling the neck Work is too leisurely, only doing old things that cannot develop In general, there are countless things to criticize. In the past, I used to complain and criticize all kinds of things like that! However, working for many companies, I learned something quite interesting. Thanks to that, I feel happier and happier when going to work, and don't complain as much. If you want to know what that is, read the entire article and you will understand. In the past, I often spoke ill of the company. In the past, when I first graduated and joined FPT, I often complained: The company had low wages, boring work, and exploited employees all day. Later, when I went to Singapore to work, the first period was quite fun. Later, it was probably due to less funding, or because the CEO was crazy, everyone after lunch would sit back and talk bad about the company: What kind of Tet bonus does the parent company give to employees? Tasks are as boring as dogs but there is no OT salary What CEO has such a bossy attitude, he promises so much but never gets anything done The salary is low, you work long hours without much salary increase... Some time later, I jumped to another company with higher salary, paid on time, no longer complaining about salary, my brothers and I complained about something else: Many co-workers are contemptuous, liars, and not friendly at all If a company doesn't have a clear direction and requirements are constantly changing, who can do it? What kind of euphoric CEO goes around looking at employees' phones all day? How annoying is it to code? You see, going to work with that mood is not comfortable at all, and affects work productivity. Then, I stopped complaining. Indeed, after reflecting, I thought to myself: instead of looking at the bad side, let's try to look at the good side of the company. And looking back at the companies that have done it, I can see that... there are really good things. Like the company I worked for when I first came to Singapore, which even though I was cursing all this time had good points: The CTO is quite smart, funny, and knowledgeable. Technical talk is quite fun There's a lot of work, I get to grasp very important core parts of the company, and get to do everything so I can progress very quickly. I was able to attend the company's sales seminar to see how the sales people worked and how the customer support people did Or like the company I later transferred to, except for the CEO, there were so many interesting things: The company pays salaries on time or early on holidays. There is a pantry full of fruit, soft drinks, coffee, and instant noodles 100% free. There are some funny Vietnamese guys and handsome DevOps guys who make me learn many things. New and cool technology (GraphQL, TypeScript), clear code review process, my coding skills have improved thanks to reviewing/reviewing others Looking back, I see that every company has shit. Big companies have big shit, small companies have small shit. The important thing is whether I know how to ignore shit and live or not! Challenges are also opportunities! In addition, the company has many bad things, which also means many opportunities for you to show and prove your abilities: Process not clear? Instead of criticizing, sit down with the team and draw up a suitable process Disgusting code, lack of testing, lack of documentation? Instead of criticizing, take the trouble to write more documents, write tests, and increase code reviews to increase code quality Designers and PMs often draw requirements but don't understand the system? So instead of cursing, go to a meeting with them and explain what the system can and cannot do! There! Sometimes difficulties and challenges are also opportunities. Instead of cursing, if you focus on improvement, you will make your life easier and be respected by your superiors! Oh, I forgot, but if the company pays too low and the boss is too cruel, then... jump to find another boss, somewhere else with a higher salary! Those two things... are a bit difficult to improve. Temporarily conclusion: Grab your pants, I'm not writing this article to teach anyone, I just want to share my perspective and way of life with you guys! Indeed, when you accept the fact that "Every company has shit", you will be less angry, less comparing yourself, less comparing yourself with your friends. Even Facebook and Google developers are sometimes dissatisfied with their work! You will realize: Sometimes my friend has a higher salary, but he has to work until 2 or 3 a.m. Or my friend has an easy job, but if he stays for a long time, he won't be able to develop. Be less jealous, less angry, and life will be much more comfortable! Rate this: Like this: Related
Chuyện kể rằng, vào thời thế chiến thứ 2, binh lính Mĩ lần đầu tiên tiếp xúc với các thổ dân ở nhiều quần đảo thuộc vùng Melanesia. Vì nhu cầu chiến tranh, quân Mỹ/Nhật chở hàng loạt tàu hàng, cho máy bay thả hàng tiếp tế (thức ăn, lương thực, vũ khí) xuống, làm đời sống nhân dân trên đảo được cải thiện. Khi chiến tranh kết thúc, hàng hoá cũng hết theo. Cư dân trên đảo bắt đầu bắt chước hành động của binh lính Mĩ. Họ cũng dựng chòi canh, khắc gỗ làm radar headphone, quơ quào trên đường băng như binh lính liên lạc. Dân chúng bắt đầu làm theo những nghi lễ này, với hi vọng máy bay sẽ quay lại, mang theo những thùng hàng tiếp tế. Tất nhiên là, dù họ có quơ quào cả năm trời, cũng chẳng có chiếc máy bay nào quay lại cả. Dần đà, những thứ này trở thành nghi lễ, được thờ cúng. Những tôn giáo, nghi lễ dạng này được gọi là cargo cult (cargo là hàng hoá được chuyên trở trên tàu). Ơ, chuyện nghe thú vị đấy, nhưng mà nó có liên quan gì đến lập trình đâu?? Ấy vậy mà có đấy! Từ chuyện “đạo tàu” tới chuyện lập trình Dần đà, cargo cult trở thành một thuật ngữ để chỉ chuyện “tuân theo những nghi thức, nguyên tắc vô ích một cách mù quáng”. Nghe quen quen, giống ông dev nào đó phải không nào? Dân developer quốc tế gọi triệu chứng này là cargo cult programming . Ở Việt Nam ko thấy có khái niệm tương tự nên mình gọi nó là lập trình theo kiểu “bầy đàn” , chuyên đi mò mẫm, bắt chước chạy theo người khác. Những biểu hiện của hội chứng cargo cult programming này bao gồm: Fix bug bằng cách “mò đại”, sửa tùm lum Copy code từ code cũ, hoặc trên mạng về dán vô cho nó chạy mà không hiểu vì sao (còn lại là full stack overflow developer ) Áp dụng linh tinh, vô tội vạ các design pattern, coding style mà không hiểu nguyên lý hoạt động của chúng Viết tùm lum comment dư thừa vì nghĩ rằng code càng nhiều comment càng tốt. Vì không hiểu ngôn ngữ, hệ thống đang dùng nên viết quá nhiều code thừa cho chắc ăn: xoá object trong khi ngôn ngữ tự code garbage collection; check array null hoặc empty trước khi duyệt; dùng ToList() trong LINQ quá nhiều lần Luôn tự tin rằng ngôn ngữ/phần mềm/tool mình đang dùng là nhất , mà không giải thích được vì sao Lập trình kiểu “bầy đàn” có gì không tốt?? Thật ra, với những người mới học, lập trình kiểu “bầy đàn” là chuyện bắt buộc . Trước khi hiểu cách thức code hoạt động, bạn phải làm cho code chạy được cái đã. Viết code là chuyện dễ, hiểu code là chuyện vừa, thực sự hiểu sâu cách code chạy mới là chuyện khó. Ví dụ thế này, bất kì bạn nào viết C# cũng biết dòng code Where ở line 21 làm chuyện gì: Lọc ra những course có Rank > 3. Tuy nhiên, để thực sự hiểu tại sao có thể viết c => c.Rank > 3, các bạn phải nắm rất nhiều khái niệm , từ Generic Class , Enumeration , Delegate/Predicate , và 1 chúc functional programming nữa. Các bạn giỏi hơn sẽ hiểu cách hàm Where chạy ra sao nữa. Nếu chỉ lập trình kiểu “bầy đàn”, thấy sao làm theo vậy, bạn sẽ không hiểu cách hệ thống hoạt động , khó mà nâng cấp, mở rộng, khi có vấn đề cũng không biết giải quyết ra sao . Không nắm được những kiến thức chuyên sâu, về lâu dài bạn sẽ khó leo lên các vị trí cao hơn, đòi hỏi kiến thức chuyên môn hơn. Bạn sẽ tự thấy mình giống code monkey , chứ không phải software engineer chân chính. Tạm kết, v ậy người developer phải nàm sao?? Như mình đã nói, lập trình kiểu “bầy đàn” không xấu, ai cũng từng như vậy. Bản thân mình khi làm dự án mới, học công nghệ mới cũng làm theo kiểu mò mẫm, bắt chước, cho nó chạy được rồi mới tìm hiểu dần sau. Tuy nhiên, nếu muốn trở nên tốt hơn, giỏi hơn, không còn “bầy đàn” nữa, các bạn nên làm những điều sau: Tò mò lên, hỏi nhiều vào : Đừng vội tự hào khi dòng code mình viết (hoặc copy trên mạng) chạy được. Hãy tự hỏi tạo sao nó chạy được, liệu mình có hiểu thứ mình viết ra không? Đừng mù quáng nghe theo, làm theo người khác : Thấy code dự án, người ta dùng async/await nhiều nên mình dùng theo, thấy người ta try/catch nhiều cũng dùng theo luôn? Đừng nên mù quáng làm theo, mà hãy xem lý do, tại sao họ dùng như vậy , liệu có thể bỏ bớt hay cải thiện gì không Hiểu thứ mình đang dùng : Mình cũng từng khuyên các bạn phải hiểu công nghệ chứ đừng dùng công nghệ . Thay vì dùng framework, hãy thử hiểu lý do nó được tạo ra, framework chạy ra sao. Có vậy khi có vấn đề bạ mới xử lý được. Đấy, hi vọng đọc xong bài này, các bạn sẽ cải thiện được bản thân, nắm được nhiều kiến thức sâu hơn, chứ không chỉ mò mẫm làm theo nhé. Bản thân mình thì mình uống trà sữa với bầy đàn của mình tiếp đây :3. Một số bài viết liên quan: Phim ngắn về nguồn gốc của Cargo Cult: Rate this: Like this: Related
The story goes that, during World War II, American soldiers first came into contact with indigenous peoples in many archipelagos in Melanesia. Because of war needs, the US/Japanese military transported a series of cargo ships and sent planes to drop supplies (food, food, weapons), improving the lives of the people on the island. When the war ended, goods also ran out. Islanders began to imitate the actions of American soldiers. They also built guard towers, carved wood to make radar headphones, and roamed the runway like communication soldiers. People began to follow these rituals, hoping the plane would return, carrying boxes of supplies. Of course, even if they struggled for a year, no plane would ever return. Gradually, these things become rituals and worship. Religions and rituals of this type are called cargo cults (cargo is goods transported on ships). Oh, that sounds interesting, but what does it have to do with programming?? Yet there it is! From the story of "trains" to programming, cargo cult became a term to refer to "blindly following useless rituals and principles". Sounds familiar, like some developer, right? International developers call this phenomenon cargo cult programming. In Vietnam, I don't see a similar concept, so I call it "herd" programming, specializing in groping, imitating and following others. Symptoms of this cargo cult programming syndrome include: Fix bugs by "digging around" and fixing them extensively Copy code from old code, or from the internet and paste it in for it to run without understanding why (the rest is full stack overflow developer) Applying design patterns and coding styles haphazardly without understanding their principles of operation Write lots of redundant comments because you think the more comments in the code, the better. Because we do not understand the language and system we are using, we write too much redundant code to be sure: delete objects while the language itself codes for garbage collection; check array for null or empty before browsing; Using ToList() in LINQ too many times Always confident that the language/software/tool ​​you are using is the best, without being able to explain why What's wrong with "herd" programming? In fact, for beginners, "swarm" programming is a must. Before understanding how the code works, you must first make the code work. Writing code is easy, understanding the code is easy, truly understanding how the code runs is difficult. For example, anyone who writes C# knows what the Where code line in line 21 does: Filter out courses with Rank > 3. However, to really understand why you can write c => c.Rank > 3, you have to grasp a lot of concepts, from Generic Class, Enumeration, Delegate/Predicate, and some more functional programming. Those of you who are better at it will understand how the Where function runs. If you only program in a "herd" style, you won't understand how the system works, it will be difficult to upgrade and expand, and when there is a problem, you won't know how to solve it. Without in-depth knowledge, in the long run it will be difficult for you to climb to higher positions that require more specialized knowledge. You will see yourself as a code monkey, not a true software engineer. In conclusion, so what should the developer do? As I said, "herd" programming is not bad, everyone has done it. Personally, when working on a new project or learning new technology, I also do it by groping, imitating, letting it run and then gradually learning about it later. However, if you want to become better, better, and no longer "herd", you should do the following: Be curious, ask a lot: Don't be too proud when the code you write (or copy online) works. Ask yourself how it works, do I understand what I wrote? Don't blindly listen or follow others: Seeing the project code, people use async/await a lot so I use it, see people try/catch a lot, do I also use it? Don't blindly follow it, but see the reasons why they use it that way, and see if anything can be removed or improved. Understand what you are using: I have also advised you to understand technology, not use technology. Instead of using a framework, try to understand why it was created, how the framework runs. That way, when there is a problem, you can handle it. Well, hopefully after reading this article, you will improve yourself and gain deeper knowledge, not just blindly following along. Personally, I'll drink milk tea with my group next :3. Some related articles: Short film about the origin of Cargo Cult: Rate this: Like this: Related
Bạn biết code HTML, CSS, cắt giao diện tốt và nghĩ rằng mình rành front-end Bạn biết JS, jQuery, và nghĩ rằng mình đã thành thạo JavaScript Sau khi nghe thằng Code Dạo mỉa, bạn cắm đầu vào học framework như Angular/React và nghĩ rằng mình đã thành thạo front-end?? Hãy đọc bài này để hiện thực vả bạn sml cho tỉnh ra nhé! Front-end không chỉ có HTML, CSS và cắt giao diện Ngày xửa ngày xưa, từ cái thời mà giang hồ chỉ có “lập trình web”, chứ chưa phân ra là front-end hay back-end ; thì đã tồn tại một công việc mang tên “cắt HTML/CSS”. Công việc này cũng không quá khó khăn, nhận đầu vào là file PSD (Photoshop) của designer, chuyển nó thành HTML/CSS , đưa cho mấy ông dev gắn dữ liệu từ back-end (C#, PHP, Java) vào. Nếu dùng Bootstrap thì còn viết ít code hơn nữa. Để làm những thứ này, không cần kĩ năng code quá tốt, chỉ cần kiến thức HTML/CSS tạm đủ là làm được rồi. Biết cách phân tách, đặt tên class, quản lý CSS nữa thì càng hay. Tuy nhiên, làm front-end developer cần nhiều kĩ năng hơn là chỉ cắt chỉnh CSS (vậy nên lương nó mới cao ). Chúng ta vẫn sẽ nhận design từ designer (PSD, Figma, …), chuyển nó thành HTML hoặc các component (tuỳ vào framework bạn đang dùng). Nếu chỉ vậy thì không có gì đáng nói, ta còn phải dùng JavaScript làm đủ thứ sau: Gọi API từ phía back-end để hiển thị dữ liệu Cho phép người dùng tương tác với trang, bấm vào nút này thì ẩn/hiện/ đổi dữ liệu ra sao Lưu, gửi thông tin người dùng, chuyển trang khi cần v…v Những điều này cần kĩ năng code, quản lý file, hiểu về framework, cách optimize để front-end load nhanh v…v thì mới làm tốt được; chứ không dễ như cắt CSS đơn thuần. Front-end nay khác xưa như thế nào? Ngày xửa ngày xưa (tầm 10 năm trước), gần như 96.69% các trang web cần tương tác bằng JavaScript đều dùng jQuery, do đó chỉ cần biết jQuery là đủ sống an nhàn sung túc rồi! Hồi đấy, các cụ viết front-end theo cách sau: Tải thư viện bằng cách copy link trên cdn bỏ vào, hoặc tải về máy rồi reference đến file javascript Source Code viết sao thì trên browser hiển thị vậy Logic đơn giản như validation, hiển thị Chưa có unit test Dần dần, các công nghệ front-end mới ra đòi. jQuery vẫn còn được dùng nhiều, nhưng chúng ta có hàng lô đủ thứ khác để học: Angular, Sass, Backbone, Bower, Gulp/Grunt,… Tải thư viện và quản lý bằng cách dùng bower Source code sao thì browser chạy vậy. Gom nhiều file JavaScript thành 1 file, minify để tăng tốc độ tải bằng cách dùng Grunt/Gulp. Logic đơn giản tới phức tạp: DOM manipulation, AJAX call Bắt đầu có unit test , setup hơi rườm rà Các framework phát triển theo hướng MVVM, một page là 1 view, gắn với 1 controller Ngày nay, front-end là 1 ngành hot. Tool hỗ trợ quá chời, framework nhiều chóng mặt. Code ta viết 1 đằng, build ra trình duyệt dùng 1 nẻo: Sử dụng yarn hay npm để quản lý thư viện Source code và code trên browser khác một trời một vực (Do Babel transpile ES6->ES5 , JSX->JS. Do Webpack gom code lại) Logic lòng vòng phức tạp (DOM render, validation, routing) Unit Test khá dễ viết, dễ chạy Các framework phát triển theo hướng component , dễ tái sử dụng. Mỗi page sẽ gồm nhiều component ghép lại. Chịu khó để ý, bạn sẽ thấy các mẫu tuyển dụng không còn tuyển JQuery nhiều nữa! Thay vào đó là đủ thứ hầm bí lù như React/Angular/Vue, TypeScript, Webpack ,… Kiến thức từ thời jQuery sẽ không hữu dụng mấy khi chuyển qua các framework mới! Nếu quan tâm, các bạn có thể tìm đọc series Lược Sử Lập Trình Web và series JS Truyền Kì trên Blog nhé! Đừng nghĩ rằng chỉ cần biết framework là được Thế rồi, sau khi đọc bài này, nghe thằng Code Dạo mỉa mai, bạn quyết định học front-end , cày cuốc những framework hot từ Angular cho tới React. Vậy là đã thành thạo front-end rồi phải không ta? Thật ra, đây là những kiến thức cần, nhưng chưa đủ. Biết cách dùng React/Angular, bạn có thể làm front-end developer được, nhưng để trở nên thành thạo thì còn phải biết tùm lum từa lưa thứ nữa: Quan trọng nhất : Vững kiến thức căn bản và nâng cao thứ nữa ( callback, promise , async/await , request, security event, event loop, ES6 syntax ) Hiểu cách framework mình dùng hoạt động, càng sâu càng tốt Biết cách tổ chức code, cách viết unit test cho dự án front-end, setup linter , cách optimize để code build nhanh hơn, web render nhanh hơn Framework có thể đến rồi đi ! 5-10 năm nữa có thể Angular/React sẽ lỗi thời, nhưng kiến thức căn bản về JavaScript , về các pattern (component, DI, MVC, MVVM) sẽ giúp bạn “sống sot”, dễ dàng học hỏi theo kịp công nghệ mới. Ngoài ra, thay vì chỉ biết cắm mặt vào công nghệ, hãy thử hiểu sâu những thứ mình dùng hoạt động ra sao! Mình từng dùng React, Vue mà không biết phép màu phía sau là gì? Vậy có sao không? Chắc là không, nhưng khi gặp lỗi thì không hiểu, không thể customise! Giả sử bạn có 1 dự án React, code quá nhiều thư viện, lần đầu tải quá chậm. Bạn đang muốn làm cho nó nhanh hơn . Để làm được chuyện đó, bạn phải hiểu sâu rất nhiều thứ: Tải chậm vì Webpack + Babel build ra quá nhiều JavaScript. Bạn có thể giảm lượng JavaScript bằng cách tinh chỉnh Babel giảm bớt polyfill, build ra ES6 thay vì ES5 (nếu không cần hỗ trợ trình duyệt cũ) Bạn cũng có thể áp dụng Lazy Loading để React chia code ra thành nhiều phần, thay vì để thành 1 cục Hoặc bạn cũng có thể setup tree-shaking, dùng các library nhỏ hơn, đổi cách import để webpack loại bỏ bớt code thừa Nếu rành về back-end, bạn có thể chỉnh server gzip để nén lượng JavaScript gửi về, giúp tăng tốc độ tải Đấy, nếu chỉ biết cắm mặt dùng và code, khi cần phải thay đổi, đào sâu, bạn sẽ gặp khó khăn. Do vậy học framework rồi, nhưng nhớ học luôn cách nó hoạt động nhé! 30s quảng cáo Anh Lê Quang Song bạn mình, CEO của Cybersoft.vn vừa mở một khóa học về Lập trình front-end với JavaScript, ReactJS, Angular . Các bạn học xong phần lớn đều có review rất ok, kiếm được việc làm kha khá. Bạn nào có hứng thú có thể tìm hiểu thêm tại bit.ly/codedao-front , hoặc liên hệ Fanpage của Cybersoft Acedemy để được tư vấn nha. Bài viết tham khảo thêm Rate this: Like this: Related
You know how to code HTML, CSS, interface well and think you know the front-end well You know JS, jQuery, and think you've mastered JavaScript After hearing Code Duo's sarcasm, you focused on learning frameworks like Angular/React and thought you were proficient in front-end?? Please read this article to realize it and calm yourself down! Front-end is not just HTML, CSS and interface. Once upon a time, from the time when wanderers only had "web programming", not yet divided into front-end or back-end; There already exists a job called “cutting HTML/CSS”. This job is not too difficult, receive the designer's PSD (Photoshop) file as input, convert it into HTML/CSS, and give it to the developers to attach data from the back-end (C#, PHP, Java). If you use Bootstrap, you will write less code. To do these things, you don't need very good coding skills, just enough HTML/CSS knowledge is enough to do it. Knowing how to separate, name classes, and manage CSS is even better. However, being a front-end developer requires more skills than just editing CSS (that's why the salary is high). We will still receive design from designer (PSD, Figma, ...), convert it into HTML or components (depending on the framework you are using). If that's all, then there's nothing worth mentioning, we still have to use JavaScript to do all the following: Call the API from the back-end to display data Allows users to interact with the page, click this button to hide/show/change data Save, send user information, switch pages when needed, etc These things require coding skills, file management, understanding of frameworks, how to optimize to make the front-end load quickly, etc. to be able to do well; It's not as easy as simply cutting CSS. How is the front-end different now? Once upon a time (about 10 years ago), almost 96.69% of websites that needed to interact with JavaScript used jQuery, so just knowing jQuery was enough to live a comfortable and prosperous life! Back then, people wrote front-end in the following way: Download the library by copying the link on the cdn and putting it in, or download it to your computer and refer to the javascript file How the source code is written will appear in the browser Simple logic like validation, display There are no unit tests yet Gradually, new front-end technologies emerge. jQuery is still used a lot, but we have tons of other things to learn: Angular, Sass, Backbone, Bower, Gulp/Grunt,… Load the library and manage it using bower The source code is what the browser runs. Consolidate multiple JavaScript files into 1 file, minify to increase download speed using Grunt/Gulp. Simple to complex logic: DOM manipulation, AJAX call Starting with unit testing, setup is a bit cumbersome Frameworks develop in the direction of MVVM, a page is 1 view, attached to 1 controller Nowadays, front-end is a hot industry. The tool supports too much, the framework is dizzying. We write the code one way, build it to the browser and use another: Use yarn or npm to manage libraries Source code and code on the browser are completely different (Due to Babel transpile ES6->ES5, JSX->JS. Due to Webpack gathering the code) Complex circular logic (DOM rendering, validation, routing) Unit Test is quite easy to write and run Frameworks develop component-oriented, easy to reuse. Each page will consist of many components combined. If you pay close attention, you will see that recruitment forms no longer recruit JQuery anymore! Instead, there are all kinds of hidden secrets like React/Angular/Vue, TypeScript, Webpack, etc. Knowledge from the jQuery era will not be very useful when moving to new frameworks! If you are interested, you can read the Brief History of Web Programming series and the JS Truyen Ky series on the Blog! Don't think that just knowing the framework is enough. Then, after reading this article and hearing Code Duo's sarcasm, you decided to learn front-end, plowing through hot frameworks from Angular to React. So you've mastered the front-end, right? Actually, this is necessary knowledge, but not enough. Knowing how to use React/Angular, you can be a front-end developer, but to become proficient, you still have to know a ton of things: Most important: Master the basic knowledge and advance more (callback, promise, async/await, request, security event, event loop, ES6 syntax) Understand how the framework you use works, as deeply as possible Know how to organize code, how to write unit tests for front-end projects, setup linter, how to optimize to make code build faster, web render faster Frameworks may come and go! In 5-10 years, Angular/React may be outdated, but basic knowledge of JavaScript and patterns (component, DI, MVC, MVVM) will help you "live well", easily learn and keep up with technology. new. Additionally, instead of just plugging away at technology, try to deeply understand how the things you use work! I used to use React and Vue but didn't know what the magic behind them was? Is that okay? Probably not, but when I encounter an error I don't understand and can't customize! Suppose you have a React project, the code has too many libraries, the first load is too slow. You want to make it faster. To do that, you must deeply understand many things: Loading is slow because Webpack + Babel builds too much JavaScript. You can reduce the amount of JavaScript by tweaking Babel to reduce polyfills, building to ES6 instead of ES5 (if you don't need to support old browsers). You can also apply Lazy Loading to let React divide the code into parts, instead of leaving it in one lump Or you can also setup tree-shaking, use smaller libraries, change the import method so webpack removes excess code. If you are familiar with the back-end, you can adjust server gzip to compress the amount of JavaScript sent, helping to increase download speed. See, if you only know how to use it and code, when you need to change or dig deeper, you will have difficulty. So learn the framework, but remember to also learn how it works! 30 seconds of advertising My friend Le Quang Song, CEO of Cybersoft.vn, just opened a course on Front-end Programming with JavaScript, ReactJS, Angular. Most of the students who finished studying had very good reviews and found decent jobs. Those who are interested can learn more at bit.ly/codedao-front, or contact Cybersoft Acedemy's Fanpage for advice. Article for further reference Rate this: Like this: Related
Hôm nay, mình sẽ giới thiệu các bạn 1 kĩ thuật rất đơn giản nhưng cực kì hay ho: Kĩ thuật này được 69.96% các hệ thống từ lớn đến nhỏ như Google, Facebook, LinkedIn, Youtube áp dụng Kĩ thuật này giúp chúng ta ngăn chặn DDOS, chống spam, giữ cho hệ thống hoạt động trơn tru. Thế nhưng, chúng ta ít người biết đến “người hùng” thầm lặng này. Kĩ thuật này có tên là Rate Limiting. Rate Limiting là cái gì cơ? Về cơ bản, Rate Limit rất đơn giản và dễ hiểu. Rate Limit tức là hạn chế (limit) số lượng request gửi/nhận (rate) đến hệ thống . Ví dụ gấy sợ bạn mập, chỉ cho bạn uống 2 ly trà sữa 1 tuần. Gấu bạn đã sử dụng rate limit để hạn chế số lượng trà sữa bạn tiêu thụ vào, giúp bạn đỡ mập. Đấy, nói thì nghe đơn gỉản vậy thôi. Trên thực tế, người ta phải sử dụng 1 số thuật toán để đảm bảo chạy nhanh, chính xác mà lại ít tốn bộ nhớ. Để dễ hiểu, mình sẽ dùng trà sữa và gấu để làm ví dụ cho các thuật toán nhé. Hãy tưởng tượng 1 ly/giọt trà sữa là 1 request tới server, gấu bạn là thuật toán Rate Limit để ngăn bạn uống quá nhiều trà sữa. Một số thuật toán hay dùng? Tên tiếng Việt các thuật toán thì mình không rõ nên mình dịch bựa tạm , bạn nào biết tên chính thức thì comment hộ để mình update nhé. Những thuật toán phổ biến thường dùng để rate limit bao gồm: Leaky bucket (Xô Lủng từa lưa) : Gấu bạn không muốn bạn uống nhiều, nên đổ hết trà sữa vào 1 cái xô rồi đục lỗ cho lủng. Dù bạn có mua vài chục ly nhưng đều phải đổ vào xô, mỗi ngày chỉ chảy ra tầm 1 ly. Bạn chỉ được uống trà chảy ra từ xô. Cách này giúp cho hệ thống không sợ quá tải khi có nhiều người truy cập, vì cái xô sẽ chặn bớt. Token Bucket (Xô Đựng Token) Thay vì bỏ trà sữa vào xô, gấu bạn sẽ bỏ vào xô mỗi ngày 60 Token . Nếu uống trà không đường bạn sẽ mua được 4 ly, còn uống trân châu đường đen kem cheese thì chỉ được 1 ly. Tới hết ngày, nếu hết token, gấu bạn sẽ refill thêm. Cách này đảm bảo 1 ngày bạn chỉ uống tối đa 60 Token. Trên thực tế, có nhiều request sẽ chạy lâu hơn, tốn nhiều tài nguyên hơn (tạo report, lưu nhiều dữ liệu). Nếu dùng Xô Lủng Từa Lua, ta chỉ đảm bảo được số lượng request tới server. Với thuật toán này, thuật toán tốn tài nguyên hơn sẽ cần nhiều token hơn, ta có thể dễ dàng control lượng tải tới server. Thay vì dùng xô, các thuật toán này dựa theo 1 khoản thời gian (timing window) để limit số lượng request. Fixed window (Cửa sổ cứng ngắt) Giờ không mua xô nữa, gấu bạn quyết định là giờ 1 tuần bạn chỉ được uống tối đa 3 ly. Một tuần (tính từ 0h sáng thứ 2 tới 12h tối CN) này chính là fixed window, limit là 3 ly. Thuật toán này dễ hiểu, dễ code, các hệ thống lớn khi cung cấp API cũng hay ra limit như thế này. Tuy nhiên, nó có 1 điểm yếu là… có thể bị lợi dụng để burst số lượng request vượt limit . Ví dụ, gấu bạn ra limit này vì muốn bạn uống 2 ngày 1 ly. Tuy nhiên bạn quá máu nên đợi 11h30 tối CN uống 3 ly, sau đó 1h sáng thứ 2 uống thêm 3 ly nữa! Vậy là trong 2 tiếng bạn uống 6 ly, đường lên, nhầm, lên đường cmn nó luôn! Do vậy, người ta thường dùng Sliding Window Log / Sliding Window nếu muốn hạn chế điều trên. Sliding Window Log Thay vì dùng thời gian fixed, gấu bạn quyết định thay đổi thuật toán. Giờ đây, khi bạn uống tà tữa, gấu sẽ ghi log lại . Sau đó, gấu tính thời gian 1 tuần trở về trước tính từ lúc bạn uống. Giả sử bạn uống 1 ly trà sữa vào 12h trưa thứ 4 tuần này, gấu sẽ tra log từ 12h trưa thứ 4 tuần trước đến 12h trưa thứ tư tuần này. Đây chính là Sliding Window. Sau đó, gấu sẽ đếm trong khoản thời gian này, nếu bạn uống ít hơn 3 ly thì mới cho bạn uống, còn không thì … gấu uống (Tin mình đi, bọn con gái rất chi li và kĩ mấy thứ này!) Cách này đảm bảo được số lượng trà sữa bạn nốc vào người trong 1 tuần không vượt quá 3 ly . Nếu bạn nốc hết 3 ly cùng lúc, bạn sẽ phải chờ … đúng 7 ngày sau mới được hớp 1 giọt trà sữa. Cách này rất chính xác, tuy nhiên, nó cũng đi kèm 1 số khuyết điểm: Tốn khá nhiều bộ nhớ vì phải log toàn bộ request, Tốn tài nguyên vì phải log ở mỗi request Chạy có thể sẽ chậm, vì mỗi lần có request, ta phải query đếm lượng request trong 1 khoản thời gian nhất định để xem có tiếp nhận request hay không Hãy tưởng tượng hệ thống tầm 1 triệu người dùng, mỗi ngày họ gửi 1000 request là ta phải log gần 1 tỷ event mỗi ngày. Lưu trữ và query mòn râu luôn! Sliding Window Sliding Window là một thuật toán cải tiến từ Sliding Window Log. Ta đổi độ chính xác lấy tốc độ và bộ nhớ (lưu ít hơn ,query ít hơn). Ta không log trên mỗi request, mà chỉ lưu lại số lượng trên mỗi khoản thời gian. Quay lại với gấu. Do gấu thấy log mỗi lần uống mệt quá nên bây giờ, gấu chỉ log 1 lần vào Chủ Nhật là tuần đó bạn uống bao nhiêu ly trà sữa. Giả sử ở tuần 1 bạn uống 3 ly. Vào 12h trưa thứ 4 tuần thứ 2, bạn định uống thêm 1 ly. Sliding Window sẽ là từ 12h trưa thứ 4 tuần trước đến 12h thứ 4 tuần này. Sliding window này có 4.5 ngày trong tuần 1 (Chiều thứ 4 đến tối CN), 2.5 ngày trong tuần 2 (Sáng thứ 2 đến trưa thứ 4). Do không có log cụ thể, ta sẽ ước đoán lượng trà sữa bạn uống trong khoảng thời gian này bằng công thức sau. Cách này có thể không chính xác lắm, vì số lượng trà sữa bạn uống sẽ không trải dài đều theo tuần . Tuy vậy, nó không bị gian lận như fixed window, lại tốn ít tài nguyên và bộ nhớ hơn, nên được sử dụng khá nhiều. Tạm kết Bài học rút ra là gì?? Đó là nếu muốn uống trà sữa thoải mái thì đừng nên có gấu, hoặc rủ gấu uống chung, hoặc lén lén uống mà đừng cho gấu biết! Đùa thôi, bài học rút ra là có những thứ tưởng chừng như đơn giản, đến khi đi sâu vào tìm hiểu cũng khá khoai và phức tạp đấy hihi. Nếu chưa hiểu kĩ, các bạn có thể đọc lại và đọc 2 bài này nha. Họ có cả hình minh hoạ, code example và giải thích dễ hiểu hơn mình! Ở phần 2 mình sẽ hướng dẫn các bạn các trang lớn dùng Rate Limiting như thế nào, làm sao để áp dụng Rate Limit vào hệ thống của bạn nha! Rate this: Like this: Related
Today, I will introduce to you a very simple but extremely cool technique: This technique is applied by 69.96% of systems from large to small such as Google, Facebook, LinkedIn, Youtube. This technique helps us prevent DDOS, fight spam, and keep the system running smoothly. However, few of us know this silent "hero". This technique is called Rate Limiting. What is Rate Limiting? Basically, Rate Limit is very simple and easy to understand. Rate Limit means to limit the number of requests sent/received (rate) to the system. For example, if he is afraid that you are fat, he will only let you drink 2 cups of milk tea a week. You used rate limit to limit the amount of milk tea you consume, helping you lose weight. Well, it sounds as simple as that. In fact, one must use a number of algorithms to ensure it runs quickly and accurately while consuming little memory. To make it easier to understand, I will use milk tea and bears as examples of algorithms. Imagine 1 cup/drop of milk tea is 1 request to the server, you bear the Rate Limit algorithm to prevent you from drinking too much milk tea. Some commonly used algorithms? I don't know the Vietnamese names of the algorithms, so I just translated them temporarily. If you know the official names, please comment so I can update. Common algorithms often used to rate limit include: Leaky bucket: Your friend doesn't want you to drink too much, so pour all the milk tea into a bucket and then punch holes in it. Even if you buy a few dozen glasses, you have to pour them into a bucket, only about 1 cup comes out each day. You can only drink tea that comes out of the bucket. This helps prevent the system from being overloaded when there are many people accessing it, because the bucket will block it. Token Bucket (Token Bucket) Instead of putting milk tea in the bucket, you will put 60 Tokens in the bucket every day. If you drink unsweetened tea, you will buy 4 cups, but if you drink black sugar pearls with cheese cream, you will only get 1 cup. At the end of the day, if you run out of tokens, you will refill them. This way ensures you only drink a maximum of 60 Tokens per day. In fact, many requests will run longer, consuming more resources (generating reports, saving a lot of data). If we use Bucket Tua Lua, we can only guarantee the number of requests to the server. With this algorithm, the more resource-consuming algorithm will require more tokens, we can easily control the load to the server. Instead of using buckets, these algorithms rely on a timing window to limit the number of requests. Fixed window (Stiff window) Now that you don't buy buckets anymore, you have decided that now you can only drink a maximum of 3 drinks a week. This week (from 0:00 a.m. Monday to 12:00 p.m. Sunday) is a fixed window, limit is 3 drinks. This algorithm is easy to understand, easy to code, and large systems that provide APIs often issue limits like this. However, it has a weakness... it can be exploited to burst the number of requests beyond the limit. For example, your friend set this limit because he wants you to drink 1 drink every 2 days. However, you are too drunk so you wait until 11:30 pm on Sunday to drink 3 glasses, then drink 3 more glasses at 1 am on Monday morning! So in 2 hours you drink 6 glasses, on the way, wrong, on the way, damn it! Therefore, people often use Sliding Window Log / Sliding Window if they want to limit the above. Sliding Window Log Instead of using fixed time, you decide to change the algorithm. Now, when you drink tea, the bear will log it. Then, calculate the time 1 week back from the time you took it. Suppose you drink a glass of milk tea at 12 noon this Wednesday, the bear will look up the log from 12 noon last Wednesday to 12 noon this Wednesday. This is the Sliding Window. After that, the bear will count during this time. If you drink less than 3 glasses, he will let you drink, otherwise... the bear will drink (Trust me, girls are very meticulous and careful about these things!) How to This ensures that the amount of milk tea you drink in a week does not exceed 3 cups. If you drink all 3 cups at the same time, you will have to wait... exactly 7 days before you can sip 1 drop of milk tea. This method is very accurate, however, it also comes with some disadvantages: It takes up a lot of memory because you have to log all requests. Waste of resources because you have to log each request Running may be slow, because every time there is a request, we have to query to count the number of requests in a certain period of time to see if the request is received or not. Imagine a system with about 1 million users, every day they send 1000 requests, so we have to log nearly 1 billion events every day. Store and query your beard forever! Sliding Window Sliding Window is an improved algorithm from Sliding Window Log. We trade accuracy for speed and memory (less storage, less querying). We do not log on each request, but only record the number per time period. Back to the bear. Because I find it tiring to log every time I drink, now I only log once on Sunday about how many cups of milk tea I drank that week. Suppose in week 1 you drink 3 glasses. At 12 noon on Wednesday of week 2, you plan to drink 1 more glass. Sliding Window will be from 12 noon last Wednesday to 12 noon this Wednesday. This sliding window has 4.5 days in week 1 (Wednesday afternoon to Sunday evening), 2.5 days in week 2 (Monday morning to Wednesday noon). Because there is no specific log, we will estimate the amount of milk tea you drink during this period using the following formula. This method may not be very accurate, because the amount of milk tea you drink will not be spread evenly over the week. However, it is not as fraudulent as fixed window, and consumes less resources and memory, so it is used quite a lot. Conclusion What are the lessons learned? That is, if you want to drink milk tea comfortably, don't have a bear, or invite a bear to drink with you, or secretly drink it without letting the bear know! Just kidding, the lesson learned is that there are things that seem simple, but when you dig deeper into them, they are quite complicated and complicated hihi. If you don't understand thoroughly, you can reread and read these two articles. They have illustrations, code examples and explanations that are easier to understand than me! In part 2, I will guide you how big sites use Rate Limiting, and how to apply Rate Limit to your system! Rate this: Like this: Related
Ở kì trước, mình đã giới thiệu với các bạn về kĩ thuật Rate Limiting – Một kĩ thuật đơn giản mà hay ho, được khá nhiều hệ thống lớn sử dụng. Trong kì này, chúng ta sẽ đi sâu vào tìm hiểu cụ thể về cách các hệ thống lớn áp dụng Rate Limiting; cách áp dụng Rate Limiting để bảo vệ hệ thống của chúng ta nhé! API của Facebook, Google, LinkedIn dùng Rate Limiting như thế nào? Nhắc lại 1 tí kiến thức ở bài trước , các thuật toán Rate Limiting hay được dùng bao gồm (Các bạn xem lại để hiểu rõ hơn nhé): Leaky Bucket Token Bucket Fixed Window Sliding Window Những trang web lớn như Google, Facebook đều cung cấp API cho các bên thứ 3 sử dụng. Tuy vậy, đa phần họ đều ghi rõ limit để chống kẻ xấu spam và dùng quá nhiều tài nguyên hệ thống, để người dùng chân chính biết cách sử dụng cho hợp lý. Youtube API : Mỗi application sẽ được cấp 10000 unit 1 ngày. Mỗi lần gọi API sẽ tốn 1 unit nhất định, API tìm kiếm thì tẩm 50 unit, API upload thì tầm 1000 unit. Cách này chắc là dựa theo thuật toán Token Bucket. Github API : Cho phép mỗi người dùng gọi 5000 request mỗi giờ. Nếu chưa đăng nhập thì chỉ được 60 request mỗi giờ. Có thể họ sử dụng Sliding Window hoặc Fixed Window. Facebook API : Facebook cung cấp rất nhiều API: Lấy thông tin cá nhân, quản lý page, chạy quảng cáo… Phần lớn API dùng Platform Rate Limit , các API liên quan tới Marketing và Instagram sẽ có rate limit riêng. Rate Limit của Facebook không fix cứng mà khá là… ngộ nghĩnh, phụ thuộc vào số lượng user trong app của bạn. App càng nhiều user thì gọi API càng nhiều lần, thấy có vẻ cũng hợp lý đấy chứ! Tuy nhiên, dân Việt Nam rất trâu nên nhiều khi họ tìm được các API ngầm, hoặc chạy automation để làm nhiều trò … API không cho phép. Do đó, những trang lớn như Facebook, Google đôi khi họ còn dùng cả AI/ML, dựa theo behaviour người dùng để xác định xem là người hay máy automation. Tuy nhiên, do cái này nằm ngoài phạm vi bài viết nên mình xin bỏ qua. Áp dụng Rate Limit vào hệ thống Về cơ bản, áp dụng Rate Limiting vào hệ thống là một chuyện … không quá phức tạp , nhất là với các hệ thống nhỏ. Đa phần các web framework ( Spring, ExpressJS, Ruby on Rails, … ) đều có thư viện hỗ trợ. Chỉ cần gắn vào, tinh chỉnh vài dòng code là xong. (Các bạn muốn tự implement thì kéo xuống dưới bài có link có code sample nha) Theo kinh nghiệm, thường người ta sẽ setup Rate Limiting ở tầm Load Balancer hoặc Web Server. Lý do là vì web app của bạn chỉ nên tập trung vào business logic, những thứ như SSL Termination, Rate Limiting để Web Server quản lý sẽ tốt hơn, dễ thay đổi mà không cần sửa code. Tuy nhiên, khó khăn nằm ở chỗ tinh chỉnh các tham số sao cho phù hợp. Chặn quá lỏng lẻo thì vô tác dụng, chặn quá chặt thì user sẽ thấy bị chậm, khó chịu, không gọi được API. Dưới đây là 1 số kinh nghiệm của mình khi dùng Rate Limit: Public API là những API có thể gọi mà không cần token: Đăng nhập, Gửi tin nhắn, quên mật khẩu, search… API càng public hoặc càng quan trọng thì rate limit càng thấp. Lý do là những API này rất dễ bị lợi dụng để spam, cào thông tin hệ thống. Cân bằng giữa việc tăng Rate Limit và trải nghiệm người dùng. Nên cho phép tăng limit nếu người dùng đã đăng nhập, có nhiều quyền, trả phí v…v Khi người dùng gọi API quá limit thì làm gì? Throttle : nginx có khái niệm burst khá hay, những request vượt limit sẽ được đưa vào 1 queue, xử lý từ từ. Người dùng chỉ thấy bị chậm nhưng không bị lỗi. Kĩ thuật này gọi là throttle Return Error : Server trả về HTTP Code 429 – Too Many Requests để phía client biết mà xử lý Shadow Ban : Đôi khi bạn sẽ bị hacker chơi xấu, gọi API quá trời, khi gặp lỗi 429 thì tạo account mới để gọi. Lúc này ta có thể dùng Shadow Ban, vẫn trả về HTTP 200 nhưng … không làm gì hết, để đánh lừa hacker. Điều quan trọng nhất là bạn phải dựa vào business và requirement của hệ thống để ra quyết định nhé! Ví dụ web ngân hàng thì đăng nhập sai 3 lần là khoá và cảnh báo liền; còn web xem pỏn thì đăng nhập lộn 5-10 lần cũng chẳng chết ai đâu. Tạm kết Các bạn thấy đấy, Rate Limiting là một trong những kĩ thuật/thuật toán đơn giản, hay ho nhưng lại ít được nhắc tới trong sách hay chương trình học. Tuy nhiên, chúng lại là những người hùng thầm lặng, bảo vệ chúng ta khỏi bị DDOS, chống spam, đảm bảo người dùng có thể gọi API một cách trơn tru. Đấy, nếu bạn quan tâm đến những bài viết dạng kĩ thuật/thuật toán thế này, nhớ để lại comment nha. Nếu nhiều bạn quan tâm mình sẽ viết nhiều hơn nhé ahihi. Tham khảo thêm: Rate this: Like this: Related
In the previous article, I introduced to you the Rate Limiting technique - A simple but interesting technique, used by many large systems. In this period, we will delve into the specifics of how large systems apply Rate Limiting; How to apply Rate Limiting to protect our system! How do Facebook, Google, and LinkedIn APIs use Rate Limiting? Recalling a bit of knowledge from the previous article, commonly used Rate Limiting algorithms include (Please review to understand better): Leaky Bucket Token Bucket Fixed Window Sliding Window Big websites like Google and Facebook all provide APIs for third parties to use. However, most of them clearly state the limit to prevent bad guys from spamming and using too much system resources, so that genuine users know how to use it properly. Youtube API: Each application will be granted 10,000 units per day. Each call to the API will cost a certain unit, the search API costs 50 units, the upload API costs about 1000 units. This method is probably based on the Token Bucket algorithm. Github API: Allows each user to make 5000 requests per hour. If you are not logged in, you can only receive 60 requests per hour. Maybe they use Sliding Window or Fixed Window. Facebook API: Facebook provides many APIs: Get personal information, manage pages, run ads... Most APIs use Platform Rate Limit, APIs related to Marketing and Instagram will have their own rate limits. Facebook's Rate Limit is not fixed but is quite... funny, depending on the number of users in your app. The more users the app has, the more times it calls the API, it seems reasonable! However, Vietnamese people are very smart, so they often find underground APIs, or run automation to do many things... APIs do not allow it. Therefore, big sites like Facebook and Google sometimes even use AI/ML, based on the user's behavior to determine whether it is a human or an automated machine. However, because this is beyond the scope of the article, I will skip it. Applying Rate Limit to the system Basically, applying Rate Limiting to the system is... not too complicated, especially for small systems. Most web frameworks (Spring, ExpressJS, Ruby on Rails, ...) have support libraries. Just plug it in, tweak a few lines of code and you're done. (If you want to implement it yourself, scroll down to the article with a link with sample code.) According to experience, people will usually set up Rate Limiting at the Load Balancer or Web Server level. The reason is because your web app should only focus on business logic, things like SSL Termination, Rate Limiting will be better managed by the Web Server, and easy to change without needing to change the code. However, the difficulty lies in fine-tuning the parameters accordingly. If the blocking is too loose, it will be ineffective. If the blocking is too tight, the user will feel slow, uncomfortable, and unable to call the API. Below are some of my experiences when using Rate Limit: Public APIs are APIs that can be called without a token: Login, Send message, forgot password, search... The more public or important the API, the lower the rate limit. The reason is that these APIs are easy to abuse to spam and scrape system information. Balance between increasing Rate Limit and user experience. Limit increases should be allowed if the user is logged in, has multiple permissions, paid fees, etc What to do when the user calls the API beyond the limit? Throttle: nginx has a pretty good burst concept, requests that exceed the limit will be put into a queue, processed slowly. Users only see slowness but no errors. This technique is called throttle Return Error: The server returns HTTP Code 429 – Too Many Requests so that the client knows how to handle it Shadow Ban: Sometimes you will be cheated by hackers, making too many API calls. When you get error 429, create a new account to call. At this point we can use Shadow Ban, which still returns HTTP 200 but... does nothing, to fool hackers. The most important thing is that you must rely on the business and system requirements to make a decision! For example, on a banking website, if you log in incorrectly 3 times, you will be locked and immediately warned; As for porn websites, logging in 5-10 times won't kill anyone. Conclusion You see, Rate Limiting is one of the simple, cool techniques/algorithms that is rarely mentioned in books or curriculum. However, they are silent heroes, protecting us from DDOS, preventing spam, ensuring users can call APIs smoothly. Well, if you are interested in technical/algorithmic articles like this, remember to leave a comment. If many of you are interested, I will write more ahihi. Explore more: Rate this: Like this: Related
Chào các bạn, mình là Phạm Huy Hoàng, tác giả của blog Tôi đi code dạo và youtube channel Tôi Đi Code Dạo . Các bạn có thể gọi mình là Code Dạo, là Hoàng, hoặc Hoàng Code Dạo đều ok cả. Mình là một full-stack developer kiêm writer, blogger, Youtuber và đủ thứ lơ tơ mơ khác nữa. Về blog Tôi Đi Code Dạo Vốn sinh ra trong một gia đình nho giáo lâu đời, có truyền thống code dạo, cài win dạo nên tôi đặt tên blog là “Tôi Đi Code Dạo”. Đùa đấy, thật ra do hồi xưa mấy thầy ở trường hay doạ là “đứa nào ko lo học ra trường chỉ có nước đi code dạo”, nên mình lấy tên blog là Tôi Đi Code Dạo luôn! Đây là một blog về IT mà cũng ko phải về IT. Nội dung blog một nửa là về kĩ thuật lập trình , một nửa còn lại là những kinh nghiệm tôi học được: Cách deal lương, sắp xếp thời gian, kĩ năng mềm, ngôn ngữ lập trình nên học, con đường phát triển nghề nghiệp … Đó là những điều quan trọng ko thua gì kĩ năng lập trình. Phương châm của blog là: Developer cần biết nhiều điều hơn ngoài code, blog sẽ vừa dạy bạn code, vừa dạy bạn những điều còn lại. Nếu đây là lần đầu bạn ghé thăm blog, hãy click Bài viết hay để xem những bài viết/series đặc sắc nhất của blog nhé. Blog luôn có bài viết mới 1 lần/tuần vào thứ 3 . Ngoài ra, những bài viết hay và hữu ích trên blog đã được tổng hợp lại thành 1 cuốn sách mang tên Code Dạo Kí Sự, được hơn 250 review 5 sao trên Tiki. Nếu thích cầm sách giấy các bạn có thể mua trên Tiki ủng hộ mình nhé! Về channel Youtube Ngoài blog, mình còn có 1 Youtube Channel tại: bit.ly/codedaotube . Nội dung channel gồm nhiều vlog chia sẻ về ngành lập trình, một số clip hướng dẫn những kĩ thuật hay ho cho lập trình viên. Câu nói của miệng làm nên thương hiệu Youtube của mình cũng xuất phát từ đây: Hế nhô các bạn! Mình là Tôi Đi Code Dạo! Ngoài ra, lâu lâu cuối tuần mình còn livestream giao lưu trực tiếp với các bạn nữa. Các bạn có hứng thú thì cứ theo dõi và subscribe cho mình nhe. Để không bỏ lỡ clip và bài viết hàng tuần, các bạn có thể follow fanpage của mình tại nha! Về bản thân mình Mình là cựu sinh viên ngành Software Engineering khóa 6A, trường Đại Học FPT Hồ Chí Minh. Sau khi ra trường, mình làm việc 1 thời gian ở FPT Software HCM. Sau đó, mình chuyển qua đầu quân cho ASWIG Solutions . Tuy làm việc ở vị trí junior developer nhưng công việc cũng không thua kém gì developer. Sau 2 năm, mình đi học Thạc sĩ ngành Computer Science tại Đại học Lancaster ở anh (Học bổng 18000 bảng). Tôi vừa học vừa làm thêm tại phòng IT của trường, với chức danh full-stack developer , tức là ôm cả front-end lẫn back end =))). Học xong chương trình thạc sĩ, mình đi phiêu diêu xin việc trời Tây (20 ngày, 5 quốc gia, 6 lần phỏng vấn, 5 offer). Sau đó, do bạn bè giới thiệu nên mình đã đặt chân tại Singapore để tiếp tục làm full-stack developer cho startup Algomerchant . Hiện tại, mình đã rời Algomarchant và phiêu diêu ở một công ty startup khác ở Singapore. Muốn biết công việc, đồng nghiệp ở startup mới thế nào, các bạn cứ theo dõi Tôi Đi Code Dạo nhé! Hỏi đáp cho vui! 1. Dài quá ko muốn đọc, nhưng mà cái blog này viết về cái gì thế? Tin 18+, lá cải, lừa tình, girl xinh, XXX, …. đùa đấy. Nói ngắn gọn, blog này sẽ là nơi chứa những bài viết mà, developer nào đọc xong cũng sẽ vỗ đùi 1 phát : Mẹ, giá hồi xưa đi code mình biết cái này :)))). 2. Dào, chỉ có chém gió là giỏi, mới đi làm một vài năm biết cái gì mà dạy người khác? Kiến thức có thể thu thập thông qua kinh nghiệm hoặc sách vở, ko nhất thiết cứ làm lâu năm thì sẽ biết nhiều. Mình đọc khá nhiều sách (Series For Dummies, Head First, Clean Code, Getting Real, Humanware, The Mithical Man-Month…), trong đó có nhiều thứ khá hay, rất đáng để chia sẻ. Một góp ý nữa, mình ko “dạy” ai cả. Bản thân mình bây giờ dù có title là senior những vẫn luôn giữ thái độ của một junior developer; bởi vì xung quanh mình vẫn có rất nhiều thứ để học Hướng dẫn cho người khác cũng là một quá trình học, giúp mình giỏi hơn. Do đó mình rất hoan nghênh các developer khác vào “dạy” mfinh và mọi người. 3. Sao vlog a nói nhanh vl ra vậy, nói chậm lại một xíu đi! Theo các nhà khoa học , một người chỉ có thể nói tầm 150-170 từ mỗi phút. Nhưng não bộ lại có thể nghe và xử lý tầm 400-450 từ mỗi phút! Do vậy, thật ra các bạn có thể nghe cực kì nhanh mà không biết. Tập nghe nhanh thì các bạn sẽ không bị buồn ngủ, lại còn tiết kiệm được thời gian, tiếp thu được nhiều kiến thức hơn nữa đấy! 4. Cậu là lập trình viên, viết blog “dạy” người khác mà ko code đc 1 cái blog ra hồn à, sao lại phải dùng wordpress thế? Tại sao phải code lại từ đầu 1 blog engine, sau đó tìm host, deploy lên mạng, …. trong khi ta có thể tạo 1 blog đơn giản, theme có sẵn, plug-in chỉ với 3 bước? Sử dụng wordpress, tôi có thể tập trung vào việc viết blog, thay vì cố gắng code 1 engine mới lại từ đầu, rồi bỏ dở giữa chừng. 5. Câu nói ưu thích của anh là gì? 6. Anh giỏi quá, tốt bụng quá quá, em muốn biết thông tin thêm để liên lạc với anh blah blah…. Địa chỉ mail của mình là: . Facebook cá nhân: . Hiện tại mình không add friend người lạ. Nếu quan tâm đến bài viết và kinh nghiệm lập trình, các bạn có thể follow fanpage tại: nhé! Like this:
Hello everyone, I'm Pham Huy Hoang, author of the blog Toi Go Coding and the youtube channel Toi Go Coding. You can call me Code Dao, Hoang, or Hoang Code Dao, all are ok. I'm a full-stack developer, writer, blogger, YouTuber, and all sorts of other things. About the blog I Go Coding, Born in a long-standing Confucian family with a tradition of coding and installing Windows, I named the blog "I Go Coding". Just kidding, actually because in the past, the teachers at school used to threaten that "anyone who doesn't worry about graduating from school will only have to start coding", so I named the blog I Go Coding! This is a blog about IT but not about IT. Half of the blog content is about programming techniques, the other half is the experiences I learned: How to negotiate salary, organize time, soft skills, programming languages ​​to learn, career development path … Those are things that are just as important as programming skills. The blog's motto is: Developers need to know more than coding, the blog will both teach you code and teach you the rest. If this is your first time visiting the blog, please click Good Articles to see the blog's best articles/series. The blog always has new articles once a week on Tuesdays. In addition, good and useful articles on the blog have been compiled into a book called Code Walking Memoirs, which has received more than 250 5-star reviews on Tiki. If you like holding paper books, you can buy them on Tiki to support me! About Youtube channel In addition to the blog, I also have a Youtube Channel at: bit.ly/codedaotube. Channel content includes many vlogs sharing about the programming industry, and some clips instructing cool techniques for programmers. The words of my mouth that make up my Youtube brand also come from here: Hey guys! I'm I Go Coding! In addition, sometimes on weekends I also livestream and interact directly with you guys. If you are interested, please follow and subscribe. To not miss weekly clips and articles, you can follow my fanpage here! About myself I am a former student of Software Engineering course 6A, FPT University Ho Chi Minh. After graduating, I worked for a while at FPT Software HCM. After that, I transferred to work for ASWIG Solutions. Although working as a junior developer, the job is not inferior to that of a developer. After 2 years, I studied for a Master's degree in Computer Science at Lancaster University in the UK (18,000 pounds scholarship). I study and work part-time at the school's IT department, with the title full-stack developer, which means embracing both front-end and back end =))). After finishing my master's program, I went on an adventure to apply for a job in the West (20 days, 5 countries, 6 interviews, 5 offers). After that, because of a friend's introduction, I landed in Singapore to continue working as a full-stack developer for startup Algomerchant. Currently, I have left Algomarchant and ventured into another startup company in Singapore. If you want to know how the work and colleagues at the new startup are like, just follow I Go Coding! Ask and answer for fun! 1. It's too long to read, but what is this blog about? 18+ news, tabloids, cheating, pretty girls, XXX, .... Just kidding. In short, this blog will be a place to contain articles that, after reading it, every developer will pat their thigh: Mom, if only I knew this when coding in the past :)))). 2. Wow, you're only good at gossiping, you've only worked for a few years, what do you know that you can teach others? Knowledge can be gathered through experience or books, it is not necessary that you will know a lot if you have worked for a long time. I read quite a lot of books (For Dummies Series, Head First, Clean Code, Getting Real, Humanware, The Mithical Man-Month...), including many quite good things, worth sharing. One more comment, I don't "teach" anyone. Even though I have the title of senior, I still maintain the attitude of a junior developer; Because around me there are still many things to learn. Instructing others is also a learning process, helping you become better. Therefore, I welcome other developers to "teach" mfinh and everyone. 3. Why do you speak so fast in your vlog? Please slow down a bit! According to scientists, a person can only speak about 150-170 words per minute. But the brain can listen and process about 400-450 words per minute! Therefore, you can actually listen extremely fast without knowing it. If you practice listening quickly, you will not get sleepy, you will also save time and absorb more knowledge! 4. You are a programmer, you write a blog to "teach" others but you can't code a decent blog, why do you have to use wordpress? Why do we have to re-code a blog engine from scratch, then find a host, deploy it online, etc. While we can create a simple blog with available themes and plug-ins in just 3 steps? Using WordPress, I can focus on blogging, instead of trying to code a new engine from scratch, then abandoning it halfway. 5. What is your favorite saying? 6. You are so good, so kind, I want more information to contact you blah blah…. My email address is: . Personal Facebook: . Currently, I do not add friends to strangers. If you are interested in articles and programming experience, you can follow the fanpage at: okay! Like this:
Bạn muốn cải thiện khả năng viết code của mình, giúp code sạch hơn, tốt hơn? Bạn từng đọc Clean Code nhưng thấy sách quá dài và khó hiểu Bạn muốn tìm một cuốn sách giúp mình viết code tốt hơn, đẹp hơn mà lại dễ đọc, dể hiểu, dễ thấm Không cần tìm đâu xa, hôm nay mình sẽ giới thiệu cho các bạn một cuốn sách như vậy. Sách mang tên The Art of Readable Code – Nghệ Thuật Viết Code Dễ Đọc. Muốn biết sách có gì hay ho thì các bạn cứ đọc review sẽ rõ nha! Giới thiệu tổng quan về sách Trong ngành mình, khi nói về việc viết code clean, code dễ đọc, người ta hay nghĩ tới Clean Code (2009) , một trong những cuốn sách kinh điển về ngành cách viết code sạch trong lập trình. Bản thân bác Uncle Bob cũng là dạng cây đa cây đề trong ngành, hay viết blog, viết sách, đi conference nên sách của bác dĩ nhiên là nổi. Thế nhưng, khi thử tìm hiểu thêm về sách nói về cách viết code, mình cũng thấy nhiều người giới thiệu cuốn The Art of Readable Code này. Ban đầu mình cũng chưa tin tưởng lắm, nhưng thấy review trên Amazon khá cao, nên cũng tò mò tải ebook về đọc thử. Đọc xong, mình cảm thấy khá … bất ngờ, vì nội dung sách rất ngắn gọn, dễ hiểu, dễ ngẫm, chi tiết … không thua kém gì Clean Code , nhưng lại không nổi tiếng bằng. Sách đọc cũng lâu rồi, do đợt này mình lôi ra đọc lại nên review giới thiệu cho anh em xem luôn. Tóm tắt Sách chia làm 3 phần, từ chi tiết đến tổng quát: Điểm hay ho của sách là tác giả không chỉ nói mồm suông, mà còn đi kèm những code sample để ta dễ hình dung. Bên cạnh đó, tác giả cũng cho thêm rất nhiều hình ảnh hài hước , nên việc đọc trở nên nhẹ nhàng và thú vị chứ không hề nhàm chán tí nào! Những bài học trong sách thì có khá nhiều, nhưng mình… lười tóm tắt nên thôi. Các bạn tự đọc tự ngẫm cho nó ngấm nhé! Nhận xét Như mình đã nói ở đầu bài, đây là một cuốn sách đáng đọc cho các bạn developer, từ junior cho đến senior . Những lời khuyên trong sách khá là cụ thể, chi tiết , đọc xong có thể áp dụng ngay luôn. Ngoài ra, ngôn ngữ trong sách cũng khá dễ đọc, câu cú ngắn gọn, rõ ràng, các bạn nào tiếng Anh không khá cũng có thể vừa đọc vừa tra dần cho quen. Ảnh minh hoạ nhiều nên xem sách thấy không bị khô, bị ngộp hay nhàm chán. Sách cũng không quá dài, tầm khoảng 200 trang thôi, nên nếu đọc nhanh thì 1 tuần là các bạn đã đọc xong rồi. Đảm bảo đọc xong bạn sẽ trở thành developer giỏi hơn, chất lượng code được cải thiện hơn nha! Đánh giá: 8.5/10 Bonus : Mình có tìm được 1 slide tóm tắt sách khá hay. Nếu ngại đọc, các bạn có thể xem lại slide bên dưới Rate this: Like this: Related
Do you want to improve your coding ability and make your code cleaner and better? You've read Clean Code but found the book too long and difficult to understand You want to find a book that helps you write better, more beautiful code that is easy to read, understand, and absorb Look no further, today I will introduce to you such a book. The book is called The Art of Readable Code - The Art of Writing Readable Code. If you want to know what's good about the book, just read the review and you'll understand! Overview of the book In our industry, when talking about writing clean, readable code, people often think of Clean Code (2009), one of the classic books on how to write clean code in programming. Uncle Bob himself is also an expert in the industry, often blogging, writing books, and going to conferences, so of course his books are popular. However, when I tried to learn more about books about writing code, I also saw many people recommend this book The Art of Readable Code. At first, I didn't believe it much, but I saw that the reviews on Amazon were quite high, so I was curious to download the ebook and read it. After reading it, I felt quite... surprised, because the book's content is very concise, easy to understand, easy to think about, detailed... not inferior to Clean Code, but not as famous. I read the book a long time ago, so this time I took it out and read it again, so I'll review it and introduce it to you guys. Summary The book is divided into 3 parts, from details to generalities: The good thing about the book is that the author not only talks, but also comes with code samples for easy visualization. Besides, the author also added a lot of humorous images, so reading becomes light and interesting, not boring at all! There are quite a few lessons in the book, but I... am lazy to summarize so I'll stop. Please read it for yourself and think about it! Comments As I said at the beginning of the article, this is a book worth reading for developers, from junior to senior. The advice in the book is quite specific and detailed, and after reading it, you can apply it immediately. In addition, the language in the book is also quite easy to read, the sentences are short and clear, so those who are not good at English can read and look up gradually to get used to it. There are many illustrations so the book doesn't feel dry, stuffy or boring. The book is not too long, only about 200 pages, so if you read quickly, you will have finished reading it in a week. Make sure that after reading it, you will become a better developer and your code quality will improve! Rating: 8.5/10 Bonus: I found a pretty good book summary slide. If you're hesitant to read, you can review the slide below Rate this: Like this: Related
Dạo gần đây mình thấy có 1 cuộc thảo luận khá vui. Có nhiều người hay khuyên: Đi làm dev vài năm, có kinh nghiệm, lên senior rồi thì tha hồ mà deal lương nghìn đô! Thế nhưng cũng có nhiều bạn kể rằng: Em đi làm cũng 3-4 năm rồi, mà sao vẫn chưa được lên senior , lương vẫn lèo bèo. Hoặc có vài ông senior giả cầy , 6-7 năm kinh nghiệm nhưng khả năng cũng chỉ hơn junior chút đỉnh. Vậy, có phải cứ làm lâu, làm vài năm là sẽ lên được senior không? Số năm kinh nghiệm có phản ánh đúng trình độ của một developer hay không? Anh em cùng đọc bài viết và suy ngẫm nhé! Lại chuyện ngày xửa ngày xưa của 3 chàng dev Ngày xửa ngày xưa, ở FPT, có 3 chàng developer mang tên HKT rất thân với nhau. Cả 3 đều đẹp trai, hiền lành, giỏi giang chăm chỉ. Mới ra trường, cả ba đều cùng vào làm junior dev cho Ép Tao Dê. Thế rồi, định mệnh làm 3 người dần xa cách nhau: H làm ở Ép Tao Dê một thời gian, học hỏi được qui trình làm việc, cách review code, tổ chức dự án, học cứng C# và JS . Một năm sau, H nhảy qua công ty startup với vị trí mid-level, lương tăng gấp đôi. Qua công ty mới, H tìm hiểu cách build sản phẩm, thiết kế architecture , review và mentor cho junior 3 năm sau nữa, H nhảy dần lên senior/lên team leader/software architecture . Giờ H là cách tay đắc lực của CTO, chuyên lo hết vấn đề technical của công ty startup đó. K thì vẫn ở lại FPT. Sau một thời gian, thấy mình thích làm việc với con người hơn, K lẽo đẽo theo đuôi học tập kinh nghiệm mấy cha Team Lead, PM, Bu Lead Nhờ thủ đoạn, lộn, tài năng, sau 1 năm K đã lên được team lead, 2 năm đã lên được PM. Thừa thắng xông lên, K quản lý dự án rất tốt, dự án nào cũng đạt KPI, kịp tiến độ, ít OT, được cấp trên lẫn cấp dưới nể trọng. Con đường thăng tiến lên Manager, lên BU Lead rộng thênh thang T thì không được may mắn như 2 bạn. Vào FPT, T bị bắt làm công nghệ cũ, suốt ngày bị dí OT, bắt viết document, bị bọn Nhật chửi như con. Dự án và requirement thay đổi xoành xoạch, T vừa học xong web Web lại bị bắt làm Android, xong lại bị đưa đi làm sysadmin. Học được nhiều, nhưng mỗi thứ 1 ít Sau 3 năm, T vẫn làm dev cỏ, gì cũng biết mà chả biết gì sâu. T cũng thử đi phỏng vấn xin việc, nhưng chỗ nào cũng bảo … chưa đủ tầm mid level, nói chi senior! Lâu ngày gặp nhau, anh em đi nhậu nói chuyện. T nhìn hai thằng bạn cũ, tự hỏi: Tại sao cũng làm 3-4 năm, thằng H thì làm software architecture, thằng K thì sắp lên BU Lead, còn mình vẫn chỉ là dev cỏ chưa được senior vậy?? Mà thôi, gấu mình ngực bự hơn gấu tụi nó là được rồi. Nghĩ vậy xong T không nghĩ nữa, cắm đầu nhậu tiếp. Số năm làm việc !== Kinh nghiệm Đọc tới đây, bạn có cảm thấy mình có nét gì giông giống H, K, hay T hay không? Các bạn thấy đấy, tuỳ vào công việc và công ty, cùng làm việc 4 năm, nhưng lượng kinh nghiệm mà mỗi người thu được lại hoàn toàn khác nhau . Có người kinh qua đủ mọi vị trí, trực tiếp trải nghiệm những khó khăn, qua đó dần trở nên giỏi hơn. Cũng có người làm việc vài năm, nhưng chỉ là lặp đi lặp lại những thứ mình đã từng làm, không học được gì mới. Nếu không chịu thử thách bản thân mình, thử nhận thêm nhiều trách nhiệm, học hỏi thêm cái mới; thì 5 năm, 10 năm kinh nghiệm của bạn cũng chỉ là 1 năm kinh nghiệm, lặp đi lặp lại nhiều lần mà thôi! Thế mới có chuyện nhiều người đi làm đã vài năm, chưa bao giờ được review code hay thiết kế hệ thống , không biết unit test hay logging , code convention hay best practice là gì. Thế thì nàm thao mà thành senior đươc! Tạm kết Nói túm lại, số năm kinh nghiệm chưa chắc đã phản ánh đúng năng lực , trình độ của bạn. Một năm lăn xả, học hỏi từ những người giỏi hơn , làm những thứ vượt ngoài khả năng, sẽ giúp bạn tiến bộ hơn nhiều so với 3-4 năm làm những công việc quen tay, lặp đi lặp lại. Đừng chờ công ty tạo điều kiện để bạn lên senior, lên lead. Cũng đừng chờ may mắn giúp bạn được sếp để mắt đến! Hãy chịu khó quan sát, theo dõi, học hỏi từ những đồng nghiệp, cấp trên. Nếu thấy ở một nơi quá lâu, không phát triển được gì, đừng ngần ngại nhảy việc, tìm kiếm cơ hội mới , tìm kiếm nơi để thể hiện khả năng thôi! Chúc các bạn đọc xong bài này sẽ tự nghiệm ra được, bản thân mình thực tế có bao nhiêu năm kinh nghiệm, cần cố gắng bổ sung thêm những gì nhé! Rate this: Like this: Related
Recently I saw a rather interesting discussion. There are many people who advise: Work as a developer for a few years, have experience, and then become a senior, then you can freely negotiate a salary of thousands of dollars! However, there are also many people who say: I have been working for 3-4 years, but I still haven't reached senior level, my salary is still poor. Or there are a few fake senior guys, with 6-7 years of experience but their ability is only a little better than a junior. So, does it mean that if you work for a long time or a few years, you will reach senior level? Does the number of years of experience reflect the true level of a developer? Please read the article and ponder! Once upon a time, the story of 3 developers. Once upon a time, at FPT, there were 3 developers named HKT who were very close to each other. All three are handsome, gentle, talented and hardworking. Having just graduated from school, all three worked together as junior devs for Ep Tao De. Then, fate gradually separated the three people: H worked at Ep Tao De for a while, learned the workflow, how to review code, organize projects, and learned C# and JS hard. A year later, H jumped to a startup company with a mid-level position, his salary doubled. Through the new company, H learns how to build products, design architecture, review and mentor juniors 3 years later, H gradually jumped to senior/team leader/software architect. Now H is the effective hand of the CTO, specializing in taking care of all the technical issues of that startup company. K still stays at FPT. After a while, I found that I liked working with people more, so K followed behind to learn from the experiences of Team Lead, PM, and Bu Lead. Thanks to tricks, tricks, and talent, after 1 year K was promoted to team lead, and after 2 years he was promoted to PM. Taking advantage of the victory, K manages projects very well, every project meets KPI, on schedule, with little OT, and is respected by both superiors and subordinates. The path to promotion to Manager, to BU Lead is wide T is not as lucky as you two. At FPT, T was forced to work as an old technology guy, forced to write documents all day long, and scolded by the Japanese like a child. Projects and requirements changed all the time. As soon as T finished studying Web, he was forced to work on Android, and then was sent to work as a sysadmin. Learned a lot, but a little of each thing After 3 years, T is still working as a grass developer, knowing everything but not knowing anything in depth. T also tried going for a job interview, but everywhere said... not mid level enough, let alone senior! We meet each other after a long time, we go out to drink and talk. T looked at two old friends and wondered: Why did they work for 3-4 years? H is a software architect, K is about to become a BU Lead, and I'm still just a grass-roots developer who hasn't reached senior level yet?? Oh well, it's okay if my bear has bigger breasts than other bears. After thinking that, T didn't think anymore and continued drinking. Number of years working !== Experience Reading this far, do you feel like you have anything similar to H, K, or T? You see, depending on the job and company, working together for 4 years, the amount of experience each person gains is completely different. There are people who have gone through all sorts of positions, directly experienced difficulties, and thereby gradually become better. There are also people who work for several years, but just repeat what they have done before, not learning anything new. If you don't challenge yourself, try to take on more responsibilities, learn new things; Then your 5 years, 10 years of experience are just 1 year of experience, repeated over and over again! That's why many people have been working for several years, have never reviewed code or designed a system, and don't know what unit testing or logging, code conventions or best practices are. Then how can you become a senior? Conclusion In short, the number of years of experience does not necessarily reflect your abilities and qualifications. A year of hard work, learning from better people, doing things beyond your ability, will help you improve much more than 3-4 years of doing familiar, repetitive tasks. Don't wait for the company to create conditions for you to become senior or lead. Don't wait for luck to help you get noticed by your boss! Take the time to observe, follow, and learn from colleagues and superiors. If you feel like you're staying in one place for too long and you can't develop anything, don't hesitate to jump job, look for new opportunities, find a place to show your abilities! I hope that after reading this article, you will be able to figure out for yourself how many years of experience you actually have and what you should try to add! Rate this: Like this: Related
Đầu năm, mình hay nghe mấy bạn HR, mấy bạn manager mình quen kể về mấy ông senior “giả cầy” – title là senior, đòi mức lương senior nhưng trình độ chỉ hơn junior, thái độ thì … chán chả buồn nói! Do vậy, mình chia sẻ những biểu hiện/phương pháp để trở thành senior “giả cầy”, giúp các bạn biết đường né và phòng tránh nha! Nếu các bạn đọc xong, thấy nhột nhột kiểu “Sao giống nói mình quá vậy?” thì cứ tự nhủ “Chắc thằng Code Dạo nó chừa mình ra ” nha! (Kiếm hình “giả cầy” bỏ vào cho bài viết hấp dẫn và “ngon ăn” hơn nhé, mlem mlem đói quá) Chửi và chê liên tu bất tận Sau vài năm làm việc, thường thường mấy ông senior “giả cầy” sẽ biết vài điều về qui trình làm việc, về cách viết code . Thế nhưng, khi thấy cái gì không đúng, không phù hợp, thay vì góp ý để cải thiện , các senior “giả cầy” thường chỉ biết cách chê và … chửi: Code của dự án hơi lởm , không có test hay document. Thay vì ngồi viết document và test, chỉ việc chửi “mấy đứa ban đầu làm dự án ngu bỏ mẹ, méo biết code”. Junior mới vào công ty , học chậm, viết code chưa tốt. Thay vì hướng dẫn và hỗ trợ junior, chỉ ngồi chửi “junior code ngu bỏ mẹ”. Dự án chậm deadline, task dí. Thay vì tìm cách giải quyết như giảm requirement, OT thêm; lại ngồi chửi “bọn PM ngu bỏ mẹ, quản lý dự án như ….” À quên, nếu là senior giả cầy, bạn phải nhớ một điều là: dự án thành công là nhờ công của mình , còn thất bại là do “bọn” PM, QA/tester , “bọn” junior nhé. Không thèm/không cần học thêm cái mới Khi ngồi quá lâu ở 1 công ty hoặc 1 team, trở thành key member, bạn sẽ cảm thấy mọi công việc không còn quá thử thách nữa, chỉ đơn thuần là “biết” và “quen tay” là xong. Nếu là senior “giả cầy”, bạn sẽ nghĩ rằng mình đã đủ giỏi, mình biết cả rồi! Không cần phải đú đởn chạy theo công nghệ, học cái mới như mấy thằng Code Dạo trẻ trâu làm gì! Nếu bạn xác định muốn gắn bó cả đời với một công việc , một công ty, thì điều này chẳng sao cả. Còn nếu lỡ xui công ty chán, muốn nhảy việc , sa thải bớt nhân sự thì … hên xui nha! Mình là siêu nhân, không cần làm theo qui trình Lại nói về chuyện làm lâu! Thường thì khi trở thành key member , bạn sẽ có nhiều “quyền lực” hơn (quyền được deploy code, access database production v..v). Cái này thì công ty nào cũng có! Tuy nhiên, khi công ty lớn lên, để mọi thứ hoạt động ổn định, cả team thường đặt ra qui trình: Viết code phải có người review trước khi merge , phải rebase + squash trước khi merge Viết commit message rõ ràng. Đặt tên branch phải theo chuẩn A,B,C gì đó Chỉ deploy code vào những lúc nhất định (trừ trường hợp cần hotfix) Qui trình này giúp mọi thứ hoạt động trơn tru, hạn chế lỗi. Tuy nhiên, các senior “giả cầy” đôi khi lại … lười, hoặc ỷ mình là senior nên thích “vượt qui trình” cho vui: Tự viết code tự review, tự approve vì … chờ review lâu quá Viết code xong tự deploy để test vì … ở local không có dữ liệu để test Lén lén hotfix/commit code mà không cho ai biết Mấy cái này mình từng gặp khi đi làm rồi chứ không phải bịa nha. Gặp mấy trường hợp này chỉ có nước báo lên team leader/engineering manager để họ xử lý thôi, chứ phận dev cỏ như chúng ta không làm được gì đâu. Không thèm tiếp thu ý kiến từ người khác Nhắc chuyện review code mới nhớ. Một điều khác giúp bạn dễ nhận biết senior “giả cầy” đó là họ luôn cho rằng mình đúng , không thèm tiếp thu ý kiến của người khác: Khi review code, có người góp ý về design, về cách viết code. Họ sẽ xù lông lên chống trả Khi thảo luận vấn đề kĩ thuật, họ luôn chắc chắc 100% là cách của mình đúng ; còn mấy đứa cãi lại mình … ngu bỏ mẹ, méo biết gì Khi bảo họ viết test, viết documentation, họ cho rằng thứ đấy .. nhảm nhí, vô bổ, viết chán, mất thời gian (Hoặc như mấy bác ở phần 1 lại chửi vì code ko có documentation hay test) Khi góp ý cho họ về thái độ/phương thức làm việc, họ chỉ ậm ừ nhưng … bỏ qua hoặc chả thay đổi gì. May mắn là những điều này có thể nhận biết dễ dàng trong quá trình phỏng vấn, nói chuyện . Nếu các bạn tuyển người mà thấy ứng viên kiểu “tao nói cái gì cũng đúng” thì nhớ né né ra nhé, sau này làm chung mệt lắm đấy. Tạm kết Đấy, nếu bạn đang làm senior, cảm thấy mình bị dính một vài triệu chứng kể trên thì nhớ … len lén sửa dần, kẻo lại bị đàn em khinh thường hay cấp trên khinh bỉ nha. Nếu bạn nào đang tuyển đồng đội, kiếm người mà thấy ứng viên có những đặc tính như này thì nhớ né ra nha, kẻo rước phải “senior giả cầy” về đấy! À quên mất, xung quanh bạn có ông senior giả cầy nào không? Nếu có thì comment kể cho mọi người nghe với! Rate this: Like this: Related
At the beginning of the year, I often heard HR people and managers I know talk about "fake" seniors - the title is senior, asking for a senior salary but their qualifications are only better than junior, their attitude is... boring, I don't even bother talking about it! Therefore, I share the signs/methods to become a "fake" senior, to help you know how to avoid them! If you finish reading it, you feel tickled like "Why do you say it so much like yourself?" Just keep thinking to yourself, "Code Dao must have left me alone"! (Find a picture of "fake civet" to put in a more attractive and "tasty" article, mlem mlem is so hungry) Endless cursing and criticism After a few years of working, usually the "fake civet" senior people will Know a few things about the workflow and how to write code. However, when they see something incorrect or inappropriate, instead of giving suggestions for improvement, "fake" seniors often only know how to criticize and... curse: The project's code is a bit messy, there is no testing or documentation. Instead of sitting down to write documents and tests, just curse "the people who originally worked on the project are so stupid, they don't know how to code". Junior is new to the company, learns slowly, and is not good at writing code. Instead of guiding and supporting juniors, they just sit and curse "junior code is stupid". Project deadline is late, tasks are delayed. Instead of finding solutions such as reducing requirements and adding OT; sat back and cursed, "PMs are so stupid, project managers are like...." Oh, I forgot, if you are a fake senior, you have to remember one thing: the success of the project is thanks to your efforts, and the failure is due to "the" PM, QA/testers, "the" juniors. No desire/no need to learn new things. When you sit for too long in a company or a team, becoming a key member, you will feel that every job is no longer so challenging, simply "knowing" and "familiar". hand" is done. If you are a "fake" senior, you will think that you are good enough, you know everything! There's no need to rush after technology and learn new things like those young Code Dao guys! If you decide that you want to stick with one job or one company for the rest of your life, then this is okay. And if you're unlucky enough, the company is bored, wants to change jobs, lay off fewer employees, then... good luck! I'm a superhero, I don't need to follow the process. Talk about taking a long time! Usually, when you become a key member, you will have more "power" (the right to deploy code, access database production, etc.). Every company has this! However, as the company grows, in order for everything to operate stably, the whole team often sets up a process: Writing code must have someone review it before merging, must rebase + squash before merging Write a clear commit message. Branch names must follow some standard A, B, C Only deploy code at certain times (except when a hotfix is ​​needed) This process helps everything run smoothly, minimizing errors. However, "fake" seniors are sometimes... lazy, or rely on themselves to be senior so they like to "overcome the process" for fun: Write self-review and self-approved code because... waiting for a review takes too long After writing the code, deploy it yourself to test because... locally there is no data to test Secretly hotfix/commit code without letting anyone know I've encountered these things before at work, they're not made up. When encountering these cases, the only way is to report it to the team leader/engineering manager so they can handle it, but we as developers cannot do anything. Don't bother to accept opinions from others. Just mention code review. Another thing that helps you easily recognize "fake" seniors is that they always think they are right and do not bother to accept other people's opinions: When reviewing code, someone gives comments on design and how to write code. They will ruffle their feathers and fight back When discussing technical issues, they are always 100% sure that their way is correct; As for those who argue with me... I'm so stupid, I don't know anything When they tell them to write tests, write documentation, they think that it's nonsense, useless, boring, and a waste of time (Or like the guys in part 1, they curse because the code doesn't have documentation or tests). When giving them feedback on their attitude/working methods, they just hummed but... ignored it or didn't change anything. Luckily, these things can be easily identified during the interview and conversation process. If you are recruiting and see a candidate who is like "whatever I say is right", then remember to stay away, it will be tiring to work together later. Conclusion: If you are a senior and feel like you are suffering from some of the above symptoms, remember to... gradually gradually correct it, lest you be despised by your juniors or your superiors. If you are recruiting teammates or looking for people and see a candidate with these characteristics, remember to stay away, lest you end up with a "fake senior"! Oh I forgot, are there any fake seniors around you? If so, please comment and tell everyone! Rate this: Like this: Related
Mọi chuyện bắt đầu vào một ngày đẹp trời nọ, khi mình vừa đọc xong series sách The Witcher, định đi tải film lậu về xem cho vui. Cũng có 1 vài trang như tmovies cho phép xem online, nhưng chẳng hiểu sao hơi giật giật, lại ko có link tải trực tiếp nên mình tìm torrent 1080p tải về xem cho nét. 8 tập The Witcher cũng tầm vài chục GB, ít seed nên tải về khá lâu. Gặp thuở xưa thì mình cứ bật torrent cắm laptop tải về thôi. Ngặt 1 nỗi gần đây mình xài Mac, cắm 1 hồi máy sẽ … tự sleep (có app chống sleep cơ mà mình lười dùng), chưa kể cắm pin dùng lâu sẽ dễ làm chai pin . Chưa kể, mở thêm port để cắm torrent cũng làm máy dễ bị tấn công hơn nữa. Thế là, mình bỗng nghĩ ra 1 kế: “Có cách nào dùng VPS để cắm tải torrent không ? Chờ nó tải xong mình copy về là được”. Hoá ra là có thật các bạn ạ. Để mình kể lại các bạn nhé! Hiện tại mình đang dùng con VPS của Digital Ocean. Các bạn nào muốn tạo VPS cắm torrent có thể đăng kí 2 tháng free rồi làm theo nha: Thất bại với Deluge Torrent! Nghĩ là làm, mình bắt đầu search Google với từ khoá “ torrent command line “. Kết quả ra Deluge Torrent Client , một chương trình cho phép tải torrent từ command line, có cả web ui để thử. Tuy nhiên, khi mình thử chạy lệnh cài đặt thì lại báo lỗi. Nói túm lại là nó bị lỗi thiếu library gì đó của python nên không chạy được, khá là buồn. Thế nhưng, mình lại nghĩ, ủa nếu không chạy được trên máy chính thì tại sao không thử tải docker image của nó rồi chạy xem sao? May thay, mình tìm được 1 cái docker image khá ngon, setup sẵn sàng, chỉ việc bấm chạy là được: Thế là, mình chỉ đơn giản chạy docker và mở 2 port cho torrent cũng như cho WebUI của Deluge là xong. Deluge UI chạy trên port 8112 May mắn thay, cuối cùng mình cũng vào được Web UI của Deluge (Các bạn nhớ mở port cho VPS của Digital Ocean nữa nhé) Thế nhưng, chẳng hiểu sao khi upload file torrent lên thì deluge… không tải được, thanh progress dừng ở 0%, chờ hoài không thấy hiện gì…. QbitTorrent thần thánh cứu nguy Buồn rười rượi, mình định bỏ cuộc, nhưng cũng thử google “deluge vs …” để xem có chương trình nào thay thế được Deluge không? May thay, mình thấy có vài bác giới thiệu qBitTorrent cũng khá ok. Lại tiếp tục cảm ơn các anh linuxserver.io lần nữa, đã tạo sẵn 1 con docker image cho mình lấy về và chạy thôi: Qbittorrent chạy ở port 8080, mình chỉ cần sửa lại chút đỉnh Sau khi login và up file torrent lên, qbitorrent chạy khá ngon lành, tải vi vu, nhận được cả link magnet luôn. Ủa, làm sao tải file về máy mình?? Cho những bạn chưa biết, dữ liệu trong Docker container được lưu vào volume: . Để đơn giản, mình chỉ cần tạo thư mục /root/torrents , mount vào thư mục /downloads trong container, sau đó setup cho qbittorrent tải vào thư mục đó là xong. Mình ko biết Digital Ocean có limit hay không, nhưng thấy tốc độ download torrent cũng nhanh, tầm 8-10MB/s nếu nhiều seeds. Chờ 1 chút là toàn bộ film đã được tải về thư mục /root/torrents trên VPS của mình. Ủa, mà tải xong rồi, thì làm sao tải đống film về laptop của mình bây giờ nhỉ? Lấy file từ VPS về có khá nhiều cách , bạn có thể dùng SCP, hoặc dựng file server đơn giản từ VPS. Mình cài NodeJS , dùng là có cái file server đơn giản đủ xài rồi. Nhớ vào Digital Ocean mở port 8081 trên VPS nha! Ngoài ra, có 1 điều khá bựa là khi đang tải được vài tập thì torrent của mình bị stall , không tải được nữa, tốc độ tụt về 0. Sau 1 hồi nghiên cứu thì hoá ra là do … hết ổ cứng , không có chỗ tải. Khổ một cái là với con VPS 5$/tháng của mình, Digital Ocean chỉ cho free 25GB thôi. Muốn tải thêm thì các bạn phải xoá bớt, khó mà tải game nặng được. Bạn nào chịu chơi thì có thể mua thêm volume của DO luôn. Bản thân mình phải chạy 1 số lệnh để clear bớt file linh tinh của docker . Nếu VPS của bạn mới tạo thì chắc không cần đâu! Tạm kết Các bạn thấy đấy, nếu chịu khó bỏ 10$ mỗi tháng mình cũng có thể xem The Witcher trên Netflix , lại không mất thời gian tìm torrent, setup này nọ Tuy nhiên, việc setup tải torrent trên VPS khá là vui, giúp mình ôn lại chút kiến thức về Docker và command line. Ngoài ra, bây giờ khi cần tải game cũ hay film cũ , mình có thể ném lên VPS , không cần phải cắm máy ngày đêm nữa! Con VPS này có thể tha hồ seed, không ảnh hưởng đến đường truyền mạng nhà mình! Nếu có hứng thú, các bạn có thể thử đăng ký VPS trên Digital Ocean và làm theo nha: . Không biết sau này thằng Digital Ocean có ghét mà block torrent không nữa ahihi. P/S: Hiện tại mình đã đọc xong 8 cuốn The Witcher, xem song SS1, đang cày the Witcher 3. Sau khi cày xong nếu có hứng mình sẽ làm series review vũ trụ The Witcher cho anh em nha :3 Rate this: Like this: Related
It all started one fine day, when I had just finished reading The Witcher book series and wanted to download pirated movies to watch for fun. There are also a few sites like tmovies that allow online viewing, but for some reason it's a bit jerky, and there's no direct download link, so I found a 1080p torrent to download for better viewing. The 8 episodes of The Witcher are about a few dozen GB, with few seeds so it takes quite a while to download. In the past, I just turned on torrent, plugged in my laptop and downloaded it. Unfortunately, recently when I was using a Mac, after plugging it in for a while, the machine would... sleep on its own (there is an anti-sleep app that I'm too lazy to use), not to mention that leaving it plugged in for a long time can easily wear out the battery. Not to mention, opening additional ports to plug in torrents also makes the device more vulnerable to attacks. So, I suddenly thought of a plan: "Is there a way to use VPS to download torrents?" Wait for it to finish downloading and then copy it." Turns out it's real, guys. Let me tell you guys! Currently I am using Digital Ocean's VPS. Those who want to create a VPS to plug in torrents can sign up for 2 months for free and then follow along: Failure with Deluge Torrent! Thinking of doing it, I started searching Google with the keyword "torrent command line". The result is Deluge Torrent Client, a program that allows downloading torrents from the command line, including a web ui to try out. However, when I try to run the installation command, I get an error. In short, it's missing some python library so it can't run, which is quite sad. However, I thought, well, if it can't run on the main machine, why not try downloading its docker image and running it? Luckily, I found a pretty good docker image, ready to install, just click run: So, I simply ran docker and opened 2 ports for torrents as well as for Deluge's WebUI and that's it. Deluge UI runs on port 8112 Luckily, I was finally able to access Deluge's Web UI (Remember to open the port for Digital Ocean's VPS too). However, for some reason, when I upload a torrent file, deluge... doesn't load. ok, the progress bar stopped at 0%, waited forever but nothing showed up... QbitTorrent divine rescue. So sad, I was about to give up, but I also tried google "deluge vs ..." to see if there is any program that can replace Deluge? Luckily, I saw a few people recommend qBitTorrent which is quite ok. Thank you again, linuxserver.io, for creating a docker image for me to download and run: Qbittorrent runs on port 8080, I just need to fix it a bit. After logging in and uploading the torrent file, qbitorrent runs quite well, downloads videos, and even receives magnet links. Hey, how do I download the file to my computer?? For those of you who don't know, data in Docker containers is saved in volume: . For simplicity, I just need to create the /root/torrents directory, mount it in the /downloads directory in the container, then set up qbittorrent to download into that directory and that's it. I don't know if Digital Ocean has a limit or not, but the torrent download speed is also fast, about 8-10MB/s if there are many seeds. Wait a moment and all the movies have been downloaded to the /root/torrents folder on your VPS. Well, now that the download is complete, how can I download the movies to my laptop? There are many ways to get files from VPS, you can use SCP, or build a simple file server from VPS. I installed NodeJS, used it and had a simple server file that was enough to use. Remember to go to Digital Ocean and open port 8081 on VPS! In addition, a rather annoying thing is that when I was downloading a few episodes, my torrent stalled, could no longer download, and the speed dropped to 0. After a while of research, it turned out that it was due to... running out of hard drive, no loading place. Unfortunately, with my $5/month VPS, Digital Ocean only gives me 25GB for free. If you want to download more, you have to delete some, it's difficult to download heavy games. If you are willing to play, you can buy more volumes of DO. I personally had to run a few commands to clear out miscellaneous docker files. If your VPS is newly created, you probably don't need it! Conclusion You see, if you're willing to spend $10 per month, you can watch The Witcher on Netflix, without wasting time finding torrents, setting up this and that. However, setting up torrent downloads on VPS is quite fun, helping Let's review some knowledge about Docker and the command line. In addition, now when I need to download old games or old movies, I can throw them on VPS, no need to plug in the computer day and night anymore! This VPS can freely seed without affecting your home network connection! If you are interested, you can try registering for VPS on Digital Ocean and follow along: . I don't know if Digital Ocean will hate it and block torrents in the future, ahihi. P/S: Currently, I have finished reading 8 books of The Witcher, watched the SS1 song, and am plowing through The Witcher 3. After finishing plowing, if I'm inspired, I will do a series of reviews of The Witcher universe for you guys :3 Rate this: Like this: Related
Chúc mừng năm mới các bạn. Sau 2 tuần nghỉ Tết phũ phê, đây là bài viết đầu tiên trong năm 2020 Âm Lịch của Tôi Đi Code Dạo. Đầu năm, nhận thưởng Tết xong là thời điểm chúng ta nên … nhảy việc, đòi tăng lương , hoặc phấn đấu trở thành người tốt hơn, giỏi hơn. Do vậy, mình viết bài này để chia sẻ một số kinh nghiệm của bản thân và những bác lập trình viên giỏi xung quanh, chia sẻ cách để trở thành lập trình viên giỏi nha. 1. Cách viết code clean và code cứng Phương châm của blog là: Lập trình viên không phải chỉ biết code . Tuy nhiên, phần lớn thời gian chúng ta bỏ ra khi đi làm là để … viết code. Chúng ta viết code để hiện thực 1 features nào đó, để tạo ra sản phẩm. Code ít lỗi thì sản phẩm chúng ta làm ra mới tốt, code clean thì người khác mới dễ đọc, dễ bảo trì . Chưa kể, đồng nghiệp, cấp trên sẽ đánh giá khả năng, trình độ của bạn dựa trên những dòng code mà bạn viết ra. Viết code tởm, code tạm bợ sẽ khiến bạn bị … người đời phỉ nhổ. Do vậy, muốn thành 1 lập trình viên giỏi, trước tiên bạn phải học cách viết code clean và code cứng . Chi tiết thì dài lắm, mình đi làm 4-5 năm rồi nhưng vẫn phải học mỗi ngày nên khó chia sẻ hết trong bài này được. 2. Hiểu biết sâu về 1 công nghệ/lĩnh vực nào đó Tất nhiên, code giỏi là điều kiện cần chứ chưa phải là đủ. Để nâng cao giá trị bản thân, bạn cũng nên tập trung master (nôm na là làm trùn, lộn, làm “trùm”) một công nghệ, lĩnh vực nào đó. Ví dụ, bạn thấy thích front-end . Đừng chỉ tập trung vào code, mà hãy nghĩ tới cách làm giao diện, cách thiết kế UI/UX , flow hợp với người dùng. Hoặc bạn có thể tìm hiểu cách optimize code, optimize performance của React/Angular. Hoặc nếu bạn thích back-end , bạn có thể tập trung thêm vào thiết kế hệ thống, tìm hiểu sâu về database optimize, caching, infrastructure v…v. Bên cạnh công nghệ, kiến thức về 1 lĩnh vực nào đó, kiến thức về qui trình cũng khá quan trọng! Ví dụ, bạn từng làm dev cho các công ty liên quan tới trading, kiến thức trading đó sẽ rất có giá trị khi bạn nhảy qua các công ty liên quan đến tài chính, stock. Những kiến thức này giúp bạn hiểu rõ hơn những về cách hệ thống hoạt động , cover được nhiều trường hợp hơn, tiếp nhận requirement từ user nhanh chóng hơn. 3. Tiếp cận vấn đề một cách có hệ thống Làm một thời gian rồi, bạn sẽ luyện được cách tiếp cận vấn đề một cách bài bản, có hệ thống, có qui trình chứ không … mò mẫm nữa. Ví dụ: Khi nghe thấy có bug front-end , thay vì mò mẫm thì ta có thể check bug đó ở browser nào, trang nào, sau đó thử reproduce. Sau khi reproduce ta mở Developer Tool lên để xem có lỗi gì không, sau đó mới check code xem đoạn nào gây lỗi. Khi có lỗi back-end nhưng không reproduce được, thay vì vò đầu bức tai thì ta kiểm tra log , kiểm tra monitoring xem có alert hay notify gì không. Khi làm 1 chức năng mới, thay vì cắm đầu code ngay thì ta thiết kế trước flow, UI, những module cần thiết; sau đó check lại xem cách nào có đáp ứng đủ yêu cầu hay không. Sau đó mới bắt đầu code. Tiếp cận vấn đề có hệ thống sẽ giúp bạn tiết kiệm khá nhiều thời gian, công việc trơn tru hơn, chuyên nghiệp hơn! 4. Tiếp cận phần mềm dưới góc nhìn của user/business Nếu chỉ biết cắm đầu vào code , giao task gì làm nấy, giá trị của bạn mang lại chỉ có hạn. Công việc của lập trình viên chúng ta không phải là code, mà là dùng khả năng code để đem lại giá trị cho sản phẩm, cho người dùng. Thật vậy, khi code, bạn hãy thử đặt mình vào vị trí người dùng, vị trí của CEO hoặc team lead, tự hỏi mình những câu hỏi sau: Chức năng này code ra cho ai dùng ? UI/UX thế này đã thân thiện với người dùng chưa? Chức năng này code ra có đem lại giá trị gì không ? Có giúp người dùng vui hơn không? Có mang lại doanh thu/lợi nhuận thêm cho công ty không? Task này mình làm tiết kiệm được thời gian cho anh em trong nhóm, cho các bạn operator và customer support hay không? Khi làm vậy, bạn sẽ thấy được những task nào nên làm, không nên làm, công sức mình bỏ ra đã giúp được những ai. Khi có performance reveiw, đòi tăng lương, bạn cũng có cơ sở mà đòi vì “Em đã làm cái A cái B này đem lại quá trời tiền cho công ty”. 5. Kĩ năng mềm/thuyết trình/chém gió Dù bạn có giỏi thế nào, thiết kế hệ thống xịn tới mấy, mà k hông giải thích được cái hay, cái giỏi đó cho đồng nghiệp, cho cấp trên; thì cái sự giỏi ấy cũng không có tác dụng nhiều. Chưa kể, khi bạn lên những vị trí cao hơn như team lead, manager , thời gian dành cho việc code sẽ ít lại; thay vào, bạn sẽ phải bỏ ra thêm thời gian để thuyết phục member, trình bày cho cấp trên, chém gió cho các team khác. Do vậy, muốn thành lập trình viên giỏi, có sức ảnh hưởng, bạn phải có chút kĩ năng mềm để thuyết phục người khác làm theo ý mình; có kĩ năng thuyết trình/chém gió để trình bày vấn đề với cấp trên. Phần này thì mình cũng không biết rèn luyện ra sao! Bản thân mình chỉ quan sát mấy bác manager/team lead/CEO xung quanh, sau đó kiếm thêm sách về đọc thôi. Tạm kết Trong ngành mình, khả năng quyết định tất cả, tiếp tới là may mắn. Nếu bạn có khả năng, nếu bạn đủ giỏi, bạn có rất nhiều cơ hội, thể dễ dàng nhảy việc, dễ dàng deal lương! Do vậy, đừng quá tập trung vào vài đồng lương vụn vặt, mà hãy cố gắng biến mình giỏi hơn hàng ngày Nâng cao trình độ của mình, tiền bạc sẽ tự theo đuổi bạn nha. Nếu bạn nào có kinh nghiệm, cách rèn luyện để t rở thành lập trình viên giỏi thì cứ comment chia sẻ với mọi người nhé. Bonus : Nếu không muốn đọc blog thì các bạn có thể xem vê lóc để nghe mình chém gió nhé Rate this: Like this: Related
Happy New Year everyone. After 2 weeks of a busy Tet holiday, this is the first article in the 2020 lunar year of Toi Go Code Dao. At the beginning of the year, after receiving Tet bonuses, it's time for us to... jump jobs, ask for a raise, or strive to become a better, more talented person. Therefore, I wrote this article to share some of my experiences and those of good programmers around me, and how to become a good programmer. 1. How to write clean code and hard code The blog's motto is: Programmers don't just know how to code. However, most of the time we spend at work is... writing code. We write code to implement a certain feature, to create a product. If the code has few errors, the products we make will be good. If the code is clean, it will be easier for others to read and maintain. Not to mention, your colleagues and superiors will evaluate your abilities and qualifications based on the lines of code you write. Writing disgusting code, temporary code will make you be spit on by... people. Therefore, if you want to become a good programmer, you must first learn how to write clean code and hard code. The details are very long, I have been working for 4-5 years but still have to study every day so it is difficult to share everything in this article. 2. Deep understanding of a certain technology/field Of course, good coding is a necessary condition, not a sufficient condition. To improve your self-worth, you should also focus on mastering a certain technology or field. For example, you like the front-end. Don't just focus on the code, but think about how to make the interface, how to design the UI/UX, and the flow that suits the user. Or you can learn how to optimize code and optimize performance of React/Angular. Or if you like back-end, you can focus more on system design, learn deeply about database optimization, caching, infrastructure, etc. Besides technology, knowledge about a certain field, knowledge about the process is also quite important! For example, if you used to work as a developer for companies related to trading, that trading knowledge will be very valuable when you jump to companies related to finance and stocks. This knowledge helps you better understand how the system works, cover more cases, and receive requirements from users more quickly. 3. Approach problems systematically After doing it for a while, you will practice how to approach problems methodically, systematically, with a process and not... grope anymore. For example: When we hear about a front-end bug, instead of searching for it, we can check which browser and page the bug is in, then try to reproduce it. After reproducing, we open the Developer Tool to see if there are any errors, then check the code to see which part is causing the error. When there is a back-end error but cannot be reproduced, instead of scratching our heads, we check the log, check the monitoring to see if there are any alerts or notifications. When making a new function, instead of starting the code right away, we design the flow, UI, and necessary modules in advance; Then check to see if any method meets the requirements or not. Then start coding. Approaching problems systematically will help you save a lot of time and make your work smoother and more professional! 4. Approach software from a user/business perspective. If you only know how to plug in code and assign tasks, the value you bring is limited. Our job as programmers is not to code, but to use our coding ability to bring value to products and users. Indeed, when coding, try to put yourself in the user's position, the CEO's position or the team lead's position, ask yourself the following questions: Who is this function coded for? Is this UI/UX user-friendly? Does coding this function bring any value? Does it make users happier? Does it bring additional revenue/profit to the company? Does this task that I do save time for my team members, operators and customer support staff? When you do that, you will see which tasks you should do, which tasks you shouldn't do, and who your efforts have helped. When there is a performance review, asking for a salary increase, you also have a basis to ask because "I did A and B and brought a lot of money to the company". 5. Soft skills/presentation/chat No matter how good you are or how good you are at system design, if you can't explain that good thing to your colleagues and superiors; then that skill doesn't have much effect. Not to mention, when you reach higher positions such as team lead, manager, the time spent coding will be less; Instead, you will have to spend more time convincing members, presenting to superiors, and telling other teams. Therefore, if you want to become a good and influential programmer, you must have some soft skills to persuade others to do what you want; Have presentation/speaking skills to present problems to superiors. I don't know how to practice this part! Personally, I just observe the managers/team leads/CEOs around, then find more books to read. Conclusion In our industry, ability decides everything, followed by luck. If you have the ability, if you are good enough, you have many opportunities, you can easily change jobs, and easily negotiate salaries! Therefore, don't focus too much on a few petty salaries, but try to make yourself better every day. Improve your qualifications, money will follow you. If you have experience and ways to practice to become a good programmer, please comment and share with everyone. Bonus: If you don't want to read the blog, you can watch the story to hear me gossip Rate this: Like this: Related
Nối tiếp phần 1 , trong phần này mình sẽ giới thiệu về những cuốn sách mình đã đọc từ tháng 7 tới tháng 12 nhé. Các bạn có thể xem những kì trước tại đây: Mỗi tháng một cuốn sách – Năm 2015 Mỗi tháng một cuốn sách – Năm 2016 Mỗi tháng một cuốn sách – Năm 2017 Mỗi tháng một cuốn sách – Năm 2018 Tháng 7 – Một đời quản trị Tác giả cuốn này là Giáo Sư Phan Văn Trường , một người mà mình khá nể vì bác có bề dày kinh nghiệm rất khủng: Từ cương vị kĩ sư leo lên Phó Chủ Tịch/Chủ Tịch các tập đoàn lớn đa quốc gia. Trước đây, mình từng đọc cuốn Một Đời Thương Thuyết của ông cũng khá hay. Quyển sách này cũng không làm mình thất vọng. Sách không hề màu mè hoa lá, không giới thiệu các phương pháp quản trị hiện đại, tân tiến; mà ông chỉ kể về những kinh nghiệm của ông. Điều hay ho nhất trong sách mình học được về quản trị là: Cốt lõi của việc quản trị là con người, chứ không phải qui trình cứng nhắt. Bản thân mình thấy sách khá có ích. Dù bạn là dev quèn hay có là manager/team leader cũng nên đọc, sẽ có đôi chút áp dụng được trong công việc. Tháng 8 – It doesn’t have to be crazy at work Đây là cuốn sách tiếp theo sau series Rework, Remote của DHH (cha đẻ của Ruby on Rails). Mình cực kì khuyên những bạn nào theo nghiệp developer, nuôi mộng startup đọc những bài viết và sách của ông . Bản thân ông có những suy nghĩ hoàn toàn trái ngược với tôn chỉ của giới startup: Phát triển bền vững tốt hơn bơm tiền phát triển phi mã Công ty tốt phải làm ra lợi nhuận Bạn không cần phải là số 1, phải disrupt thị trường Đừng cày hùng hục như trâu, mà hãy tôn trọng work/life balance Bản thân cuốn sách là những đúc kết, trải nghiệm của ông về việc xây dựng 1 công ty tốt, phát triển bền vững, không bóc lột nhân viên. Bạn nào đang làm lead, làm CEO nhớ đọc nhe. Tháng 9 – The Laws of Human Nature Sách của Robert Greene khá hay và nổi tiếng: 48 Laws of Power, The Art of Seduction, Mastery. Cuốn nào của ông mình cũng đọc hết cả! Ông viết hay nhưng mỗi tội hơi dài, vì chương nào ông cũng lôi truyện trong lịch sử từ đông tới tây để minh hoạ cho điều mình muốn nói. Về mặt nội dung, sách rất hay. Ông nói cho ta biết nguồn cơn, nguyên do những đặc tính của con người như ghen ty, giận dữ, sống 2 mặt, … mà bản thân người nào cũng có. Đọc ta sẽ cảm thấy hiểu mình, hiểu người khác hơn. Về mặt diễn đạt thì mình thấy hơi lê thê một chút, hơi dài dòng mà không cuốn hút như mấy cuốn trước của ông! Tháng 10 – Làm bạn với bầu trời Tháng 10 này mình cũng đọc 1 số sách kĩ thuật, nhưng nội dung cũng kha khá, chưa xuất sắc nên sách của bác Ánh lại lên top. Truyện của bác vẫn hay, vẫn kể từ góc nhìn của một cậu bé nông thôn, về tuổi thơ, có đôi chỗ hơi drama 1 tẹo. Tuy vậy mình thấy gần đây sách của bác cuốn này cũng na ná nhau. Mong cho mấy quyển sau bác sẽ đổi xì tai, thêm chút tình cảm như Ngày Xưa có một chuyện tình; hoặc dặm thêm tí oái ăm máu cho như Mắt Biếc hoặc Đi Qua Hoa Cúc thì càng tốt. Đọc chuyện tình cảm gà bông của bọn con nít cũng hơi chán rồi… Tháng 11 – So Good They Can’t Ignore You Quyển này mình tải ebook lưu vào máy từ tháng 8 mà đến bây giờ mới đọc xong. Đây là một quyển sách khá nổi tiếng về định hướng nghề nghiệp. Tác giả đã chịu khó nghiên cứu về quá trình, cuộc đời của những người thành công, và nhận ra rằng Đam Mê thật ra không quá quan trọng. Thật ra, rất khó để bạn tìm được đam mê thật sự của mình. Thay vào đó, bạn hãy tập trung trau dồi kĩ năng mình có, tập trung vào những giá trị mình có thể mang lại (career capital). Lúc đó, thành công và đam mê sẽ tự đến với bạn, không phải ngược lại. Bản thân mình thấy khá đúng. Ban đầu mình không quá đam mê lập trình, đam mê blog, đam mê làm vlog! Tuy nhiên, sau 1 thời gian làm nhiều sẽ giỏi hơn, dần thành thói quen thôi. Tháng 12 – Talking to Strangers Trước đến nay mình làm fan hâm mộ của Malcolm Gladwell nên cuốn này của ông mình đều lụm đọc hết cả! (Sách của ông cũng được dịch ra tiếng Việt khá nhiều trên Tiki: , các bạn cũng nên tìm đọc thử). Mỗi lần đọc sách của Malcolm Gladwell, bạn sẽ ồ lên kinh ngạc vì thấy thế giới quan của mình bị lẫn lộn cả, vì những điều mình tưởng mình biết hoá ra toàn sai lầm. Trong cuốn này cũng vậy, ông chỉ ra chúng ta … rất dở trong việc đoán biết tâm lý, trò chuyện với người lạ (Nhưng chúng ta lại không biết điều này). Hơi tiếc một tí là ông không hướng dẫn cách nào khắc phục cả! Tạm kết Viết thế cũng khá dài rồi nên mình xin kết bài tại đây. Năm vừa qua các bạn có đọc được những sách gì hay không? Hãy comment vào đây để rủ mọi người đọc chung nhé! Bonus : Đây là list các sách mình đã đọc từ tháng 7 tới tháng 12, cuốn nào in đậm là hay nhất tháng, in nghiêng là sách hay – đáng đọc nhé! Một đời quản trị Technically Wrong – Sexist Apps, Biased Algorithms and Other Threats of Toxic Tech As a Man Thinketh The Art of Deception A Philosophy of Software Design The Manager’s Path – A Guide for Tech Leaders Navigating Growth & Change Never Enough – The Neuroscience and Experience of Addition Blood, Sweat and Pixels: The Triumphant, Turbulent Stories Behind how Videos Games are Made Ryan Higa’s how to write good It doesn’t have to be crazy at work The Fine Art of Small Talk Shoe Dog The Law of Human Nature Đong tấm lòng Đảo – Nguyễn Ngọc Tư The 50th Law Radical Candor – Being a kick-ass Boss without losing your empathy Làm bạn với bầu trời Inspired – How to Create Tech Products Customers Love Go in Action The Hard Thing about Hard Things So Good They Can’t Ignore You Tuyển tập truyện trào phúng hay nhất của Võ Tòng Đánh Mèo Invisible Woman – Exposing Data Bias In a World Designed for Men How Not to Be Wrong: The Power of Mathematical Thinking Không đọc sách này, chụp xấu đừng buồn Không đọc sách này, vẽ xấu ráng chịu Không đọc sách này, viết dở đừng than Talking to Strangers The Witcher Series (Vol 1-8) Rate this: Like this: Related
Continuing part 1, in this part I will introduce the books I read from July to December. You can see previous installments here: One book a month – 2015 One book a month – 2016 One book a month – 2017 One book a month – 2018 July - A life of management The author of this book is Professor Phan Van Truong, a person I respect quite a bit because he has a huge amount of experience: From being an engineer, he climbed to Vice President/President of corporations. large multinational. Previously, I read his book A Life of Negotiation which was also quite good. This book also did not disappoint me. The book is not flashy, does not introduce modern or advanced management methods; but he only told about his experiences. The best thing I learned about management in the book is: The core of management is people, not rigid processes. I personally found the book quite useful. Whether you are a lowly developer or a manager/team leader, you should read it, there will be some applications in your work. August – It doesn't have to be crazy at work This is the next book after the Rework, Remote series by DHH (father of Ruby on Rails). I highly recommend that anyone pursuing a career as a developer or dreaming of starting a startup read his articles and books. He himself has thoughts that are completely contrary to the principles of the startup world: Sustainable development is better than pumping money for galloping development A good company must make a profit You don't have to be number 1, you have to disrupt the market Don't plow like a buffalo, but respect work/life balance The book itself is his conclusions and experiences about building a good, sustainable company that does not exploit employees. If you are a lead or CEO, remember to read it. September – The Laws of Human Nature Robert Greene's books are quite good and famous: 48 Laws of Power, The Art of Seduction, Mastery. I have read all of his books! He writes well, but each chapter is a bit long, because in every chapter he pulls stories from history from east to west to illustrate what he wants to say. In terms of content, the book is very good. He tells us the source and cause of human characteristics such as jealousy, anger, double living,... that every person has. Reading makes us feel like we understand ourselves and others better. In terms of expression, I found it a bit lengthy, a bit lengthy but not as engaging as his previous books! October - Making friends with the sky This October, I also read some technical books, but the content was quite good, not excellent, so Mr. Anh's book is at the top again. Your story is still good, still told from the perspective of a rural boy, about childhood, a bit dramatic in some places. However, I recently saw that your books are similar. I hope in the next few books you will change the tone and add a little more love like Once upon a time there was a love story; Or add a little bit of gore to it like Blue Eyes or Go Through the Chrysanthemums, that would be even better. I'm a bit bored reading the love stories of children... November - So Good They Can't Ignore You. I downloaded this ebook and saved it to my computer in August, but I just finished reading it now. This is a quite famous book about career orientation. The author took the trouble to research the process and lives of successful people, and realized that Passion is actually not that important. In fact, it is very difficult for you to find your true passion. Instead, focus on cultivating the skills you have, focusing on the value you can bring (career capital). At that time, success and passion will come to you, not the other way around. I personally find it quite correct. At first, I was not too passionate about programming, passionate about blogging, passionate about vlogging! However, after a while of doing it more you will get better at it and it will gradually become a habit. December – Talking to Strangers I have always been a fan of Malcolm Gladwell, so I have read all of his books! (His books are also translated into Vietnamese quite a lot on Tiki: , you should also try reading them). Every time you read a book by Malcolm Gladwell, you will be surprised to see that your worldview is confused, because the things you thought you knew turned out to be wrong. In this book too, he points out that we are... very bad at predicting psychology and talking to strangers (But we don't know this). It's a bit unfortunate that he didn't give any instructions on how to fix it! Conclusion This is already quite long, so I'll end the article here. Did you read any good books last year? Please comment here to invite everyone to read together! Bonus: This is a list of books I read from July to December, books in bold are the best of the month, books in italics are good books - worth reading! A lifetime of administration Technically Wrong – Sexist Apps, Biased Algorithms and Other Threats of Toxic Tech As a Man Thinketh The Art of Deception A Philosophy of Software Design The Manager’s Path – A Guide for Tech Leaders Navigating Growth & Change Never Enough – The Neuroscience and Experience of Addition Blood, Sweat and Pixels: The Triumphant, Turbulent Stories Behind how Videos Games are Made Ryan Higa's how to write well It doesn't have to be crazy at work The Fine Art of Small Talk Shoe Dog The Law of Human Nature Measure your heart Island – Nguyen Ngoc Tu The 50th Law Radical Candor – Being a kick-ass Boss without losing your empathy Make friends with the sky Inspired – How to Create Tech Products Customers Love Go in Action The Hard Thing about Hard Things So Good They Can't Ignore You Collection of the best satirical stories by Vo Tong Fighting Cats Invisible Woman – Exposing Data Bias In a World Designed for Men How Not to Be Wrong: The Power of Mathematical Thinking If you don't read this book, don't be sad if the photos are bad Don't read this book, it will be bad at drawing Don't read this book, don't complain if it's poorly written Talking to Strangers The Witcher Series (Vols 1-8) Rate this: Like this: Related
Như thường lệ, vào cuối năm, mình sẽ viết một bài review tổng hợp ngắn những cuốn sách hay nhất mình đã đọc trong năm vừa rồi. Mỗi tháng mình đọc khoảng 3-6 cuốn sách. 12 cuốn sách dưới đây là 12 cuốn sách hay nhất mà mình đọc được mỗi tháng . Các bạn có thể xem toàn bộ danh sách ở cuối bài nhé! Năm 2015-2018 mình cũng có bài review tương tự, các bạn có thể xem ở đây: Mỗi tháng một cuốn sách – Năm 2015 Mỗi tháng một cuốn sách – Năm 2016 Mỗi tháng một cuốn sách – Năm 2017 Mỗi tháng một cuốn sách – Năm 2018 Tháng 1 – Weapon of Math Destruction – How Big Data Increase Inequality and Threaten Democracy Quyển sách này có cái bìa khá hầm hố, tên cũng hầm hố theo, tạm dịch: Big Data làm thế nào để gia tăng sự bất công và đe doạ nền dân chủ. Tác giả nêu ra một vấn đề hay ho và nhức nhối, báo chí ít nói đến nhưng dân làm data ai cũng biết: Bias (thiên kiến) của các hệ thống big data, dựa theo data đầu vào. Ví dụ, do data đầu vào bị bias, tội phạm da đen nhiều hơn da trắng. Sau khi hệ thống học dựa theo những data đó, khi sử dụng, nó sẽ phán định khả năng phạm tội của người da đen cao hơn => Nhiều người da đen bị nhận định làm phạm tội hơn => Bias về người da đen phạm tội gia tăng. Trớ trêu hơn, đôi khi những bias này … rất khó để phát hiện, vì nhiều công ty không hề công bố thuật toán/data mà họ đã sử dụng. Nói chung, sách nói về Big Data, nhưng lại hướng đến đối tượng người đọc bình dân nên rất dễ đọc, dễ thấm. Các bạn nào làm về số liệu nên tìm đọc thử Tháng 2 – Billion Dollar Whale Tháng 2 và tháng 3 mình mải cày series 54 cuốn Animorph nên cũng không có thời gian đọc nhiều sách lắm. Do thấy cuốn này giảm giá nên mua đọc luôn. Sách ko quá xuất săc, nhưng đọc cũng được. Nội dung kể về hành trình lừa đảo của thanh niên Jho Low , làm đủ trò phù phép để ăn tiền đầu tư (tầm triệu đô tỷ đô) để đút vào túi riêng, hối lộ tổng thống, đốt tiền vào mấy buổi tiệc phù phiếm xa hoa với sao hạng A bên Holywood. Nói chung ăn nhiều vậy nhưng đến bây giờ anh vẫn còn sống nhan nhản trên du thuyền ngoài vòng pháp luật, thật đáng ngưỡng mộ. Tháng 3 – Cảm ơn người lớn Về Việt Nam chơi, vào nhà sách thấy cuốn này nên gấu mua cho mình luôn. Giọng văn của cuốn này na ná cuốn Cây chuối non đi giày xanh và Tôi thấy hoa vàng trên cỏ xanh , kể từ góc nhìn của một đứa bé con ở dưới quê. Văn phong nhẹ nhàng, ngây thơ ngộ ngộ đúng chất bác Ánh. Truyện cũng khá hay và cảm động, nên mình sẽ không spoil nội dung truyện mất vui. Các bạn cứ đọc và cảm nhé. Tháng 4 – Work Rules – Insights from Inside Google That Will Transform How You Live and Lead Cuốn này thì mình đọc sách khác được giới thiệu, ship hẳn từ Amazon về đọc luôn. Sách nói về văn hoá làm việc, review và thưởng phạt tại Google. Về nội dung thì khá hay, nhưng cá nhân mình thấy nó không hữu ích lắm. Chắc là do ở tầm của mình thì chưa đủ quyền cũng như khả năng để áp dụng những điều trong sách. Có 1 cái khá vui là mình hỏi chuyện ông Product Lead của công ty thì ổng cũng biết cuốn đấy. Ổng kể công ty cũ cũng áp dụng gần hết mấy thứ trong sách nhưng không hiệu quả mấy =)) Tháng 5 – Never Split the Difference Cuốn này mình đọc từ cuối tháng 3, định xem để học cách deal lương. Nào ngờ đâu chưa đọc sách xong đã có việc rồi nên đi làm luôn, bận rộn quá nên tầm tháng 5 mới đọc xong. Tác giả cuốn sách là Chris Voss, một chuyên gia thương lương và đàm phán với khủng bố, giải cứu con tin. Bên cạnh một số kinh nghiệm thương thảo, ông còn kể thêm một số chuyện đàm phán với khủng bố cũng khá hay. Nếu không thích đọc sách các bạn có thể xem clip phỏng vấn ông, cũng khá hay và bổ ích! Tháng 6 – Everything is Fucked – A Book About Hope Đây là cuốn sách thứ 2 của Mark Manson, một cây bút khá bựa và nổi tiếng. Năm ngoái mình có review cuốn The Subtle Art of Not Giving a Fuck của ổng rồi, năm nay thấy cuốn này ra mắt nên mình review luôn. Cuốn này đọc cũng khá hay và cuốn, nhưng nội dung hơi lang mang 1 tí, từ tôn giáo tới chính trị tới AI và tương lai v..v. Do đó có thể đọc xong bạn sẽ hơi … bối rối, không thấy đọng lại gì. Tuy nhiên, nếu bạn nào là fan của Mark Manson, hoặc đã từng đọc cuốn trước của ông thì cuốn này cũng không tệ lắm. Tạm kết Ở phần 2, mình sẽ giới thiệu 6 cuốn sách còn lại, các bạn đón đọc nhé. Bonus : Đây là list các sách mình đã đọc từ tháng 1 tới tháng 6, cuốn nào in đậm là hay nhất tháng, in nghiêng là sách hay – đáng đọc nhé. The Rules of Work Weapon of Math Destruction – How Big Data Increase Inequality and Threaten Democracy This is Marketing Vol 1-6 Animorph Billion Dollar Whale Vol 7-39 Animorph Nier : Automata – Long Story Short Vol 40-54 Animorph Cảm ơn người lớn Nguồn Cội The Life-changing Magic of Tidying Up How to Enjoy Your Life and Your Job The Power of Moment 21 Lessons for the 21st Century The Rules of Wealth Work Rules – Insights from Inside Google That Will Transform How You Live and Lead Never Split the Difference Triết học lý thú – Đạo đức học bằng tranh First, Break All the Rules Trang Tử và Nam Hoa Kinh Refactoring UI Luật ngầm Everything is Fucked – A Book About Hope The Wisdom of Crowds Ý tưởng này là của chúng mình Tấm ảnh tình yêu và một câu chuyện khác Bàn tay cho em Thế giới kết thúc dịu dàng đến thế Rate this: Like this: Related
As usual, at the end of the year, I will write a short summary review of the best books I read last year. Every month I read about 3-6 books. The 12 books below are the 12 best books I read every month. You can see the entire list at the end of the article! In 2015-2018, I also had a similar review, you can see it here: One book a month – 2015 One book a month – 2016 One book a month – 2017 One book a month – 2018 January – Weapon of Math Destruction – How Big Data Increase Inequality and Threaten Democracy This book has a pretty aggressive cover, the name is also aggressive, roughly translated: How Big Data increases injustice and threatens the economy. democracy. The author raises an interesting and painful issue that the press rarely talks about but everyone who works in data knows about it: Bias of big data systems, based on input data. For example, due to biased input data, there are more black criminals than white criminals. After the system learns based on that data, when used, it will judge the possibility of black people committing crimes to be higher => More black people are perceived to commit more crimes => Bias about black people committing crimes crime increases. More ironically, sometimes these biases... are difficult to detect, because many companies do not disclose the algorithms/data they used. In general, the book talks about Big Data, but is aimed at ordinary readers so it is easy to read and absorb. Those of you who work with data should try reading February - Billion Dollar Whale. In February and March, I was busy reading the Animorph series of 54 books, so I didn't have time to read many books. I saw this book on sale so I bought it and read it. The book isn't great, but it's okay to read. The content is about the fraudulent journey of young man Jho Low, doing all sorts of magic tricks to steal investment money (about millions of dollars, billions of dollars) to put in his own pocket, bribing the president, burning money on frivolous parties. lavish with A-list stars in Hollywood. In general, he eats a lot but until now he is still living on a yacht outside the law, which is admirable. March - Thank you adults. When I came back to Vietnam to visit, I went to a bookstore and saw this book so I bought it for myself. The tone of this book is similar to Young Banana Tree Wearing Green Shoes and I See Yellow Flowers on Green Grass, told from the perspective of a child in the countryside. The writing style is gentle, naive and enlightening, just like Mr. Anh. The story is also quite good and touching, so I won't spoil the fun of the story. Please read and enjoy. April – Work Rules – Insights from Inside Google That Will Transform How You Live and Lead This book was recommended to me by another book, shipped from Amazon to read. The book talks about work culture, reviews, and rewards and punishments at Google. In terms of content, it's quite good, but I personally don't find it very useful. Probably because at my level I don't have enough authority or ability to apply the things in the book. There's a funny thing that I asked about the company's Product Lead and he also knew about it. He said his old company also applied most of the things in the book but it wasn't very effective =)) May - Never Split the Difference I read this book at the end of March, intending to watch it to learn how to negotiate salary. Who would have thought that before I finished reading the book, I had a job so I went straight to work. I was so busy that I didn't finish reading it until around May. The author of the book is Chris Voss, an expert in bargaining and negotiating with terrorists and rescuing hostages. Besides some negotiation experiences, he also told some quite good stories about negotiating with terrorists. If you don't like reading books, you can watch his interview clip, it's quite good and useful! June – Everything is Fucked – A Book About Hope This is the second book by Mark Manson, a quite famous and badass writer. Last year I reviewed his book The Subtle Art of Not Giving a Fuck, this year I saw this book came out so I reviewed it as well. This book is quite good and interesting to read, but the content is a bit wandering, from religion to politics to AI and the future, etc. Therefore, after reading it, you may be a bit... confused, not feeling anything. However, if you are a fan of Mark Manson, or have read his previous books, this book is not too bad. Conclusion In part 2, I will introduce the remaining 6 books, please read them. Bonus: This is a list of books I read from January to June, books in bold are the best of the month, books in italics are good books - worth reading. The Rules of Work Weapon of Math Destruction – How Big Data Increase Inequality and Threaten Democracy This is Marketing Vol 1-6 Animorph Billion Dollar Whale Vol 7-39 Animorph Nier : Automata – Long Story Short Vol 40-54 Animorph Thank you adults Source The Life-changing Magic of Tidying Up How to Enjoy Your Life and Your Job The Power of Moment 21 Lessons for the 21st Century The Rules of Wealth Work Rules – Insights from Inside Google That Will Transform How You Live and Lead Never Split the Difference Interesting philosophy – Ethics in pictures First, Break All the Rules Chuang Tzu and Nan Hua Jing Refactoring UI Implicit law Everything is Fucked – A Book About Hope The Wisdom of Crowds This idea is ours Love photo and another story Hand for me The world ended so gently Rate this: Like this: Related
Ở những bài trước, tụi mình đã cùng tìm hiểu về Cloud, cũng như những dịch vụ hay dùng của Azure rồi. Trong phần này, mình sẽ tổng hợp lại toàn bộ series, cũng như giới thiệu các bạn bạn biết Toàn bộ một hệ thống chạy trên Azure sẽ trông như thế nào nhé! Xem xong, các bạn sẽ biết được mối quan hệ giữa các dịch vụ này, cách kết hợp chúng với nhau nha! Các bạn đọc bài, thấy quên phần nào cứ bấm vào link phần đó để đọc lại nhé! Mục lục Lý thuyết Giới thiệu Series Cùng học Cờ Lao – Tìm hiểu về Cloud Computing Cloud là cái chi chi? Cloud có gì hot? Sự ra đời của Cloud; AWS, Azure, Google Cloud Platform và các dịch vụ của họ Những ưu nhược điểm của Cloud Thực hành cùng Azure Phần 1: Cách tạo account Microsoft Azure để bắt đầu nghịch Phần 2: Tạo máy ảo (Virtual Machine) Windows để nghịch ngợm Phần 3: Cùng deploy ứng dụng Web trên máy ảo Azure Cloud Phần 4.1: Azure App Service là gì? Nó có gì hay ho? Phần 4.2: Deploy ứng dụng lên Azure App Service trong 5 phút Phần 5.1: Sự bá đạo của Azure SQL Database? Phần 5.2: Tạo và kết nối SQL Database trên Cloud trong 10 phút Phần 6.1: Lưu trữ file từ vài trăm MB tới hàng chục TB với Azure Storage Phần 6.2: Tìm hiểu về Azure Blob và Azure File Phần 7: Một số service hay ho khác của Azure Phần cuối: Toàn bộ một hệ thống chạy trên Azure sẽ như thế nào Để dễ hình dung, chúng ta hãy thử tượng tượng ta muốn làm 1 mạng xã hội nho nhỏ như Facebook, Gạ Phò hay Củ Sen đình đám vừa ra mắt nha! Application – Azure App Service hoặc Azure VM Mạng xã hội của chúng ta có thể được viết thành 1 cục bằng C#/PHP/Node.JS/Java. Hoặc nó có thể tách thành nhiều service nhỏ , mỗi service viết bằng 1 ngôn ngữ khác nhau. Cách đơn giản nhất là deploy nguyên app/từng service lên Azure App Service , khỏi cần phải cài đặt gì phức tạp, muốn scale cũng dễ dàng luôn. Trường hợp Azure App Service không hỗ trợ, chúng ta cũng có thể thuê nguyên con Azure VM , tha hồ cài cắm gì cũng được. Khi cần scale, ta có thể áp dụng thêm Azure Load Balancer để cân bằng tải giữa nhiều máy luôn. Ngoài ra, ở các công ty có DevOps, dùng microservice thì họ thường deploy lên Docker Swarm hoặc Kubernetes . Mảng này thì Google Cloud khá ngon, còn Azure hồi mình dùng thử Azure Kubernetes thấy hơi chuối, khuyên anh em đừng thử nha! Database – Azure SQL Database hoặc CosmosDB + Redis Cache Mạng xã hội thì phải có nơi lưu trữ thông tin của người dùng phải không nào? Thường thì dân viết C# hay dùng Microsoft SQL, còn lại thì đa phần giang hồ dùng MySQL hoặc Postgres . Tin vui là cả 3 database này thì Azure đều có cả. Azure SQL Database còn hỗ trợ khá nhiều thứ hay ho như montoring, recommend đánh index, tự backup, dễ scale lên xuống nữa. Ngoài ra, để giảm tải cho database, tăng tốc độ hệ thống, ta có thể dùng Redis làm cache để đỡ xử lý nhiều trên server. Lưu trữ File với Azure Blob/Azure File Storage Tất nhiên, đã là mạng xã hội thì phải có nơi cho phép người dùng up hình vếu, up hình cho mèo để sống ảo, đăng clip quảng cáo bán hàng. Azure cung cấp Azure Blob và Azure File , tha hồ cho chúng ta lưu trữ từ vài chục GB cho đến vài trăm TB. Chi phí được tính theo dung lượng lưu trữ, lưu lượng tải về nên lưu nhiều tốn nhiều, lưu ít tốn ít, không cần phải đầu tư quá nhiều. Ngoài ra, nếu ta mở rộng, muốn dữ liệu được lưu trữ ở nhiều vùng khác nhau, phục vụ khách hàng trên toàn cầu, ta có thể tìm hiểu và áp dụng CDN . Cái này thì Azure cũng có Azure CDN luôn! Quản lý hệ thống bằng Azure Monitor Tất nhiên, một hệ thống dù có nhiều tính năng tới mức nào, nhưng chạy không ổn định, lúc chậm lúc nhanh, khi sập khi tèo thì … dĩ nhiên sẽ bị người dùng tẩy chay. Do vậy, bản thân mỗi service của Azure đều có gắn kèm analytic: Azure App Service có hiện thị server load, memory load, thời gian response của các response, request Azure VM sẽ ghi log đủ thứ, dung lượng đĩa còn trống, RAM và CPU sử dụng, tốc độ đọc/ghi của ổ cứng v…v Azure Database thì hiển thị dung lượng còn dư, số lượng đọc/ghi, những câu query chậm, chiếm tài nguyên để optimize Trên thực tế, người ta sẽ sử dụng Azure Monitor để lấy dữ liệu từ nhiều nguồn này để tạo thành dashboard, hiên thị trạng thái của hệ thống. Ngoài ra, người ta thường setup thêm Health Check (Gửi request tới các service/web để xem nó sống hay không) và Notification . Khi hệ thống có vấn đề (service chết, RAM quá cao, API chậm, …), Azure sẽ gửi thông báo qua tin nhắn SMS/ email để team có biện pháp xử lý kịp lúc Một số tính năng thêm khác Dùng Redis để làm message queue Dùng Azure Notification Hub để gửi notification cho người dùng trên di động Dùng Cognitive Services để nhận dạng khuôn mặt, âm thanh, xử lý ảnh. Các bạn có thể tham khảo thêm tại Phần 7: Một số service hay ho khác của Azure . Một số service chuyên biệt dùng để lưu trữ, phân tích, xử lý big data thì mình ko dùng nên ko rõ. Bạn nào đã từng làm thì vào chia sẻ nha! Tạm kết Sau một chặng đường dài hơn nửa năm, cuối cùng series Cùng Học Cờ Lao cũng đã đi đến hồi kết. Trong quá trình viết series này, mình cũng ôn lại được kha khá kiến thức về Azure, đồng thời tổng hợp và chia sẻ lại những điều mình biết về Cloud cho các bạn đọc. Trong phạm vi series, mình chỉ giới thiệu những service phổ biến, hay được anh em developer sử dụng. Bản thân Azure có quá trời service mà mình chưa biết, hoặc chưa đụng tới bao giờ. Do vậy, nếu trong series có gì thiếu sót, mong anh em thông cảm, góp ý để mình cải thiện nhé. Series hơi rải rác nên mình đã tổng hợp lại phần mục lục phía trên. Sắp tới chắc mình sẽ tổng hợp chỉnh sửa lại rồi ra ebook luôn 1 thể. Đây là một series dài, hơi nặng technical và khá khó. Nếu bạn chịu đọc đến đây, cảm ơn bạn đã chịu khó đồng hành cùng Code Dạo. Hi vọng những thứ mình chia sẻ trong series này có ích cho bạn. Rate this: Like this: Related
In previous articles, we learned about Cloud, as well as commonly used services of Azure. In this part, I will summarize the entire series, as well as introduce you to what an entire system running on Azure will look like! After watching, you will know the relationship between these services and how to combine them together! If you read the article and see a part you forgot, just click on the link to read it again! Table of Contents Theory Introducing the Let's Learn Co Lao Series - Learn about Cloud Computing What is Cloud? What's hot about Cloud? The Birth of Cloud; AWS, Azure, Google Cloud Platform and their services The advantages and disadvantages of Cloud Practice with Azure Part 1: How to create a Microsoft Azure account to start playing Part 2: Create a Windows Virtual Machine to play around with Part 3: Let's deploy Web applications on Azure Cloud virtual machines Section 4.1: What is Azure App Service? What's cool about it? Part 4.2: Deploy application to Azure App Service in 5 minutes Part 5.1: The dominance of Azure SQL Database? Part 5.2: Create and connect SQL Database on Cloud in 10 minutes Part 6.1: Store files from a few hundred MB to dozens of TB with Azure Storage Part 6.2: Learn about Azure Blob and Azure File Part 7: Some other cool services of Azure Final part: What an entire system running on Azure would look like To make it easier to imagine, let's try to imagine that we want to create a small social network like Facebook, Ga Pho or the famous Cu Sen that just launched! Application – Azure App Service or Azure VM Our social network can be written in one block using C#/PHP/Node.JS/Java. Or it can be split into many small services, each written in a different language. The simplest way is to deploy the entire app/each service to Azure App Service, no need to install anything complicated, it's easy to scale. In case Azure App Service does not support it, we can also rent an entire Azure VM and freely install anything. When we need to scale, we can apply Azure Load Balancer to balance the load between multiple machines. In addition, in companies with DevOps and using microservices, they often deploy to Docker Swarm or Kubernetes. In this area, Google Cloud is quite good, but when I tried Azure Kubernetes, I found it a bit bananas, so I advise you not to try it! Database – Azure SQL Database or CosmosDB + Redis Cache Social networks must have a place to store user information, right? Usually people who write C# use Microsoft SQL, while the rest mostly use MySQL or Postgres. The good news is that Azure has all three of these databases. Azure SQL Database also supports a lot of cool things like montoring, recommend indexing, self-backup, and easy to scale up and down. In addition, to reduce the load on the database and increase system speed, we can use Redis as a cache to reduce processing on the server. Store Files with Azure Blob/Azure File Storage Of course, since it's a social network, there must be a place that allows users to upload pictures of breasts, upload pictures of cats for virtual living, and post advertising clips for sales. Azure provides Azure Blob and Azure File, allowing us to freely store from a few dozen GB to several hundred TB. Costs are calculated based on storage capacity and download traffic, so saving more costs more, saving less costs less, no need to invest too much. In addition, if we expand and want data to be stored in many different regions, serving customers globally, we can learn and apply CDN. Azure also has Azure CDN! Managing the system with Azure Monitor Of course, no matter how many features a system has, if it runs unstable, sometimes slow, sometimes fast, sometimes crashes, sometimes fails... of course it will be boycotted by users. Therefore, each Azure service itself has analytics attached: Azure App Service displays server load, memory load, response time of responses and requests Azure VM will log everything, free disk space, RAM and CPU usage, hard drive read/write speed, etc. Azure Database displays remaining capacity, number of reads/writes, slow queries, taking up resources for optimization In fact, people will use Azure Monitor to get data from many of these sources to create a dashboard, displaying the status of the system. In addition, people often set up Health Check (Send requests to services/webs to see if they are alive or not) and Notification. When the system has problems (service dies, RAM is too high, API is slow, etc.), Azure will send notifications via SMS/email so the team can take timely measures. Some other additional features Use Redis to create a message queue Use Azure Notification Hub to send notifications to mobile users Use Cognitive Services to recognize faces, sounds, and process images. You can refer to Part 7: Some other interesting services of Azure. I don't use some specialized services for storing, analyzing, and processing big data, so I don't know. If you have ever done it, please share! Conclusion After a long journey of more than half a year, the Let's Learn Co Lao series has finally come to an end. During the process of writing this series, I also reviewed quite a bit of knowledge about Azure, at the same time synthesizing and sharing what I know about Cloud for readers. Within the series, I only introduce popular services that are often used by developers. Azure itself has a lot of services that I don't know about, or have never touched. Therefore, if there is anything lacking in the series, I hope you will sympathize and give me suggestions for improvement. The series is a bit scattered, so I have compiled the table of contents above. In the near future, I will probably compile, edit, and then release an ebook. This is a long series, a bit technical and quite difficult. If you have read this far, thank you for taking the trouble to accompany Code Dao. Hope what I share in this series is useful to you. Rate this: Like this: Related
Hồi mới bắt đầu viết blog, mình đã từng viết bài đầu tiên giới thiệu bản thân và giới thiệu ở đây . Ngẫm lại thấy thời gian trôi qua cũng nhanh, tính ra blog nay cũng đã được 5 năm tuổi rồi. Mình cũng không còn là thằng Hoàng junior cách đây 5 năm nữa. Do vậy, mình viết lại 1 bài giới thiệu bản thân khác nhe. Chào các bạn, mình là Phạm Huy Hoàng, tác giả của blog Tôi đi code dạo và youtube channel Tôi Đi Code Dạo . Các bạn có thể gọi mình là Code Dạo, là Hoàng, hoặc Hoàng Code Dạo đều ok cả. Mình là một full-stack developer kiêm writer, blogger, Youtuber và đủ thứ lơ tơ mơ khác nữa. Về blog Tôi Đi Code Dạo Vốn sinh ra trong một gia đình nho giáo lâu đời, có truyền thống code dạo, cài win dạo nên tôi đặt tên blog là “Tôi Đi Code Dạo”. Đùa đấy, thật ra do hồi xưa mấy thầy ở trường hay doạ là “đứa nào ko lo học ra trường chỉ có nước đi code dạo”, nên mình lấy tên blog là Tôi Đi Code Dạo luôn! Đây là một blog về IT mà cũng ko phải về IT. Nội dung blog một nửa là về kĩ thuật lập trình , một nửa còn lại là những kinh nghiệm tôi học được: Cách deal lương, sắp xếp thời gian, kĩ năng mềm, ngôn ngữ lập trình nên học, con đường phát triển nghề nghiệp … Đó là những điều quan trọng ko thua gì kĩ năng lập trình. Phương châm của blog là: Developer cần biết nhiều điều hơn ngoài code, blog sẽ vừa dạy bạn code, vừa dạy bạn những điều còn lại. Nếu đây là lần đầu bạn ghé thăm blog, hãy click Bài viết hay để xem những bài viết/series đặc sắc nhất của blog nhé. Blog luôn có bài viết mới 1 lần/tuần vào thứ 3 . Ngoài ra, những bài viết hay và hữu ích trên blog đã được tổng hợp lại thành 1 cuốn sách mang tên Code Dạo Kí Sự, được hơn 250 review 5 sao trên Tiki. Nếu thích cầm sách giấy các bạn có thể mua trên Tiki ủng hộ mình nhé! Về channel Youtube Ngoài blog, mình còn có 1 Youtube Channel tại: bit.ly/codedaotube . Nội dung channel gồm nhiều vlog chia sẻ về ngành lập trình, một số clip hướng dẫn những kĩ thuật hay ho cho lập trình viên. Câu nói của miệng làm nên thương hiệu Youtube của mình cũng xuất phát từ đây: Hế nhô các bạn! Mình là Tôi Đi Code Dạo! Ngoài ra, lâu lâu cuối tuần mình còn livestream giao lưu trực tiếp với các bạn nữa. Các bạn có hứng thú thì cứ theo dõi và subscribe cho mình nhe. Để không bỏ lỡ clip và bài viết hàng tuần, các bạn có thể follow fanpage của mình tại nha! Về bản thân mình Mình là cựu sinh viên ngành Software Engineering khóa 6A, trường Đại Học FPT Hồ Chí Minh. Sau khi ra trường, mình làm việc 1 thời gian ở FPT Software HCM. Sau đó, mình chuyển qua đầu quân cho ASWIG Solutions . Tuy làm việc ở vị trí junior developer nhưng công việc cũng không thua kém gì developer. Sau 2 năm, mình đi học Thạc sĩ ngành Computer Science tại Đại học Lancaster ở anh (Học bổng 18000 bảng). Tôi vừa học vừa làm thêm tại phòng IT của trường, với chức danh full-stack developer , tức là ôm cả front-end lẫn back end =))). Học xong chương trình thạc sĩ, mình đi phiêu diêu xin việc trời Tây (20 ngày, 5 quốc gia, 6 lần phỏng vấn, 5 offer). Sau đó, do bạn bè giới thiệu nên mình đã đặt chân tại Singapore để tiếp tục làm full-stack developer cho startup Algomerchant . Hiện tại, mình đã rời Algomarchant và phiêu diêu ở một công ty startup khác ở Singapore. Muốn biết công việc, đồng nghiệp ở startup mới thế nào, các bạn cứ theo dõi Tôi Đi Code Dạo nhé! Hỏi đáp cho vui! 1. Dài quá ko muốn đọc, nhưng mà cái blog này viết về cái gì thế? Tin 18+, lá cải, lừa tình, girl xinh, XXX, …. đùa đấy. Nói ngắn gọn, blog này sẽ là nơi chứa những bài viết mà, developer nào đọc xong cũng sẽ vỗ đùi 1 phát : Mẹ, giá hồi xưa đi code mình biết cái này :)))). 2. Dào, chỉ có chém gió là giỏi, mới đi làm một vài năm biết cái gì mà dạy người khác? Kiến thức có thể thu thập thông qua kinh nghiệm hoặc sách vở, ko nhất thiết cứ làm lâu năm thì sẽ biết nhiều. Mình đọc khá nhiều sách (Series For Dummies, Head First, Clean Code, Getting Real, Humanware, The Mithical Man-Month…), trong đó có nhiều thứ khá hay, rất đáng để chia sẻ. Một góp ý nữa, mình ko “dạy” ai cả. Bản thân mình bây giờ dù có title là senior những vẫn luôn giữ thái độ của một junior developer; bởi vì xung quanh mình vẫn có rất nhiều thứ để học Hướng dẫn cho người khác cũng là một quá trình học, giúp mình giỏi hơn. Do đó mình rất hoan nghênh các developer khác vào “dạy” mfinh và mọi người. 3. Sao vlog a nói nhanh vl ra vậy, nói chậm lại một xíu đi! Theo các nhà khoa học , một người chỉ có thể nói tầm 150-170 từ mỗi phút. Nhưng não bộ lại có thể nghe và xử lý tầm 400-450 từ mỗi phút! Do vậy, thật ra các bạn có thể nghe cực kì nhanh mà không biết. Tập nghe nhanh thì các bạn sẽ không bị buồn ngủ, lại còn tiết kiệm được thời gian, tiếp thu được nhiều kiến thức hơn nữa đấy! 4. Cậu là lập trình viên, viết blog “dạy” người khác mà ko code đc 1 cái blog ra hồn à, sao lại phải dùng wordpress thế? Tại sao phải code lại từ đầu 1 blog engine, sau đó tìm host, deploy lên mạng, …. trong khi ta có thể tạo 1 blog đơn giản, theme có sẵn, plug-in chỉ với 3 bước? Sử dụng wordpress, tôi có thể tập trung vào việc viết blog, thay vì cố gắng code 1 engine mới lại từ đầu, rồi bỏ dở giữa chừng. 5. Câu nói ưu thích của anh là gì? 6. Anh giỏi quá, tốt bụng quá quá, em muốn biết thông tin thêm để liên lạc với anh blah blah…. Địa chỉ mail của mình là: . Facebook cá nhân: . Hiện tại mình không add friend người lạ. Nếu quan tâm đến bài viết và kinh nghiệm lập trình, các bạn có thể follow fanpage tại: nhé! Rate this: Like this: Related
When I first started blogging, I wrote my first post introducing myself and introducing myself here. Looking back, time has passed so quickly, this blog is already 5 years old. I am no longer the Hoang junior I was 5 years ago. Therefore, I'm writing another self-introduction article. Hello everyone, I'm Pham Huy Hoang, author of the blog Toi Go Coding and the youtube channel Toi Go Coding. You can call me Code Dao, Hoang, or Hoang Code Dao, all are ok. I'm a full-stack developer, writer, blogger, YouTuber, and all sorts of other things. About the blog I Go Coding, Born in a long-standing Confucian family with a tradition of coding and installing Windows, I named the blog "I Go Coding". Just kidding, actually because in the past, the teachers at school used to threaten that "anyone who doesn't worry about graduating from school will only have to start coding", so I named the blog I Go Coding! This is a blog about IT but not about IT. Half of the blog content is about programming techniques, the other half is the experiences I learned: How to negotiate salary, organize time, soft skills, programming languages ​​to learn, career development path … Those are things that are just as important as programming skills. The blog's motto is: Developers need to know more than coding, the blog will both teach you code and teach you the rest. If this is your first time visiting the blog, please click Good Articles to see the blog's best articles/series. The blog always has new articles once a week on Tuesdays. In addition, good and useful articles on the blog have been compiled into a book called Code Walking Memoirs, which has received more than 250 5-star reviews on Tiki. If you like holding paper books, you can buy them on Tiki to support me! About Youtube channel In addition to the blog, I also have a Youtube Channel at: bit.ly/codedaotube. Channel content includes many vlogs sharing about the programming industry, and some clips instructing cool techniques for programmers. The words of my mouth that make up my Youtube brand also come from here: Hey guys! I'm I Go Coding! In addition, sometimes on weekends I also livestream and interact directly with you guys. If you are interested, please follow and subscribe. To not miss weekly clips and articles, you can follow my fanpage here! About myself I am a former student of Software Engineering course 6A, FPT University Ho Chi Minh. After graduating, I worked for a while at FPT Software HCM. After that, I transferred to work for ASWIG Solutions. Although working as a junior developer, the job is not inferior to that of a developer. After 2 years, I studied for a Master's degree in Computer Science at Lancaster University in the UK (18,000 pounds scholarship). I study and work part-time at the school's IT department, with the title full-stack developer, which means embracing both front-end and back end =))). After finishing my master's program, I went on an adventure to apply for a job in the West (20 days, 5 countries, 6 interviews, 5 offers). After that, because of a friend's introduction, I landed in Singapore to continue working as a full-stack developer for startup Algomerchant. Currently, I have left Algomarchant and ventured into another startup company in Singapore. If you want to know how the work and colleagues at the new startup are like, just follow I Go Coding! Ask and answer for fun! 1. It's too long to read, but what is this blog about? 18+ news, tabloids, cheating, pretty girls, XXX, .... Just kidding. In short, this blog will be a place to contain articles that, after reading it, every developer will pat their thigh: Mom, if only I knew this when coding in the past :)))). 2. Wow, you're only good at gossiping, you've only worked for a few years, what do you know that you can teach others? Knowledge can be gathered through experience or books, it is not necessary that you will know a lot if you have worked for a long time. I read quite a lot of books (For Dummies Series, Head First, Clean Code, Getting Real, Humanware, The Mithical Man-Month...), including many quite good things, worth sharing. One more comment, I don't "teach" anyone. Even though I have the title of senior, I still maintain the attitude of a junior developer; Because around me there are still many things to learn. Instructing others is also a learning process, helping you become better. Therefore, I welcome other developers to "teach" mfinh and everyone. 3. Why do you speak so fast in your vlog? Please slow down a bit! According to scientists, a person can only speak about 150-170 words per minute. But the brain can listen and process about 400-450 words per minute! Therefore, you can actually listen extremely fast without knowing it. If you practice listening quickly, you will not get sleepy, you will also save time and absorb more knowledge! 4. You are a programmer, you write a blog to "teach" others but you can't code a decent blog, why do you have to use wordpress? Why do we have to re-code a blog engine from scratch, then find a host, deploy it online, etc. While we can create a simple blog with available themes and plug-ins in just 3 steps? Using WordPress, I can focus on blogging, instead of trying to code a new engine from scratch, then abandoning it halfway. 5. What is your favorite saying? 6. You are so good, so kind, I want more information to contact you blah blah…. My email address is: . Personal Facebook: . Currently, I do not add friends to strangers. If you are interested in articles and programming experience, you can follow the fanpage at: okay! Rate this: Like this: Related
Dạo gần đây, khi tư vấn, mình thấy có vài bạn cũng có khả năng , nhưng mãi không dám đi phỏng vấn xin thực tập vì … sợ rớt. Cũng có 1 số bạn đã đi phỏng vấn nhưng … rớt nhiều lần nên buồn , lên kể lể tâm sự với mình. Thật ra, rớt phỏng vấn là chuyện … bình thường, ai hẳn cũng có lần trải nghiệm rồi! Quan trọng là mình biết được gì, học được gì sau khi đi phỏng vấn. Tuy nhiên, không phải công ty nào cũng cho bạn feedback, lý do tại sao công ty không tuyển bạn. Do vậy, trong bài này, mình sẽ chia sẻ một số lý do các bạn … rớt phỏng vấn , để bà con xem và rút kinh nghiệm nhé! Trình độ chưa đủ Đây là lý do hàng đầu khiến bạn rớt phỏng vấn: Công ty tuyển junior/fresher nhưng bạn không trả lời được những câu hỏi, kiến thức căn bản nên rớt Công ty tuyển senior nhưng bạn chưa đủ kinh nghiệm, chưa nắm sâu nắm vững công nghệ nên rớt Công ty hỏi nhiều về thuật toán , về thiết kế hệ thống. Bạn … ôn bài không kĩ, viết code giải thuật toán không được nên rớt Bản thân mình cũng từng rớt vì … chưa đủ trình độ tận 3 lần: 1 lần phỏng vấn senior C# ở Optiver , rớt vì … họ cảm thấy khả năng technical và thiết kệ hệ thống của mình chưa xuất sắc Rớt phỏng vấn JS ở Canva , vì viết unit test chưa quen, và khi viết thêm chức năng thì code trở nên rối và lòng vòng Rớt phỏng vấn front-end ở Zendesk, vì viết code trên bảng 2/3 câu thuật toán chưa được tối ưu Nói túm lại, bạn rớt là do khả năng kĩ thuật chưa đủ giỏi, chưa đạt yêu cầu của công ty. Cũng không sao cả, mỗi lần rớt là mỗi lần các bạn có thể xem lại bản thân, xem mình còn yếu gì để học thêm, để giỏi hơn thôi. Thái độ và kĩ năng mềm không tốt Cái thứ hai là thái độ. Nếu khả năng kĩ thuật của bạn đã tốt, công ty sẽ đánh giá xem thái độ, kĩ năng mềm của bạn có phù hợp với công ty hay không: Hỏi câu khó, bạn không trả lời được nhưng không nói thật, cứ lấp liếm cho qua => Không trung thực, không thừa nhận khuyết điểm Khi yêu cầu giải thích 1 vấn đề kĩ thuật, bạn không giải thích được một cách dễ hiểu => Khó giao tiếp với PM, BA, khách hàng Người phỏng vấn vô tình/cố ý nói sai. Bạn tỏ thái độ hổ báo, coi thường người phỏng vấn v…v => Khó làm việc chung Bạn tốt nghiệp trường ngon, bằng giỏi , nên có thái độ tự tin + tự cao, đòi mức lương khủng Cách suy nghĩ, cách làm việc của bạn không phù hợp với công ty, với team leader Đó là lý do có nhiều người khá giỏi, technical cứng nhưng vẫn rớt vì công ty thấy … không phù hợp. Bản thân mình thì may mắn là nhờ … chém gió giỏi, lanh mồm miệng nên chưa rớt vì thái độ bao giờ. Không phù hợp với công ty Ở bài Xin việc cũng như tán gái , mình đã nói nhân duyên giữa nhân viên và công ty cũng giống như trai với gái vậy. Đôi khi không phải bạn chưa đủ tốt, hay họ chưa đủ tốt, mà bởi vì chưa hợp nhau mà thôi: Kiến thức cơ bản của bạn rất tốt. Nhưng họ cần người rành framework nhảy vào làm ngay, vì dự án đang rất gấp => Phải chọn người khác Trình độ bạn đã đủ senior, nhưng công ty lại đang tìm mid-junior vào để đào tạo dần, không cần quá nhiều senior. Công ty lớn, đòi làm việc 8-5h, quần áo chỉnh tề. Nhưng bạn đã quen với việc đi làm startup : 9-10h đi làm, 7h về, ăn mặc thoải mái => Vào sẽ không phù hợp Mức lương hiện tại, lương yêu cầu của bạn … cao quá , công ty không trả nổi. Nếu có ứng viên khác trình độ tương đương, lại đòi lương thấp hơn thì công ty sẽ chọn họ thôi! Ngoài ra, còn 1 số yếu tố bất ngờ như: Công ty startup hết vốn, phòng IT ngừng tuyển người, cả team engineer kéo nhau đi … Bạn xui dính phải thì cũng tạch thôi. Đấy, đôi khi lỗi không phải ở bạn . Chỉ là đúng công ty, sai thời điểm mà thôi . Cách tốt nhất là cứ đi phỏng vấn thật nhiều công ty, rồi sẽ có công ty phù hơp với bạn! Tạm kết Mình biết, khi rớt phỏng vấn, ai cũng sẽ cảm thấy buồn, cảm thấy thiếu tự tin vào bản thân. Tuy vậy, sau khi đọc bài này, bạn sẽ hiểu ra, đôi khi không phải mình rớt phỏng vấn là do mình dốt, mà còn do nhiều yếu tố khách quan khác nữa! Do vậy, mỗi lần được offer cũng đừng kiêu, bị reject cũng đừng nản nhé. Điều quan trọng là, đi phỏng vấn nhiều sẽ giúp bạn nhận ra lương của mình ra sao so với thị trường, mình có thiếu sót gì, mình cần làm gì để cải thiện bản thân. Chúc các bạn may mắn tìm được công ty, công việc ưng ý với mình nhé! Quảng cáo nhẹ 10s Ngoài ra, trước khi phỏng vấn, các bạn có thể lên ReviewCongTy để xem sơ về qui trình phỏng vấn, môi trường làm việc trước khi apply vào nhe. Bonus Các bạn muốn biết khi phỏng vấn người ta sẽ hỏi gì, trả lời như thế nào có thể xem qua clip mock interview của Code Dạo, phỏng vấn front-end nha. Rate this: Like this: Related
Recently, when consulting, I saw that there were a few people who also had the ability, but never dared to interview for an internship because... they were afraid of failing. There were also some people who went for interviews but... failed many times so they were sad and came up to confide in me. Actually, failing an interview is... normal, everyone must have experienced it at least once! What's important is what you know and what you learn after the interview. However, not every company will give you feedback on why the company did not hire you. Therefore, in this article, I will share some reasons why you... failed the interview, so that everyone can see and learn from it! Insufficient qualifications Here are the top reasons why you fail the interview: The company recruits juniors/freshers but you can't answer the questions and have basic knowledge so you fail The company recruits senior staff but you don't have enough experience and don't have a deep grasp of the technology so you fail The company asks a lot about algorithms and system design. You... didn't review the lesson carefully, couldn't write code to solve the algorithm, so you failed I myself also failed because... I was not qualified 3 times: One time they had a senior C# interview at Optiver, they failed because... they felt their technical abilities and system design were not excellent. Failed the JS interview at Canva, because writing unit tests was unfamiliar, and when writing more functions, the code became confusing and circular. Failed the front-end interview at Zendesk, because writing code on the board 2/3 of the algorithm sentences were not optimized In short, you failed because your technical ability was not good enough or did not meet the company's requirements. It's okay, every time you fail, you can look back at yourself, see what your weaknesses are, learn more, and get better. Poor attitude and soft skills. The second is attitude. If your technical abilities are good, the company will evaluate whether your attitude and soft skills are suitable for the company: Ask a difficult question, you can't answer it but don't tell the truth, just gloss over it => Not being honest, not admitting shortcomings When asked to explain a technical problem, you cannot explain it in an easy-to-understand way => Difficulty communicating with PM, BA, customers The interviewer accidentally/intentionally said something wrong. You show an aggressive attitude, look down on the interviewer, etc. => Difficult to work with You graduated from a good school with a good degree, so you have a confident + arrogant attitude, demanding a huge salary Your way of thinking and working is not suitable for the company or the team leader That's why there are many people who are quite good and technically strong but still fail because the company finds it... not suitable. Personally, I'm lucky because I'm... good at gossiping and clever with my mouth, so I've never failed because of my attitude. Not suitable for the company In the article Applying for a job is like flirting with girls, I said that the relationship between an employee and the company is like a boy and a girl. Sometimes it's not that you're not good enough, or they're not good enough, but because they're just not compatible: Your basic knowledge is very good. But they need someone who knows the framework to jump in immediately, because the project is very urgent => They have to choose someone else Your level is senior enough, but the company is looking for mid-juniors to gradually train, not needing too many seniors. Big company, requires working 8-5 hours, neat clothes. But you're used to working at a startup: go to work at 9-10, come home at 7, dress comfortably => It won't be appropriate. Your current salary, your requested salary... is too high, the company cannot pay it. If there are other candidates with similar qualifications and demand a lower salary, the company will choose them! In addition, there are some unexpected factors such as: The startup company runs out of capital, the IT department stops recruiting people, the entire engineer team pulls together... If you're unlucky enough to get caught, you'll be fine. See, sometimes it's not your fault. It's just the right company, the wrong time. The best way is to just interview with many companies, then there will be a company that is right for you! Conclusion I know, when failing an interview, everyone will feel sad and lack confidence in themselves. However, after reading this article, you will understand that sometimes it is not because you fail the interview because you are stupid, but also because of many other objective factors! Therefore, every time you get an offer, don't be arrogant, and don't be discouraged if you get rejected. The important thing is, going to many interviews will help you realize how your salary compares to the market, what shortcomings you have, and what you need to do to improve yourself. Wishing you luck in finding a company and job that suits you! 10-second light advertisement In addition, before the interview, you can go to ReviewCongTy to see a brief overview of the interview process and working environment before applying. Bonus: If you want to know what people will ask and how to answer during an interview, you can watch Code Dao's mock interview clip, front-end interview. Rate this: Like this: Related
Có thể bạn chưa biết, mình và Codeaholicguy có code chung 1 con bot Facebook tên The Codergang Vietnam Bot ( ), chuyên gửi bài viết hay về IT cho các bạn đọc. Tụi mình làm con bot này cũng lâu rồi, đến nay cũng đã được hơn 7000 bạn đọc đăng kí. Hệ thống này gồm 2 phần: Trong bài này, tụi mình sẽ chia sẻ qui trình tụi mình làm ra con bot này nhé! Chúng khá là vui thú vị, biết đâu các bạn có thể học và áp dụng được vài thứ hay ho vào sản phẩm của mình đấy! Ý tưởng và đặt tên cho sản phẩm Ban đầu, khi làm sản phẩm, tụi mình muốn làm 1 nơi chuyên chọn lọc bài viết hay ho về lập trình (tiếng Việt), gửi thẳng tới Messenger của người dùng (Giông giống mấy cái newsletter lập trình ). Người dùng có thể dễ dàng đăng kí với 1 nút bấm , thay vì nhập mail phức tạp Sản phẩm có chức năng na ná MailChimp , một nền tảng email marketing rất nổi tiếng. Ý tưởng của mình là Bot + MailChimp, định để là Bót Chim hoặc Bóp Chim. Nhưng sau một hồi thảo luận, cảm thấy 2 cái tên kia không được tế nhị cho lắm, tụi mình đổi thành ConChimp cho nó lịch sự. Conch tức là cái vỏ ốc, còn Chimp là chôm từ Mail Chimp nhe. Làm sản phẩm MVP kiểu Lean Startup Do sản phẩm này chưa kiếm ra tiền, 2 thằng cũng đều bận đi làm nên thời gian rảnh không nhiều, không thể bỏ quá nhiều công sức được. Do vậy, tụi mình quyết định build MVP, tức Minimum Viable Product. Tụi mình tạo ra sản phẩm nhỏ, ít chức năng, đáp ứng đủ nhu cầu người dùng trước. Sau đó mới dần dần mở rộng, build thêm tính năng mới. (Sản phẩm Em Thèm Vếu trước đây mình làm cũng theo phong cách này luôn) Thế là, Codeaholicguy cắm đầu vào build chức năng gửi bài viết (link + chữ) cho người dùng. Mình thì build API và trang web cho phép người dùng đăng kí con bot. Sau 1 tuần, tụi mình đã build ra trang để bạn đọc vào đăng kí. Ủa, vậy làm sao để kiếm bài viết, làm sao để gửi cho người dùng mỗi tuần? Việc này được làm hoàn toàn bằng … tay , mình đi chọn lọc bài viết, copy ảnh, tên bài vào 1 file JSON. Sau đó, tụi mình gửi HTTP Request tới server con bot để gửi bài viết cho các bạn đã đăng kí. Cải tiến và nong rộng, nhầm, mở rộng Con Chimp Sau 1 thời gian, bắt đầu có hơn 1000 bạn đăng kí. Tụi mình quyết định mở rộng hệ thống, thêm chức năng để quản lý bài viết và người dùng . Con Chimp ra đời từ đấy. Codeaholicguy lo phần infra và back-end, còn mình cứ front-end mà táng thôi. Tụi mình bắt đầu làm 1 số chức năng cơ bản để quá trình lọc bài viết, soạn nội dung diễn ra nhanh hơn: Tự động lấy ảnh, nội dung từ link bài viết Giao diện trực quan để quản lý bài viết đã gửi Ngoài ra, để dễ theo dõi người dùng , nhầm, để nâng cao trải nghiệm người dùng, bọn mình cũng làm một hệ thống logging và analytic nhỏ để đánh giá performance (lượt thích, lượt click) của các bài viết. Bật mí một xí, toàn bộ hệ thống xử lý cũng khá nhiều, lúc cao điểm có thể xử lý vài trăm request/phút. Thế nhưng, hệ thống viết bằng NodeJS, chạy hoàn toàn mượt mà trên một con VPS giá … 5$/tháng trên Digital Ocean , host cả front-end lẫn back-end lẫn DB nha! Tạm kết Trong quá trình làm Bot Con Chimp, mình và Codeaholicguy cũng học được thêm khá khá thứ hay ho về code, về làm sản phẩm: Không cần phải chờ sản phẩm hoàn thiện mới release. Chỉ cần nó phục vụ được người dùng , cứ đưa ra trước, đợi có nhiều người rồi hoàn thiện sau! Bạn sẽ có rất nhiều chức năng muốn làm! Hãy tập trung thời gian cho những chức năng quan trọng trước. Ban đầu, khối lượng công việc sẽ khá nhiều, có thể làm bạn sợ hoặc nản. Đừng lo, thay vì ngần ngừ, cứ bắt tay vào làm rồi là bạn sẽ cắm đầu vào làm được ngay thôi! Facebook xét duyệt app khá lâu! Bản thân tụi mình bị reject app 1 lần, chờ gần cả tháng vẫn chưa được duyệt. May mà sau đó nhờ mình nhờ người quen bên Facebook báo hộ nên nay mới đỡ chờ. Đấy, về mặt kĩ thuật thì con bot không có gì phức tạp. Chỉ là thêm bớt xóa sửa, gọi Facebook API thôi. Tuy vậy, mình nghĩ nó khá hữu dụng, có ích với nhiều bạn trong ngành. Do vậy, nếu các bạn có ý tưởng gì thì cũng đừng ngại, đừng nản . Cứ cắm đầu vào làm, làm ra một sản phẩm gì đó đi. Biết đâu nó sẽ trở nên phổ biến, giúp ích cho người khác đấy! Rate this: Like this: Related
Maybe you don't know, Codeaholicguy and I have the same code for a Facebook bot called The Codergang Vietnam Bot (), which specializes in sending good articles about IT to readers. We have been making this bot for a long time, and so far we have had more than 7,000 registered readers. This system consists of 2 parts: In this article, we will share the process we used to create this bot! They are quite fun and interesting, maybe you can learn and apply some cool things to your products! Idea and name for the product Initially, when making the product, we wanted to create a place that specializes in selecting interesting articles about programming (in Vietnamese), sending them directly to users' Messenger (similar to newsletters). program ). Users can easily register with one button, instead of entering complicated emails. The product has similar functions to MailChimp, a very famous email marketing platform. My idea is Bot + MailChimp, intending to call it Bot Chim or Squeeze Chim. But after a while of discussion, we felt that the other two names were not very tactful, so we changed it to ConChimp to make it more polite. Conch means snail shell, and Chimp is stolen from Mail Chimp. Making a Lean Startup-style MVP product Because this product hasn't made any money yet, both guys are busy working so they don't have much free time, so they can't put in too much effort. Therefore, we decided to build MVP, which means Minimum Viable Product. We create small products with few functions, meeting user needs first. Then gradually expand and build new features. (The previous product I Craved Breasts also followed this style) So, Codeaholicguy put his head into building the function of sending articles (link + text) to users. I built an API and a website that allows users to register bots. After 1 week, we built a page for readers to register. Oh, so how to find articles, how to send them to users every week? This is done entirely by hand, I select the articles, copy the images, and the title of the article into a JSON file. After that, we send HTTP Request to the bot server to send posts to registered users. Improve and expand Con Chimp After a while, more than 1,000 people started registering. We decided to expand the system, adding functions to manage posts and users. From there, Chimp was born. Codeaholicguy takes care of the infra and back-end, and I just focus on the front-end. We started working on some basic functions to make the process of filtering articles and composing content go faster: Automatically retrieve images and content from article links Intuitive interface to manage submitted articles In addition, to easily track users and mistakes, to improve user experience, we also create a small logging and analytic system to evaluate the performance (likes, clicks) of articles. Revealing the details, the entire processing system is quite a lot, at peak time it can handle several hundred requests/minute. However, the system is written in NodeJS, running completely smoothly on a VPS priced at... $5/month on Digital Ocean, hosting both front-end, back-end and DB! Conclusion During the process of making Bot Con Chimp, Codeaholicguy and I also learned quite a few interesting things about coding and making products: No need to wait for a finished product to release. As long as it serves users, just release it first, wait for many people and then complete it later! You will have a lot of functions you want to do! Focus your time on important functions first. At first, the workload will be quite a lot, which can scare or discourage you. Don't worry, instead of hesitating, just start doing it and you'll be able to do it right away! Facebook reviews apps for quite a long time! We ourselves had our app rejected once, waited nearly a month and still hadn't been approved. Luckily, I asked a friend on Facebook to report it for me, so now I can stop waiting. See, technically the bot is not complicated. Just add, remove, edit, call Facebook API. However, I think it is quite useful and useful to many people in the industry. Therefore, if you have any ideas, don't be shy or discouraged. Just put your head down and make something. Who knows, maybe it will become popular and help others! Rate this: Like this: Related
Lập trình là một ngành khá khó, khó từ lúc học cho tới lúc đi làm ! Đôi khi, bạn sẽ gặp phải những vấn đề hóc búa, những con bug phức tạp , sửa hoài không ra, làm hoài không được! Lúc này, cách giải quyết tốt nhất là lên các forum, lên Facebook hỏi. Làm sao để hỏi cho tốt, để mau có câu trả lời thì nhiều người đã viết rồi. (Bài Hỏi làm sao để được trả lời bên Kipalog khá hay và có ích). Do vậy, hôm nay mình sẽ làm ngược lại . Mình sẽ chỉ các bạn cách hỏi để bị ăn gạch đá , bị giang hồ nhảy vào phỉ nhổ nha. Tụi mình cùng bắt đầu thôi! Note : Ảnh chỉ mang tính chất minh họa, avatar và tên người hỏi đã được chỉnh sửa 😀 Cách đầu tiên – Nhờ làm giùm, sửa giùm, ăn giùm, uống giùm, … chịch giùm Cách nhanh chóng nhất để được “ném đá” đó là nhờ làm giùm mà không trả công: Bài tập thầy giao nhưng mà lười quá, thôi nhờ làm giùm đỡ phải làm Hôm trước mình nghỉ học nên không biết làm bài, thui nhờ làm giùm cho nhanh Sắp ra đồ án tốt nghiệp, thui làm giùm cho mau ra trường chứ tự làm làm gì Hệ thống bị lỗi gồi, nhưng mà thay vì tự sửa thì nhờ người khác fix giùm cho lẹ Nếu các bạn muốn bị ăn gạch thì cứ nhờ càng nhiều càng tốt, cái gì từ nhỏ tới lớn cũng đem lên nhờ là xong nha. Vụ này thì mình đã nói 1 lần ở bài “ Thực trạng học lập trình của một vài bạn sinh viên ” rồi. Cũng chẳng buồn nói lại làm gì! Không nêu rõ vấn đề, không show code, hoặc chỉ chụp hình code Cách thứ 2 cũng khá hay. Giống như nhiều bạn nữ, thích hay không thích gì cũng cứ im im , chờ người khác … “đoán xem”. Để ăn gạch đá, các bạn cũng đừng nói rõ mình bị lỗi gì, mà hãy nói mơ hồ kiểu “hệ thống không chạy được, bị lỗi”, sau đó để mọi người … đoán xem. Ngoài ra, nếu cảm thấy vậy chưa đủ, bạn có thể … chụp hình lại code (Thay vì đăng và format code rõ ràng). Điểm cộng nếu bạn dùng di động để chụp/quay lại rồi đăng nhé. Ai đời lại chụp màn hình làm gì cho tốn công sức! Hỏi những thứ … dễ Google Là developer, bạn phải biết cách đọc tài liệu, biết cách tra Google Tính kiên nhẫn của cộng đồng mạng khá là thấp. Do đó, để chọc tức họ, bạn cứ hỏi những câu hỏi … dễ dàng Google, hoặc trong sách giáo khoa đã có sẵn . Đảm bảo bạn sẽ ăn gạch đá ngay. Với một số người có tâm, họ sẽ cho bạn một số keyword để các bạn tự tìm hiểu thêm (Hoặc tốt hơn thì search giùm bạn lun). Mà thôi, tại sao phải tự đi tìm hiểu , khi bạn có thể nhờ người khác Google giùm cơ chứ nhỉ? Hỏi những câu kiểu “có nên không, có được không, nên làm gì?” Lâu lâu, các group, forum lập trình cũng trở thành nơi tư vấn tình cảm, tâm sinh lý luôn: 24 tuổi rồi có nên học lập trình không ? Ủa lỡ người ta nói là không thì bạn không học lập trình nữa hả Thích C++ mà đi làm front-end có phù hợp không? Ủa người khác nói là không thì bạn ko làm front-end có được không Thích máy tính nhưng sợ bị trĩ, có nên học lập trình không? Nên học tiếp để lấy bằng ĐH về lót chuột , hay nên đi làm để cầm tiền về lót chuột? Cá nhân mình nghĩ, những câu hỏi dạng này không có ý nghĩa . Bản thân mỗi người sẽ tự biết mình có thực sự thích cái gì hay không, có thực sự phù hợp với nó không? Khi hỏi những câu dạng này, giang hồ sẽ rất tận tình nhảy vào chia sẻ những lời khuyên vô thưởng vô phạt cho bạn (Thằng Code Dạo cũng hay vậy lắm). Nếu thực sự đã thích thì đừng quan tâm người khác nói gì , còn nếu bạn đi hỏi chỉ để kiếm cớ, kiếm lý do thì không bao giờ làm việc được. Tạm kết Đó, nếu đọc xong bài các bạn có thấy nhột nhột thì cứ nghĩ “Chắc thằng Code Dạo nó chừa mình ra” nhé. Nói chung không biết thì hỏi là chuyện bình thường. Bản thân mình cũng từng lên stackoverflow hỏi và trả lời vài câu. Nhưng để hỏi cho hiệu quả, hỏi để người ta giúp bạn thì phải hỏi cho đúng nha. Vậy làm sao để hỏi cho đúng?? Nhớ làm ngược lại những điều mình nói trong bài này là được nhé: Chịu khó Google vài lần trước khi hỏi, đa phần Google là ra link stackoverflow, link Github để ta vào tìm hiểu rồi Bên cạnh Google, chịu khó xem lại document của ngôn ngữ/công nghệ đó Khi hỏi nhớ post code rõ ràng, nói rõ mình đã thử gì, mình muốn làm gì, bị lỗi sai gì Đừng đem bài tập, bài làm lên rồi chờ người khác giải giùm, sửa giùm tận miệng! Chúc các bạn may mắn, hỏi gì được nấy và nhận ít ít gạch đá nhé! Rate this: Like this: Related
Programming is a quite difficult industry, difficult from studying to working! Sometimes, you will encounter difficult problems, complicated bugs, you can't fix them, you can't do them forever! At this time, the best solution is to go to forums and Facebook to ask. Many people have written about how to ask well and get answers quickly. (The question How to get an answer on Kipalog is quite good and useful). Therefore, today I will do the opposite. I will show you how to ask questions so that you will be criticized and criticized by gangsters. Let's start together! Note: The photo is for illustration purposes only, the avatar and name of the person asking has been edited 😀 The first way - Ask to do it for you, fix it for you, eat it for you, drink it for you,... fuck you for it. The fastest way to get "stoned" That's asking for help without paying: The teacher gave me homework but I was too lazy so I asked him to do it for me so I wouldn't have to do it I missed school the other day so I didn't know how to do my homework. Please help me do it quickly I have a graduation project coming up soon, so I can do it for you so I can graduate quickly, instead of doing it myself The system is broken, but instead of fixing it yourself, ask someone else to fix it quickly If you want to get criticized, just ask for as much as you can, ask for anything from small to big and you'll be done. I have already talked about this case once in the article "The current situation of learning programming for some students". Don't even bother to say it again! Don't state the problem clearly, don't show the code, or just take a picture of the code. The second method is also quite good. Like many girls, whether they like or dislike something, they just keep quiet, waiting for others to... "guess". To get criticism, don't say clearly what's wrong with you, but say something vague like "the system can't run, it's faulty", then let everyone... guess. Additionally, if you feel that's not enough, you can... take a picture of the code (Instead of posting and formatting the code clearly). Bonus points if you use your mobile phone to take photos/record and then post. Who in the world takes screenshots for the sake of wasting effort! Ask things... that are easy to Google. As a developer, you must know how to read documents, know how to Google. The patience of the online community is quite low. Therefore, to annoy them, you just ask questions... that are easy to Google, or in existing textbooks. Guaranteed you'll get bricked right away. For some thoughtful people, they will give you some keywords for you to learn more about yourself (Or better yet, search for you). Well, why bother finding out for yourself, when you can ask someone else to Google it for you? Ask questions like “Should I, is it possible, what should I do?” From time to time, programming groups and forums also become places for emotional and physiological counseling: Should I learn programming at 24 years old? What if people say no, then you won't learn programming anymore? Is it suitable to work in front-end if you like C++? Well, other people say no, can you not do front-end work? Like computers but afraid of hemorrhoids, should I learn programming? Should I continue studying to get a university degree in mouse pads, or should I work to earn money for mouse pads? Personally, I think questions like this are meaningless. Each person will know for himself whether he really likes something or not, is it really suitable for it? When asked these types of questions, Wanderer will enthusiastically jump in and share innocuous advice with you (Code Dao is also very good like that). If you really like it, don't care what other people say, but if you ask just to find an excuse, it will never work. In conclusion, if after reading the article you feel tickled, just think "Code Dao must have left me". In general, if you don't know, it's normal to ask. I myself also went to stackoverflow to ask and answer a few questions. But to ask effectively, to ask so people can help you, you have to ask correctly. So how to ask correctly?? Remember to do the opposite of what I said in this article: If you bother to Google a few times before asking, most of the time Google will give you a stackoverflow link or a Github link for you to go and learn about. Besides Google, take the time to review the documentation of that language/technology When asking, remember to post the code clearly, clearly stating what you have tried, what you want to do, and what errors you got Don't bring up your homework and assignments and wait for someone else to solve them for you or correct them in person! Good luck, ask whatever you want and get a little criticism! Rate this: Like this: Related
Đã bao giờ bạn làm được một việc gì đó hay ho, khiến mình cảm thấy tự hào, thấy mình giỏi giang chưa? Ví dụ như: Học và một thành thạo một ngôn ngữ/công nghệ mới trong vòng 2-3 tuần Hoàn thành một tính năng phức tạp và khó nhằn … trước thời hạn Vượt qua một vòng phỏng vấn khó nhằn , vào được vị trí ngon, mức lương khủng Thế nhưng, đã bao giờ bạn thử hỏi: Liệu bản thân mình có thực sự giỏi giang như vậy hay không? Thành công của mình, được bao nhiêu % là nhờ người khác, nhờ vào may mắn? Thành công của ta, liệu có phải do … chính bản thân ta? Đợt trước, mình từng đọc cuốn Smartcuts: How Hackers, Innovators, and Icons Accelerate Success , chia sẻ về những cách nghĩ khác người giúp ta dễ đạt thành công hơn. Sách có 1 đoạn làm mình nhớ khá lâu, đó là về một phát hiện của các chuyên gia về tâm lý con người: Đọc tới đây, hẳn bạn sẽ bỗng tự nhiên thấy hơi … nhột nhột. Thử nghĩ tới những lúc ta tưởng mình giỏi xem nào: Bạn học và thành thạo 1 công nghệ mới rất nhanh : Liệu có phải do bạn giỏi, kiến thức cơ bản bạn vững? Hay là do ngôn ngữ đó vốn dễ học? Hoặc người viết tutorial rất có tâm, giảng giải cho bạn nghe dễ hiểu Bạn hoàn thành 1 tính năng phức tạp : Liệu có phải do bạn code trùm? Hay đó là do PM đã viết requirement rất rõ ràng, designer cung cấp đủ design cho bạn. Hoặc do bạn may mắn tìm được thư viện hỗ trợ tận răng (mà người khác đã viết giùm) Bạn vượt qua vòng phỏng vấn : Liệu có thực sự do bạn giỏi. Hay do công ty đó đang kẹt người. Hoặc bạn trúng tủ ôn trúng câu phỏng vấn, nói chuyện đúng ý ông manager? Hay do bạn đã được đọc hướng dẫn chuẩn bị phỏng vấn do vài chục người viết sẵn trên mạng? Chuyện của bản thân Code Dạo Bản thân mình cũng vậy. Trước giờ mình vẫn nghĩ, mỗi khi mình đạt được thành công gì đó, tất cả là nhờ bản thân mình đã cố gắng , nỗ lực hết mình; chứ không phải nhờ môi trường xung quanh. Thế nhưng, ngẫm lại, mọi chuyện không hề đơn giản như vậy: Mình ra nước ngoài học Master, có học bổng , 1 phần là nhờ IELTS mình cao (7.5) , 1 phần là nhờ … trung tâm giới thiệu Qua UK, mình tìm được công việc technical đầu tiên , một phần là nhờ technical 1 mình tốt, 1 phần là nhờ … anh da đen chung team giới thiệu Tốt nghiệp xong, mình được qua Singapore làm startup , một phần nhờ mình đẹp trai, nhưng cũng nhờ … ông đồng nghiệp cũ giới thiệu . Khi đi làm, mình hoàn thành nhiệm vụ, được cấp trên quan tâm. Tất nhiên là nhờ khả năng của mình, nhưng cũng nhờ đồng nghiệp mình làm tốt , mình học hỏi được nhiều từ họ Mình biết khá rộng, khá nhiều , từ front-end, back-end, cloud, microservice, devops , … Một phần là nhờ mình chịu khó tìm hiểu, nhưng một phần là công ty mình làm có dùng công nghệ , nhờ được mấy ông anh người quen chỉ bảo. Đấy, túm lại mình tự thấy mình cũng thành công được kha khá. Thế nhưng, khi ngẫm kĩ lại thì, thành công của mình chỉ được tầm 30% là do bản thân mình, còn lại là do may mắn, do có người trợ giúp cả. Thế mà trước đây, mình cứ tự nhủ thành công của mình là do 70-80% nỗ lực của mình cơ đấy! Tạm kết Code Dạo viết bài này, không có ý dạy dỗ ai; mà chỉ muốn tự nhắc nhở mình, cũng như nhắc nhở bạn đọc: Đôi khi chúng ta thành công, làm được gì đó không hoàn toàn nhờ khả năng của mình , mà nhờ may mắn, nhờ những người khác thôi. Tất nhiên, nếu bạn nỗ lực, bạn hoàn toàn xứng đáng với thành công của mình . Có điệu kiện tốt đến mấy, được giúp đỡ nhiều đến mấy mà không có nỗ lực thì cũng khó mà thành. Tuy vậy, mình vẫn khuyên bạn hãy thử khiêm tốn lại một chút, tập nghĩ rộng ra một chút. Để sau này, lỡ bạn gặp người dở hơn, ít thành công hơn mình, bạn sẽ không cho rằng người đó ngu, thiếu nỗ lực, lười học hỏi; mà sẽ hiểu và thông cảm cho họ hoàn cảnh của họ nhé! Rate this: Like this: Related
Have you ever done something cool that made you feel proud and talented? Eg: Learn and master a new language/technology within 2-3 weeks Complete a complex and difficult feature… ahead of schedule Pass a difficult interview round, get a good position, great salary However, have you ever tried to ask: Are you really that good? How much of your success is due to other people and luck? Is our success due to... ourselves? Last time, I read the book Smartcuts: How Hackers, Innovators, and Icons Accelerate Success, sharing about ways of thinking differently that help us achieve success more easily. The book has a passage that stuck with me for a long time, which is about a discovery by experts on human psychology: Reading this far, you will suddenly feel a little... ticklish. Think about the times when you thought you were good: You learn and master a new technology very quickly: Is it because you are good, your basic knowledge is strong? Or is it because the language is inherently easy to learn? Or the tutorial writer is very thoughtful and explains it to you in an easy-to-understand way You complete a complex feature: Is it your fault? Or is it because the PM wrote the requirements very clearly, the designer provided enough design for you. Or maybe you're lucky enough to find a library with full support (that someone else wrote for you). You passed the interview round: Is it really because you are good? Or because that company is jam-packed with people. Or did you win the interview question and speak exactly what the manager wanted? Or is it because you have read interview preparation instructions written by dozens of people online? Code Dao's personal story: Me too. Until now, I've always thought that every time I achieve something, it's all because I tried my best; not thanks to the surrounding environment. However, thinking back, things are not that simple: I went abroad to study for a Master's degree and got a scholarship, partly thanks to my high IELTS (7.5), partly thanks to... referral center Through the UK, I found my first technical job, partly because I was good at technical skills, partly because... a black guy in the same team introduced me. After graduating, I was able to go to Singapore to work at a startup, partly because I was handsome, but also because... my old colleague introduced me. When I go to work, I complete my tasks and receive attention from my superiors. Of course thanks to my abilities, but also thanks to my colleagues who do well, I learn a lot from them I know quite a bit, quite a lot, from front-end, back-end, cloud, microservices, devops,... Partly because I worked hard to learn, but partly because the company I work for uses technology, thanks a lot. An acquaintance advised me. Well, all in all, I feel like I've been quite successful. However, when I think carefully, my success is only about 30% due to myself, the rest is due to luck and help from others. But before, I kept telling myself that my success was due to 70-80% of my efforts! Conclusion Code While writing this article, I do not intend to teach anyone; I just want to remind myself, as well as remind readers: Sometimes we succeed and do something not entirely thanks to our own abilities, but thanks to luck and other people. Of course, if you put in the effort, you absolutely deserve your success. No matter how good the conditions are and how much help you receive, it is difficult to achieve success without effort. However, I still advise you to try to be a little more humble and practice thinking a little more broadly. So that in the future, if you meet someone who is worse or less successful than you, you won't think that person is stupid, lacks effort, or is lazy to learn; but will understand and sympathize with their situation! Rate this: Like this: Related
Hôm nay, chúng ta vừa đọc vừa ngẫm nghĩ về 1 câu chuyện ngắn ngủi nhưng khá sâu sắc giữa bậc thiền sư và một chàng coder trẻ tuổi nhé. Chuyện về bậc thiền sư… Chuyện kể rằng, ở nước Việt có 1 bậc thiền sư tiếng tăm lừng lẫy. Nghe đồn rằng, ngài trên thông Cloud, dưới tường DevOps. Dự án từ to tới nhỏ gì cũng đã từng làm qua. Code ngài viết ra không những không có bug mà còn trong sáng như nước hồ thu. Hệ thống dưới bàn tay của ngài chạy mượt mà như nước chảy mây trôi, trăm ngàn người dùng cũng không hề suy suyễn. Theo ngành vài chục năm, tuy thân đã già nhưng trí chưa già, ngài vẫn ngày ngày viết code, thiết kế architecture, đi giảng đạo nâng cao trình độ cho con cháu trong ngành. Một ngày nọ, khi ngày đang giảng đạo, bỗng có một chàng trai trẻ tên Hoàng cầu kiến. Và chàng trai trẻ Hoàng vốn theo nghiệp đã vài năm, nhưng mãi không thấy trình độ của mình tăng tiến . Nay làm Java, kia làm C#; trước vừa đụng Vue, hôm sau lại dùng React. Do vậy đi làm 2, 3 năm trời vẫn mãi ở chức Junior quèn. Hoàng tự thấy sự học của mình tuy rộng mà không tinh, công nghệ thì cứ thay đổi mãi , chạy theo không kịp. Hoàng cúi đầu hỏi bậc thiền sư Lời dạy của thiền sư Thiền sự khẽ cười gật đầu, rồi hỏi Hoàng những câu vô cùng cơ bản như: Con có biết server/client gửi và nhận request như thế nào không Con có biết JavaScript xử lý cây DOM ra sao không Khi code bị lỗi, con có biết cách tốt nhất để tìm và xử lý vấn đề không? Hoàng không trả lời được, ấp a ấp úng lắc đầu. Thiền sự lại cười, vuốt vuốt chòm râu dài nói tiếp. Thuở xưa, Trang Tử đã từng dạy trong Nam Hoa Kinh: Con người ta chỉ có 8 tiếng mỗi ngày, còn trí thức thì vô hạn . Nay con cứ chạy theo công nghệ, đam mê cái vô hạn, trong khi căn cơ nền móng còn không vững. Nếu cứ như vậy, cả đời con cũng không bao giờ thoát kiếp junior được. Một lời đại ngộ Bậc thiền sư nói tiếp: Học công nghệ cũng tốt, đi làm cũng cần, nhưng để đi sâu, đi xa , con phải nắm vững căn bản hơn: Học cách một hệ thống hoạt động như thế nào , từ client/server cho tới Database Học kĩ năng debug , kĩ năng phân tích vấn đề Đừng mù quáng chỉ biết làm mà không nghỉ . Khi sử dụng một công nghệ gì đó, hãy xem nó có gì hay, có gì tốt để sau này ta áp dụng Hoàng vừa nghe vừa gật đầu Bậc thiền sư phất phất tay áo, quay đầu bỏ đi. Khi bóng ngài đã khuất rồi, chợt có tiếng vọng lại: Hoàng bỗng đốn ngộ. Hóa ra dù người có thông mình tới đâu, đều phải trải qua thời gian trui rèn mới thành tài được! Chẳng trách anh hào trong ngành đều là những bậc cao niên cả. Tạm kết Những lời Code Dạo muốn nhắn gửi tới bạn, truyện đều đã nói cả rồi. Nếu có đôi khi bạn cảm thấy chán nản muốn bỏ nghề, cảm thấy mình không hợp ngành này, cảm thấy buồn vì mình làm lâu không thăng tiến, mong bạn hãy nhớ đến những lời của bậc thiền sư: Có thể bạn thấy mình chưa giỏi, khả năng mình chưa cao . Không sao cả! Chỉ cần kiên trì, cố gắng không ngừng nghỉ, sau một thời gian bạn sẽ đạt đến trình độ mình muón theo, nhớ nhé! Rate this: Like this: Related
Today, let's read and reflect on a short but quite profound story between a Zen master and a young coder. The story of the Zen master... The story goes that in Vietnam there was a famous Zen master. Rumor has it that you are on the Cloud, under the DevOps wall. Every project from big to small has been done before. The code you wrote is not only bug-free but also as clear as autumn lake water. The system under his hands runs as smoothly as flowing water, and hundreds of thousands of users do not suffer from asthma. Following the industry for several decades, although his body is old but his mind is not old, he still writes code every day, designs architecture, and lectures to improve the qualifications of his children and grandchildren in the industry. One day, while he was preaching, a young man named Hoang suddenly asked for an audience. And the young man Hoang has been pursuing his career for several years, but has never seen his level improve. Now do Java, now do C#; One day I used Vue, the next I used React. Therefore, after working for 2 or 3 years, you will still be in a lowly Junior position. Hoang himself found that his studies were broad but not sophisticated, and that technology kept changing and could not keep up. Hoang bowed his head and asked the Zen master. The Zen master's teachings. Zen Su smiled slightly and nodded, then asked Hoang very basic questions such as: Do you know how the server/client sends and receives requests? Do you know how JavaScript processes the DOM tree? When code breaks down, do you know the best way to find and fix the problem? Hoang couldn't answer, he hesitantly shook his head. The Zen master smiled again, stroked his long beard and continued. In the past, Chuang Tzu once taught in the Nanhua Jing: People only have 8 hours a day, but knowledge is limitless. Now I keep chasing technology, passionate about the infinite, while my foundation is still unstable. If this continues, I will never be able to escape my junior life in my entire life. A word of great enlightenment The Zen master continued: Learning technology is good, working is also necessary, but to go deeper and go far, you must master the basics more: Learn how a system works, from client/server to Database Learn debugging skills and problem analysis skills Don't be blind and just do it without stopping. When using a technology, let's see what's good about it so we can apply it later Hoang listened and nodded. The Zen master waved his sleeve, turned and left. When his shadow was gone, suddenly there was an echo: Hoang suddenly came to enlightenment. It turns out that no matter how smart a person is, they must spend time training to become talented! No wonder the heroes in the industry are all seniors. Conclusion: The words Code Dao wants to send to you have already been said in the story. If sometimes you feel discouraged and want to quit your job, feel like you're not suitable for this industry, feel sad because you haven't been promoted for a long time, please remember the words of the Zen master: Maybe you feel like you're not getting ahead. good, my ability is not high. No problem! Just be persistent, try non-stop, after a while you will reach the level you want, remember! Rate this: Like this: Related
Sau một chặng đường dài dằng dặc thì series “Cùng học Cờ Lao” sắp đi tới phần cuối rồi. Ở phần này, mình sẽ giới thiệu thêm 1 số service hay ho khác của Azure nhé. Đây là các service khá hay ho, thường được dùng trong những hệ thống lớn, trong kiến trúc microservice . Trong phần lớn trường hợp, bạn sẽ không chưa dùng tới chúng. Tuy nhiên, khi hệ thống bắt đầu lớn dần, nhiều người dùng hơn, bạn cũng nên biết để dùng chút chút đó nha. 1. Azure Load Balancer Ở bài Thiết kế hệ thống phục vụ triệu người dùng , mình đã có nhắc đến Load Balancer. Nói đơn giản, Load Balancer là một thiết bị (phần cứng hoặc phần mềm) cho phép cân bằng tải đến nhiều server. Giả sử ta có 1 server có thể phục vụ 1000 người. Để phục vụ 10000 người, ta có thể chạy 10 server. Người dùng sẽ không trực tiếp truy cập tới server, mà chỉ truy cập tới load balancer. LB sẽ điều tiết, cân bằng lượng tải trên 10 server này. Ngoài ra, lâu lâu Load Balander còn thực hiện Health Check, gửi request đến các server để xem server còn sống hay đã chết, sau đó điều tiết request qua các server còn sống. Nếu hệ thống của bạn chạy trên Azure VM thuần , Azure có hỗ trợ Azure Load Balancer . Nếu các bạn chạy app trên Azure App Service , bản thân App Service đã có Load Balancer, các bạn chỉ việc tăng giảm số lượng instance là được. 2. Azure Cache for Redis Như mình đã giới thiệu ở bài viết về Kĩ Thuật Caching , caching là cách ta hi sinh memory/disk để giảm CPU time, hoặc network time nhằm tăng tốc độ hoặc giảm tải hệ thống. Thông thường, người ta hay sử dụng Memcache hoặc Redis để làm Caching server. Redis nhanh hơn, nhiều chức năng hơn nên hiện đang được sử dụng nhiều hơn. Để có 1 caching server bằng Redis, ta có thể tạo VM, sau đó cài Redis, thiết lập port v…v để sử dụng. Tuy vậy, Azure cung cấp luôn cho chúng ta một dịch vụ mang tên Azure Cache for Redis , chỉ cần tạo là chạy luôn rất tiện. Hùi xưa còn làm ở Algomerchant , team mình của dùng Redis Cache để lưu thông tin token người dùng, tận dụng luôn để làm messege queue giữa các service luôn 3. Azure Message Queue và Service Bus Hôm trước, mình đã có 1 bài viết về Message Queue và ứng dụng của nó trong kiến trúc microservice . Nói một cách huề vốn, Message Queue tức là một cái Queue (hàng đợi), chứa nhiều Message. Các bạn có thể hiểu message queue là một hộp thư, cho phép các thành phần/service trong một hệ thống (hoặc nhiều hệ thống), gửi thông tin cho nhau. Azure cung cấp khá nhiều cách để dùng message queue nên cũng hơi rối cho người dùng: Nếu thắc mắc không biết nên dùng cách nào, các bạn có thể xem bài so sánh này của Microsoft . Hồi xưa công ty mình dùng Azure Storage Queue thấy cũng không vấn đề gì! 4. Azure Notification Hub Nếu có làm các ứng dụng mobile, các bạn sẽ biết việc gửi thông báo (notification) chưa bao giờ là chuyện dễ dàng! Các bạn sẽ phải lưu trữ thông tin của thiết bị, thiết lập kết nối tới server của Apple, Google để có thể gửi thông báo. Mỗi hệ điều hành lại cần một thiết lập riêng. Do vậy, Azure cung cấp Azure Notification Hub . Notification Hub này hỗ trợ kết nối tới đủ thứ dịch vụ như APNs (Apple Push Notification service), GCM (Google Cloud Messaging), WNS (Windows Push Notification Service), MPNS (Microsoft Push Notification Service) . Sau khi thiết lập đúng kết nối, bạn có thể dễ dàng gửi notification tới người dùng bằng cách gọi API từ back-end là xong 5. Azure Function – Serverless Để hiểu serverless là gì, các bạn hãy đọc lại bài viết Giải thích kiến trúc Serverless . Nói một cách ngắn gọn: Với mô hình client-server thông thường, ta phải thuê server rồi deploy ứng dụng lên server. Với mô hình serverless, thay vì deploy code này lên server, ta deploy nó đưới dạng một Function (Function as a Service – FaaS). Funtion này có thể được gọi dưới dạng RestAPI hoặc chạy theo lịch đã sắp sẵn. Với FaaS, ta chỉ cần viết code mà không cần quan tâm đến việc server và code sẽ nằm ở đâu . Bên thứ 3 (Amazon, Microsoft) sẽ quản lý việc này. Trong Nhận Diện Idol , mình dùng Azure Funtion của Microsoft, viết vài dòng code ngăn ngắn để làm RestAPI . Nhờ vậy, API của mình có thể scale cực nhanh, cực nhiều (Nhờ Azure làm giúp) mà không cần thuê server gì cả. Các bạn nào muốn tìm hiểu thêm có thể vào xem giới thiệu về Azure Function nhé! Tạm kết Trong bài này, mình đã chia sẻ một số service khá hay ho của Azure. Tùy vào business của dự án, theo lượng người dùng mà có thể bạn sẽ chưa cần dùng đến những service này! Ngoài ra, Azure còn 1 số service rất hay như Cognitive Service (Nhận diện âm thanh, hình ảnh), Azure DevOps, Azure Kubernetes, Azure Monitor (dựng dashboard để theo dõi hệ thống). Do vậy, các bạn thích thì cứ tìm hiểu thêm, biết đâu cũng sẽ có lúc dùng đến hà. Series Cùng Học Cờ Lao đến đây cũng sắp kết thúc rồi! Ở kì cuối, chúng ta sẽ ôn lại sơ những thứ đã biết. Đồng thời, ta sẽ xem thử 1 hệ thống chạy hoàn toàn trên Azure sẽ có những gì, sử dụng những service nào nhen. Rate this: Like this: Related
After a long journey, the series "Let's Learn Co Lao" is about to reach its end. In this section, I will introduce some other cool services of Azure. These are quite interesting services, often used in large systems, in microservice architecture. In most cases, you won't use them. However, when the system starts to grow bigger and have more users, you should know how to use it a little. 1. Azure Load Balancer In the article Designing a system to serve millions of users, I mentioned Load Balancer. Simply put, Load Balancer is a device (hardware or software) that allows load balancing to multiple servers. Suppose we have 1 server that can serve 1000 people. To serve 10,000 people, we can run 10 servers. Users will not directly access the server, but only access the load balancer. LB will regulate and balance the load on these 10 servers. In addition, from time to time Load Balander also performs Health Check, sends requests to servers to see if the server is alive or dead, then regulates requests through alive servers. If your system runs on pure Azure VM, Azure supports Azure Load Balancer. If you run the app on Azure App Service, the App Service itself has a Load Balancer, you just need to increase or decrease the number of instances. 2. Azure Cache for Redis As I introduced in the article about Caching Techniques, caching is the way we sacrifice memory/disk to reduce CPU time, or network time to increase speed or reduce system load. Usually, people use Memcache or Redis to make a Caching server. Redis is faster and has more functions, so it is currently being used more. To have a caching server using Redis, we can create a VM, then install Redis, set up ports, etc. to use. However, Azure provides us with a service called Azure Cache for Redis, which is very convenient to just create and run. Hui used to work at Algomerchant, my team used Redis Cache to store user token information, and took advantage of it to create a messege queue between services. 3. Azure Message Queue and Service Bus The other day, I had an article about Message Queue and its application in microservice architecture. Simply put, Message Queue is a Queue, containing many Messages. You can understand a message queue as a mailbox, allowing components/services in a system (or multiple systems) to send information to each other. Azure provides many ways to use message queues, so it's a bit confusing for users: If you're wondering which method to use, you can see this comparison article from Microsoft. In the past, my company used Azure Storage Queue and there was no problem! 4. Azure Notification Hub If you make mobile applications, you will know that sending notifications has never been easy! You will have to store device information and establish a connection to Apple and Google servers to be able to send notifications. Each operating system requires its own setup. Therefore, Azure offers Azure Notification Hub . This Notification Hub supports connection to all kinds of services such as APNs (Apple Push Notification service), GCM (Google Cloud Messaging), WNS (Windows Push Notification Service), MPNS (Microsoft Push Notification Service). After setting up the correct connection, you can easily send notifications to users by calling the API from the back-end. 5. Azure Function – Serverless To understand what serverless is, please read the article Explaining the concept again. Serverless architecture. In short: With the usual client-server model, we have to rent a server and then deploy the application to the server. With the serverless model, instead of deploying this code to the server, we deploy it as a Function (Function as a Service – FaaS). This function can be called as a RestAPI or run on a pre-scheduled schedule. With FaaS, we just need to write code without worrying about where the server and code will be located. A 3rd party (Amazon, Microsoft) will manage this. In Idol Identification, I used Microsoft's Azure Function, writing a few short lines of code to make RestAPI. Thanks to that, my API can scale extremely quickly and greatly (Thanks to Azure for help) without needing to rent any servers. Those who want to learn more can visit the introduction to Azure Functions! Conclusion In this article, I shared some pretty cool services from Azure. Depending on the project's business and the number of users, you may not need to use these services! In addition, Azure also has some very good services such as Cognitive Service (Sound and image recognition), Azure DevOps, Azure Kubernetes, Azure Monitor (build dashboard to monitor the system). Therefore, if you like it, keep learning more, who knows, maybe you will use it at some point. The Let's Learn Chinese Flag series is almost over! In the final period, we will briefly review what we know. At the same time, we will see what a system running entirely on Azure will have and what services it will use. Rate this: Like this: Related
Lâu rồi Code Dạo viết lại bài kĩ thuật cho bà con hóng nha! Hôm nay, chúng ta cùng tìm hiểu về Message Queue . Đây là một thành phần cực kì quan trọng , không thể thiếu trong các hệ thống lớn (mình cá là Facebook, Google lẫn LinkedIn đều có nó trong hệ thống), trong kiến trúc microservice . Tuy vậy, nếu không gặp các dự án lớn hoặc dự án đặc thù, các bạn sẽ không hề biết tới thứ này. Vậy Message Queue là gì, nó có gì hay ho mà được sử dụng nhiều như vậy? Đọc xong bài này bạn sẽ biết ngay nhé! Messege Queue là cái chi chi? Nói một cách huề vốn, Message Queue tức là một cái Queue (hàng đợi), chứa nhiều Message. Đùa thế thôi, các bạn có thể hiểu message queue là một hộp thư, cho phép các thành phần/service trong một hệ thống (hoặc nhiều hệ thống), gửi thông tin cho nhau. Sở dĩ gọi nó là queue (hàng đợi) vì nó thực hiện việc lấy message theo cơ chế FIFO – First In First Out, tức đút vào trước thì rút ra trước. Một hệ thống sử dụng Message Queue thường có những thành phần sau đây: Message : Thông tin được gửi đi (có thể là text, binary hoặc JSON) Message Queue : Nơi chứa những message này, cho phép producer và consumer có thể trao đổi với nhau Producer : Chương trình/service tạo ra thông tin, đưa thông tin vào message queue Consumer : Chương trình/service nhận message từ message queue và xử lý Một chương trình/service có thể vừa là producer, vừa là consumer Message Queue được sử dụng ra sao trong thực tế? Trong các hệ thống dùng kiến trúc microservice , ta sử dụng message queue để giúp các service liên hệ với nhau một cách bất đồng bộ . Service A làm xong việc có thể gửi message queue để service B biết mà xử lý, không cần phải chờ service B làm xong. Giả sử, mình có một trang web cho phép người dùng tải link từ mu*vl, nhầm, từ Youtube, mình sẽ có các bộ phận sau: Web service : Là 1 producer. Nhận thông tin (url Youtube) từ phía người dùng, đưa thông tin này vào message queue Processing Service : Vừa là consumer vừa là producer. Service này đọc url Youtube từ message queue, bắt đầu tải file về và encode lại, lưu vào server. Sau khi encode xong, nó đưa url của file đã encode vào message queue Uploading Service : Khi nhận được message từ processing server, nó sẽ upload các video đó lên Google Drive v…v Trong thực tế, message queue giải quyết được khá nhiều vấn đề hóc búa trong hệ thống: Đảm bảo duration/recovery : Do message đã được lưu trong queue, khi 1 service đang xử lý nhưng bị crash hoặc lỗi, ta không lo bị mất dữ liệu; vì có thể lấy message từ trong queue ra và chạy lại. Trong 1 hệ thống có nhiều consumer, nếu 1, 2 consume bị crash cũng không làm sụp toàn hệ thống Phân tách hệ thống : Giúp phân tách hệ thống thành nhiều service nhỏ hơn, mỗi service chỉ xử lý 1 chức năng nhất định (Ưu nhược điểm thì các bạn xem lại bài về microservice nhé) Hộ trợ rate limit, batching : Trong nhiều trường hợp, năng lực xử lý hệ thống có hạn (chỉ có thể xử lý 300 đơn hàng/s). Với message queue, ta có thể dần dần lấy đơn hàng trong queue ra xử lý, không sợ thất lại. Hoặc thay vì mỗi lần gửi email mất thời gian lâu, ta có thể đợi message queue có yêu cầu gửi 200 email rồi gửi luôn 1 lượt. Dễ scaling hệ thống : Vào giờ cao điểm, nhiều truy vấn, ta có thể tăng số lượng consumer lên để xử lý được nhiều messege hơn. Khi không cần ta có thể giảm lại. Một số điểm cần lưu ý Tất nhiên, không có công nghệ nào là vạn năng. Khi sử dụng bất cứ công nghệ nào, ta cũng cần biết những điều cần lưu ý: Khó xử lý đồng bộ : Không phải hệ thống nào cũng cần tới message queue. Nếu như service A gọi service B, theo cơ chế đồng bộ, cần kết quả xử lý ngay, ta nên dùng Rest hoặc gRPC sẽ tốt hơn. Làm hệ thống phức tạp hơn : Thêm message queue sẽ tăng tính phức tạp của hệ thống. Ta cần phải biết rõ message nào gửi vào queue nào, ai gửi ai nhận. Lúc debug ở local cũng sẽ khó khăn hơn Cần đảm bảo message format : Để gửi/nhận, 2 phía producer và consumer phải thống nhất format với nhau. Nếu không cẩn thận lỡ 1 bên thay đổi sẽ làm bên kia không đọc được dữ liệu. Cần Monitoring Queue : Cần có các biện phát theo dõi (monitor), để đảm bảo lượng message queue không quá nhiều, làm đầy queue. Queue tốt nhất là queue luôn rỗng, hoặc số lượng message trong queue không tăng lên (message gửi vào queue đều bị consume hết) Một số message queue hay được dùng hiện này bao gồm: RabbitMQ Kafka (Kafka còn làm được lắm trò hay ho hơn message queue nữa cơ) Amazon SQS MSMQ (Microsoft Message Queuing) RocketMQ ZeroMQ Tạm kết Đấy, trong bài này mình đã chia sẻ về message queue, một bộ phận không thể thiếu trong các hệ thống lớn, các hệ thống sử dụng kiến trúc microservice . Khi các bạn ở tầm senior, tầm software architect , trong quá trình làm việc/phỏng vấn chắc chắn sẽ đụng phải thứ này đấy! Nếu bạn có kinh nghiệm gì muốn chia sẻ thêm thì cứ đăng trong phần comment nhé! Link tham khảo: Rate this: Like this: Related
It's been a while since Code Dao wrote a technical article for everyone! Today, let's learn about Message Queue. This is an extremely important, indispensable component in large systems (I bet Facebook, Google and LinkedIn all have it in the system), in microservice architecture. However, if you do not encounter large projects or specific projects, you will not know about this. So what is Message Queue, what is so great about it that it is used so much? After reading this article, you will know immediately! What is a Messege Queue? Simply put, Message Queue is a Queue, containing many Messages. Just kidding, you can understand a message queue as a mailbox, allowing components/services in a system (or multiple systems), to send information to each other. The reason it is called a queue is because it retrieves messages according to the FIFO - First In First Out mechanism, meaning the first to put in and the first to take out. A system using Message Queue usually has the following components: Message : Information sent (can be text, binary or JSON) Message Queue: The place where these messages are stored, allowing producers and consumers to communicate with each other Producer: Program/service that creates information, puts information into message queue Consumer: Program/service that receives messages from the message queue and processes them A program/service can be both a producer and a consumer How is Message Queue used in practice? In systems using microservice architecture, we use message queues to help services communicate with each other asynchronously. Service A can finish its job and send a message queue to let service B know and process it, without having to wait for service B to finish. Suppose, I have a website that allows users to download links from mu*vl, wrongly, from Youtube, I will have the following parts: Web service: Is a producer. Receive information (YouTube url) from the user, put this information into the message queue Processing Service: Both a consumer and a producer. This service reads the Youtube url from the message queue, starts downloading the file and re-encoding it, saving it to the server. After encoding, it puts the url of the encoded file into the message queue Uploading Service: When it receives a message from the processing server, it will upload those videos to Google Drive etc In fact, message queue solves many difficult problems in the system: Guaranteed duration/recovery: Because the message has been saved in the queue, when a service is being processed but crashes or has an error, we don't have to worry about losing data; because we can take messages from the queue and run them again. In a system with many consumers, if 1 or 2 consumers crash, it will not cause the entire system to crash System separation: Helps separate the system into many smaller services, each service only handles a certain function (For advantages and disadvantages, please review the article about microservices). Support for rate limit, batching: In many cases, the system processing capacity is limited (can only process 300 orders/s). With message queue, we can gradually take orders from the queue to process, without fear of losing them again. Or instead of sending an email each time taking a long time, we can wait for a message queue that requires sending 200 emails and then send it at once. Easy to scale the system: During peak hours, with many queries, we can increase the number of consumers to handle more messeges. When we don't need it, we can reduce it. Some points to note Of course, no technology is universal. When using any technology, we need to know the following things: Difficult to handle synchronously: Not all systems need a message queue. If service A calls service B, according to the synchronous mechanism, we need immediate processing results, it would be better to use Rest or gRPC. Make the system more complex: Adding a message queue will increase the complexity of the system. We need to clearly know which messages are sent to which queue, who sends and who receives. Debugging locally will also be more difficult Need to ensure message format: To send/receive, both producers and consumers must agree on the format. If you're not careful, if one side makes a change, the other side won't be able to read the data. Need Monitoring Queue: Need monitoring measures to ensure the amount of message queue is not too much, filling up the queue. The best queue is one that is always empty, or the number of messages in the queue does not increase (messages sent to the queue are all consumed). Some commonly used message queues today include: RabbitMQ Kafka (Kafka can do a lot more cool things than message queues) Amazon SQS MSMQ (Microsoft Message Queuing) RocketMQ ZeroMQ Conclusion That's it, in this article I shared about message queue, an indispensable part in large systems, systems using microservice architecture. When you are at the senior level, at the software architect level, during the work/interview process, you will definitely encounter this thing! If you have any experience you want to share, please post it in the comments section! Reference links: Rate this: Like this: Related
Ngồi ngẫm lại, từ hồi mới đi làm tới giờ đã được vài năm, mình cũng từng mắc khá nhiều sai lầm trong sự nghiệp . Mỗi sai lầm dù to hay nhỏ đều dạy cho mình khá nhiều điều. Do vậy, trong hôm này, mình sẽ chia về những sai lầm mà các bạn lập trình viên dễ mắc phải. Hi vọng chúng sẽ giúp con đường nghề nghiệp của bạn suôn sẻ và “trơn tru” hơn nhé. Cắm mặt vào code khi chưa rõ requirement Đây là sai lầm hay gặp nhất khi các bạn mới ra trường, mới đi làm dự án thật. Thông thường, chúng ta sẽ được nhận ticket/requirement từ phía PM hoặc Product Owner , sau đó bắt đầu code chức năng/module đó. Với những công ty outsource , đa phần các chức năng đã được làm rõ, requirement cũng đã được viết cẩn thận, chỉ việc code theo là được. Tuy nhiên, ở các công ty product/startup , đôi khi ta chỉ có design, requirement chưa rõ ràng, chưa đầy đủ các trường hợp. Lúc này, nhiều bạn chưa hiểu rõ mà cắm đầu vào code ngay . Hậu quả là sau khi bỏ cả tuần ra để code, nhưng thứ làm ra lại … không đúng yêu cầu của khách hàng, hoặc thiếu những case quan trọng, phải làm lại từ đầu. Bản thân mình cũng từng bị 1 lần như vậy . Do sếp đi du lịch 2 tuần, mình chỉ nhận yêu cầu mà không confirm lại, sau đó tự code. Đến lúc sếp về, demo cho sếp xem mới biết là … mình làm sai hoàn toàn , phải đập đi làm lại tận 69.96%. Do vậy, bài học rút ra là: Nếu đọc requirement có chỗ nào chưa hiểu, chưa rõ thì hãy thảo luận thật kĩ với BA hoặc Product Manager trước nhé. Đừng tự … đoán mò nhiều quá, đoán đúng thì không sao, đoán sai ý khách hàng/PM là sửa hơi bị phê đấy! Code … thả chó (cẩu thả), bất kề hậu quả Sai lầm này không chỉ gặp ở các bạn mới đi làm, mà lâu lâu một số anh lão làng cũng bị. Lý do khách quan có thể do dự án dí sát đít, yêu cầu đổi liên tục . Lý do chủ quan có thể là do … lười, do thiếu cẩn thận hoặc trình độ chưa đủ. Thói xấu này để lại nhiều hậu quả khá là tai hại: Code cẩu thả, nhiều lỗi sẽ làm chương trình bị nhiều lỗi, ảnh hưởng tới khách hàng/người dùng. Đồng nghiệp nhìn code cẩu thả sẽ đánh giá thấp trình độ, khả năng của chính người code Code cẩu thả sẽ rất khó bảo trì, mở rộng, để lại nhiều technical debt trong dự án, về lâu dài sẽ rất nguy hại Túm cái váy lại, code cẩu thả sẽ sướng cái tay bạn, nhưng sẽ làm khách hàng bực, đồng nghiệp chửu, cấp trên ghét, hệ thống te tua… Một khi đã bị đồng nghiệp/cấp trên đánh giá thấp về khả năng kĩ thuật là coi như bạn … khỏi có cơ hội thăng tiến gì luôn. Do vậy, nhớ code cẩn thận, code có tâm , vừa code vừa tìm cách nâng cao trình độ bản thân mình nhé! Chê bai hoặc coi thường dự án hiện tại, coi thường team Sai lầm này thường gặp ở những bạn code giỏi ( hoặc tưởng mình giỏi ), hoặc tốt nghiệp trường ngon, có tiếng. Bản thân mình mới ra trường cũng gặp trình trạng này. Vào công ty mới, mình luôn than thầm: dự án gì dùng công nghệ cũ chán òm , hoặc mấy ông developer khác gà vãi, chẳng học hỏi được gì . Thật ra, dự án nào cũng có cái hay riêng của nó! Công nghệ có thể không mới, nhưng các bạn có thể học được qui trình làm việc, học được business của dự án đó. Các ông developer trong team có thể không có giải thưởng ACM này nọ , có thể không bá đạo về thuật toán , nhưng họ biết cách code để gặp ít lỗi, biết cách thương lượng, giao tiếp với PM/BA. Đấy, quan trọng là bạn có chịu nhìn ra cái hay, cái tốt để học hay không thôi. Chưa kể, nếu bạn lúc nào cũng tỏ ra khinh thường team, khinh thường người khác, trước sau gì bạn cũng bị khinh thường lại, bị ghét lại thôi. Nhớ nhé, nếu thật sự bạn giỏi hơn người khác, thay vì suốt ngày khinh thường chê bai, sao không thử giới thiệu công nghệ mới cho team, hoặc nâng cao trình độ của những bạn cùng team xem sao nhé. Không biết tính chuyện tương lai (chỉ biết nhìn lương) Sai lầm này không gây ra hậu quả gì to lớn trước mắt, nhưng về lâu về dài sẽ ảnh hưởng đến sự nghiệp, đến tương lai của bạn. Với những bạn mới ra trường, mình thường khuyên các bạn đừng quá chú trọng vào mức lương (6 triệu hay 8 triệu cũng không chênh lệch gì mấy); mà hãy nhìn vào môi trường làm việc. Thay vì quan tâm vài triệu chênh lệch, hãy nghĩ xem mình sẽ học được những gì ở công ty đó. Sau 1-2 năm nữa mình có giỏi hơn hay không, có lên vị trí cao hơn hay không? Công ty/ cấp trên có xứng đáng để mình gắn bó lâu dài hay không? Nếu chỉ lo nhìn vào mức lương, không quan tâm đến tương lại, bạn sẽ dễ … dậm chân tại chỗ. Nói đâu xa, lương chạy Grab (10-15 triệu/tháng) còn cao hơn sinh viên IT mới ra trường nhiều. Tuy vậy, nếu bạn chạy Grab 3-4 năm, liệu bạn lương có bằng mấy ông senior dev lương 3-4 năm kinh nghiệm không?? Nhớ nhé, đừng vì vài triệu trước mắt, mà hãy nghĩ tới… vài chục triệu mình kiếm được sau 2-3 năm nữa nhé! Tạm kết Trong bài này, mình đã chia sẻ về những sai lầm mà các bạn sinh viên/lập trình viên mới ra trường hay mắc phải. Bản thân mình cũng từng mắc phải không ít , nên nếu các bạn có … lỡ dính tí chút thì cũng không có gì đâu. Quan trọng là biết sửa sai, biết cải thiện là được. Còn bạn thì sao, bạn đã từng mắc phải những sai lầm gì chưa, hãy chia sẻ cho mọi người cùng biết trong mục comment nhé!. Bonus : Bạn nào muốn xem vlog với khuôn mặt đẹp trai của mình thì xem clip dưới nhé. Nhớ ghé bit.ly/codedaotube để subscribe cho mình nữa nha. Rate this: Like this: Related
Thinking back, since I first started working until now for a few years, I have made quite a few mistakes in my career. Every mistake, big or small, teaches me many things. Therefore, today, I will share about the mistakes that programmers easily make. Hopefully they will help your career path go smoother and smoother. Immersing yourself in code when the requirements are unclear. This is the most common mistake when you first graduate or start working on a real project. Normally, we will receive a ticket/requirement from the PM or Product Owner, then start coding that function/module. With outsourcing companies, most of the functions have been clarified, the requirements have also been carefully written, just need to code according to it. However, in product/startup companies, sometimes we only have unclear designs and requirements, and not enough cases. At this time, many of you do not understand clearly and start coding right away. The consequence is that after spending a whole week coding, what comes out... does not meet the customer's requirements, or important cases are missing, so we have to start over. I myself had the same experience once. Because my boss was traveling for 2 weeks, I only received the request without confirming it, then coded it myself. When the boss came home and showed the demo to the boss, he realized that... I did it completely wrong, having to redo it over and over again to 69.96%. Therefore, the lesson learned is: If there is anything you do not understand or are not clear about when reading the requirements, please discuss carefully with the BA or Product Manager first. Don't... guess too much. If you guess correctly, it's okay. If you guess incorrectly what the customer/PM means, it's a bit of a shame to correct it! Code ... letting the dog loose (negligent), regardless of consequences This mistake is not only made by new workers, but also occasionally by some veterans. The objective reason could be that the project is close to the bottom and requires constant changes. Subjective reasons can be due to... laziness, lack of care or insufficient qualifications. This bad habit has many quite harmful consequences: Sloppy code with many errors will cause the program to have many errors, affecting customers/users. Colleagues looking at sloppy code will underestimate the qualifications and abilities of the coder himself Sloppy code will be difficult to maintain and expand, leaving a lot of technical debt in the project, which in the long run will be very harmful. Holding your skirt together, sloppy code will make you happy, but will make customers angry, colleagues hate you, superiors hate you, the system is outdated... Once you have been underestimated by your colleagues/superiors for your technical ability. Technique means you... don't have any chance of advancement. Therefore, remember to code carefully, code mindfully, code while looking for ways to improve your own skills! Criticizing or looking down on the current project, looking down on the team This mistake is often made by people who are good at coding (or think they are good at it), or graduated from a good, famous school. I myself just graduated from school and encountered this situation. When I enter a new company, I always complain to myself: any project using old technology is boring, or the other developers are so stupid that they can't learn anything. Actually, every project has its own beauty! The technology may not be new, but you can learn the working process and business of that project. The developers in the team may not have this or that ACM award, may not be the best at algorithms, but they know how to code to encounter few errors, know how to negotiate and communicate with PM/BA. See, the important thing is whether you can see the good things and the good things to learn or not. Not to mention, if you always show contempt for the team and others, sooner or later you will be despised and hated in return. Remember, if you are truly better than others, instead of always being contemptuous and criticizing, why not try introducing new technology to the team, or improving the level of your teammates. Not knowing how to think about the future (only looking at salary) This mistake does not cause any major consequences in the immediate future, but in the long run it will affect your career and your future. For those who have just graduated, I often advise you not to focus too much on salary (6 million or 8 million is not much difference); but look at the working environment. Instead of worrying about the difference of a few million, think about what you will learn at that company. After 1-2 years, will I be better or not, will I get to a higher position? Is the company/supervisor worthy of my long-term commitment? If you only worry about your salary and don't care about the future, you will easily... stay in place. Needless to say, the salary for running Grab (10-15 million/month) is much higher than that of a new IT graduate. However, if you run Grab for 3-4 years, will your salary be the same as a senior dev with 3-4 years of experience?? Remember, don't just think about the few million in front of you, but think about... the tens of millions you can earn in 2-3 years! Conclusion In this article, I shared about the mistakes that students/newly graduated programmers often make. I myself have had many problems, so if you... accidentally get a little stuck, it's okay. It's important to know how to correct mistakes and improve. What about you, have you ever made any mistakes? Please share with everyone in the comment section! Bonus: If you want to see a vlog with my handsome face, watch the clip below. Remember to visit bit.ly/codedaotube to subscribe to me too. Rate this: Like this: Related
Bên cạnh việc đọc sách kĩ thuật , lâu lâu anh em dev chúng mình nên kiếm sách văn học, sách kinh doanh, …. Vừa đọc để giải trí, vừa giúp con người trở nên chững chạc và “sâu sắc” hơn luôn. Do vậy, hôm nay Code Dạo đổi gió, review sơ một số tiểu thuyết cho các anh em đọc nhe. Tiểu thuyết thì mình đọc cũng không quá nhiều, nhưng những cuốn mình đã đọc thấy hay thì mình thường kiếm sách của cùng tác giả đọc cho hết bộ. Kì này, mình review sơ cho bà con về sách của Haruki Murakami nhé! Sơ sơ về Haruki Murakami và sách của ông Wiki có khá rõ thông tin lý lịch về ông rồi nên mình cũng không nhắc lại, các bạn vào đọc nhen Sách của Murakami khá hay và đọc rất cuốn. Nội dung truyện đa phần về tình yêu, quan hệ giữa người với người, hành trình đi tìm kiếm bản thân. Giọng văn của ông lạ lạ hay hay, đôi khi ma mị, đôi khi lại khá xúc động. Mô tả bằng lời thì có vẻ khó, nhưng các bạn thử đọc một truyện ngắn của ông là sẽ cảm nhận được ngay: Chào buổi sáng, em – cô gái 100% hoàn hảo dành cho tôi . (Truyện ngắn này khá nổi tiếng, đến mức nhiều fan làm phim về nó luôn) Nói thật, mỗi tiểu thuyết/truyện ngắn của Haruki Murakami nếu muốn review chắc phải viết tới tận 1 bài dài . Sách của Haruki hơi lan man, khó tóm tắt, phải tự đọc mới thấm được cái hay của nó. Do phạm vi bài viết ngắn nên mình chỉ tóm tắt sơ, chêm nhẹ vài dòng review của mình thui. Các bạn fan Murakami có đọc qua thì thông cảm nhe :)) Rừng Na Uy Đây là cuốn sách nổi tiếng nhất của Murakami (nhất là ở Nhật và Việt Nam), đến mức có cả phim về nó luôn. Sách mình đọc từ hồi lớp 12, do nghe đồn có cảnh nóng gì gì đó nên tò mò đọc thử (ngại quá). Đọc gần nửa cuốn rồi mới thấy có xíu cảnh nóng, haizz. Về sau lớn đọc lại, mình thấy cả cuốn sách cảnh nóng thì ít, còn lại nội dung cứ buồn buồn, man mác. Chắc hồi đó chưa đọc nhiều nên chưa cảm được cái hay trong văn của Haruki. Đánh giá : 7/10 Phía nam biên giới, phía tây mặt trời Cuốn này thì mình đọc cách đây tầm 3 năm. Nội dung sách có thể túm lại trong 1 câu: Thanh niên có vợ gặp lại crush cũ thuở nhỏ, băn khoăn có nên bỏ vợ chạy theo tình yêu xưa. Không khí trong cuốn này đỡ u ám hơn rừng Na Uy. Mang tiếng là tiểu thuyết tình cảm nhưng đọc không thấy nói quá nhiều đến tình yêu, mà chủ yếu là về nội tâm, dằn vặt của bác nam chính nhiều hơn. Đánh giá : 7/10 Kafka bên bờ biển Đây là một trong những cuốn sách mà mình cảm thấy thật sự hay của Haruki Murakami, có lẽ vì nó không phải tiểu thuyết tình cảm, mà thiên hướng về phiêu lưu/fantasy nhiều hơn. Chuyện tách làm 2 phần, chương lẻ kể về cậu nhóc Kafka 15 tuổi bỏ nhà đi bụi, chương chẵn kể về ông cụ Nakata cũng rời nhà phiêu du vì nhiều hoàn cảnh. Hai con người tưởng chừng không liên quan nhưng số phận lại cho họ gặp nhau. Haruki Murakami viết những đoạn phiêu lưu, ma mị đọc rất hay và cuốn hút. Truyện có đôi chỗ đọc hơi lạ hoặc khó hiểu, làm ta phải đọc lại mới ngấm được. Đánh giá : 8.5/10 Tôi nói gì khi nói về chạy bộ Khác với những sách còn lại, đây là một cuốn tự truyện của Haruki. Với giọng văn ngắn gọn, mộc mạc, ông kể về quá trình tập chạy Marathon của mình, những trải nghiệm, suy nghĩ của bản thân trên đường chạy. Sách khá ngắn, đọc hay và thấm, các bạn có thể đọc xong trong vòng 1 buổi chiều. Sau đó bạn có thể đọc tại 2,3 lần để nghiềm ngẫm những trải nghiệm của tác giả. Có lẽ sau này, mình cũng sẽ bắt chước viết 1 cuốn: “Tôi nói gì khi nói về lập trình”, chia sẻ về buồn vui trong nghề cho các bạn. Đánh giá : 8.5/10 1Q84 Theo mình, đây là cuốn hay nhất của Murakami mà mình từng đọc . Mình đọc bản ebook nên không biết sách dày chừng nào, tới lúc nhìn sách giấy mới biết là dày cui, mà còn tận 3 cuốn lận. Do truyện quá hay và cuốn hút nên đọc hết mà mình vẫn còn thấy… chưa đã, vẫn còn thèm. Truyện mang hơi hướng li kì, nửa thật nửa ảo, về hành trình đến với nhau của Aomame và Tengo. Dàn nhân vật khá nhiều, ai cũng có nét riêng. Tình tiết của truyện biến áo liên tục nên đảm bảo các bạn cầm lên sẽ khó mà bỏ xuống được . Đánh giá : 9/10 Một số sách khác Nói chung, do hâm mộ Haruki Murakami nên sách nào của ông xuất bản ở VN mình cũng đọc qua 1 lần cho biết. Còn 1 số cuốn khác nhưng mình đọc không thấy “thấm”, không để lại ấn tượng nhiều nên không viết review. Sách của ông phần lớn đã có tiếng Việt, các bạn có thể xem thử nha: Còn bạn thì sao, các bạn đọc sách/ thích sách nào của Haruki Murakami không? Hãy chia sẻ trải nghiệm trong comment phía dưới nha! Rate this: Like this: Related
Besides reading technical books, from time to time we developers should look for literature books, business books, etc. Reading is both entertaining and helps people become more mature and "deep" at the same time. Therefore, today Code Dang changes the mood, briefly reviewing some novels for you guys to read. I don't read too many novels, but when I read books that are good, I often look for books by the same author and read them all. This time, I will give you a brief review of Haruki Murakami's books! A brief overview of Haruki Murakami and his books. Wiki already has quite clear background information about him, so I won't repeat it. Please go read it. Murakami's books are quite good and very interesting to read. The story's content is mostly about love, relationships between people, and the journey to find oneself. His writing voice is strange and beautiful, sometimes magical, sometimes quite emotional. It seems difficult to describe in words, but try reading one of his short stories and you will immediately feel it: Good morning, you - the 100% perfect girl for me. (This short story is quite famous, to the point where many fans made movies about it) Honestly, if you want to review every novel/short story by Haruki Murakami, you'd have to write a long article. Haruki's book is a bit rambling, difficult to summarize, you have to read it yourself to absorb its beauty. Because the scope of the article is short, I will only briefly summarize and lightly add a few lines of my review. If you're a Murakami fan who has read it, please understand :)) Norwegian Wood This is Murakami's most famous book (especially in Japan and Vietnam), so much so that there is even a movie about it. I read the book when I was in 12th grade. I heard rumors of some hot scenes so I was curious and tried it (too shy). After reading almost half of the book, I saw a few hot scenes, sigh. Later when I re-read it as an adult, I found that the whole book had very few hot scenes, but the rest of the content was sad and sad. Maybe I didn't read much at that time so I didn't feel the beauty of Haruki's writing. Rating: 7/10 South of the border, west of the sun I read this book about 3 years ago. The content of the book can be summed up in one sentence: A married young man reunites with his old childhood crush, wondering whether he should leave his wife and run after his old love. The atmosphere in this book is less gloomy than the Norwegian forest. Although it is known as a romantic novel, when reading it, it does not talk too much about love, but mainly about the inner feelings and torments of the male lead. Rating: 7/10 Kafka on the Shore This is one of the books that I feel is really good by Haruki Murakami, perhaps because it is not a romance novel, but more oriented towards adventure/fantasy. The story is divided into two parts, the odd chapter tells about the 15-year-old boy Kafka who ran away from home, and the even chapter tells about old man Nakata who also left home to wander due to many circumstances. Two seemingly unrelated people, but fate let them meet. Haruki Murakami writes adventurous, magical passages that are very good and engaging to read. There are some parts of the story that are a bit strange or difficult to understand, making you have to read it again to understand it. Rating: 8.5/10 What I talk about when I talk about running Different from the rest of the books, this is an autobiography of Haruki. With a concise, simple voice, he talked about his Marathon training process, his experiences and thoughts on the run. The book is quite short, interesting and absorbing, you can finish reading it in an afternoon. Then you can read it 2 or 3 times to contemplate the author's experiences. Perhaps in the future, I will also write a book: "What I talk about when talking about programming", sharing with you the joys and sorrows of the profession. Rating: 8.5/10 1Q84 In my opinion, this is the best book by Murakami that I have ever read. I read the ebook version so I didn't know how thick the book was. It wasn't until I looked at the paper book that I realized it was thick, and there were only 3 books. Because the story is so good and attractive, after reading it all I still feel... not yet, still craving it. The story is somewhat thrilling, half real and half virtual, about Aomame and Tengo's journey to each other. The cast of characters is quite large, everyone has their own personality. The story's plot changes continuously, so make sure you pick it up and it will be hard to put it down. Rating: 9/10 Some other books In general, because I admire Haruki Murakami, I read every book of his published in Vietnam at least once. There are a number of other books, but I didn't read them well and didn't leave much of an impression, so I didn't write a review. Most of his books are available in Vietnamese, you can check them out: What about you, have you read/like any books by Haruki Murakami? Please share your experience in the comments below! Rate this: Like this: Related
Nếu chăm chỉ đọc blog của mấy developer giỏi và nổi tiếng (như Uncle Bob, Martin Fowler, John Skeet), các bạn sẽ thấy họ có rất nhiều guideline để viết code cho tốt: Sử dụng nguyên lý SOLID để code tách bạch, rõ ràng, dễ sửa chữa Sử dụng Seperation of Concern và các mô hình phổ biến như MVC, MVVM để phân tách code thành nhiều thành phần nhỏ, dễ quản lý Áp dụng design pattern để giải quyết các vấn đề trong code Viết code phải viết thêm test để đảm bảo code chạy đúng Làm và áp dụng theo những guideline này, chúng ta có thể có code… đúng chuẩn (có thể thôi nhé). Tuy nhiên, trên thực tế, đa phần code trong các dự án đều khá … tởm . Code không có architecture rõ ràng, không có design pattern, viết cẩu thả. Nhiều khi đọc code xong, ta chỉ muốn đập đi xây lại , viết lại cho… đúng chuẩn. Tuy nhiên, đã bao giờ bạn tự hỏi: Liệu viết code SOLID, chuẩn này chuẩn kia, DI/IoC đồ có thật sự làm code tốt lên hay không? Liệu ta có nên đảm bảo code viết ra phải cực kì hoàn hảo, phải có trật tự? Thế nào mới là code tốt, code chuẩn? Mỗi người sẽ có 1 định nghĩa riêng, nhưng hẳn nhiều người đồng ý với mình, Code Tốt có những đặc điểm sau (tính theo độ quan trọng): Chạy đúng như yêu cầu functional và non-functionnal Code không có bug hoặc ít bug so với toàn bộ dự án Code sạch (clean) , tên hàm tên biến tách bạch rõ ràng ngắn gọn. Code có structure rõ ràng, đơn giản. Dễ đọc dễ hiểu, dễ tìm bug, dễ bảo trì và mở rộng Đôi khi, chúng ta mải lo lắng về viết code phải dùng chuẩn này chuẩn nọ, phải đúng pattern nọ kia, mà quên mất điều quan trọng nhất: Code phải chạy đúng. Code có đẹp đến mấy, có structure tốt đến mấy mà chạy sai, chạy quá chậm, chạy bị lỗi cũng vứt. Khi Code Chuẩn chưa chắc đã là Code Tốt Để cảm nhận được điều này, bạn hãy thử đọc đoạn code Hello World dưới đây Đoạn code này … khá chuẩn, có sử dụng Dependency Injection , tuy nhiên, code dài lòng thòng lê thê , đọc để hiểu flow chương trình cũng khá là mệt não. Gần đây, trong cộng đồng front-end cũng có nhiều bình luận tương tự về Redux . Structure của Redux khiến code được phân tách thành nhiều thành phần nhỏ , dễ debug hơn. Nhưng bù lại, để làm một chức năng đơn giản các bạn sẽ phải đụng đến khoảng 5, 6 file từ view, action, reducer, service (để sửa cũng vậy luôn). Với những ứng dụng lớn, nhiều component với flow phức tạp, dùng Redux khá phù hợp. Nhưng với những ứng dụng đơn giản, flow chỉ thêm bớt xóa sửa, áp dụng Redux chỉ tổ tốn thời gian (thời gian học và code) của lập trình viên . Các bạn thấy đó, code lúc này có cấu trúc rõ ràng chuẩn mực, nhưng đọc code mất thời gian, mở rộng chỉnh sửa code cũng mất thời gian nốt. Vậy anh developer phải làm sao? Là một developer giỏi, các bạn sẽ nhận ra rằng: Đôi khi Code Chuẩn chưa hẳn đã là Code Tốt . Nếu chưa tin lời Code Dạo chém gió, bạn có thể xem thêm bài Too Clean của Uncle Bob (Tác giả cuốn Clean Code) . Theo ông, code không cần phải quá clean. Viết code clean là cần thiết, nhưng đôi chỗ ta có thể viết code không chuẩn để dễ xử lý vấn đề hơn, dễ mở rộng thay đổi hơn Nhắc lại câu nói ở đầu bài viết: Code bạn viết ra sẽ méo bao giờ hoàn hảo hoặc hoàn toàn clean đâu. Nhưng như vậy cũng không sao. Nhiều khi, ta sẽ phải chấp nhận viết code.. không chuẩn , để giúp code gọn hơn, dễ đọc dễ sửa hơn nhé. Note : Nếu các bạn cảm thấy nội dung trong bài hơi trừu tượng hoặc khó hiểu, hãy thử kinh qua vài dự án, từ bảo trì cho tới lúc code từ đầu, sau đó quay lại đọc nhé. Lúc đó bạn sẽ thấm điều mình muốn chia sẻ nhen. Rate this: Like this: Related
If you diligently read the blogs of some good and famous developers (like Uncle Bob, Martin Fowler, John Skeet), you will see that they have many guidelines for writing good code: Use the SOLID principle to make code separate, clear, and easy to repair Use Seperation of Concern and popular models such as MVC, MVVM to separate code into many small, easy-to-manage components Apply design patterns to solve problems in code When writing code, you must write additional tests to ensure the code runs correctly By following and applying these guidelines, we can have code... that is standard (maybe). However, in reality, most of the code in projects is quite... disgusting. The code has no clear architecture, no design patterns, and is sloppily written. Many times, after reading the code, we just want to destroy it, rebuild it, rewrite it... to get it right. However, have you ever wondered: Does writing SOLID code, this standard, that standard, DI/IoC diagram really make the code better? Should we make sure the code we write is absolutely perfect and orderly? What is good code, standard code? Each person will have their own definition, but many people will agree with me, Good Code has the following characteristics (in order of importance): Runs exactly as required functional and non-functional The code has no bugs or few bugs compared to the entire project The code is clean, function names and variable names are clearly and concisely separated. The code has a clear and simple structure. Easy to read, easy to understand, easy to find bugs, easy to maintain and expand Sometimes, we are so busy worrying about writing code that must use this standard and that standard, must follow this and that pattern, that we forget the most important thing: The code must run correctly. No matter how beautiful the code is, how well structured it is, if it runs wrong, runs too slow, or runs with errors, it's thrown away. When Standard Code is not necessarily Good Code To feel this, try reading the Hello World code below This code is... quite standard, uses Dependency Injection, however, the code is long and lengthy, read Understanding the program flow is quite tiring. Recently, in the front-end community there have been many similar comments about Redux. Redux's structure causes the code to be separated into many small components, making it easier to debug. But in return, to do a simple function you will have to touch about 5, 6 files from view, action, reducer, service (the same goes for editing). For large applications, many components with complex flows, using Redux is quite suitable. But with simple applications, flow only adds, removes, and edits, applying Redux only wastes time (learning and coding time) of the programmer. You see, the code now has a clear and standard structure, but reading the code takes time, and expanding and editing the code also takes time. So what should the developer do? As a good developer, you will realize that: Sometimes Standard Code is not necessarily Good Code. If you don't believe Code Dao's gossip, you can read the article Too Clean by Uncle Bob (Author of Clean Code). According to him, code does not need to be too clean. Writing clean code is necessary, but sometimes we can write non-standard code to make it easier to handle problems and make changes easier. Recall the statement at the beginning of the article: The code you write will never be perfect. or completely clean. But that's okay. Many times, we will have to accept writing non-standard code, to make the code more compact, easier to read and easier to edit. Note: If you feel that the content in the article is a bit abstract or difficult to understand, try going through a few projects, from maintenance to coding from scratch, then come back and read. Then you will understand what you want to share. Rate this: Like this: Related
Hãy tưởng tượng, team của bạn đang cần xử lý 1 tình huống như thế này: Tình huống : Application của công ty đang chạy ổn định, nhưng người dùng phàn nàn UI quá rắc rối, do đó chúng ta phải re-design lại 1 số trang Sau khi đã có desisgn mới, quá trình implement các trang này khá lâu. Để PM và QA có thể test được, ta phải implement các trang này, kết nối với data thật hoặc data ở môi trường Staging . Yêu cầu : Sau khi PM xác nhận, QA đã test xong, ta sẽ cho 1 số beta user dùng thử UI mới trước, còn lại vẫn dùng UI cũ. Sau một thời gian, ta sẽ cho toàn bộ người dùng sử dụng UI mới Trong quá trình implement các trang này, ta vẫn phải bảo trì, sửa đổi và nâng cấp application cũ. Một trong những cách đơn giản nhất là tạo 1 branch riêng để implement việc re-design này. Sau đó, khi implement xong thì ta có thể merge vào branch chính. Tuy nhiên, với những thay đổi lớn như vậy, việc merge code/setup về lâu dài sẽ khá phức tạp . Ta cũng khó mà cho beta user dùng thử design mới , vì họ không thể vào môi trường staging. Do vậy, ta có 1 cách hay và hiệu quả hơn nhiều, đó là dùng feature flag . Feature Flag là cái chi chi? Nói đơn giản, Feature Flag là 1 kĩ thuật cho phép developer thay đổi cách hoạt động của ứng dụng, mà không cần phải sửa code (ngạc nhiên chưa). Nghe cao siêu như vậy chứ kĩ thuật này không hề phức tạp chút nào. Ta sẽ sử dụng một biến, xem nó như cờ (flag) để quyết định luồng chạy của ứng dụng. Code ở đây cũng khá đơn giản thôi, dựa vào giá trị SHOW_NEW_UI là true hay false mà ta sẽ hiển thị UI cũ hay UI mới! Tới đây hẳn bạn đọc sẽ thắc mắc: Ủa nếu vậy muốn thay đổi hoạt động của ứng dụng, ta cũng phải sửa code để thay đổi biến SHOW_NEW_UI sang false hoặc true mà ?? Thằng Code Dạo lừa mình à?? Hihi, thật ra mình không lừa các bạn đâu. Để làm được chuyện đó, chúng ta sẽ không lưu giá trị của feature flag SHOW_NEW_UI trong code , mà lưu ở … chỗ khác cơ! Lưu trữ feature flag ở đâu? Feature flag được dùng để thay đổi cách hoạt động của một chương trình. Do vậy, để có thể dùng feature-flag hiệu quả, ta phải tìm cách thay đổi giá trị của Flag đó, mà không cần thay đổi code . Do vậy, feature flag thường được lưu trữ như sau: Lưu trữ trong code, mỗi khi sửa phải deploy lại code Lưu trữ trong configuration file (web.config trong C#, .env trong NodeJS) hoặc biến môi trường . Khi cần sửa chỉ cần sửa config và chạy lại Lưu trữ trong 1 số service bên ngoài, developer/PM có thể vào và bật/tắt flag này Lúc này, feature flag có thể được dùng như sau: Ứng dụng của Feature Flag Các bạn thấy không, Feature Flag chỉ là 1 kĩ thuật đơn giản, nhưng ta có thể làm được khá nhiều hay ho với nó: Code chưa hoàn chỉnh ta cũng có thể deploy được, chỉ cần set feature flag thành false là code đó sẽ không chạy Set feature flag khác nhau ở mỗi môi trường khác nhau. Ví dụ flag đó là true ở môi trường test và stage, cho PM và QA có thể tha hồ test, không ảnh hưởng đến môi trường production. Khi gắn feature flag, ta nên truyền thêm context và thông tin người dùng . Do vậy, ta có thể show tính năng mới cho beta user, cho 1 số người dùng được chỉ định. Một số kinh nghiệm khi dùng feature-flag Ngoài ra, mình còn 1 số kinh nghiệm nho nhỏ khi dùng feature flag Đặt tên flag dễ hiểu : Tên flag cũng như tên biến vậy, các bạn nên viết rõ ràng flag này dùng cho chức năng gì, chứ đừng ghi “flagA”, “flagB” sau này kiểm tra lại mệt lắm đấy Gắn vô nhớ gỡ : Khi thêm 1 flag vào code, các bạn nên tạo ticket/note lại để gỡ flag đó ra khỏi code sau này. Ví dụ các bạn đã code xong chức năng mới, thay vì để flag đó true hoài thì hãy … xoá luôn flag đó, sửa lại code là được Hạn chế độ phức tạp: Đôi khi, flow của ứng dụng sẽ khá phức tạp. Nếu dùng Feature Flag, bạn sẽ thêm if/else vào nên càng phức tạp hơn. Để hạn chế, bạn nên code chức năng mới trong hàm/mobile mới, sau đó dùng flag để show/UI những UI gọi code mới đó Cho phép PM/QA sửa feature-flag : Một số tool quản lý feature-flag có kèm theo dashboard, phân quyền, cho phép ta phân quyền những người được đổi flag. Theo kinh nghiệm của mình cứ cho PM/QA và đổi flag khi cần để họ test. Nếu ổn thì PM cũng có thể bật flag trên Production để relase 1 tính năng luôn. Tạm kết Bài viết này dùng khá nhiều thuật ngữ kĩ thuật, do đó có đoạn nào chưa rõ ràng, các bạn cứ comment để mình giải thích nhé! Bản thân bạn và team có dùng feature-flag không? Bạn có kinh nghiệm gì hay ho với nó không? Hãy chia sẽ trong mục comment nha! Tìm hiểu thêm: Rate this: Like this: Related
Imagine, your team needs to handle a situation like this: Situation: The company's application is running stably, but users complain that the UI is too complicated, so we have to redesign some pages After having a new website, the process of implementing these pages is quite long. For PM and QA to be able to test, we must implement these pages, connect to real data or data in the Staging environment. Requirements: After PM confirms and QA has finished testing, we will let some beta users try the new UI first, the rest will still use the old UI. After a while, we will let all users use the new UI During the implementation of these pages, we still have to maintain, modify and upgrade the old application. One of the simplest ways is to create a separate branch to implement this re-design. Then, when the implementation is complete, we can merge it into the main branch. However, with such big changes, merging code/setup will be quite complicated in the long run. It is also difficult for beta users to try out the new design, because they cannot enter the staging environment. Therefore, we have a better and much more effective way, which is to use feature flags. What is a Feature Flag? Simply put, Feature Flag is a technique that allows developers to change the way an application works, without having to change the code (surprise). As advanced as it sounds, this technique is not complicated at all. We will use a variable, think of it as a flag, to determine the flow of the application. The code here is quite simple, depending on whether the SHOW_NEW_UI value is true or false, we will display the old UI or the new UI! At this point, readers will probably wonder: If so, if we want to change the application's operation, we also have to edit the code to change the SHOW_NEW_UI variable to false or true?? Did Code Duo cheat on me?? Hihi, actually I'm not lying to you. To do that, we will not save the value of the feature flag SHOW_NEW_UI in the code, but save it... somewhere else! Where to store feature flags? Feature flags are used to change the way a program behaves. Therefore, to be able to use feature-flag effectively, we must find a way to change the value of that Flag, without changing the code. Therefore, feature flags are often stored as follows: Stored in code, every time you edit, you have to redeploy the code Store in configuration file (web.config in C#, .env in NodeJS) or environment variable. When you need to fix it, just edit the config and run again Stored in some external service, the developer/PM can go in and turn this flag on/off At this point, the feature flag can be used as follows: Applications of Feature Flag You see, Feature Flag is just a simple technique, but we can do a lot of cool things with it: We can still deploy the incomplete code, just set the feature flag to false and the code will not run Set feature flags differently in different environments. For example, that flag is true in the test and stage environments, allowing PM and QA to freely test, without affecting the production environment. When attaching a feature flag, we should pass additional context and user information. Therefore, we can show new features to beta users, to a specified number of users. Some experience when using feature-flag In addition, I have some small experience when using feature flag Make flag names easy to understand: Flag names are the same as variable names, you should clearly write what function this flag is used for, not "flagA", "flagB" it will be tiring to check later. Attach to remove memory: When adding a flag to the code, you should create a ticket/note to remove that flag from the code later. For example, if you have finished coding a new function, instead of leaving that flag true all the time, just... delete that flag and revise the code. Limit complexity: Sometimes, the flow of the application will be quite complex. If you use Feature Flag, you will add if/else so it becomes even more complicated. To limit, you should code new functions in new function/mobile, then use flags to show/UI the UI calling that new code. Allow PM/QA to edit feature-flag: Some feature-flag management tools come with a dashboard and permissions, allowing you to assign permissions to who can change the flag. According to my experience, just let PM/QA and change the flag when needed so they can test. If it's okay, the PM can also turn on the flag on Production to relase a feature. Conclusion This article uses a lot of technical terms, so if there are any unclear parts, please comment so I can explain! Do you and your team use feature-flags? Do you have any good experiences with it? Please share in the comments section! Find out more: Rate this: Like this: Related
Đã bao giờ bạn tò mò về đội ngũ developer và designer phía sau những tựa game danh tiếng như Diablo, The Witcher, Dragon Age ? Đã bao giờ bạn thắc mắc quá trình lập trình game có gian nan, khó khăn như viết code, lập trình phần mềm? Mình thì có đấy! Ngày xửa ngày xưa, trước khi vào Đại Học, mình ước mơ theo ngành CNTT đơn giản chỉ là vì mình … mê chơi game, nghĩ là học CNTT sau này sẽ lập trình ra nhiều game hay ho xịn sò. Thế rồi, dòng đời đưa đẩy, mình ra trường đi làm web , không dính dáng gì tới game cả (một phần do ngành lập trình game ở VN cũng chưa quá phát triển). Tuy vậy, lâu lâu mình cũng tò mò không biết mấy ông game developer có khác gì software developer tụi mình không. Cũng may, duyên số run rủi nên mình được giới thiệu cuốn Blood, Sweat, and Pixels ; giải đáp hết những điều mình tò mò. Đọc thấy sách khá hay và hấp dẫn nên mình review lại cho bà con đọc chung nhe. Câu chuyện đằng sau cuốn sách Bản thân mình vốn không chơi game nhiều (vì Mac không chơi được nhiều game), nhưng rất thích xem review game và hóng drama các game nổi tiếng. Thế rồi, sau vụ siêu phẩm Anthem của BioWare thành … bom xịt (vì cách chơi nhàm chán, thiếu content …), Kotaku – Website về game review nổi tiếng, có viết nguyên 1 bài thiệt dài về lý do nó xịt: How BioWare’s Anthem Gone Wrong . Nguyên nhân cũng như bao dự án phần mềm thất bại khác: Yêu cầu và design liên tục thay đổi Sức ép từ phía khách hàng, từ publisher Dev phải OT chạy vắt mông lên cổ để kịp ngày release => Hậu quả sản phẩm ra mắt bị từa lưa bug , phải cắt xén bớt content Đọc comment trong bài, mình thấy có một anh đẹp trai bảo là: Nếu muốn biết thêm về quá trình phát triển game, nên tìm đọc cuốn này Blood, Sweat, and Pixels . Sách cũng không quá dài, đọc tầm 2-3 buổi là xong, nhưng quả thật nội dung không làm mình thất vọng . Tóm tắt Tác giả sách là Jason Schreier, một anh phóng viên của Kotaku – chuyên trang review game khá nổi tiếng. Bìa sách là hình hai anh dev game áo xanh và một chị áo đỏ ngồi bên chỉ chỏ (có thể là tester hoặc game designer), cùng với danh sách những game được nhắc đến trong sách. Những tựa game được đề cập trong sách toàn là những tựa game nổi tiếng , có sức ảnh hưởng cao, như The Witcher 3, Diablo 3, Uncharted, Shovel Knight, Stardew Valley . Đọc cuốn sách, ta mới thấu hiểu nỗi khổ của dân lập trình viên game, mới thấp thía câu… mỗi nhà mỗi cảnh: Bạn sẽ ngạc nhiên khi biết rằng tác giả Stadew Valley bỏ hết 5 năm tuổi trẻ ngồi nhà code, được bạn gái nuôi ăn, để làm ra tựa game bán được hơn 3 triệu bản , mê hoặc nguyên một cộng đồng người chơi. Bạn sẽ toát mồ hôi khi biết phía sau thành công của Uncharted, Dragon Age, The Witcher 3 là những một team vài chục con người từ designer, programmer đến artist phải OT sml, làm việc ngày 10-12 tiếng , bỏ bê gia đình vợ con, để chạy deadline cho game ra mắt kịp ngày phát hành Bạn sẽ ngưỡng mộ khi thấy team Shovel Knight chỉ có vài người, làm ra được tựa game bán được hơn 2 triệu bản. Bán xong, họ vẫn miệt mài bỏ 2 năm công sức làm những bản cập nhật miễn phí cho người mua. Nhận xét Như mình đã nói ban đầu, sách khá ngắn (tầm 200 trang) nhưng nội dung không hề làm cho mình thất vọng. Tác giả vốn là nhà báo nên viết khá chắc tay. Ông chịu khó phỏng vấn nhiều người trong từng team để có cái nhìn rõ ràng hơn về quá trình làm game đó. Ở mỗi chương, bạn sẽ biết thêm về lịch sử studio làm ra game đó . Văn phong mạch lạc, dễ đọc, mỗi câu chuyện đều có nút thắt lẫn cao trào nên đọc rất cuốn, đảm bảo anh em đọc xong sẽ khó đặt xuống được. Bản thân mình cũng khá mê game, cũng từng chơi vài game được nhắc đến trong sách. Anh em dev, hay chơi game, đọc cuốn này chắc sẽ thấy hay. Các thuật ngữ về game, về lập trình cũng được tác giả giải thích khá rõ nên các bạn ngoại đạo cũng có thể đọc được. Đánh giá : 8.5/10. Điểm trừ duy nhất là sách … không có tấm ảnh nào , giá có thể hình game hoặc hình mấy ông developer xem chắc sẽ hay hơn. Tạm kết và đôi lời ngẫm nghĩ Nếu bạn là game developer, hoặc bạn định theo ngành game, đây là một cuốn sách chắc chắn bạn nên đọc . Ở Việt Nam, lập trình game đa phần là mobile, web game, dịch thuật phát hành game chứ không thấy làm game AAA như nước ngoài. Đọc xong, mình cảm thấy… chơi game quả thật sướng hơn làm game nhiều. Mình chơi một game chỉ tầm 20-40 tiếng, chê lên chê xuống; trong khi đó là sản phẩm cả năm trời của một tập thể vài chục con người. Mình cảm thấy tội tội, thấy trân trọng mấy anh dev game và những thứ họ làm ra hơn. Mà nghĩ lại, web developer như mình lâu lâu cũng phải OT, nhưng so với mấy ảnh vẫn còn sướng chán ! Rate this: Like this: Related
Have you ever been curious about the team of developers and designers behind famous games like Diablo, The Witcher, Dragon Age? Have you ever wondered whether the game programming process is as arduous and difficult as writing code or programming software? I do! Once upon a time, before going to university, I dreamed of pursuing an IT career simply because I... loved playing games, thinking that after studying IT, I would program many cool games. Then, life took its course, I graduated from school and went to work on the web, not having anything to do with games (partly because the game programming industry in Vietnam is not too developed yet). However, sometimes I'm curious whether game developers are any different from us software developers. Luckily, fate was so bad that I was introduced to the book Blood, Sweat, and Pixels; Answered all the questions I was curious about. I found the book quite interesting and interesting, so I reviewed it for everyone to read together. The story behind the book I personally don't play games much (because Macs can't play many games), but I really like watching game reviews and watching dramas of famous games. Then, after BioWare's blockbuster Anthem became... a flop (because of boring gameplay, lack of content...), Kotaku - a famous game review website, wrote a long article about why it failed: How BioWare's Anthem Gone Wrong . The reasons are the same as many other failed software projects: Requirements and designs are constantly changing Pressure from customers and publishers Dev has to run OT to keep up with the release date => As a result, the released product was riddled with bugs and had to cut content. Reading the comments in the article, I saw a handsome guy saying: If you want to know more about the game development process, you should read this book. Blood , Sweat, and Pixels . The book is not too long, it took about 2-3 reading sessions to finish, but the content really did not disappoint me. Summary The author of the book is Jason Schreier, a reporter for Kotaku - a famous game review site. The cover of the book is a picture of two game developers in blue shirts and a girl in red shirts sitting next to them pointing (could be testers or game designers), along with a list of games mentioned in the book. The games mentioned in the book are all famous and highly influential games, such as The Witcher 3, Diablo 3, Uncharted, Shovel Knight, Stardew Valley. Reading the book, we can understand the suffering of game programmers and understand the story... each home, each scene: You will be surprised to know that the author of Stadew Valley spent 5 years of his youth sitting at home coding, being supported by his girlfriend, to create a game that sold more than 3 million copies, captivating an entire community of players. You will sweat when you know that behind the success of Uncharted, Dragon Age, and The Witcher 3 is a team of dozens of people from designers, programmers to artists who have to work 10-12 hours a day, neglecting their families. wife and children, to meet deadlines for the game to be released on time You will admire when you see that the Shovel Knight team has only a few people, creating a game that has sold more than 2 million copies. After selling, they still diligently spent 2 years making free updates for buyers. Comments As I said initially, the book is quite short (about 200 pages) but the content did not disappoint me at all. The author is a journalist so he writes quite skillfully. He took the trouble to interview many people in each team to have a clearer view of the game making process. In each chapter, you will learn more about the history of the studio that made that game. The writing style is coherent, easy to read, each story has a twist and a climax, so it's a very engaging read, ensuring you'll have a hard time putting it down after reading it. I myself am quite passionate about games, and have played a few games mentioned in the book. If you are a dev or a gamer, reading this book will probably be interesting. Terminology about games and programming is also explained quite clearly by the author so non-believers can also read it. Rating: 8.5/10. The only downside is that the book... doesn't have any pictures, maybe it would be better if there were pictures of the game or some developers. Conclusion and a few thoughts If you are a game developer, or you plan to go into the game industry, this is a book you should definitely read. In Vietnam, game programming is mostly mobile, web game, translation and game publishing, but not AAA game making like abroad. After reading it, I felt... playing games is really much better than making games. I play a game for only about 20-40 hours, with ups and downs; Meanwhile, it is the year-long product of a group of several dozen people. I feel guilty and appreciate the game developers and the things they create more. Come to think of it, a web developer like me also has to work OT from time to time, but compared to those photos, it's still pretty cool! Rate this: Like this: Related
Hôm trước, mình có giới thiệu về JavaScript, đánh giá nó là một ngôn ngữ mạnh mẽ, đáng học. Một trong những cách học nhanh nhất chính là sử dụng JavaScript để build một số pet project (dự án nhỏ) để làm quen với ngôn ngữ và công nghệ. Mình cũng có hứa là sẽ chia sẻ một số project nhỏ mà các bạn có thể sử dụng JavaScript để build . Do vậy, hôm nay mình viết bài này, tổng hợp 9 dự án nhỏ, đơn giản, dễ làm mà các bạn có thể tập code để nâng cao kĩ năng lập trình. Note : Tuy nói là JavaScript nhưng các bạn có thể dùng bất cứ ngôn ngữ gì code cũng được nhé (C#, Java, PHP). Chỉ có một vài dự án sẽ cần dùng JavaScript ở front-end thôi. Cấp độ dễ Các dự án cấp độ dễ này chỉ cần đụng tới console/file . Thời gian code cũng khá nhanh. Hoàn thành các dự án này, bạn sẽ có nền tảng để làm những thứ phức tạp hơn. Mô tả : Viết một tool gửi HTTP Request tới một trang web tin tức bất kì như vnexpress, webtretho, kenh14, bóc tách dữ liệu từ HTML, sau đó in ra cửa sổ console. Mình từng có 2 bài chia sẻ về cái này: Sử dụng HTML Agility Pack trong C# Sử dụng Puppeteer trong NodeJS Kĩ năng học được : Cách sử dụng thư viện để gọi HTTP Request Cách sử dụng xpath/selector để lấy dữ liệu từ HTML Mô tả : Cửa sổ console sẽ hiện 1 menu bao gồm: Bonus : Nếu lưu toàn bộ các notes trong memory, khi tắt ứng dụng các note sẽ biến mất. Lưu toàn bộ các notes xuống file txt, khi mở ứng dụng lên ta sẽ đọc từ file này. Kĩ năng học được : Cách nhận input/output từ console Cách làm việc với mảng Cách làm việc với file I/O Cấp độ trung bình Các dự án ở cấp độ trung bình này sẽ đòi hỏi bạn biết thêm về UI, database, cron, Web API. Mô tả : Chức năng tương tự như ứng dụng ghi chú phía trên, nhưng có UI (Dùng Electron của JS, Winform/WPF của C#, Java Swing của Java). Note nên được lưu vào database, đọc từ database Kĩ năng học được : Cách làm việc với UI Cách lưu trữ, đọc dữ liệu từ database Mô tả : Dự án gồm 2 phần: Bonus : Tìm cách deploy dự án này lên heroku hoặc now.sh cho bạn bè dùng thử. Nhớ thêm swageer để người dùng biết cách gọi API nha. Kĩ năng học được: Cách viết cron job/recurring task Cách viết RestfulAPI sử dụng Web Framework Mô tả : Làm một con Facebook chat bot đơn giản, có khả năng nhận tin nhắn của người dùng, chat lại những thứ người dùng nói Hướng dẫn thì các bạn xem lại series Hướng dẫn Facebook Chat Bot của mình nha. Kĩ năng học được : Hiểu về webhook, biết cách setup webhook Biết message payload của Facebook webhook gồm những thành phần nào Cách sử dụng RestAPI/ Facebook Graph API Cấp độ khó Nói là khó chứ cấp độ này cũng không quá khó đâu, chỉ có điều hơi nhiều chức năng và hơi rộng thôi. Bạn phải hoàn thành những dự án nhỏ ở những cấp độ trước thì mới đủ khả năng hoàn thành những dự án này nhé. Đa phần các dự án này là dự án web , các bạn muốn dùng framework nào cũng được. Mô tả : Đưa ứng dụng ghi chú của bạn lên Web/Mobile. Thêm một số tính năng như Login, cho phép người dùng chọn màu sắc, style của note. Bạn có thể sử dụng framework gì tùy thích. Nếu làm bản mobile thì phía back-end sẽ tạo RestAPI cho mobile dùng nhé. Kĩ năng học được : Cách dùng web framework để tạo 1 trang web động. Cách implement chức năng login , lưu trữ thông tin người dùng. Mô tả : Làm một chatroom đơn giản, ko cần đăng nhập, chỉ cần nhập username là có thể chat (Tương tự ví dụ mẫu này: Làm app chat đơn giản với Firebase ) Bạn có thể tìm hiểu về Firebase , socket.io của NodeJS hoặc SignalR của .NET Kĩ năng học được : Cách code ứng dụng realtime, dùng công nghệ hỗ trợ realtime. Mô tả : Tạo 1 blog cá nhân với 2 phần Phần mặt tiền: hiển thị blog, paging, chia blog theo các category, comment blog Phần admin: cho phép bạn tạo category, tạo bài viết, format dưới dạng HTML, sửa hoặc xóa bài viết. Kĩ năng học được : Cách thiết kế Database cho một blog Cách lưu trữ hình ảnh (lưu file rồi đường dẫn xuống database nha), hiển thị hình ảnh Cách làm web động và sử dụng WYSIWYG editor Mô tả : Tạo một trang web bán hàng với 2 phần Phần mặt tiền: Hiển thị sản phẩm theo category, tìm kiếm sản phẩm, mua hàng Phần admin: Tạo category và sản phẩm, kiểm tra/thay đổi trạng thái đơn hàng. Kĩ năng học được : Cách thiết kế database cho một web bán hàng Cách xử lý transaction trong Database Thiết kế flow mua hàng/xử lý đơn hàng Tạm kết Bạn có thể dùng những dự án này để luyện tập bất kì ngôn ngữ nào chứ không chỉ là JavaScript nhé! Đọc thì nhiều thế thôi chứ các bạn hoàn toàn có thể làm hết những dự án này trong khoảng 3-6 tuần , tùy vào ngộ tính và cần cù thôi. Làm hết những thứ này, bạn sẽ đủ kiến thức và tự tin để đi phỏng vấn, xin việc ở những vị trí junior/fresher rồi. Chúc các bạn may mắn! Ngoài ra, nếu có ý tưởng project nào nho nhỏ, thú vị, các bạn có thể comment bên dưới để mình bổ sung nha. 30s quảng cáo Anh Lê Quang Song bạn mình, CEO của Cybersoft.vn vừa mở một khóa học về Lập trình front-end với JavaScript, ReactJS, Angular . Trong khóa học này, các bạn sẽ có khá nhiều dự án thật để làm, tha hồ rèn luyện khả năng lập trình nhé. Các bạn học xong phần lớn đều có review rất ok, kiếm được việc làm kha khá. Bạn nào có hứng thú có thể tìm hiểu thêm tại bit.ly/codedao-front nha. Nếu bạn đăng kí học thì nhớ dùng mã giới thiệu TDCD_FRONT để được giảm 300k và tặng áo thun nhé :D. Rate this: Like this: Related
The other day, I introduced JavaScript, evaluating it as a powerful language worth learning. One of the fastest ways to learn is to use JavaScript to build some pet projects (small projects) to get familiar with the language and technology. I also promised to share some small projects that you can use JavaScript to build. Therefore, today I am writing this article, synthesizing 9 small, simple, easy-to-do projects that you can practice coding to improve your programming skills. Note: Although it says JavaScript, you can use any coding language (C#, Java, PHP). Only a few projects will need to use JavaScript on the front-end. Easy Level These easy level projects only involve console/file . Coding time is also quite fast. Completing these projects will give you the foundation to do more complex things. Description: Write a tool to send HTTP Request to any news website such as vnexpress, webtretho, kenh14, extract data from HTML, then print it to the console window. I have shared 2 articles about this: Using HTML Agility Pack in C# Using Puppeteer in NodeJS Skills learned: How to use the library to call HTTP Request How to use xpath/selector to get data from HTML Description: The console window will display a menu including: Bonus: If you save all the notes in memory, when you turn off the application the notes will disappear. Save all notes to a txt file, when opening the application we will read from this file. Skills learned: How to receive input/output from console How to work with arrays How to work with file I/O Intermediate level Projects at this intermediate level will require you to know more about UI, database, cron, Web API. Description: The function is similar to the note taking application above, but has UI (Using JS's Electron, C#'s Winform/WPF, Java's Java Swing). Notes should be saved to the database, read from the database Skills learned: How to work with UI How to store and read data from the database Description: The project consists of 2 parts: Bonus: Find a way to deploy this project to heroku or now.sh for friends to try. Remember to add swageer so users know how to call the API. Skills learned: How to write cron job/recurring task How to write RestfulAPI using Web Framework Description: Make a simple Facebook chat bot, capable of receiving messages from users, chatting back what users say. For instructions, please review my Facebook Chat Bot Tutorial series. Skills learned: Understand webhooks, know how to set up webhooks Know what components the Facebook webhook message payload includes How to use RestAPI/ Facebook Graph API Difficulty level Although it's difficult, this level is not too difficult, it's just a bit more functional and a bit broader. You must complete small projects in previous levels to be able to complete these projects. Most of these projects are web projects, you can use any framework you want. Description : Bring your note taking app to Web/Mobile. Add some features such as Login, allowing users to choose the color and style of the note. You can use any framework you like. If you make a mobile version, the back-end will create RestAPI for mobile use. Skills learned: How to use a web framework to create a dynamic website. How to implement login function, store user information. Description: Make a simple chatroom, no need to log in, just enter username to chat (Similar to this example: Make a simple chat app with Firebase) You can learn about Firebase, socket.io of NodeJS or .NET's SignalR Skills learned: How to code realtime applications, using realtime support technology. Description: Create a personal blog with 2 parts Front part: blog display, paging, blog division by categories, blog comments Admin section: allows you to create categories, create posts, format as HTML, edit or delete posts. Skills learned: How to design a Database for a blog How to store images (save the file and link it to the database), display the image How to make dynamic websites and use WYSIWYG editor Description: Create a sales website with 2 parts Front part: Display products by category, search for products, purchase Admin section: Create categories and products, check/change order status. Skills learned: How to design a database for a sales website How to handle transactions in Database Design purchasing/order processing flow Conclusion You can use these projects to practice any language, not just JavaScript! It's a lot to read, but you can completely complete these projects in about 3-6 weeks, depending on your intelligence and diligence. By doing all of this, you will have enough knowledge and confidence to interview and apply for junior/fresher positions. Good luck! In addition, if you have any small, interesting project ideas, you can comment below for me to add. 30 seconds of advertising My friend Le Quang Song, CEO of Cybersoft.vn, just opened a course on Front-end Programming with JavaScript, ReactJS, Angular. In this course, you will have many real projects to do, freely practice your programming skills. Most of the students who finished studying had very good reviews and found decent jobs. Those who are interested can learn more at bit.ly/codedao-front. If you register for the class, remember to use the referral code TDCD_FRONT to get a 300k discount and a free t-shirt :D. Rate this: Like this: Related
Nếu các bạn hay theo dõi mình qua Fanpage Tôi Đi Code Dạo hoặc Youtube Channel , các bạn sẽ thấy lâu lâu mình có hay làm 1 số minigame trao quà bằng cách đặt sòng bầu cua thông qua kênh chat. Game này chơi khá là vui, tăng tương tác nhiều vì bà con phải comment, lại rất dễ tham gia, chỉ có đang xem stream là được. Do vậy, mình chia sẻ cho các bạn biết cách để làm 1 game như thế này. Các bạn có thể dựa vào đó để độ chế ra thành game tương tự nhé! Kiến trúc hệ thống Trước khi đi sâu vào code, chúng ta có thể tìm hiểu kiến trúc hệ thống trước, để biết cần code những phần nào, code như thế nào nha! Hệ thống có 1 kiến trúc vô cùng đơn giản đến mức không thể đơn giản hơn, như 1 trang web thông thường : Front-end (VueJS) : Hiển thị bàn bầu cua, số lượng đặt, bảng xếp hạng người dùng Back-end Facebook (NodeJS) : Ban đầu, mình làm cái này chơi trên Facebook. Do đó back-end là 1 webhook , nhận thông báo từ Facebook khi có 1 người chơi comment. Sau đó đọc comment và thông báo cho front-end biết là user đó là ai, đã đặt những gì Back-end Youtube (NodeJS) : Về sau, mình muốn mang trò này qua Youtube. Bản thân Youtube không có Webhook, nhưng có Livestream API , cho phép mình lấy danh sách các comment trong 1 livestream. Do vậy mình chạy code gọi API này mỗi vài giây để lấy comment và xử lý. Socket.io : Để hệ thống hoạt động real-time, back-end và front-end giao tiếp với nhau thông qua WebSocket (Thật ra chỉ có 1 chiều là back-end gửi thông tin về front-end thôi). Mình dùng socket.io luôn cho lẹ! Xử lý phía back-end Như đã nói, với Facebook, mình có chạy 1 web app nho nhỏ, làm webhook. (Bạn nào quên webhook là gì có thể xem lại bài Làm Facebook ChatBot nha). Ta sẽ nhận thông tin từ Facebook qua webhook và xử lý. Sau đó, ta tiếp tục lấy avatar của người dùng, lấy comment và gửi cho client qua WebSocket. Ở cuối, các bạn sẽ thấy emitter gửi thông tin tới cho client, event là newBet. Ở client, khi nhận được event là newBet, mình sẽ lấy thông tin đó ra và đặt cược cho người chơi. Về cơ chế là như vậy, còn 1 đoạn khá hay ho đó là nhận và lọc input từ người chơi . Giả sử người chơi nói “ em muốn đặt 10 gà “, mình dùng regex để lọc số lượng đặt là 10, con đặt là gà như sau. Front-end Ở front-end thì không có quá nhiều thứ phức tạp cần xử lý. Do đợt đấy mình học VueJS nên thử dùng Vue + Vuex để viết hệ thống cho vui luôn. Phần mình tưởng là khó nhất – hiển thị bàn bầu cua thì hoá ra lại …khá dễ. Chắc do hình ảnh gốc ban đầu đã chia khá đều rồi, chỉ việc code lại xíu thôi~ Ngoài ra, do bản chất game có khá nhiều trạng thái, nhiều state nên cần xử lý, lưu trữ nhiều. May mắn là Vuex giúp mình làm chuyện này khá tốt, viết code bằng tay để quản lý state chắc phê lòi luôn! State của hệ thống cũng khá đơn giản. Mình lưu danh sách người chơi và điểm để làm bảng xếp hạng, số người đã đặt cược, trạng thái của 3 con xí ngầu Sau khi lắc xí ngầu xong, mình tổng kết số điểm, upload lên Firebase để mọi người tham gia có thể vào tra điểm. Để làm trang tra điểm này, các bạn muốn dùng gì cũng được. Mình lười nên viết Angular 1, bỏ thành 1 file HTML thuần rồi upload lên Github là xong. Đỡ phải lo build lung tung mệt. Tạm kết Đấy, hệ thống trông hay hay, lạ lạ nhưng viết không quá phức tạp như bạn tưởng đâu. Bản thân mình viết tầm 3 ngày nên các bạn viết chắc cỡ 2 ngày là xong ấy mà. Nếu còn thắc mắc, các bạn có thể xem source code của mình tại đây: . Các bạn có thể Fork hay làm trò gì tuỳ thích, hoặc để lại 1 star cho mình nha. Nếu có hứng thú về chủ đề thiết kế/code ra 1 hệ thống chuyên sâu thế này thì các bạn cứ để lại comment nha. Nếu nhiều bạn quan tâm mình sẽ làm nhiều hơn ahihi! Bonus: Clip có khuôn mặt đập trai + demo của mình Rate this: Like this: Related
If you often follow me through Fanpage Toi Go Coding or Youtube Channel, you will see that from time to time I often do some minigames to give gifts by betting on Bau Cua through the chat channel. This game is quite fun to play, increases interaction a lot because people have to comment, and is very easy to participate, just watching the stream is enough. Therefore, I share with you how to make a game like this. You can rely on that to create a similar game! System architecture Before diving into the code, we can learn the system architecture first, to know which parts need to be coded and how to code! The system has an extremely simple architecture that cannot be simpler, like a regular website: Front-end (VueJS): Display crab table, number of orders, user rankings Back-end Facebook (NodeJS): Initially, I made this to play on Facebook. Therefore, the back-end is a webhook, receiving notification from Facebook when a player comments. Then read the comment and notify the front-end who that user is and what they have placed Back-end Youtube (NodeJS): Later, I want to bring this game to Youtube. Youtube itself does not have Webhooks, but has Livestream API, which allows you to get a list of comments in a livestream. So I run code that calls this API every few seconds to get comments and process them. Socket.io: For the system to operate in real-time, the back-end and front-end communicate with each other via WebSocket (Actually, there is only one way: the back-end sends information to the front-end). I always use socket.io! Handling the back-end side As mentioned, with Facebook, I run a small web app, making webhooks. (If you forget what a webhook is, you can review the article Making a Facebook ChatBot). We will receive information from Facebook via webhook and process it. After that, we continue to get the user's avatar, get comments and send them to the client via WebSocket. At the end, you will see the emitter sending information to the client, the event is newBet. On the client, when I receive the event newBet, I will retrieve that information and place a bet for the player. The mechanism is like that, there's a pretty cool part that is receiving and filtering input from players. Suppose the player says "I want to bet 10 chickens", I use regex to filter the number bet is 10, the bet is chicken as follows. Front-end On the front-end, there aren't too many complicated things to handle. Because I learned VueJS at that time, I tried using Vue + Vuex to write a system for fun. The part I thought was the most difficult - displaying the crab pot table - turned out to be... quite easy. Probably because the original images were already divided quite evenly, just a little recoding~ In addition, due to the nature of the game there are many states, many states, so it needs a lot of processing and storage. Luckily, Vuex helps me do this quite well. Writing code by hand to manage state would be crazy! The state of the system is also quite simple. I save the list of players and scores to make rankings, the number of people who have bet, the status of the 3 dice After rolling the dice, I summarize the scores and upload them to Firebase so that everyone participating can check their scores. To make this makeup, you can use whatever you want. I'm lazy so I wrote Angular 1, turned it into a pure HTML file and uploaded it to Github. No need to worry about building haphazardly. Conclusion: The system looks interesting and strange, but writing is not as complicated as you think. I personally wrote it in about 3 days, so you guys should probably finish it in about 2 days. If you still have questions, you can view my source code here: . You can Fork or do whatever you want, or leave 1 star for me. If you are interested in the topic of designing/coding an in-depth system like this, please leave a comment. If many of you are interested, I will do more ahihi! Bonus: Clip with a handsome face + my demo Rate this: Like this: Related
Lâu lâu, mình lại nhận được vài câu hỏi về gái gú của anh em developer chung ngành như: Làm ngành này có sợ ế không anh? Developer thì làm sao để có gấu hả anh? Về câu hỏi thứ nhất thì … đương nhiên là không! Mấy ông anh/bạn mình quen đều đã có gấu đẹp, vợ xinh, nhiều ông con lớn biết bò biết đi luôn rồi. Còn về câu hỏi thứ 2 thì … trả lời dài lắm. Do vậy, hôm nay đẹp trời nên mình tạm nghỉ viết về kĩ thuật, ngồi viết bài này để chia sẻ một số kinh nghiệm kiếm gấu cho anh em nha! Đầu tiên là phải đẹp trai Các cụ đã có một câu khá chí lý: Nói vậy thôi, chứ không phải con gái ai cũng ham giàu hay mê trai đẹp. Tuy vậy, ngoại hình cũng khá là quan trọng, vì nó là ấn tượng đầu tiên đập vào mắt người khác giới. Anh em developer tụi mình không cần phải bụng 6 múi, dáng thon như người mẫu, chỉ cần đừng quá lôi thôi để thành điểm trừ trong mắt người đối diện là được: Đừng ở dơ, nên tắm gội mỗi ngày hoặc 2 ngày. Bên cạnh việc siêng tắm thì chịu khó siêng giặt đồ luôn. Người có mùi là các bạn nữ chạy xa đấy Nếu được thì nên chịu khó chải tóc cho ngay ngắn Nếu lười như mình thì nên kiếm vải loại nào không cần ủi mà vẫn ít nhăn. Trang phục dễ mặc/dễ mua nhất là áo thun/sơ mi + quần jean. Đừng mặc đồ quá rộng hoặc quá chật là được! Nếu có bạn thân là con gái thì nhờ dắt đi mua đồ giùm, lựa đồ giùm càng tốt Tiếo theo là đừng có nhàm chán Ngoại hình tạm xong, việc còn lại của bạn là …. đừng có chán . Thật đấy, đợt trước mình vào đọc confession thấy có bạn nữ chê là mấy ông IT làm việc lương cao thế nào không biết, nhưng không biết cách ăn nói nên chán lắm. Nghe cũng ngại cho mấy anh em mình =)) Cách tốt nhất để không chán là đừng nên đi theo lối mòn . Đừng có suốt ngày mở mồm hỏi “Em ăn cơm chưa”, hoặc “Em có thích rau dền không”. Mà hãy chuyển qua những câu cao sang hơn như: “Cơm đã bị em ăn chưa”, hoặc “Theo em rau dền cho thực sự tốt cho sức khỏe không”. Nói đùa thôi, để không nói chuyện nhàm chán thì bạn … đừng làm một con người nhàm chán . Đừng suốt ngày cắm mặt vô code mà hãy chịu khó xem phim, đọc sách, nghe nhạc thêm. Tốt nhất là tìm những điểm chung giữa bạn và cờ rớt, để 2 người có chủ đề mà chém gió trao đổi chứ. Ví dụ crush của bạn thích ngôn tình thì bạn cũng nên kiếm ngôn tình mà đọc , crush của bạn thích Sơn Tùng thì bạn cũng nên nghe nhạc Sơn Tùng thôi. (Còn nếu cờ rớt của bạn thích K-pop, mình khuyên bạn nên cờ rớt người khác cho đẹp trời nhen!) Đừng quá vồ vập, cũng đừng quá thờ ơ Một trong những điểm khiến các bạn nữ thấy ghét, thấy phiền đó là khi con trai quá … vồ vập: Cứ 30 phút lại nhắn tin hỏi “Em ăn cơm chưa”. Bộ em là quái thú ngày ăn 10 bữa à! Ngày nào cũng rủ đi chơi, đi cà phê miết dù người ta còn bận học hành, đi làm. Bộ em trông rảnh lắm à! Tối này cũng “Chúc ngủ ngon” đều đặn như cái máy, không có gì thay đổi. Bộ nhắn vậy hoài sau 1 tháng em sẽ tự đổ à! Thật đấy, con người ta thường có xu hướng thích những thứ mình không có! Do vậy, các bạn đừng quá vồ vập, quá nhiệt tình sẽ khiến con gái cảm thấy phiền thôi! Họ cũng sẽ nghĩ “Thằng này rảnh quá, không có gì làm hay sao nhắn miết vậy”. Trong giai đoạn tán tỉnh, lâu lâu bạn cứ phải làm giá một tí: anh đang bận chưa kịp rep, anh đi chơi với bạn rồi nên hôm đó không đi được … Hãy để người ta hiểu rằng cuộc sống của bạn còn nhiều bạn bè, nhiều sở thích hơn là chỉ đi tán gái. À mà quên, khi đã dần có tình cảm, hoặc bắt đầu quen mà bạn chơi bài “anh đang bận chưa kịp rep, anh đi chơi với bạn” là sẽ dễ bị giận, bị ghét đây nhé! Đừng hỏi mình tại sao! Con gái là chúa vô lý, đến bản thân họ còn không hiểu họ nên bạn đừng cố gắng hiểu họ làm gì. Lời khuyên cuối – Học cách buông bỏ Là con trai, các bạn phải biết học cách buông bỏ. Đôi khi, dù bạn cố gắng hết sức, người ta cũng không thích bạn! Lỗi không phải ở người đó, cũng không phải ở bạn, chỉ đơn thuần là người ta không hợp nhau: Người ta thích mấy anh nói nhiều, mê Kpop. Bạn là dev trầm lặng, thích xem JAV Người ta thích con trai có xe phân khối lớn, biết địa điểm bay quẩy. Bạn là thằng dev cùi đi 4 bánh , không đi bar pub bao giờ Đến lúc đó, điều duy nhất bạn có thể làm là … buông bỏ, tìm một người khác phù hợp với mình, chấp nhận coi người của bạn. Thật vậy, không crush được người này thì ta chuyển qua crush người khác thôi! Việt Nam hơn 95 triệu người, biết đâu bạn sẽ tìm được một người con gái (hoặc con trai) phù hợp hơn cho bạn. Tạm kết Đấy, bài cũng ngắn nhưng mình đã chém gió, trải lòng với anh em được kha khá rồi. Nếu anh em nào có những kinh nghiệm tán gái, trải nghiệm đau thương trong chuyện tình yêu thì cứ comment phía dưới để chia sẻ với mọi người nhen. Bonus : Tặng thêm vlog nếu các bạn muốn thấy khuôn mặt đẹp chai của mình + xem mình demo. Nhớ subscribe cho mình nha: bit.ly/codedaotube Rate this: Like this: Related
From time to time, I receive a few questions about girls from developers in the same industry as: Are you afraid of being stuck in this industry? How can a developer get a girlfriend? Regarding the first question... of course not! The brothers/friends I know all have beautiful bears, beautiful wives, and many grown children can crawl and walk. As for the second question... the answer is very long. Therefore, today is a beautiful day so I took a break from writing about techniques and sat down to write this article to share some experiences in finding bears with you guys! The first thing is to be handsome. The elders have a quite reasonable saying: Having said that, not all girls want to be rich or love handsome men. However, appearance is also quite important, because it is the first impression that strikes the eyes of the opposite sex. We developers don't need to have six pack abs or be slim like a model, we just need to not be too messy to become a minus point in the eyes of the other person: Don't stay dirty, take a shower every day or two. Besides diligently bathing, also diligently wash clothes. The people who smell are the girls who ran away If possible, you should take the trouble to comb your hair neatly If you're lazy like me, you should look for fabric that doesn't require ironing but still has less wrinkles. The easiest outfit to wear/buy is a t-shirt/shirt + jeans. Don't wear clothes that are too loose or too tight! If you have a close friend who is a girl, ask her to help you go shopping and choose clothes for her Next, don't be boring. Your appearance is done, the rest is... Don't be bored. Really, last time I read confessions, I saw a female friend complaining about how high-paying IT guys are, but they don't know how to speak so it's boring. It sounds embarrassing for my brothers =)) The best way to not get bored is to not follow the beaten path. Don't keep asking, "Have you eaten rice yet?" or "Do you like amaranth?" But let's move on to more noble sentences like: "Have you eaten the rice yet?" or "Do you think amaranth is really good for your health?" Just kidding, to avoid boring conversations, you... don't be a boring person. Don't be stuck in code all day, but take the time to watch movies, read books, and listen to more music. It's best to find things in common between you and the fallen flag, so that you two have a topic to chat about. For example, if your crush likes romance, you should also read romance, if your crush likes Son Tung, you should listen to Son Tung's music. (And if your loser likes K-pop, I advise you to let someone else be nice!) Don't be too pushy, don't be too indifferent. One of the things that makes girls hate and feel annoyed. is when a boy is too... fussy: Every 30 minutes, I text and ask, "Have you eaten yet?" Are you a monster that eats 10 meals a day! Every day we invite them to go out and have coffee even though they are busy studying or working. You look so free! This night, "Good night" was as regular as a machine, nothing changed. If you keep saying that after 1 month I will dump you! Really, people tend to like things they don't have! Therefore, don't be too pushy, being too enthusiastic will only make girls feel annoyed! They will also think, "This guy has too much free time, he has nothing to do, why is he texting so much?" During the flirting phase, every now and then you have to make a little price: he's busy and hasn't had time to reply, he's gone out with friends so he can't go that day... Let people understand that you still have many friends in your life. , more interests than just flirting with girls. Oh, but I forgot, when you gradually have feelings, or start to get acquainted, you play the card "I'm busy and haven't had time to reply yet, I'm going out with friends" and you will easily get angry and hated! Don't ask me why! Girls are unreasonable gods, they don't even understand themselves so don't try to understand them. Final advice - Learn to let go. As boys, you must learn to let go. Sometimes, no matter how hard you try, people just don't like you! The fault is not in that person, nor in you, they are simply incompatible: People like guys who talk a lot and love Kpop. You are a quiet developer who likes to watch JAV People like guys who have big bikes and know where to go wild. You're a 4-wheeled dev who never goes to bars or pubs At that point, the only thing you can do is... let go, find someone else who is suitable for you, and accept yourself as your person. Indeed, if we can't crush this person, we'll just move on to crush someone else! Vietnam has more than 95 million people, maybe you will find a girl (or boy) more suitable for you. Conclusion Well, the article is short, but I've talked and shared my feelings with you guys quite a bit. If any of you have experiences in flirting with girls or painful experiences in love, please comment below to share with everyone. Bonus: Free vlog if you want to see my beautiful face + watch my demo. Remember to subscribe to me: bit.ly/codedaotube Rate this: Like this: Related
Dạo gần đây, mình hay nhận được nhiều câu hỏi dạng như: Anh ơi học cái A,B,C này ra có kiếm được việc làm không Em thích học Big Data, Machine Learning này nọ có hot không Trường em dạy cái A,B,C đi làm người ta xài nhiều không Do vậy, mình viết bài này để chia sẻ về những ngôn ngữ/công nghệ lập trình mà các bạn nên học để dễ tìm việc làm nha. Note : Bài viết này được viết vài năm 2019, sau 5/10 năm nữa có thể công nghệ sẽ khác thì lúc đó mình viết bài khác sau nhe! Học thứ trong trường dạy có đi làm được không? Đương nhiên là … không! Nói đùa vậy thôi. Thật ra, trường Đại Học chỉ dạy bạn những kiến thức rất nền tàng (thuật toán, nhập môn lập trình) để bạn có thể tự tìm hiểu, tự học thêm. Những kiến thức đó là rất cần thiết, nhưng … chưa đủ để đi làm . Đơn giản là vì công nghệ liên tục được thay đổi và cải tiến, nên trường học khó có thể thay đổi giáo trình để theo kịp! Do vậy, đừng mơ mộng rằng, học những này trong trường có thể áp dụng khi đi làm , vì những thứ trong trường dạy đã khá … cũ, ít ai dùng tới nữa. Thời xưa, trường mình dạy C# có dạy WinForm , WebForm , Java thì có J2EE bản cũ rích luôn. Tuy đi làm không dùng, nhưng những kiến thức về Event, Layout, Request/Response vẫn rất hữu dụng khi mình học framework khác. Do vậy, đừng học theo trường dạy, mà hãy xem thị trường cần cái gì! Đừng thấy trường dạy C++, Java, học xong ra cắm đầu tìm việc C++, Java nhé. Thay vào đó, bạn hãy tự xem các mẩu tin tuyển dụng, xem họ dùng công nghệ gì, tuyển yêu cầu ra sao. Sau đó tự học dựa vào những yêu cầu đó, khả năng có việc sẽ cao hơn nhé. Thực trạng về mấy thức “cao siêu” như Machine Learning – AI – Blockchain Gần đây, báo đài hay đưa tin về thời đại Cá Mè 4.0 ở Vịt Nôm , các công nghệ tương lai như AI, Blockchain, Machine Learning này nọ sẽ ngày càng hot. Để mình dội cho bạn 1 gáo nước lạnh cho các bạn tỉnh mộng ra. Đây là số lượng những công việc về Machine Learning/AI/Blockchain trên ITviec. Con số này thật ra không phải ít, nhưng hãy thử so sánh với những thứ … tầm thường, nghe không hot như Java, PHP, Mobile v…v Đấy, học cái gì dễ tìm việc hơn thì … các bạn xem là biết rồi nhỉ! Ủa, tại sao mấy cái to tát hot hot như AI v…v mà nhu cầu tuyển ít quá vậy ? Thật sự thì, ở Việt Nam, số lượng công ty outsource vẫn còn nhiều, và các công ty product cũng … không quá cần AI-ML trừ khi sản phẩm của họ chuyên về AI/ML. Do vậy, hầu như chỉ các viện nghiên cứu, các công ty lớn có nhiều data, có vốn thì mới có tiền thuê team Research để nghiên cứu về AI, Data. Ở Singapore bên mình cũng vậy, job tuyển software engineer thì tràn lan, nhưng tuyển data scientist/data engineer /AI thì khá ít. Hầu như họ ưu tiên những ứng viên có bằng Thạc Sĩ , có kinh nghiệm nghiên cứu, vì mảng này cần nghiên cứu nhiều. Đấy, túm cái quần lại là nếu bạn muốn việc nhiều, dễ kiếm thì nên né mấy cái như AI/ML ra. Còn nếu thật sự đam mê, bạn có thể học lên cao , tham gia Kaggle, học kĩ Toán … Mảng này tuyển ít nhưng tuyển người giỏi, lương chắc chắc cao hơn mặt bằng chung của software engineer luôn. Những thứ ăn chắc mặc bền trong tầm 5 năm nữa Đấy, ở đoạn trên thì bạn cũng thấy rồi. Muốn ăn chắc mặc bền thì có thể học Web/Mobile hoặc lập trình nhúng! Web và Mobile đã hot 5-10 năm nay, đến nay nó vẫn sống nhăn. Trong 5-10 năm nữa, khả năng Web và mobile hết thời cũng … khá là thấp. Các bạn có thể Google những ngôn ngữ/công nghệ mà mình nhắc đến phía dưới nha. 1. Mảng Mobile thì ở Việt Nam hiện nay tuyển cả iOS, Android lẫn Hybrid: iOS thì lương nhỉnh hơn 1 tí, nhưng không chênh lệch nhiều. Đa phần các dự án dùng Objective C (công nghệ cũ) hoặc Swift (công nghệ mới hơn) Android thì ngày xưa người ta dùng Java , gần đây một số dự án mới dùng Kotlin vì nó … ngắn gọn hơn. Tuy nhiên job Java vẫn chiếm đa số, số lượng Kotlin khá ít Hybrid : Viết ứng dụng bằng ngôn ngữ khác, sau đó build ra ứng dụng chạy trên cả 2 nền tảng. Gần đây thì React Native đang khá hot (do web devleoper cũng có thể code được). Ngoài ra còn có Xamarin, Ionic nhưng không quá phổ biến 2. Mảng web ở Việt Nam khá đủ thể loại. Hiện tại thì cả back-end lẫn front-end đều đang tuyển. Bạn nào chưa rõ có thể xem lại bài: Cơ bản lập trình web , front-end và back-end 2.1 Back-end : Phổ biến nhất vẫn là bộ 3 PHP, C#, Java . Mỗi ngôn ngữ sẽ có khoảng 1, 2 framework phổ biến đi kèm. PHP thì có Laravel , Symfony hoặc CodeIgniter . Ngoài ra có thể họ không dùng framework mà dùng platform như WordPress , Magneto C# thì phổ biến nhất vẫn là ASP .NET MVC hoặc ASP .NET Core , ít nơi vẫn còn dùng WebForm Java thì ở VN phổ biến vẫn là Spring và J2EE Ngoài ra, còn có 1 số ngôn ngữ back-end ít phổ biến hơn như Python, Ruby, NodeJS . Cũng có vài công ty tuyển nhưng không nhiều! Học ngôn ngữ/framework nào thì các bạn nên học luôn ORM đi kèm với nó. VD bên C# thì có Entity Framework, Java có Hibernate… 2. 2 Front-end : Để làm tốt front-end, bạn cần học thật vững JavaScript trước khi nhắm đến các framework. Phổ biến nhất thì vẫn là ReactJS và Angular (bản 2 trở lên). Số lượng job React nhiều vl, đâu đâu cũng tuyển. Đâu đó có 1 số công ty tuyển AngularJS (Angular 1) để bảo trì, hoặc có 1 số nơi cũng tuyển VueJS Cá nhân mình thấy mấy cái framework này cũng na ná nhau, vì đều là JS cả. Bản thân mình biết AngularJS, VueJS, ReactJS. Anh em có thể học nhiều framework, chuyển qua chuyển lại cũng không khó! 3. Mảng lập trình nhúng : Vi mạch, thiết bị điện tử v…v thì mình không làm, cũng không quen mấy ông bên đấy nên ko nói tới. Tạm kết Trong bài viết này, mình đã chia sẻ về các công nghệ đang được sử dụng , cũng như những công nghệ các bạn nên học nếu muốn dễ tìm việc, lương ổn. (Đồng thời cũng tạt 1 gáo nước lạnh cho những bạn thích làm về AI, Machine Learning luôn.) Đấy, túm cái váy lại là: Muốn biết nên học cái gì thì cứ xem thị trường cần gì, tuyển gì, sau đó cắm đầu vào học là được nhé. Chúc các bạn may mắn! Bonus : Các bạn muốn nghe giọng cute và khuôn mặt đẹp trai của mình có thể xem vlog bên dưới. Nhớ subscribe cho mình tại bit.ly/codedaotube nha! Rate this: Like this: Related
Lately, I often receive questions like: Sir, if you learn A, B, C, will you be able to get a job? I like to learn Big Data, Machine Learning, is this or that hot? My school teaches A, B, C, do people use it a lot at work? Therefore, I wrote this article to share about programming languages/technologies that you should learn to easily find a job. Note: This article was written in 2019, after 5/10 years maybe technology will be different, then I will write another article later! Can I get a job after studying in school? Of course not! Just joking. Actually, University only teaches you very basic knowledge (algorithms, introduction to programming) so that you can learn more and learn more on your own. That knowledge is very necessary, but... not enough to get a job. Simply because technology is constantly changing and improving, it is difficult for schools to change their curriculum to keep up! Therefore, don't dream that learning these things in school can be applied when working, because the things taught in school are quite... old, few people use them anymore. In the past, my school taught C#, but also taught WinForm, WebForm, Java, and the old J2EE version. Even though I don't use it at work, the knowledge about Event, Layout, Request/Response is still very useful when I learn other frameworks. Therefore, don't follow what the school teaches, but see what the market needs! Don't see schools that teach C++ and Java. After studying, you'll start looking for a job in C++ or Java. Instead, look at the job postings yourself, see what technology they use, and what the recruitment requirements are. Then self-study based on those requirements, your chances of getting a job will be higher. The current situation of "superior" knowledge such as Machine Learning - AI - Blockchain Recently, the media often reports about the Car Me 4.0 era in Duck Nom, future technologies such as AI, Blockchain, Machine Learning and so on will become available. hotter. Let me pour you a bucket of cold water so you can wake up from your dream. This is the number of Machine Learning/AI/Blockchain jobs on ITviec. This number is actually not a small number, but let's try to compare it with things that are... trivial, don't sound hot like Java, PHP, Mobile, etc. Well, if you learn something that's easier to find a job, then... you see and you'll know. huh! Wow, why do big, hot things like AI etc have so little recruitment demand? Actually, in Vietnam, the number of outsourcing companies is still large, and product companies... do not really need AI-ML unless their products specialize in AI/ML. Therefore, almost only research institutes and large companies with a lot of data and capital have the money to hire Research teams to research AI and Data. In Singapore, too, software engineer jobs are widespread, but data scientist/data engineer/AI jobs are quite few. They mostly prioritize candidates with a Master's degree and research experience, because this field requires a lot of research. See, by the way, if you want a lot of work and easy to find, you should avoid things like AI/ML. If you are really passionate, you can go to higher education, join Kaggle, study Math... This field recruits few but recruits good people, the salary is definitely higher than the average level of software engineers. Things you can eat and wear that will last for about 5 years. You can see it in the above paragraph. If you want to eat well and wear durable clothes, you can learn Web/Mobile or embedded programming! Web and Mobile have been hot for 5-10 years now, it is still alive today. In the next 5-10 years, the possibility of the Web and mobile going out of fashion is... quite low. You can Google the languages/technologies I mentioned below. 1. In the Mobile segment, in Vietnam currently recruiting both iOS, Android and Hybrid: iOS has a slightly higher salary, but not much difference. Most projects use Objective C (old technology) or Swift (newer technology) For Android, in the past people used Java, recently some projects use Kotlin because it is... more concise. However, Java jobs still dominate, the number of Kotlin jobs is quite small Hybrid: Write an application in another language, then build an application that runs on both platforms. Recently, React Native is quite hot (because web devleoper can also code). There are also Xamarin, Ionic but not so popular 2. The web sector in Vietnam is quite diverse. Currently, both back-end and front-end are recruiting. If you are unclear, you can review the article: Basics of web programming, front-end and back-end 2.1 Back-end: The most popular is still the trio of PHP, C#, Java. Each language will have about 1 or 2 popular frameworks included. For PHP, there is Laravel, Symfony or CodeIgniter. In addition, they may not use a framework but use a platform like WordPress or Magneto The most popular C# is still ASP .NET MVC or ASP .NET Core, few places still use WebForm Java is still popular in Vietnam as Spring and J2EE In addition, there are some less popular back-end languages ​​such as Python, Ruby, NodeJS. There are also a few companies recruiting but not many! Whatever language/framework you learn, you should always learn the ORM that comes with it. For example, C# has Entity Framework, Java has Hibernate... 2. 2 Front-end: To do well on the front-end, you need to learn JavaScript thoroughly before targeting frameworks. The most popular are still ReactJS and Angular (version 2 and above). The number of React jobs is huge, recruiting everywhere. There are some companies somewhere that hire AngularJS (Angular 1) for maintenance, or there are some places that also hire VueJS. Personally, I think these frameworks are similar, because they are all JS. I personally know AngularJS, VueJS, ReactJS. You can learn many frameworks, switching back and forth is not difficult! 3. Embedded programming: Microchips, electronic devices, etc. I don't do it, and I don't know the guys there so I won't talk about it. Conclusion In this article, I have shared about the technologies being used, as well as the technologies you should learn if you want to easily find a job and have a good salary. (At the same time, I also throw a bucket of cold water for those who like to work on AI and Machine Learning.) There, the bottom line is: If you want to know what to learn, just see what the market needs, what to recruit, then plug in. The entrance to study is okay. Good luck! Bonus: If you want to hear my cute voice and handsome face, you can watch the vlog below. Remember to subscribe to me at bit.ly/codedaotube! Rate this: Like this: Related
Ở mấy bài trước, chúng ta đã tìm hiểu về VM, về web app, về Database. Chừng đó là cũng tạm đủ để làm một ứng dụng hoàn chỉnh rồi. Thế nhưng, để cho đủ bộ, trong bài này mình sẽ giới thiệu về những service của Azure cho phép chúng ta lưu trữ file luôn. Các dịch vụ lưu trữ của Azure được gom lại thành Azure Storage: . Các dịch vụ chính của Azure Storage là: Azure Blobs Azure Files Azure Queues Azure Tables Bài viết này sẽ gồm 2 phần: Phần 1 : Lưu trữ file có gì khó? Dùng Cloud được lợi gì? Phần 2 : Tìm hiểu về Azure Blobs và Azure Files + Demo Lưu trữ file có gì đâu mà khó? Nếu chưa làm nhiều dự án (như mình hồi xưa), có lẽ bạn sẽ thắc mắc “Ủa thì file lưu cùng thư mục với web server hoặc lưu dưới database thôi, có gì đâu mà phải xoắn?”. Thế nhưng, ở các số dự án lớn, họ sẽ tách web server và file server ra riêng. Thông thường ta cần một hoặc nhiều file server riêng, chỉ để lưu trữ file thôi, vì các lý do sau đây: Tốn tài nguyên: Để web server vừa chạy ứng dụng, vừa lưu và tải file sẽ làm chậm hệ thống, tốn bandwith. Việc đọc/ghi file sẽ tranh giành resource với web application. Khó mở rộng: Khi số lượng tải tăng lên, ta không thể tăng thêm số lượng web-server và dùng cân bằng tải, vì mỗi web server sẽ chứa những file riêng biệt Đấy, mà đã xong đâu? Sau khi có file server riêng để lưu trữ file, còn khá nhiều vấn đề phải lo: Bandwidth và Speed : Fileserver phải đảm bảo được tốc độ truyền tải dữ liệu. Người dùng ít thì đỡ, người dùng đông đông, cần bandwith tầm vài GB/s thì một file server không thể nào chịu thấu Security : Dữ liệu chứa trong file đa phần là dữ liệu nhạy cảm. Hệ thống phải phân quyền để chỉ có app/cá nhân phù hợp mới truy cập được fileserver này. Ngoài ra, khi up dữ liệu lên, tải dữ liệu về cũng phải được mã hóa để trống trộm Backup và Reliability : Với những hệ thống lớn, chuyện hỏng ổ cứng, server hư là chuyện thường ngày ở huyện. File phải được back-up thường xuyên, lưu trữ nhiều nơi để dữ liệu bị hư thì vẫn còn dữ liệu để khôi phục. Các bạn thấy đấy, với những hệ thống nho nhỏ đơn giản, cứ lưu ảnh và file vào chung server với web server là được. Tuy nhiên, ở những hệ thống lớn, cần xử lý file nhiều, ta phải xây dựng nguyên 1 hệ thống hạ tầng phục vụ cho việc lưu trữ, xử lý, upload/download file. Lưu file trên Cloud thì được lợi gì? Như mình đã nói ở mấy bài trước , khi sử dụng các dịch vụ lưu trữ trên Cloud của Azure, AWS, các bạn được dùng sẵn hạ tầng của họ, không cần phải build lại từ đầu. Khi sử dụng các dịch vụ Cloud này, chúng ta sẽ được khá nhiều lợi ích: Đỡ tốn chi phí ban đầu : Azure tính tiền theo theo dung lượng lưu trữ + lưu lượng. Hiện tại giá lưu là khoảng 18-30$/TB/tháng. Do đó ta sẽ đỡ tốn chi phí đầu tư ban đầu, thay vì phải bỏ tiền mua ổ cứng thì cứ xài nhiêu trả nhiêu trên Azure thôi. Dễ mở rộng : Khi nhu cầu lưu trữ tăng, ta cũng không cần phải mua thêm ổ cứng gắn vào; chỉ cần trả nhiều tiền hơn cho Azure là được. Ổn định : Azure hoặc AWS sẽ lo phần hạ tầng, backup, data rendundancy để đảm bảo dữ liệu của bạn không bị mất, dễ dàng restore dù cho thiên tai động đất v…v Bảo mật : File được lưu trữ trên Azure/AWS đều được encrypt trong quá trình lưu trữ, upload. Ta cũng có thể phân quyền thông qua account, thông qua API Key hoặc Token. Dễ truy cập thông qua API : Thông thường, các application của chúng ta sẽ cần tương tác với file (download, upload). Azure/AWS sẽ cung cấp các thư viện để tương tác với file trong C#/Java, hoặc giao tiếp thẳng qua RestAPI cũng được luôn. Tuy nhiên, bên cạnh ưu điểm thì cũng có 1 số khuyết điểm như: Giá sẽ hơi cao nếu so về lâu dài (Sau khoảng 2-3 năm là ta bắt đầu lỗ) Khi có lượng tải nhiều, hoặc bị dính virus thì phải charge tiền khá nhiều, vì giá tính theo lưu lượng Nếu hệ thống trên Cloud bự sự cố thì hệ thống chúng ta sẽ bị ảnh hưởng (Khả năng này hơi thấp vì theo SLA, họ sẽ đảm bảo uptime từ 99.9 cho tới 99.99) Tạm kết Đấy, bài này cũng tạm dài rồi nên mình tạm dừng ở đây. Ở những bài sau, tụi mình sẽ cùng tìm hiểu về 2 dịch vụ chính để lưu file của Azure là: Azure Blob và Azure Files nha. Rate this: Like this: Related
In the previous articles, we learned about VM, about web app, and about Database. That's enough to make a complete application. However, to make it complete, in this article I will introduce Azure services that allow us to store files. Azure storage services are grouped into Azure Storage: . The main services of Azure Storage are: Azure Blobs Azure Files Azure Queues Azure Tables This article will consist of 2 parts: Part 1: What's difficult about storing files? What are the benefits of using Cloud? Part 2: Learn about Azure Blobs and Azure Files + Demo What's so difficult about storing files? If you haven't done many projects (like me in the past), you may wonder, "Well, the file is saved in the same folder as the web server or stored in the database, is there anything to worry about?". However, in large projects, they will separate the web server and file server. Usually we need one or more separate file servers, just to store files, for the following reasons: Consuming resources: Letting the web server run the application, save and download files will slow down the system and waste bandwidth. Reading/writing files will compete for resources with the web application. Difficult to expand: When the number of downloads increases, we cannot increase the number of web-servers and use load balancing, because each web server will contain separate files. See, but is it finished yet? After having your own file server to store files, there are still many issues to worry about: Bandwidth and Speed: Fileserver must ensure data transmission speed. It's okay for a small number of users, but for a large number of users, if you need a bandwith of a few GB/s, a file server cannot handle it. Security: The data contained in the file is mostly sensitive data. The system must delegate permissions so that only appropriate apps/individuals can access this fileserver. In addition, when uploading data, downloading data must also be encrypted to prevent theft Backup and Reliability: With large systems, hard drive failures and server failures are common in the district. Files must be backed up regularly and stored in many places so that if data is damaged, there is still data to recover. You see, with small, simple systems, just saving photos and files to the same server as the web server is fine. However, in large systems that need to process a lot of files, we have to build an entire infrastructure system to serve the storage, processing, and upload/download of files. What are the benefits of saving files on the Cloud? As I said in previous articles, when using Cloud storage services from Azure and AWS, you can use their infrastructure, no need to rebuild from scratch. When using these Cloud services, we will get many benefits: Reduce initial costs: Azure charges based on storage capacity + traffic. Currently, the storage price is about $18-30/TB/month. Therefore, we will save on initial investment costs, instead of having to spend money to buy a hard drive, we can just spend as much as we want on Azure. Easy to expand: When storage needs increase, there is no need to buy additional hard drives; Just pay more for Azure. Stability: Azure or AWS will take care of the infrastructure, backup, data rendundancy to ensure your data is not lost, easily restored even in case of natural disasters, earthquakes, etc. Security: Files stored on Azure/AWS are encrypted during the storage and upload process. We can also delegate permissions through accounts, API Keys or Tokens. Easy access through API: Normally, our applications will need to interact with files (download, upload). Azure/AWS will provide libraries to interact with files in C#/Java, or communicate directly via RestAPI. However, besides the advantages, there are also some disadvantages such as: The price will be a bit high compared to the long term (After about 2-3 years we will start to lose money) When there is a large amount of download or a virus, you have to charge quite a lot, because the price is based on traffic If the system on the Cloud has a problem, our system will be affected (This possibility is a bit low because according to the SLA, they will guarantee uptime from 99.9 to 99.99) Conclusion Well, this article is already long so I'll stop here. In the following articles, we will learn about two main services for saving Azure files: Azure Blob and Azure Files. Rate this: Like this: Related
Ở bài trước, tụi mình đã tìm hiểu về khó khăn của việc lưu file, cùng những thứ hay ho của Azure Storage rồi. Ở bài này, tụi mình sẽ cùng tìm hiểu về 2 dịch vụ chính để lưu file của Azure là: Azure Blob và Azure Files nha. Bài viết này gồm 2 phần: Phần 1 : Lưu trữ file có gì khó? Dùng Cloud được lợi gì? Phần 2 : Tìm hiểu về Azure Blobs và Azure Files + Demo Phân biệt Azure Blob và Azure Files Bên AWS việc lưu trữ file khá là đơn giản, chỉ cần dùng Amazon S3 , tạo bucket là xong. Bên Google Cloud cũng vậy, chỉ cần dùng Google Cloud Storage , tạo bucket rồi upload lên là được. Bên Microsoft thì hơi bị lòng vòng hơn, vì ta có tận 2 service để lưu file mang tên Azure Blob và Azure File. Chưa kể, Microsoft còn quản lý lưu trữ thông qua Storage Account nữa. Do đó, mình sẽ chia sẻ sơ về cách dùng các dịch vụ này nha: Storage Account : Trong Azure, việc lưu trữ file được quản lý theo Storage Account: Blob, File, Queue đều nằm chung 1 Service Account cả Azure Blob: Cho phép ta lưu file theo dạng blob, hỗ trợ streaming, random access, public access. Azure Blob không có khái niệm folder mà chỉ có container (folder), và blob (file) Azure File : Azure File là một dịch vụ mới hơn, cho phép ta lưu trữ, quản lý file dưới dạng folder/file. Azure File hỗ trợ giao thức SMB nên ta có thể mount file và hệ thống vào truy xuát luôn Các bạn có thể tìm hiểu thêm về sự khác biệt tại đây: Nên dùng Azure Blob hay Azure File? Có thể nói, chức năng của 2 thằng này cũng khá là tương tự nhau . Cả 2 thằng đều có thể truy cập thông qua RestAPI cả. Azure File thì thường được dùng nếu ta muốn lưu trữ file nội bộ, share file cho cả team/công ty vì có thể mount vào máy được Trong phần lớn trường hợp, khi làm ứng dụng web, cần lưu file của người dùng, hoặc của ứng dụng (ảnh, video), file cần access theo URL, ta thường sử dụng Azure Blob nhiều hơn . Lý do đơn giản là vì: Blob có hỗ trợ streaming, Random Access file Blob cho phép ta dễ dàng share file cho public đọc Blob có nhiều library hỗ trợ nhiều ngôn ngữ lập trình hơn Demo – Tạo bucket trên Azure Blob Thôi lý thuyết đủ rồi nè, giờ tụi mình bắt đầu vào code, nhầm, … bắt đầu tạo Blob để truy cập thui nè. Các bạn tiếp tục đăng nhập vào Azure Portal rồi làm theo những bước sau nhe. Bước 1. Tạo Storage Account 1. Bấm vào Storage Account bên trái, sau đó bấm “Create Storage Account” nhé 2. Điền thông tin để tạo storage account. Ở đây Microsoft hơi làm rối người dùng chút: Khi chọn Account Kind, các bạn có thể chọn là StorageV2 để có thể dùng cả File, Blob, Queue, Table. Hoặc nếu chỉ lưu trữ Blob thì có thể chọn là Blob Storgage không thôi Phần Access Tier mặc định là Hot, nhưng bạn có thể tùy chỉnh Nếu dữ liệu các bạn được truy cập nhiều thì hãy chọn hot. Nếu dữ liệu dung lượng lớn, nhưng ít được truy cập thì chọn Cool. Phí lưu trữ sẽ rẻ hơn, nhưng phí khi truy cập sẽ mắc hơn 3. Bấm Create và chờ thôi 4. Sau khi Storage Account đã được tạo xong, các bạn bấm Go to Resouce để vào Storage Account đó Bước 2. Tạo và tải file lên Blob 2. Sau khi Container được tạo, các bạn vào Container đó, bấm Upload để chọn file up lên nha. Nếu muốn upload vào folder nào thì các bạn gõ tên vào mục Folder, folder đó sẽ được tạo lun. 3. Sau khi upload xong, các bạn có thể bấm vào File vừa được up để xem thông tin, lấy URL. Bấm nút xanh xanh để Copy URL 4. Để chạy thử, các bạn dán URL đó vào trình duyệt nhen. Thấy file tải được là OK rồi đó! Đó, tới đây là bạn đã tạo được 1 blob và lưu file trên Azure thành công rồi đấy! Sử dụng code để upload/download file Phần này mình định viết, nhưng thui để các bạn tự mò, vì Azure hướng dẫn cũng khá chi tiết cho nhiều ngôn ngữ rùi nên mình không viết lại nha! 1. Các bạn vào Storage Account vừa tạo, dưới mục Tools and SDK, chọn ngôn ngữ mình thích 2. Làm theo hướng dẫn của Azure 3. Để có Connection String/Key, các bạn bấm vào Access Keys bên trái, copy vào code là được nha. À quên, sau khi nghịch ngợm xong hết bạn nhớ xóa Storage Account vừa tạo để khỏi bị charge phí nha. Tạm kết Đấy, ở phần này, mình đã hướng dẫn các bạn về Azure Blob/Azure Files, cũng như cách sử dụng chúng trên Azure Portal rồi đấy! Ở 2 phần sau, chúng ta sẽ tìm hiểu về Caching và Message Queue – 2 phần tử không thể thiếu của các hệ thống lớn nha. Sau đó sẽ đến phần cuối, kết hợp toàn bộ các thành phần trên Cloud của Azure để xây dựng 1 hệ thống hoàn chỉnh nè. Các bạn nhớ kiên nhẫn đón xem nha! Rate this: Like this: Related
In the previous article, we learned about the difficulties of saving files, along with the cool things about Azure Storage. In this article, we will learn about two main services for saving Azure files: Azure Blob and Azure Files. This article includes 2 parts: Part 1: What's difficult about storing files? What are the benefits of using Cloud? Part 2: Learn about Azure Blobs and Azure Files + Demo Distinguishing Azure Blob and Azure Files On AWS, storing files is quite simple, just use Amazon S3, create a bucket and you're done. The same goes for Google Cloud, just use Google Cloud Storage, create a bucket and upload it. On Microsoft's side, it's a bit more complicated, because we have two services to save files called Azure Blob and Azure File. Not to mention, Microsoft also manages storage through Storage Account. Therefore, I will briefly share how to use these services: Storage Account: In Azure, file storage is managed by Storage Account: Blob, File, Queue are all under the same Service Account. Azure Blob: Allows us to save files in blob format, supports streaming, random access, public access. Azure Blob does not have the concept of folders, only containers (folders), and blobs (files) Azure File: Azure File is a newer service that allows us to store and manage files in the form of folders/files. Azure File supports the SMB protocol so we can mount files and systems for instant access You can learn more about the differences here: Should I use Azure Blob or Azure File? It can be said that the functions of these two guys are quite similar. Both are accessible via RestAPI. Azure File is often used if we want to store files internally, share files with the whole team/company because it can be mounted on the computer. In most cases, when making web applications, it is necessary to save user files, or of applications (photos, videos), files need to be accessed by URL, we often use Azure Blob more. The reason is simply because: Blob supports streaming and Random Access files Blob allows us to easily share files for public reading Blob has many libraries that support more programming languages Demo - Creating a bucket on Azure Blob Okay, enough theory, now let's start with the code,... let's start creating a Blob for access. Please continue to log in to Azure Portal and follow these steps. Step 1. Create Storage Account 1. Click on Storage Account on the left, then click “Create Storage Account” 2. Fill in the information to create a storage account. Here Microsoft confuses users a bit: When choosing Account Kind, you can choose StorageV2 to be able to use File, Blob, Queue, Table. Or if you only store Blob, you can choose Blob Storgage only The default Access Tier section is Hot, but you can customize it If your data is accessed a lot, choose hot. If the data capacity is large, but is rarely accessed, select Cool. Storage fees will be cheaper, but access fees will be more expensive 3. Click Create and wait 4. After Storage Account has been created, click Go to Resouce to enter that Storage Account Step 2. Create and upload files to Blob 2. After Container is created, go to Container There, click Upload to select the file to upload. If you want to upload to any folder, type the name in the Folder section, that folder will be created. 3. After uploading, you can click on the newly uploaded file to view information and get the URL. Click the green button to Copy the URL 4. To test it, paste the URL into your browser. If you see the downloaded file, it's OK! That's it, you have successfully created a blob and saved the file on Azure! Use code to upload/download files I intended to write this part, but I'll let you figure it out for yourself, because Azure's instructions are quite detailed for many languages, so I won't rewrite it! 1. Go to the newly created Storage Account, under Tools and SDK, select the language you like 2. Follow Azure's instructions 3. To get the Connection String/Key, click on Access Keys on the left, copy the code that's ok. Oh, I forgot, after you're done playing around, remember to delete the Storage Account you just created to avoid being charged. Conclusion: In this part, I have guided you about Azure Blob/Azure Files, as well as how to use them on Azure Portal! In the following two parts, we will learn about Caching and Message Queue - two indispensable elements of large systems. Then comes the final part, combining all components on Azure's Cloud to build a complete system. Please remember to wait patiently! Rate this: Like this: Related
Đợt vừa rồi, mình có được lên Mương 14 trả lời một số thắc mắc, tư vấn cho các bạn sắp tốt nghiệp muốn theo ngành CNTT. Vì phạm vi bài báo có hạn, không thể đăng dài quá nên một số nội dung đã được chỉnh sửa, lượt bớt. Vì vậy, mình đăng bài full lại lên blog để chia sẻ cho anh nhen! Trong bài này, mình sẽ chia sẻ về: Thời điểm nên theo đuổi ngành IT Kĩ năng quan trọng để theo ngành Các hướng phát triển trong ngành Bằng cấp liệu có thực sự quan trọng May mắn là nhà anh có điều kiện nên anh được tiếp xúc với máy tính từ khá sớm, tầm lớp 3 lớp 4 gì đó. Hồi đó anh chỉ biết dùng Word, Excel là chính chứ chưa biết IT là cái gì luôn. Lên lớp 9, lớp 10 thì do hâm mộ Bill Gates (vì nghe nói ổng giàu), công thêm mê games, nên anh mới bắt đầu có hào hứng với ngành IT. Hồi đó thì anh chỉ biết IT là làm phần mềm, làm games, làm bảo mật hacker gì đó chứ cũng không tìm hiểu thêm. Đến khi vào Đại Học anh mới học 1 cách “bài bản” về ngành. Về chuyện thời điểm thì anh thấy thật sự không quan trọng , cho dù em lớp 7, 17 tuổi hay 27 tuổi mới bắt đầu theo đuổi IT đều được cả. Kiến thức trong ngành cũng có sẵn trên mạng nên việc tự học cũng không quá vất vả. Tuy nhiên, nếu đã hơi lớn tuổi (tầm trên 30) mới bắt đầu học thì sẽ khó xin việc hơn , do phải cạnh tranh với các bạn SV trẻ mới ra trường. Các bạn trẻ này thường … năng động, trẻ trâu hơn và quan trọng là … chịu nhận lương thấp hơn Kĩ năng quan trọng nhất vẫn là … kĩ năng tự học, cụ thể hơn là kĩ năng đọc tiếng Anh . Lý do đơn giản là vì kiến thức trong ngành này t hay đổi rất nhiều và rất nhanh . Các công nghệ/trào lưu mới xuất hiện liên tục. Một công nghệ/ngôn ngữ lập trình sẽ được nâng cấp hoặc cải tiến sau 5,6 năm. Do vậy, tài liệu tiếng Việt rất ít, hầu như không cập nhật kịp. Để theo kịp công nghệ mới, bắt buộc bạn phải biết cách tự học, tự đọc tài liệu bằng tiếng Anh. Nếu không, người làm trong ngành sẽ bị đào thải, hoặc khó kiếm việc làm phù hợp (Chắc mọi người còn nhớ cách đây tầm 10 năm công nghệ Flash đi đâu cũng thấy, nhà nhà ai cũng dùng đấy chứ? Công nghệ đó nay đã … tử ẹo, nên những người làm công nghệ đó cũng … thất nghiệp luôn) Lý do thứ hai là vì Đại Học chỉ dạy những kiến thức nền tảng , còn những kiến thức thực tế thì chỉ có tự học, đi làm các bạn mới có được (Vì những kiến thức này thay đổi qua nhanh, giáo trình học không cập nhật kịp). Do vậy, hầu như SV ra trường đều cần đào tạo lại cả . Nếu không biết cách tự học, sẽ rất khó để em tìm được việc Ngoài ra còn khá nhiều kĩ năng cần thiết như kĩ năng tư duy, phân tích vấn đề, kĩ năng làm việc nhóm … Anh thấy để phát triển thì cách tốt nhất vẫn là cắm đầu vào làm, quan sát và học hỏi từ những người giỏi hơn quanh mình thôi. Để anh nói theo hướng học xong ra trường làm gì cho các bạn dễ hình dung ha. Ở Việt Nam, các bạn học IT ra trường có thể làm các ngành sau: Lập Trình Viên : Là những người xây dựng, lập trình ra phần mềm (như anh đây). Phần mềm là những thứ các em sử dụng hằng ngày như app và web Facebook, app và web Uber, ngay cả kênh14 cũng do … lập trình viên xây dựng ra luôn. Thường các bạn học ngành Khoa Học Máy Tính hoặc C ông Nghệ Phần Mềm có thể làm ngành này. Ngoài ra còn có lập trình nhúng, tức lập trình các chip, vi mạch điện tử trong TV, máy lạnh, xe hơi v..v Bảo Mật : Họ là người nghiên cứu, thiết kế hệ thống để bảo vệ thông tin của người dùng, của công ty, tránh bị rò rỉ thông tin , bảo vệ hệ thống trước hacker tấn công. Đa phần các trường có dạy ngành Bảo Mật Thông Tin/An Toàn Thông Tin , ra trường làm ngành này Business Analyst : Họ là những người rành về hệ thống và qui trình. Họ sẽ làm việc với khách hàng, thiết kế hệ thống, viết yêu cầu để cho lập trình viên xây dựng hệ thống. Thường các bạn học ngành Hệ Thống Thông Tin/Công Nghệ Thông tin nói chung cũng làm được ngành này. Ngoài ra còn một số mảng nho nhỏ khác nữa như Testing – Kiểm thử Phần Mềm , Network Engineering – Thiết lập hạ tầng mạng …. Về tiềm năng thì ngành lập trình vẫn là ngành có nhu cầu lớn nhất , dễ tìm việc nhất. Thật ra ngành này nhu cầu nhiều từ cách đây 3-5 năm rồi, chẳng qua gần đây báo đài mới bơm thổi lên thôi. Mà chia sẻ thêm, các em đừng nghe báo đài bơm thổi 4.0, AI, Big Data lên ngôi này nọ. Những công việc liên quan đến AI, Big Data, Blockchain khá là ít , hầu như tập trung ở các công ty lớn hoặc viện nghiên cứu. Chỗ này thì họ ưu tiên các bạn học Khoa Học Máy Tính, từng học Cao Học, có kĩ năng nghiên cứu. Còn lại, nếu muốn ăn chắc mặc bền, dễ tìm việc thì cứ học lập trình, theo những mảng phổ biến như Web/Mobile hoặc nhúng nhé. À, ở Việt Nam, các công ty outsourcing bóc lột nhân viên cũng khá nhiều. Do đặc thù của dự án nên đôi khi sẽ phải … vắt giò lên cổ mà code cho kịp deadline cũng có. Tuy nhiên, thông thường thì OT tới tầm 9-10h đêm là hết. Đơn giản là vì đây là ngành lao động trí óc; nếu không chịu nghỉ ngơi mà thức khuya cày cuốc thì năng suất và chất lượng công việc sẽ giảm , nên cũng rất hiếm khi tụi anh phải OT qua đêm. Về mặt sức khỏe thì ngành này cũng tương tự các ngành văn phòng khác, tức phải ngồi nhiều, nhìn màn hình nhiều , dễ mắc các bệnh như trĩ, cận, đau lưng, nhức đầu, đau đít (trĩ = đau đít nên anh nhắc lại 2 lần cho anh em nhớ). Tuy nhiên bạn bè anh và anh vẫn đi đá pò, lộn, đá banh, đạp xe, tập thể dục nhiều để hạn chế chuyện này thôi. Nói chung chuyện làm việc nhiều, code xuyên đêm còn tùy vào bản thân và … cơ duyên mỗi người. Cá nhân anh thường tránh xa mấy công ty OT nên a làm việc khá thoải mái, ngày làm 8-9 tiếng rồi về thôi hà. Trong ngành này, kinh nghiệm là cực kì quan trọng . Nếu em đã có 3,4 năm kinh nghiệm, khi đi xin việc không ai hỏi em có bằng gì, học trường nào. Các công ty họ tìm những người có khả năng, làm được việc. Có kinh nghiệm làm việc nhĩa là em từng trải qua các dự án, biết cách giải quyết vấn đề. Bản thân anh có bằng Thạc Sĩ loại Giỏi nhưng trước giờ đi phỏng vấn cũng chả có ai hỏi anh học trường nào, có bằng gì cả. Tuy nhiên, anh cũng từng có 1 câu nói vui thế này: Bằng cấp chỉ là tấm vé vào vòng gửi xe thôi. Nhưng không có vé thì không được vào gửi xe đâu Nếu chưa có kinh nghiệm, nhà tuyển dụng chỉ có thể nhìn vào bằng cấp của em để đánh giá. Không cần biết em giỏi thế nào, nếu em chưa từng đi làm, trong CV không có sản phẩm gì, lại … không có bằng ĐH, cơ hội em được vào vòng phỏng vấn để chứng tỏ bản thân mình là rất thấp. Do vậy, anh thường khuyên các bạn sinh viên là nếu có điều kiện thì ráng đi thực tập từ năm 2, năm 3 đi. Lúc ra trường là đã được 1,2 năm kinh nghiệm hơn bạn bè trang lứa rồi, xin việc cũng dễ hơn. Có khi chẳng cần xin mà nhiều công ty mời gọi luôn ấy chứ! Tuy vậy, anh vẫn khuyên các bạn ráng học cho xong để lấy bằng. Tấm bằng ĐH mở ra khá nhiều cánh cửa cho bạn. Nếu không có bằng, sau này muốn lên manager, muốn ra nước ngoài làm việc , con đường của bạn sẽ khó khăn gian nan lắm! Rate this: Like this: Related
Recently, I was able to go to Ditch 14 to answer some questions and advise those about to graduate who want to major in IT. Because the scope of the article is limited, it cannot be posted too long, so some content has been edited and removed. Therefore, I posted the full article again on the blog to share with you! In this article, I will share about: Time to pursue IT career Important skills to follow the industry Development directions in the industry Does a degree really matter? Luckily, his family had the conditions so he was exposed to computers quite early, around 3rd or 4th grade. At that time, he only knew how to use Word and Excel, but did not know what IT was. In 9th and 10th grade, he admired Bill Gates (because he heard he was rich) and loved games, so he started to get excited about the IT industry. At that time, he only knew IT as making software, making games, being a security hacker or something, but didn't learn more. It wasn't until he entered University that he learned "methodically" about the industry. Regarding timing, I don't think it really matters, whether you are in 7th grade, 17 years old or 27 years old just starting to pursue IT is fine. Industry knowledge is also available online, so self-study is not too difficult. However, if you are a bit older (over 30) and have just started studying, it will be more difficult to get a job because you have to compete with young graduates. These young people are often... more active, younger and more importantly... willing to receive lower salaries. The most important skill is still... self-study skills, more specifically, English reading skills. The simple reason is because knowledge in this industry changes a lot and very quickly. New technologies/trends appear continuously. A technology/programming language will be upgraded or improved every 5.6 years. Therefore, Vietnamese documents are very few and hardly updated in time. To keep up with new technology, it is imperative that you know how to self-study and read documents in English. Otherwise, people working in the industry will be eliminated, or have difficulty finding suitable jobs (You all remember that about 10 years ago, Flash technology was everywhere, everyone used it in their homes, right? That technology is now available. has... died, so those people who work in technology are also... unemployed.) The second reason is because University only teaches basic knowledge, but practical knowledge can only be self-study and go to work. newly acquired (Because this knowledge changes quickly, the curriculum is not updated in time). Therefore, almost all graduates need retraining. If you don't know how to self-study, it will be very difficult for you to find a job. There are also many necessary skills such as thinking skills, problem analysis skills, teamwork skills... I think the best way to develop Just put your head down and work, observe and learn from better people around you. Let me put it in terms of what I will do after graduating so you can easily imagine. In Vietnam, IT graduates can work in the following fields: Programmers: People who build and program software (like me). Software is what children use every day such as Facebook app and website, Uber app and website, even channel 14 was built by... programmers. Usually, people who study Computer Science or Software Engineering can do this field. There is also embedded programming, which means programming chips and electronic circuits in TVs, air conditioners, cars, etc. Security: They are the ones who research and design systems to protect user and company information, avoid information leaks, and protect the system against hacker attacks. Most schools teach Information Security/Information Security and graduate to work in this field Business Analyst: They are people who are familiar with systems and processes. They will work with customers, design systems, write requirements for programmers to build the system. Usually, people who study Information Systems/Information Technology in general can also work in this field. There are also some other small areas such as Testing - Software Testing, Network Engineering - Network infrastructure setup... In terms of potential, the programming industry is still the industry with the greatest demand and the easiest to find a job. Actually, this industry has had a lot of demand since 3-5 years ago, but only recently has the media been hyping it up. But to share more, don't listen to the media hyping up 4.0, AI, Big Data, this and that. Jobs related to AI, Big Data, Blockchain are quite few, mostly concentrated in large companies or research institutes. Here, they prioritize students who study Computer Science, have attended graduate school, and have research skills. For the rest, if you want to be sure of your job, wear something durable, and find a job easily, just learn programming, following popular fields like Web/Mobile or embedded. Well, in Vietnam, outsourcing companies exploit employees quite a lot. Due to the specifics of the project, sometimes you will have to struggle to code to meet the deadline. However, usually OT ends around 9-10pm. Simply because this is an intellectual labor industry; If we don't rest and stay up late plowing, our productivity and work quality will decrease, so it's very rare for us to have to do OT overnight. In terms of health, this industry is similar to other office industries, meaning you have to sit a lot, look at screens a lot, and are susceptible to diseases such as hemorrhoids, nearsightedness, back pain, headaches, and butt pain (hemorrhoids = butt pain, so you repeat twice so you remember). However, my friends and I still play football, play soccer, cycle, and exercise a lot to limit this problem. In general, working a lot and coding overnight depends on each person and... each person's fate. Personally, I usually stay away from OT companies so I work quite comfortably, work 8-9 hours a day and then go home. In this industry, experience is extremely important. If you have 3 or 4 years of experience, when applying for a job, no one will ask what degree you have or what school you attended. Companies look for people who are capable and can do the job. Having work experience means you have been through projects and know how to solve problems. He himself has a Master's degree with honors, but before the interview, no one asked him where he went to school or what degree he had. However, he also had a funny saying like this: A degree is just a ticket to the parking lot. But if you don't have a ticket, you won't be able to enter the parking lot If you don't have experience, employers can only look at your qualifications to evaluate. No matter how good you are, if you've never worked, don't have any products on your CV, and... don't have a university degree, your chances of getting into the interview round to prove yourself are very low. Therefore, he often advises students that if they have the conditions, they should try to practice in their 2nd or 3rd year. When I graduate, I already have 1 or 2 years more experience than my peers, so it's easier to get a job. Sometimes you don't need to ask and many companies invite you! However, he still advises you to try to finish your studies to get a degree. A university degree opens many doors for you. If you don't have a degree, if you want to become a manager or go abroad to work in the future, your path will be very difficult! Rate this: Like this: Related
Đôi khi đang lướt web hoặc dạo Facebook bạn sẽ thấy nhiều mẩu quảng cáo lạ lạ mà quen quen như thế này? Quảng cáo sản phẩm Sendo Quảng cáo sản phẩm của tiki trên facebook Điều lạ lùng là những mẩu quảng cáo này hiển thị đúng những thứ bạn vừa xem . Ví dụ mình vừa tìm mua túi xách cho gấu, hay mình vừa mò mò xem tai nghe thì thấy quảng cáo ở trang khác luôn! Liệu đây có phải là một sự trùng hợp tình cờ?? Bạn đoán đúng rồi đấy! Tất nhiên là *éo phải rồi, thế *éo nào mà trùng hợp như vậy được! Có một bàn tay vô hình theo dõi từng bước chân của bạn trên Internet, kể cả khi bạn lướt web mua hàng , khi bạn nghe nhạc Sơn Tùng cho dễ ỵ, khi bạn xem porn để giải lao sau những ngày học tập căng thẳng. Bàn tay vô hình này được điều khiển bởi khá nhiều ông lớn như Facebook, Amazon, Google… Đọc bài viết để tìm hiểu xem họ đã dòm ngó, theo dõi chúng ta như thế nào nhé! Họ đã làm điều đó… như thế nào? Các kĩ thuật theo dõi người dùng được gọi chung là Web Tracking hoặc User Tracking , gồm rất nhiều chiêu trò từ cơ bản đến nâng cao. Trong đó, chiêu cơ bản nhất và được dùng nhiều nhất là … sử dụng Cookies (xem lại bài viết cơ bản về Cookie nhe). Hầu như bạn nào cũng có một tài khoản Facebook và tài khoản Gmail phải không nào? Làm sao để khi đăng nhập, Facebook và Google nhớ bạn là ai, bạn không cần phải đăng nhập lại? Tất nhiên là nhờ cookie rồi! Cách Facebook theo dõi người dùng! Để thu thập thông tin người dùng, dĩ nhiên các ông lớn này phải có sự tiếp tay (vô tình lẫn cố ý) của dân web developer tụi mình. Phần lớn các trang web thường sử dụng dịch vụ Google Analytic và Facebook Pixel để thống kê lượng người truy cập và thông tin. Để sử dụng các dịch vụ này, mình phải thêm một vài đoạn code JavaSscript và HTML. Khi bạn ghé thăm một trang web có các dòng script này, cookie của bạn (cùng với địa chỉ web và thời gian ghé thăm) sẽ được gửi lên server của Google và Facebook , từ đó Google và Facebook có thể truy ra những trang web bạn đã ghé thăm và thời điểm , đáng sợ chưa? Đôi khi người ta chỉ muốn thêm chức năng Like hoặc comment bằng Facebook, không có ý theo dõi người dùng. Tuy vậy, để thêm các chức năng này, ta phải thêm vài dòng code JavaScript từ Facebook, đương nhiên là Facebook cũng… theo dõi qua cookie được luôn. Việc implement một hệ thống tracking dựa trên cookie cũng khá đơn giản, các bạn có thể xem trong Cùng viết hệ thống theo dõi người dùng bằng cookie nhé! Một số chiêu trò “đáng sợ” hơn Đôi khi, bạn sẽ gặp phải trường hợp dù đã xoá cookie, dùng trình duyệt ẩn danh mà vẫn bị track, tại sao vậy? Có những kĩ thuật theo dõi người dùng nằm ở cảnh giới … cao hơn, còn gọi là user fingerpringting. Kĩ thuật này dựa trên cơ sở rằng mỗi user sẽ sử dụng một tập hợp trình duyệt, hệ điều hành, địa điểm, timezone khác nhau . Giả sử Tèo sống ở Việt Nam, dùng máy Mac, hay xài Chờ Rôm. Khi Tèo đi vào tìm tài liệu học tập, trong header của HTTP request sẽ chứa có một số thông tin như browser là Chrome, location là Việt Nam . Kết hợp với JavaScript, hệ thống có thể mò ra các add-on Tèo đã cài, độ phân giải màn hình, font và OS của Tèo. Từ những thông tin này, hệ thống có thể truy ra người dùng đó chính là Tèo . Đấy, chết Tèo chưa! Kiểu này thì xoá cookie cũng chạy trời không khỏi nắng nhé! Tèo (bên trái) vào thiend*a. Tèo xoá cookie. Tèo nghĩ rằng không ai track được. Đừng như Tèo! Facebook và Google theo dõi người dùng để làm gì? Đến đây, chúng ta lại tò mò: Tại sao Facebook và Google lại theo dõi người dùng? Có một câu nói khá hay rằng: Khi sử dụng sản phẩm miễn phí, thì bạn chính là sản phẩm! Đã có bao giờ bạn thắc mắc rằng: Facebook và Google đều miễn phí, vậy những công ty này lấy tiền từ đâu ra để nuôi nhân viên và hệ thống?? Dĩ nhiên là các công ty này không làm từ thiện, mà họ dựa trên thông tin của chính bạn để bán quảng cáo lấy tiền . Đó là lý do Facebook luôn khuyến khích bạn nhập vào càng nhiều thông tin càng tốt. Ví dụ nhé, mình muốn bán thuốc bổ thận tráng dương cho các cụ ông cụ bà. Lẽ dĩ nhiên, muốn bán được hàng phải… quảng cáo. Làm sao để quảng cáo thuốc tới các cụ ông cụ bà 30-50? Rất đơn giản! Google và Facebook có dữ liệu và thông tin người dùng, chỉ cần trả một khoản phí nho nhỏ, Google và Facebook sẽ quảng cáo sản phẩm của mình đến tận tay các đối tượng này! Sẵn đây mình xin quảng cáo luôn thuốc Rocket 1h, nghe nói dùng rất tốt 😉 Lợi nhiều hơn hại? Thật ra, việc theo dõi người dùng mang lại lợi ích cho cả 3 phía . Quay lại vụ bán thuốc ở trên, cả 3 bên đều được lợi: Mình bán được hàng, Facebook có tiền, các ông các cụ U40 mua được sản phẩm ông uống bà vui. Cá nhân mình và các bạn làm marketing rất hay sử dụng Google Analytic và Facebook Pixel để tìm hiểu về đối tượng vào website , độ tuổi, địa điểm, từ đó cải tiến website để đem lại trải nghiệm tốt hơn . Theo lý thuyết, Google và Facebook chỉ cung cấp thông tin thống kê chứ không đi vào chi tiết cụ thể. Do đó mình cũng không thể track các bạn vào trang web nào, Facebook là gì đâu, chỉ Facebook biết thôi! Đừng lo ha. Những thông tin này khá quan trọng nên Facebook và Google cũng bảo mật chúng rất kĩ. Tuy nhiên, nếu xui xui mà có hacker đột nhập vào thì chắc hậu quả cũng hơi bị khủng khiếp nha. Kết – Chúng ta phải làm gì? Các bạn thấy đấy, chúng ta cứ lầm tưởng rằng mình vào web nào chỉ có mình biết. Thật ra, chúng ta luôn bị các ông lớn theo dõi, dòm ngó! Việc theo dõi ảnh hưởng đến sự riêng tư của bạn. Hẳn bạn không muốn làm gì cũng có đứa đi theo dòm ngó mình phải không nào? Liệu có cách nào để hạn chế chuyện theo dõi này không? Có “ai đó” luôn dõi theo mọi bước chân của bạn :3 Tất nhiên là có! Mình đã có đôi lời khuyên trong bài viết bảo mật về cookie và CSRF . Các bạn nên sử dụng một số extension như adblock, dùng VPN, sử dụng trình duyệt ẩn danh khi có thể. Tất nhiên, các biện pháp này chỉ chống tracking được một phần thôi , chứ với nhiều phương pháp theo dõi “bá đạo” như trên thì không có gì là hoàn toàn an toàn đâu! Ngoài ra, cách tốt nhất để không bị lộ thông tin là … đừng đưa quá nhiều thông tin của mình lên Internet! Đôi khi không phải Google hay Facebook, mà chính kẻ xấu có thể lần theo các địa chỉ check-in của bạn để theo dõi, bắt cóc tống tiền hoặc làm nhiều trò khác đấy! Nhớ cẩn thận nhé! Một số tài liệu để các bạn tìm hiểu thêm: Internet Privacy: Tracking Cookies 101 Web Tracking Methods Rate this: Like this: Related
Sometimes when surfing the web or browsing Facebook, you will see many strange but familiar ads like this? Advertise Sendo products Advertise tiki products on Facebook The strange thing is that these ads display exactly what you just saw. For example, I was just looking to buy a handbag for my bear, or I was just looking for headphones and saw an ad on another site! Is this a coincidence?? You guessed it right! Of course it's *not* right, how could it be such a *coincidence! There is an invisible hand that tracks your every step on the Internet, even when you surf the web to make purchases, when you listen to Son Tung music for comfort, when you watch porn to relax after stressful study days. This invisible hand is controlled by many big companies such as Facebook, Amazon, Google... Read the article to find out how they spy and monitor us! How did they do that? User tracking techniques are collectively known as Web Tracking or User Tracking, including many tricks from basic to advanced. Among them, the most basic and most used technique is... using Cookies (see the basic article about Cookies). Almost everyone has a Facebook account and a Gmail account, right? How can Facebook and Google remember who you are when you log in, so you don't have to log in again? Thanks to cookies of course! How Facebook tracks users! To collect user information, of course these big guys must have the help (accidentally and intentionally) of us web developers. Most websites often use Google Analytics and Facebook Pixel services to collect visitor statistics and information. To use these services, I have to add some JavaSscript and HTML code. When you visit a website with these script lines, your cookie (along with the web address and time of visit) will be sent to Google and Facebook's servers, from where Google and Facebook can trace the website. Have you visited and time , scary yet? Sometimes people just want to add the Like or comment function using Facebook, without the intention of tracking users. However, to add these functions, we must add a few lines of JavaScript code from Facebook. Of course, Facebook can also... track via cookies. Implementing a tracking system based on cookies is also quite simple, you can see in Let's write a user tracking system using cookies! Some more "scary" tricks Sometimes, you will encounter situations where even though you have deleted cookies and used an incognito browser, you are still being tracked, why is that? There are user tracking techniques at a higher level, also known as user fingerspringting. This technique is based on the basis that each user will use a different set of browsers, operating systems, locations, and timezones. Suppose Teo lives in Vietnam, uses a Mac, or uses Chrome. When Teo goes to look for learning materials, the header of the HTTP request will contain some information such as browser is Chrome, location is Vietnam. Combined with JavaScript, the system can detect installed Teo add-ons, Teo's screen resolution, font and OS. From this information, the system can trace that user to be Teo. See, Teo is not dead yet! This way, even deleting the cookies won't keep the sun out! Teo (left) enters thiend*a. Teo deletes cookies. Teo thought that no one could track him. Don't be like Teo! What do Facebook and Google track users for? At this point, we're curious again: Why do Facebook and Google track users? There is a pretty good saying: When you use a free product, you are the product! Have you ever wondered: Facebook and Google are both free, so where do these companies get the money to support employees and systems?? Of course, these companies do not do charity, but they rely on your own information to sell advertising for money. That's why Facebook always encourages you to enter as much information as possible. For example, I want to sell kidney tonic for men and women. Of course, if you want to sell products, you must... advertise. How to advertise drugs to 30-50 year olds? Very simple! Google and Facebook have user data and information, just pay a small fee, Google and Facebook will advertise their products directly to these audiences! Now, I would like to advertise Rocket 1h medicine, I heard that it is very good to use 😉 More benefits than harm? In fact, user tracking benefits all three sides. Going back to the drug selling case above, all three parties benefit: I can sell products, Facebook has money, men and women under 40 can buy products that make them happy. Personally, I and my fellow marketers often use Google Analytics and Facebook Pixel to learn about website visitors, age, and location, thereby improving the website to bring a better experience. In theory, Google and Facebook only provide statistical information and do not go into specific details. Therefore, I cannot track you on any website, what is Facebook, only Facebook knows! Don't worry. This information is quite important, so Facebook and Google also keep it very secure. However, if you are unlucky and a hacker breaks in, the consequences will probably be quite terrible. Conclusion – What should we do? You see, we mistakenly believe that only we know which website we visit. In fact, we are always being watched and watched by the big guys! Tracking affects your privacy. Surely you don't want to have someone following you and watching you, right? Is there any way to limit this tracking? There is "someone" always watching your every step :3 Of course there is! I have some advice in the security article about cookies and CSRF. You should use some extensions like adblock, use a VPN, and use an anonymous browser when possible. Of course, these measures can only partially prevent tracking, but with many "hegemonic" tracking methods like above, nothing is completely safe! In addition, the best way to avoid having your information leaked is... don't put too much of your information on the Internet! Sometimes it's not Google or Facebook, but the bad guys who can follow your check-in addresses to track, kidnap and blackmail or do many other things! Remember to be careful! Some documents for you to learn more: Internet Privacy: Tracking Cookies 101 Web Tracking Methods Rate this: Like this: Related
Chém gió nhiều rồi nên hôm nay Code Dạo quay lại viết bài về kĩ thuật nhe. Môi trường (environment) là một khái niệm/kĩ thuật khá hay mà 69.69% các công ty phần mềm đều sử dụng (và 96.69% sinh viên không hề biết gì về nó). Khái niệm này giúp chúng ta có thể test/tìm bug/thêm tính năng mà sợ gây ảnh hưởng đến hệ thống đang hoạt động . Đa phần đi làm cỡ 6 tháng/1 năm thì các bạn sẽ biết sơ về biết khái niệm này rồi! Do vậy, trong bài, mình chỉ giới thiệu lại, giải thích rõ hơn, và hướng dẫn cách phân chia environment cho đúng thôi nha. Môi trường là cái chi chi? Nói 1 cách đơn giản, môi trường là một tập hợp phần cứng + phần mềm + dữ liệu + configuration để một ứng dụng có thể hoạt động. Giả sử mình muốn làm một trang web bán hàng bằng PHP, sử dụng LAMP Stack . Lúc này, môi trường của web bán hàng đó sẽ bao gồm: Phần cứng : Web server Linux chứa source code của ứng dụng. Database Server để chứa dữ liệu Phần mềm : Linux, Apache, PHP được cài trên web server. MySQL cài trên Database Server. Phần mềm còn bao gồm PHP Plugin, Database Plugin Code của ứng dụng (Đã compile hoặc chưa compile) : Không có thì làm sao mà chạy Dữ liệu : Database phải có dữ liệu về danh mục sản phầm, account admin v…v thì mới hoạt động được. Configuration : Một số thiết lập như IP, username và password của database server, thời gian sống của Cookie v…v Với các bạn sinh viên đang học, hầu như các bạn không cần dùng môi trường. Các bạn dùng máy bàn/laptop mình làm phần cứng, cài hết đủ thứ phần mềm và DB lên máy, lưu dữ liệu trong local Database, lưu configuration thẳng trong source code luôn. Cách này dùng để làm bài tập, làm demo đồ án thì không sao. Tuy nhiên, khi muốn đưa ứng dụng lên host, tự cài đặt máy chủ, đưa source lên cho người khác xài, các bạn sẽ mất rất nhiều thời gian để cài đặt đủ thứ/thiết lập môi trường để chạy được app của bạn. Các công ty thường thiết lập môi trường như thế nào? Vào ngày đầu đi làm, công ty sẽ dành cho bạn tầm 1-2 buổi để cài đặt IDE/môi trường cần thiết để code. Đa phần các công ty thường sử dụng 3-4 môi trường như sau: Local Environment : Đây là môi trường local, chỉ nằm trên máy của 1 developer (giống như thời bạn đi học ấy). Vì toàn bộ database/code đều nằm trong máy nên bạn tha hồ nghịch mà không ảnh hưởng tới ai. Chỉ mình bạn access được môi trường này. Staging/QA Environment : Đây là môi trường chung của team developer. Khi code của bạn được merge vào branch chính, code sẽ được deploy lên môi trường này. Thường thường ta dùng môi trường này để test xem code của mình tích hợp với code của người khác có chạy đúng không. Developer và Product Manager/BA/ Tester có thể access môi trường này để test, confirm chức năng đã code đúng chưa. Nếu code trên Staging/QA chạy ok, ta sẽ deploy nó lên môi trường Production Production Environment : Đây là môi trường “thần thánh”, chứa ứng dụng thật đang chạy, với người dùng thật, dữ liệu thật . Do đó, người ta thường test kĩ trên Staging/QA trước khi deploy lên môi trường này. Access tới môi trường này được bảo vệ rất kĩ . Hầu như chỉ các anh DBA, DevOps, Sysadmin, Dev thân tín mới có thể truy cập vào. Đơn giản vì nó là sản phẩm đang chạy, đụng phát nó hỏng hoặc bị chôm mất dữ liệu là thiệt hại sẽ rất nhiều . Code của bạn chỉ thật sự được người dùng sử dụng khi nó lên môi trường Production . Thuật ngữ code release hay lên Production là bắt nguồn từ đó. Khi đi làm, hầu như các bạn sẽ sử dụng Local và Staging là chính: Code và test đã đời trên local, đảm bảo không có bug Sau khi code đã được merge và deploy trên staging, tiếp tục test và confirm với Product Manager/BA, đợi tester test Một điều khá thú vị lẫn … bực mình là: nhiều khi dữ liệu/configuration trên Production khác trên Staging và Local . Vì thế, khi người dùng báo bug trên Production , ta tìm mọi cách mà vẫn không replicate được trên Staging (và ngược lại). Thiết lập môi trường thế nào cho đúng? Thông thường, việc thiết lập môi trường local/staging/production sẽ do CTO/Technical Leader/SysAdmin/DevOps thực hiện. Developer của tụi mình chỉ việc làm theo và xài thôi. Thiết lập môi trường thế như thế nào cho chuẩn còn phụ thuộc vào nhiều yếu tố. Theo mình, một số điều nên lưu ý là: Cài đặt nhanh và dễ : Việc thiết lập môi trường local nên càng nhanh càng dễ càng tốt. Tốt nhất là chỉ chạy 1 script hoặc 1 click thôi. Có công ty mình phải cài nguyên nửa buổi từ MS SQL tới Memcache tới NGinx đủ thứ, có công ty mình chỉ cần chạy script 30p là xong Đồng bộ : Đồng bộ về phần mềm tức là Staging dùng phần mềm A bản 1.2.1, B bản 2.1.2 thì Production cũng nên y chang vậy . Đồng bộ về phần cứng tức là các môi trường nên dùng server với cấu hình giống nhau Điều này khá khó , vì môi trường Production thường dùng nhiều server hơn/server nhanh hơn do có nhiều người dùng hơn. Việc đồng bộ giúp chúng ta dễ fix bug, đo đạc optimize code tiện hơn Data cũng nên được đồng bộ . Tuy nhiên, nếu data chứa dữ liệu nhạy cảm (email, điện thoại, password khách hàng) thì nên xóa/mask/chỉnh sửa trước khi sync vào môi trường staging/local Dùng chung code, khác configuration : Configuration như IP của database, API Key, AppID nên chứa thành file riêng ( .env, .json, .config ). Các môi trường nên dùng code giống nhau, chỉ khác config thôi. Phân quyền rõ ràng : Nên giới hạn access tới môi trường Production, chỉ người có nghĩa vụ mới được access. Hôm trước trên Reddit có vụ thanh niên intern mới vào, lỡ chạy code làm mất sạch data trên Production và bị đuổi việc . Ai cũng đồng ý đây là lỗi của thằng CTO chứ không phải intern đó, vì để access vào database Production hớ hênh vậy! Tạm kết Túm lại, việc setup môi trường thế nào còn phụ thuộc vào nhiều yếu tố: công nghệ sử dụng, trình độ của team, đặc thù của dự án. Ở công ty của bạn các môi trường được setup thế nào, có staging và QA gì không, hay chỉ … bùm phát từ local rồi deploy lên Production luôn =)). Phù, lâu rồi mới viết lại bài technical kiểu này. Nếu các thấy hứng thú về các kĩ thuật mà đi học không có những đi làm sử dụng nhiều thì cứ comment phía dưới nha. Nhiều bạn quan tâm mình sẽ viết thêm hihi. Rate this: Like this: Related
There's been a lot of gossip, so today Code Dao is back to writing an article about techniques. Environment is a pretty good concept/technique that 69.69% of software companies use (and 96.69% of students don't know anything about it). This concept helps us test/find bugs/add features without fear of affecting the operating system. Most people work about 6 months/1 year and you will have a basic understanding of this concept! Therefore, in this article, I will only reintroduce, explain more clearly, and instruct how to divide the environment properly. What is the environment? Simply put, an environment is a set of hardware + software + data + configuration in which an application can operate. Suppose I want to make a sales website in PHP, using LAMP Stack. At this time, the environment of that sales website will include: Hardware: Linux web server contains the source code of the application. Database Server to store data Software: Linux, Apache, PHP installed on web server. MySQL installed on Database Server. The software also includes PHP Plugin, Database Plugin Application code (Compiled or not compiled): How can it run without it? Data: Database must have data about product categories, admin accounts, etc. to work. Configuration: Some settings such as IP, username and password of the database server, Cookie life time, etc For students who are studying, you almost do not need to use the environment. You use your desktop/laptop as hardware, install all kinds of software and databases on the computer, save data in the local Database, save configuration straight in the source code. This method is okay to use for exercises and project demos. However, when you want to put the application on the host, install the server yourself, upload the source for others to use, you will spend a lot of time installing everything/setting up the environment to run your app. How do companies typically set up their environments? On your first day of work, the company will give you about 1-2 sessions to install the IDE/environment needed to code. Most companies often use 3-4 environments as follows: Local Environment: This is the local environment, located only on one developer's computer (like when you went to school). Because the entire database/code is on the computer, you can play around freely without affecting anyone. Only you can access this environment. Staging/QA Environment: This is the common environment of the developer team. When your code is merged into the main branch, the code will be deployed to this environment. Usually we use this environment to test whether our code integrates with other people's code and runs correctly. Developers and Product Managers/BAs/Testers can access this environment to test and confirm whether the function has been coded correctly. If the code on Staging/QA runs ok, we will deploy it to the Production environment Production Environment: This is the "divine" environment, containing real applications running, with real users, real data. Therefore, people often test carefully on Staging/QA before deploying to this environment. Access to this environment is very well protected. Almost only trusted DBAs, DevOps, Sysadmins, and Devs can access it. Simply because it is a running product, if it crashes or has data stolen, there will be a lot of damage. Your code is only really used by users when it goes into the Production environment. The term code release or production comes from that. When you go to work, you will mostly use Local and Staging: Code and testing have been done locally, ensuring there are no bugs After the code has been merged and deployed on staging, continue testing and confirming with Product Manager/BA, wait for tester to test One thing that is quite interesting and... annoying is: sometimes the data/configuration on Production is different on Staging and Local. Therefore, when users report bugs on Production, we try everything but still cannot replicate on Staging (and vice versa). How to set up the right environment? Normally, setting up the local/staging/production environment will be performed by the CTO/Technical Leader/SysAdmin/DevOps. Our developers just need to follow and use it. How to set up a standard environment depends on many factors. In my opinion, some things to keep in mind are: Quick and easy installation: Setting up the local environment should be as quick and easy as possible. It's best to only run 1 script or 1 click. Some companies have to install it in half an hour, from MS SQL to Memcache to NGinx, everything, some companies only need to run the script in 30 minutes to complete. Synchronization: Software synchronization means Staging uses software A version 1.2.1, B version 2.1.2, then Production should be the same. Hardware synchronization means that environments should use servers with the same configuration This is quite difficult, because Production environments often use more servers/faster servers due to more users. Synchronization makes it easier for us to fix bugs and measure code optimization more conveniently Data should also be synchronized. However, if the data contains sensitive data (email, phone, customer password), you should delete/mask/edit before syncing to the staging/local environment. Using the same code, different configuration: Configuration such as database IP, API Key, AppID should be contained in separate files (.env, .json, .config). Environments should use the same code, just different configurations. Clear authorization: Access to the Production environment should be limited, only authorized people can access. The other day on Reddit, there was a case of a young intern who had just joined, accidentally ran code, lost all data on Production and was fired. Everyone agrees that this is the CTO's fault, not the intern's, for accessing the Production database so carelessly! In summary, how to set up the environment depends on many factors: the technology used, the level of the team, and the specifics of the project. In your company, how are the environments set up, is there any staging and QA, or just... explode from local and then deploy to Production =)). Phew, it's been a while since I wrote a technical article like this. If you are interested in techniques that you don't use in school but at work, please comment below. Many of you are interested, I will write more hihi. Rate this: Like this: Related
Đợt trước, vừa hết thời hạn thử việc, mình có vài ngày phép nên về quê chơi, thăm nhà, thăm bố mẹ. Vốn định về nghỉ ngơi, mình chỉ lo sáng ăn uống đi chơi, tối về lại ngủ chứ không viết blog bờ liếc gì. Thế nhưng, nhờ một buổi đi chơi với ba mình (hồi xưa, ba mình còn chưa học xong Đại Học), mình chợt ngộ ra vài bài học hay ho về ngành Software Engineer mà trong trường chưa bao giờ dạy . (còn được bonus thêm 2 trái xoài siêu to không lồ nữa). Do vậy, mình viết bài này để … khoe xoài, nhầm, để chia sẻ 3 bài học hay ho mà mình đã học được cho các bạn nhen. Chuyện cây xoài trĩu quả nhưng bị kiến vàng ăn sạch Hôm đó, mình chở ba đi qua thăm nhà ông bác nọ. Nhà bác có một cái vườn nho nhỏ, chỉ trồng mỗi cây xoài khá bự. Ngồi nói chuyện 1 hồi, ba mới hỏi là: Ủa sao nhà nhiều xoài bự vậy mà không hái. Bác mới kể: Cây xoài nhà dạo này đang chín, cứ sắp chín là bị kiến vào đục rỗng ruột, rụng lạch bạch, không ăn được gì. Ba mình hỏi lại: Ủa sao anh không hái xuống trước khi nó chín Bác bảo : Nhà đâu có mấy đứa nhỏ đâu, có mấy trái cũng đâu thuê ai hái làm gì Nghe vậy, ba mình ra sân, tìm vài cây gỗ dài dài, vài miếng dây thép, đinh búa v…v rồi bảo: Để tui làm cho anh cái cây hái xoài cho tiện. Đó, bài học thứ nhất mà mình rút ra được: Một người engineer giỏi phải biết nhìn ra nhu cầu của khách hàng , dùng khả năng của mình + những thứ sẵn có để giải quyết nhu cầu đó. Ở đây, ba mình đã nhìn ra được nhu cầu hái xoài của khách hàng, cũng như tận dụng những vật liệu linh tinh trong vườn để làm cây hái xoài , nhằm giải quyết nhu cầu đó. HaiXoai v0.1 – Cây khều + chai nước = Xoài rơi lạch bạch Nói ra làm, ba bắt tay vào đóng đóng, gõ gõ. Ba mình gắn chai nước vào đầu cây, cắt 1 khoản nhỏ để quả xoài chui vào được, sau đó đóng đinh cho chặt để không rớt. Công cụ HaiXoai phiên bản 0.1 ra đời từ đó! Không chần chừ, ba mình bắt đầu cho HaiXoai 0.1 chạy thử nghiệm ngay. Ban đầu, lỗ khá nhỏ, xoài chui không lọt, cây thì quá ngắn không với tới. Thế là ba khoét lỗ cho dài hơn, nối thêm cây khều, HaiXoai 0.2 đã ra mắt. Kết quả ban đầu cũng khá ok, qua xoài chui tọt vào trong chai , chỉ cần giựt mạnh là xoài sẽ rớt vào chai, nhẹ tay hạ cây xuống là được. Bài học thứ hai: Với những vấn đề phức tạp, thay vì bỏ quá nhiều thời gian nghiên cứu, đôi khi ta cần tạo ra một phiên bản MVP để chạy thử nghiệm là được. Sau khi phiên bản này hoàn thành, ta có thể dần dần cải tiến, nâng cấp nó lên để giải quyết vấn đề. (Các công ty startup theo mô hình lean startup cũng như thế mà, chắc bắt chước ba mình chứ đâu) Xót xoài bầm dập – HaiXoai 1.0 ra đời Thế nhưng, sau khi hái được vài trái, mình và ba lại thấy một vấn đề nho nhỏ nhưng khá nghiêm trọng: Lâu lâu, có những trái xoài bự chà bá không lọt vừa vô chai Đôi khi giật mạnh quà thì xoài sẽ rớt ra ngoài chai , rụng cái bạch xuống đất, dập luôn nửa quả xoài Cái khó ló cái khôn, ba mình kiên nhẫn không bỏ cuộc. Ba kiếm một cây khác, quấn dây thép xung quanh cái bịch, rồi cột dây thép và đầu cây. Thế là phiên bản HaiXoai 1.0 đã ra đời! Ở phiên bản này, nhờ có dây thép để kéo vào có bịch để hứng nên kéo xoài dễ hơn, xoài không còn rớt dập nữa. Mình chỉ cần nhẹ nhàng kéo xoài rớt vào bịch, rồi lấy xoài ra thôi. Bài học thứ ba : Người engineer sẽ không tự thỏa mãn với giải pháp của mình; mà sẽ biết dựa theo feedback để cải tiến nó, mang lại kết quả tốt nhất cho khách hàng! Bonus: Bài học thứ 4 – Hay chuyện tội đã bị lừa như thế nào Thế rồi, chiều hôm sau, khi đi thăm vườn nhà, mình bỗng thấy hóa ra bố đã làm sẵn một cây hái xoài từ thuở nào, chứ không phải tự suy nghĩ rồi chế ra như hôm trước. Đúng là cuộc đời méo thể nào biết trước được! Bài học cuối cùng: Nếu đã có solution hiệu quả, chạy tốt thì cứ thế mà dùng thôi, đừng tự suy nghĩ độ chế để reinvent the wheel làm gì! Cũng giống như developer chúng mình, nếu đã có thư viện/framework để hổ trợ công việc thì cứ lấy ra mà dùng chứ không cần cắm đầu tự code lại nha! Tạm kết Đó, sau 1 buổi hái xoài, mình chợt ngộ ra vài điều mà hồi xưa đi học mình không bao giờ nghĩ đến. Hồi xưa, ba mình làm thợ chuyên sửa đồng hồ, đòi hỏi nhanh tay lẹ mắt, rành về cơ khí. Thời đó ba là thợ sửa có tiếng, đủ tiền xây nhà. Giờ tuy hơi già rồi, mắt kém chân run nhưng nhà có gì hư ba cũng tự sửa được hết. Ngẫm lại, thời đó mà có ngành dev có khi giờ ba còn giỏi và nổi hơn mình hơn mình. Có khi nào mình nên về dụ ba làm series ông Dũng Vê Lốc để kiếm quỹ đen không các bạn nhỉ :)) Rate this: Like this: Related
Last time, just after my probationary period ended, I had a few days off so I went back to my hometown to visit, visit home, and visit my parents. Originally planning to go home and rest, I only worried about eating, drinking, going out in the morning, coming back to sleep in the evening, and not writing a blog or glancing at anything. However, thanks to an outing with my father (in the past, my father had not yet finished university), I suddenly realized some interesting lessons about Software Engineering that were never taught in school. (Also get 2 extra giant mangoes as a bonus). Therefore, I wrote this article to show off my mangoes, to share 3 interesting lessons that I have learned with you guys. The story of the mango tree that was full of fruit but was eaten by yellow ants. That day, I took my dad to visit my uncle's house. My uncle's house has a small garden, where he only grows a rather large mango tree. After sitting and talking for a while, my dad asked: Why don't we pick them with so many big mangoes? The doctor recently told me: The mango tree at home is ripening recently. Every time it's about to ripen, ants dig into it and make it hollow, falling off and unable to eat anything. My dad asked again: Why didn't you pick it before it was ripe? Uncle said: There are not many children in the house, there are a few fruits and there is no need to hire anyone to pick them Hearing that, my father went out to the yard, found some long wooden sticks, some pieces of steel wire, nails and hammers, etc. and said: Let me make you a tree to pick mangoes for convenience. That's the first lesson I learned: A good engineer must know how to see the customer's needs, use his abilities + available things to solve that need. Here, my father saw the need for customers to pick mangoes, as well as take advantage of miscellaneous materials in the garden to make mango picking trees, to solve that need. HaiXoai v0.1 – The tree + water bottle = Falling mango. Having said that, Dad started to close, knock, knock. My dad attached a water bottle to the top of the tree, cut a small section so the mango could fit in, then nailed it tightly so it wouldn't fall. HaiXoai tool version 0.1 was born from there! Without hesitation, my dad started testing HaiXoai 0.1 right away. Initially, the hole was quite small, the mango couldn't fit through, the tree was too short to reach. So dad cut a hole to make it longer, added a stick, and HaiXoai 0.2 was released. The initial result was quite ok, the mango slipped into the bottle, just tug hard and the mango will fall into the bottle, gently lower the tree and that's it. Lesson two: With complex problems, instead of spending too much time researching, sometimes we need to create an MVP version to run tests. After this version is completed, we can gradually improve and upgrade it to solve the problem. (Startup companies following the lean startup model are also like that, probably imitating my father) Feeling sorry for bruised mangoes - HaiXoai 1.0 was born However, after picking a few fruits, my father and I saw a problem. Small but quite serious: From time to time, there are mangoes that are too big to fit into the bottle Sometimes when I pull the gift too hard, the mango will fall out of the bottle, the white will fall to the ground, and half of the mango will be crushed Through difficulty comes wisdom, my father perseveres and does not give up. Dad found another tree, wrapped the steel wire around the bag, then tied the steel wire to the end of the tree. So version HaiXoai 1.0 was born! In this version, thanks to the steel wire to pull in and the bag to catch, pulling the mangoes is easier, and the mangoes no longer fall and fall. I just need to gently pull the mango into the bag, then take the mango out. Lesson three: Engineers will not be satisfied with their own solutions; but will know based on feedback to improve it, bringing the best results to customers! Bonus: Lesson 4 - Learn about how I was tricked. Then, the next afternoon, when visiting my garden, I suddenly saw that my father had built a mango tree a long time ago, not by himself. Think about it and then make it up like the other day. It's true that life is unpredictable! Final lesson: If you have an effective solution that works well, just use it, don't think about reinventing the wheel! Just like us developers, if you already have a library/framework to support your work, just take it out and use it without having to start re-coding it yourself! Conclusion So, after a mango picking session, I suddenly realized something that I never thought of when I was in school. In the past, my father worked as a watch repairman, requiring quick hands and eyes and knowledge of mechanics. At that time, my father was a famous repairman and had enough money to build a house. Even though I'm a bit old now, my eyes are weak and my legs are shaky, but if there's anything broken in the house, my dad can fix it all himself. Thinking back, at that time, if there was a dev industry, maybe my dad would be better and more famous than me now. Should I go back and persuade my dad to make a series called Dung Ve Loc to earn slush funds? :)) Rate this: Like this: Related
Gần đây, ở VN có khá nhiều hội thảo công nghệ/tech meetup, giúp anh em developer chúng mình có thể ra giao lưu, chém gió, ăn uống lụm đồ free. Có mấy bạn hỏi mình là sinh viên hay đi làm có nên đi mấy hội thảo này không anh, đi có được gì không anh? Câu trả lời của mình là: CÓ , được ăn được nói được gói mang về nữa. Bên này 1,2 tháng 1 lần mà thấy có meetup gì hay là mình cũng rủ mấy ông đồng nghiệp đi suốt. Nếu là các hội thảo free, các bạn nên đi không ngần ngại , vì chỉ mất xíu thời gian là cùng. Nếu là hội thảo tốn phí thì nên review trước , quyết định rõ xem nội dung đó có phù hợp với mình không rồi hẳn rút hầu bao nhé! Thật đấy! Tham gia meetup, các bạn sẽ nhận được nhiều điều rất dzui và thú dzị , không tin thì để Code Dạo kể sơ sơ cho các bạn nghe nhen! Xem công nghệ, gặp chuyên gia Hội thảo Công Nghệ thì đương nhiên là nói về … công nghệ. Năm trước mình có kể về hội chợ Công Nghệ mình đi ở Thẩm Quyến bạn có thể tha hồ thử game VR/AR, xem các công nghệ hiện đại mà nhiều công ty sử dụng. Điểm nhấn của các hội thảo công nghệ/meetup là các bạn sẽ được nghe mấy anh diễn giả từ các công ty lớn chém gió về công nghệ họ đang dùng, kiến trúc hệ thống v…v), nhưng cái mà Google ít khi ra được. Ở Việt Nam mình thì được cái mấy công ty lớn cũng chịu khó chia sẻ về công nghệ, không ôm giữ khư khư. Hồi ở VN, mình cũng từng may mắn, nghe mấy bác PM ở Tiki chia sẻ cách áp dụng A/B testing vào hệ thống, nghe mấy bác Thế Giới Di Động chia sẻ về cách implement web chạy nhanh với tốc độ bàn thờ , “lúa hóa” để thân thiện với người dùng. Do được giao lưu trực tiếp với mấy anh, các bạn có thể tha hồ nhờ giải đáp thắc mắc, tìm hiểu về cách vận hành hệ thống luôn. Sắp tới, trong hội thảo TECH EXPO của VietnamWorks , có anh Lê Minh Nghĩa bên Tiki sẽ chia sẻ về cách xây dựng một hệ thống phục vụ hàng triệu transaction với độ trễ tầm milliseconds, sử dụng kiến trúc Event Based. Đảm bảo nội dung sẽ rất bổ ích, các bạn quan tâm kéo xuống dưới bài hoặc bấm link này để đăng kí nhen: Lụm quà, từ mũ áo sticker đến ti vi di động Nói vậy chứ, thông thường mình đi event không phải chỉ vì kiến thức, mà còn vì ham quà nữa. Tùy vào độ lớn của event, độ “chịu chơi” của nhà tài trợ mà các bạn có thể được ăn hoặc được thêm gói mang về nhé! Ở các hội thảo/meetup mình hay đi thì thường có pizza, nước ngọt hoặc đồ ăn vặt. Bên cạnh đó là vô số thứ nho nhỏ, xịn sò như mũ, áo sticker để về khoe bạn bè. Ngoài ra, nếu đi các hội thảo lớn, đôi khi các bạn còn “lụm” được quà bự hơn như tai nghe, điện thoại hoặc TV v..v nữa đó (Số mình hơi nhọ nên trước giờ đi nhận quà chỉ được sổ hoặc li tách là hết nất rồi, buồn ghê). Sắp tới ở HCM cũng có 1 hội thảo với quà “khủng” vậy đấy, các bạn tò mò nhớ kéo xuống cuối xem nhe. Mở rộng quan hệ và cơ hội Ngoài ra, nếu các bạn … không thèm quà, vẫn còn 1 thứ vô cùng giá trị mà các bạn có thể đạt được ở các hội thảo nào. Đó là mở rộng mối quan hệ , làm quan được với mấy anh giai/chị gái cool ngầu hiếm thấy. Nhờ đi mà mình mới từng quen được mấy ông anh cực cool ngầu làm DevOps, làm Data Engineer ở các công ty to bự khác. Các mối quan hệ này sẽ rất thuận tiện cho bạn khi muốn nhờ học hỏi, giới thiệu công việc v…v. Ngoài ra, ở một số hội thảo, nhiều công ty có người phỏng vấn và tuyển người ngay hội thảo. Nếu bạn đang chán công việc cũ, muốn tìm chỗ nhảy nhót vui hơn, lương cao hơn thì cứ cầm CV ra mà thử sức thôi. Bản thân mình hồi xưa cũng từng đi tech event bên này (Giá $60, free cho developer), format khá vui. Trong số các công ty có mặt tại hội thảo, mỗi developer sẽ chọn 3 công ty ưu thích, sau đó phỏng vấn ngắn khoảng 10 phút. Nếu công ty thấy hợp thì sẽ giữ CV bạn và liên hệ vòng sau. Đợt đấy mình cũng may mắn, PV nhanh với 3 cty thì vào được mấy vòng sau 2 công ty, được 2 offer luôn. Kết bài Đấy, dụ dỗ các bạn vậy là đủ rồi, vào ngày 29/06 tới đây, bên VietnamWorks cũng có 1 cái hội thảo công nghệ khá là hot tên TECH EXPO nè! Đặt biệt hơn nữa, do VietnamWorks tổ chức nên họ còn có thêm các bạn HR, chuyên gia tư vấn chỉnh sửa CV miễn phí. Giải thưởng cũng khá là khủng, có tai nghe, di động, TV (chỉ tiếc là không có đồ ăn free thui nhe hihi. Nếu bạn hứng thú hay tự tin vào vận may của mình thì có thể đăng kí tham dự tại (hoàn toàn free) nha! Rate this: Like this: Related
Recently, in Vietnam there have been quite a few technology conferences/tech meetups, helping us developers to hang out, chat, and eat and drink for free. Some people have asked me if I'm a student or working person, should I go to these conferences? Is there anything I can gain from going? My answer is: YES, if you can eat it, you can wrap it up and take it home. Every 1 or 2 months here, if I see a good meetup, I always invite my colleagues to come. If the seminars are free, you should go without hesitation, because it only takes a little time. If it's a paid conference, you should review it first, decide clearly if the content is suitable for you, then withdraw your wallet! Really! Joining the meetup, you will receive many interesting and exciting things. If you don't believe me, let Code Dao tell you a little about it! Watching technology, meeting experts at Technology Conferences is of course about... technology. Last year, I told about the Technology fair I went to in Shenzhen where you could freely try VR/AR games and see the modern technologies that many companies use. The highlight of technology conferences/meetups is that you will hear speakers from big companies gossip about the technology they are using, system architecture, etc.), but something that Google rarely releases. Okay. In Vietnam, we have a few big companies that are willing to share their technology and not hold it back. When I was in Vietnam, I was also lucky, listening to PM guys at Tiki share how to apply A/B testing to the system, listening to Mobile World guys sharing about how to implement a website that runs fast at lightning speed, “chemicalized” to make it user-friendly. Because you can interact directly with the guys, you can freely ask questions and learn about how to operate the system. In the upcoming TECH EXPO conference of VietnamWorks, Mr. Le Minh Nghia from Tiki will share how to build a system to serve millions of transactions with a latency of milliseconds, using Event Based architecture. We guarantee the content will be very useful, if you are interested, scroll down to the bottom of the article or click this link to register: Gathering gifts, from sticker hats to mobile TVs Having said that, usually I go to events not only because of knowledge, but also because of the desire for gifts. Depending on the size of the event and the "willingness" of the sponsor, you may be able to eat or get an extra package to take home! At the conferences/meetups I often go to, there is usually pizza, soft drinks or snacks. Besides that, there are countless small, cool things like hats and sticker shirts to show off to friends. In addition, if you go to big conferences, sometimes you can even "collect" bigger gifts like headphones, phones or TVs, etc. (My numbers are a bit bad so before I went to receive gifts I only got a book). Or if we separate, it's all over, so sad). There will also be a conference coming up in HCM with "huge" gifts. If you're curious, remember to scroll down to the bottom to see. Expanding relationships and opportunities In addition, if you... do not crave gifts, there is still something extremely valuable that you can gain at any conference. That is to expand relationships and become officials with rare cool guys/girls. Thanks to that, I got to know some really cool guys who work as DevOps and Data Engineers at other big companies. These relationships will be very convenient for you when you want to learn, introduce jobs, etc. In addition, at some conferences, many companies have people interviewing and recruiting people right at the conference. If you're bored with your old job and want to find a place to dance that's more fun and has a higher salary, just take out your CV and give it a try. I myself went to a tech event here in the past (Price $60, free for developers), the format was quite fun. Among the companies present at the conference, each developer will choose 3 preferred companies, then have a short interview of about 10 minutes. If the company finds it suitable, it will keep your CV and contact you later. I was also lucky that time. I interviewed quickly with 3 companies, got into a few rounds after 2 companies, and got 2 offers. Conclusion That's it, enough to tempt you guys, on June 29, VietnamWorks also has a pretty hot technology conference called TECH EXPO! Even more special, organized by VietnamWorks, they also have HR and CV editing consultants for free. The prize is also quite huge, with headphones, cell phones, TVs (just a pity there is no free food, hihi. If you are interested or confident in your luck, you can register to attend at (completed) Totally free) Rate this: Like this: Related
Nhân dịp sếp Tùng đang hot, hôm nay mình lôi tên tuổi sếp Tùng vào bài viết để câu view và câu like. Đùa đấy, dạo gần đây viết nhiều bài về technical căng thẳng quá nên viết bài này để đổi không khí một tí. Bài viết theo phong cách nhẹ nhàng hài hước nhưng nội dung hoàn toàn nghiêm túc, các bạn nhớ đọc kĩ nhé. Chia sẻ luôn là mình không phải Sky , cũng không phải fan của Tùng. Chẳng qua là mỗi mỗi code thì mình hay để nhạc không lời hoặc nhạc Tùng làm background cho nhẹ đầu óc thôi. Nghe các thể loại nhạc sâu sắc khác mình không tập trung được. Đạo không kiêng nể Chẳng phải vô cớ mà người đời phong tặng cho sếp Tùng danh hiệu Thái Bình Đạo Sĩ (Đạo trong đạo nhạc) hay MTP – Music Thief Pro . Đơn cử như trong siêu phẩm “Chúng ta không chịch được nhau” gần đây, khoa học đã chứng minh, … nhầm, mấy thánh nào đó trên Facebook và Youtube đã chứng minh Sơn Tùng đã đạo đến tận 4,5 MV này. Là developer, chúng ta rất rất nên bắt chước Sơn Tùng ở điểm này. Thay vì phải tự viết code để thực hiện một việc phức tạp, chúng ta nên đạo bằng cách lên stackoverflow tìm code, hoặc sử dụng một library/framework sẵn có . Việc này sẽ tiết kiệm thời gian, công sức, và cho sản phẩm chất lượng cao hơn (Thư viện đã viết thường được test kĩ nên ít bug hơn, performance cao hơn). Đạo chế và remix có chọn lọc Tất nhiên, đạo nhạc thì ai cũng làm được, nhưng để đạo nhạc đạt tới cảnh giới “xuất thần nhập hóa” như Sơn Tùng lại là một chuyện khác. Với tài năng đạo phối và chế, Sơn Tùng đã “biến thứ của người khác thành của mình”, cho ra đời bao tác phẩm hay ho làm rung động trái tim hàng chục ngàn Sky như “Chắc ai đó sẽ chuồn, Buông trym nhau ra, Chúng ta không luộc được rau”. Là developer, chúng ta càng cần học hỏi điều này. Khi sử dụng thư viện, hoặc code từ stackoverflow, ta không nên copy paste thẳng code vào mà phải đọc để hiểu code, chỉnh sửa và áp dụng code để giải quyết vấn đề mình đang gặp phải. Đây là một kĩ năng khó, cần sự rèn luyện lâu dài. Trau chuốt vẻ ngoài cho sản phẩm Có thể chê Tùng đạo nhạc, chê Tùng nhái đạo phong cách nhưng phải công nhận là MV của Tùng đẹp, phục trang cũng đẹp nốt. Ngoài âm nhạc ra, các MV long lanh cũng là công cụ để Tùng thu hút một lượng lớn các fan. Trong ngành phần mềm cũng thế, phần mềm phải có UI đẹp, UX tốt mới thu hút được khách hàng. Developer chúng ta nhiều khi vẫn phải kiêm luôn vai trò của designer . Do đó, chúng ta phải tìm cách để tạo ra UI đẹp nhất, UX tốt nhất cho người dùng. Để thực hiện việc này, ta cần một số kĩ năng design cơ bản . Tiếp theo, ta cứ theo gót Tùng để chôm và đạo từ các UI khác. Picasso đã nói rằng “ good artists copy, great artists steal “. Trong việc thiết kế giao diện, người ta đã có các guideline, best practice (Những hướng dẫn. điều nên làm), chúng ta không cần quá sáng tạo hay chế ra cách mới làm gì cả. Chiều lòng fan Bản thân Sơn Tùng rất thương và chiều fan . Đây là một trong nhiều lý do mà hầu hết các Sky đều mê sếp Tùng say đắm. Đây là điều dân developer chúng ta rất nên học hỏi. Thay vì làm việc với fan, chúng ta làm việc với khách hàng hoặc PM. Thế nhưng, trong mắt developer, khách hàng là một lũ *éo biết gì về công nghệ, đổi requirement liên tục; PM thì lúc nào cũng đưa ra yêu cầu quá đáng. Hãy học hỏi Sơn Tùng: nhẹ nhàng, mềm mỏng, thương yêu khi nói chuyện với khách hàng nhé. Có khách hàng thì mới có người trả tiền lương cho chúng ta đấy. Làm điều mình thích Nguyên nhân gây ra sự kiện “Tha Thu” nổi tiếng gần đây là vì “Sơn Tùng thích”, cho nên “Sơn Tùng vẽ lên thôi”. Đổi mới bản thân, làm điều mình thích cũng là một điều quan trọng mà developer nên học hỏi từ sếp Tùng. Đổi mới bản thân sẽ giúp bạn có thêm hào hứng trong công việc, theo kịp thời đại. Làm điều mình thích sẽ giúp bạn giữ được đam mê: Bạn đang code web mà muốn chuyển qua đi động? OK, tải ionic hoặc react-native về làm thôi! Bạn đang làm front-end mà muốn chuyển qua back-end ? OK, chọn một ngôn ngữ lập trình back-end và học thôi. Kết Các bạn thấy đấy, nếu giữ tinh thần học hỏi, ta có thể học được nhiều điều từ mọi thứ xung quanh (kể cả sếp Tùng)! Bài viết tuy hài hước, nhưng những điều mình muốn nhắn nhủ hoàn toàn là nghiêm túc. Để kết bài, xin tặng các bạn một tuyệt phẩm mang tên “Sau Tùng là bầu trời hồng”. Ca khúc này rất hay và sâu sắc, bạn nam nào có gấu là Sky thì nên học thuộc để hát cho gấu nghe. Rate this: Like this: Related
On the occasion that boss Tung is hot, today I dragged boss Tung's name into the article to attract views and likes. Just kidding, lately writing a lot of technical articles has been too stressful, so I wrote this article to change the atmosphere a bit. The article is in a light and humorous style but the content is completely serious, please remember to read carefully. Just sharing that I'm not Sky, nor a fan of Tung. It's just that for each code, I often use instrumental music or Tung music as the background to lighten my mind. Listening to other deep music genres makes me unable to concentrate. Religion does not hold back. It is not without reason that people awarded boss Tung the title Thai Binh Taoist (Taoist in music) or MTP – Music Thief Pro. For example, in the recent masterpiece "We can't fuck each other", science has proven... wrongly, some saints on Facebook and Youtube have proven that Son Tung plagiarized up to 4.5 of these MVs. As developers, we should really imitate Son Tung in this point. Instead of having to write code ourselves to do something complicated, we should go to stackoverflow to find code, or use an existing library/framework. This will save time, effort, and give a higher quality product (Written libraries are often thoroughly tested so there are fewer bugs and higher performance). Selective plagiarism and remixing Of course, anyone can plagiarize music, but to plagiarize music to reach the level of "transcendence" like Son Tung is another story. With his talent for directing and editing, Son Tung has "turned other people's things into his own", creating many interesting works that have touched the hearts of tens of thousands of people such as "Maybe someone will run away, Let go of each other". "We can't boil vegetables." As developers, we need to learn this even more. When using libraries, or code from stackoverflow, we should not copy and paste the code directly, but must read to understand the code, edit and apply the code to solve the problem we are having. This is a difficult skill that requires long-term practice. Refining the appearance of the product You can criticize Tung for plagiarizing music, criticizing Tung for plagiarizing style, but you have to admit that Tung's MV is beautiful, the costumes are also beautiful. In addition to music, glittering MVs are also a tool for Tung to attract a large number of fans. In the software industry, too, software must have beautiful UI and good UX to attract customers. We developers often have to also play the role of designer. Therefore, we must find ways to create the most beautiful UI and best UX for users. To do this, we need some basic design skills. Next, we just follow Tung's footsteps to steal and direct from other UIs. Picasso said that “good artists copy, great artists steal”. In interface design, people already have guidelines and best practices (Guidelines. things to do), we don't need to be too creative or invent new ways to do anything. Treating fans Son Tung himself loves and pampers his fans. This is one of the many reasons why most Sky people are passionately in love with boss Tung. This is something we developers should really learn. Instead of working with fans, we work with customers or PMs. However, in the eyes of developers, customers are a bunch of people who know nothing about technology and constantly change requirements; PM always makes excessive demands. Let's learn from Son Tung: be gentle, soft, and loving when talking to customers. If we have customers, we will have people to pay our salaries. Do what you like. The reason for the recent famous "Tha Thu" event is because "Son Tung likes it", so "Son Tung just drew it". Innovating yourself and doing what you like is also an important thing that developers should learn from boss Tung. Innovating yourself will help you be more excited at work and keep up with the times. Doing what you love will help you maintain your passion: Are you coding for the web and want to switch to mobile? OK, download ionic or react-native and do it! Are you working on front-end but want to switch to back-end? OK, pick a back-end programming language and learn it. Conclusion You see, if we keep the spirit of learning, we can learn many things from everything around us (including boss Tung)! Although the article is humorous, the things I want to say are completely serious. To conclude, I would like to give you a masterpiece called "After Tung is the pink sky". This song is very good and profound, any male friend whose girlfriend is Sky should memorize it to sing to him. Rate this: Like this: Related
Đợt vừa rồi mình vừa rời công ty cũ, qua công ty mới . Do đã “già đầu”, có sơ sơ kinh nghiệm về cách tìm việc, phỏng vấn, deal lương, việc “nhảy nhót” của mình đợt này khá là dễ dàng, thoải mái và bình lặng. Do vậy, mình viết bài này, coi như note lại một số kinh nghiệm khi tìm việc, deal lương, chia sẻ cho các bạn sẵn sau này mình đọc lại luôn. Bài viết sẽ gồm 3 phần: Làm sao để công việc tự tìm đến bạn Sau khi đi làm khoảng 2-3 năm, các bạn sẽ nhận ra rằng, trong ngành này, developer giỏi không cần phải đi kiếm việc , mà công việc ngược lại sẽ tự tìm đến bạn. Thật đấy, mình không hề chém gió đâu. Bạn không cần phải quá giỏi giang hay xuất sắc, chỉ cần có một profile “đẹp” (đủ hình ảnh, thông tin dự án, kinh nghiệm làm việc, công nghệ sử dụng) trên các MXH tuyển dụng là công việc cũng sẽ tự đến với bạn . Để chăm chút cho profile cũng không quá khó, chỉ cần làm theo các bước sau: Thời đó, mình chỉ để profile trên Glints , Wantedly (2 trang tuyển dụng lớn nhất Singapore) và LinkedIn là đủ. Mình khuyên các bạn nên chăm chút LinkedIn , vì các trang khác đều cho đăng nhập từ LinkedIn để import dữ liệu qua cả, đỡ tốn thời gian. Quên, nếu bạn có LinkedIn thì cứ để trạng thái sẵn là Open for Opportunity là được nhé! Nhớ để Career Interest là On và Casually Looking nha, để Off mà chuyển sang On đồng nghiệp biết đó! Gần đây, Glints cũng sắp có mặt tại Việt Nam. Họ có chức năng TalentHunt khá hay: Sau khi tạo hồ sơ, các công ty match với skill của bạn sẽ chủ động kết nối với bạn. B ên Glints sẽ có người hỗ trợ bạn phỏng vấn, deal lương luôn. Việc này sẽ giúp bạn tiết kiệm được khá nhiều thời gian lẫn công sức, vì chỉ cần tạo profile, không cần tốn công đi tìm việc hay nộp đi đâu cả. Bạn nào hứng thú thì vào đăng kí nhen Deal lương ra sao cho máu? Đấy, sau khi có profile đẹp, nhiều người nhắn gửi thì các bạn chịu khó “gạn đục khơi trong” một chút. Có khá nhiều HR external (HR bên ngoài, tìm người giùm cty) sẽ liên hệ bạn, giới thiệu job này job nọ, nhưng … không nói tên công ty. Nhiều đứa spam rất đáng ghét, vd mình thích JS mà nó gửi Job back-end Java , C++, … là ăn một vé block ngay. Một số khác nếu có job ok thì mình nói thẳng: Hiện tại lương tao tầm 5-6XXX $ đấy, job kia range tầm đó không, nếu thấp hơn hoặc ko bằng thì say goodbye từ đầu cho khỏe. Còn nếu bạn nhận được lời mời từ HR của chính công ty, lúc đó khả năng họ sẽ làm ăn chuyên nghiệp hơn, cứ gửi CV rồi tiếp vòng sau thui :3 Giờ mình nói tới chuyện deal lương ha. Cách tốt nhất để có mức lương phù hợp là “ Biết người biết ta “. Trước khi deal, bạn phải chịu khó xem lương trung bình cho vị trí của mình là bao nhiêu, lương mà công ty đó trả khoảng bao nhiêu (Mình thì hay lên Glassdoor với hỏi bạn bè là chính). Dựa theo đó, bạn có thể áng chừng mức lương mình mong muốn. Sau đó, khi phỏng vấn, nếu họ hỏi mức lương mong muốn, bạn có thể đưa ra 1 khoảng ưa thích (Đưa 1 khoảng sẽ dễ deal hơn nha, chứ đừng đưa con số cụ thể). Ví dụ, mức lương mong muốn của bạn là 7$, bạn có thể nói mình muốn lương tầm 7k5-8k$, sau đó deal xuống dần là vừa nha. Bên cạnh đó, bạn cũng có thể phỏng vấn tầm 3-4 công ty cùng lúc, sau đó so sánh các offer cho phù hợp (Cách này thì đỡ lo bị hớ hơn). Sau đó, bạn có thể thẳng thắn nói trực tiếp với nhân sự : Offer bên CTY A cho mình 7k2, cao hơn cty mình 200. Mình thích làm bên cty bạn hơn, nếu bạn tăng offer lên 7k5 là mình accept ngay nhé. À, mà nhắc chút. Đừng chỉ chăm chăm tới lương offer, mà hãy hỏi xem mấy thứ linh tinh như đãi ngộ, thưởng, ngày phép, bảo hiểm v…v nha. Đôi khi lệch nhau vài trăm $ không khác mấy đâu, nhưng thưởng với tăng lương lại cách nhau nhiều lắm đấy. Bonus tips: Với chức năng Talent Hunt của Glints, bạn sẽ có đươc huấn luyện nghề nghiệp 1-1 từ chuyên gia tư vấn . Họ sẽ hỗ trợ bạn từ đặt lịch phỏng vấn cho tới đàm phán lương (Mấy bạn này tư vấn nhiều nên nắm mức lương rành lắm). Bạn sẽ không còn phải bơ vơ tự mò mẫm đàm phán lương một mình nữa. Bạn nào hứng thú thì vào đăng kí nhen Một số chiêu trò, kinh nghiệm hay ho khác nên biết Ngoài ra, đây là một số kinh nghiệm lặt vặt linh tinh khác mà mình cảm thấy khá có ích. Note lại cho các bạn luôn. Trong quá trình làm việc, cứ lưu sẵn những công ty, vị trí mà mình thấy hay ho, contact mấy anh bạn đẹp trai mà mình biết đi. Ví dụ nè, đây là list những công ty, trang mình lưu lại để khi cần tới thì liên hệ gửi CV dần thui Nếu có thể thì khi nói chuyện với HR, bạn có thể hỏi về dự án đang làm , team bao nhiêu người, qui trình ra sao. Nếu cảm thấy team quá đông/quá nhỏ, qui trình si da (không có source control, không có tester ) thì bạn có thể nhẹ nhàng … chạy lẹ. 3. Nếu thấy Job hay ho nhưng có công nghệ mình chưa biết , kĩ năng mình chưa rành thì cũng … không sao cả. Bạn cứ thoải mái tìm hiểu sơ rồi apply , sau đó nói thẳng ra là mình chỉ biết sơ cái này, thấy công ty có dùng nên muốn tìm hiểu luôn thôi. Thuở xưa mình apply job front-end mà giờ có khi phải viết back-end Ruby nên tự học Ruby luôn nè. 4. Một trong những câu hỏi tréo nghoe bạn có thể gặp là: Tại sao bạn nghỉ công ty cũ? Bạn đừng nên kiếm cớ nói xấu công ty cũ làm gì! Cứ bảo thấy công ty này job hay hơn, công nghệ mới hơn , bạn bè giới thiệu cool ngầu, hoặc là “mình muốn vị trí có n hiều trách nhiệm hơn, học được nhiều thứ hơn”. Vậy nhen, nhớ không được nói xấu sếp hay công ty cũ nhe. 5. Trên các trang tuyển dụng như Glints có các công cụ filter/matching job, bạn nhớ sử dụng để lọc vị trí, mức lương, skill để dễ kiếm việc phù hợp hơn: Kết bài Đấy, viết 1 hồi thì cũng dài rồi, hi vọng bài viết sẽ có ích cho các bạn. Nếu có kinh nghiệm gì các bạn cứ để lại comment chia sẻ nhen. QC nhẹ 30s : Glints là nền tảng tuyển dụng hàng đầu ở Singapore và Indonesia. Mục tiêu của Glints là giúp các tài năng trẻ tìm được công việc họ yêu thích , thăng tiến trên con đường nghề nghiệp. Hiện tại, Glints đã hỗ trợ cho 400.000 người tìm việc, cũng như 15.000 công ty tìm được nhân sự phù hợp và chất lượng. Các bạn quan tâm có thể đăng kí tại đây nhe Ngoài ra, Glints cũng đang có chương trình học bổng hỗ trợ sinh viên Đại Học sắp tốt nghiệp và các tài năng trẻ tìm kiếm cơ hội phát triển nghề nghiệp. Học bổng này là tiền mặt trị giá 9,000,000 VND/suất và nhiều lợi ích đặc quyền khác từ Glints. Các bạn tìm hiểu và đăng kí tại đây nha: Học bổng Glints Việt Nam lần thứ 1 Rate this: Like this: Related
Recently, I just left my old company and moved to a new company. Because I'm old and have a little experience in finding jobs, interviewing, and negotiating salaries, my "jumping" this time was quite easy, comfortable, and peaceful. Therefore, I wrote this article as a note to note some experiences when looking for a job, negotiating salary, and sharing it with you so I can read it again later. The article will consist of 3 parts: How to make jobs find you. After working for about 2-3 years, you will realize that, in this industry, good developers do not need to look for jobs, but the opposite. will find you again. Really, I'm not joking at all. You don't need to be too talented or excellent, just have a "beautiful" profile (enough pictures, project information, work experience, technology used) on recruitment social networks and the job will come naturally. come to you . Taking care of your profile is not too difficult, just follow these steps: At that time, I only left my profile on Glints, Wantedly (Singapore's 2 largest recruitment sites) and LinkedIn. I advise you to pay attention to LinkedIn, because other sites allow you to log in from LinkedIn to import data, saving you time. Forget, if you have LinkedIn, just leave the status as Open for Opportunity! Remember to set Career Interest to On and Casually Looking, set it to Off and switch it to On, so your colleagues will know! Recently, Glints is also about to be available in Vietnam. They have a pretty cool TalentHunt function: After creating a profile, companies that match your skills will proactively connect with you. Glints will have someone to assist you with interviews and salary negotiations. This will help you save a lot of time and effort, because you only need to create a profile, no need to waste time looking for a job or submitting it anywhere. If you are interested, please register to see what the salary deal is. See, after you have a beautiful profile and many people send messages, you should try to "clear the air" a bit. There are quite a few external HRs (outside HRs, finding people for the company) who will contact you and introduce this job and that job, but... don't say the company name. Many spammers are very obnoxious, for example, if I like JS, they send Java, C++,... back-end jobs, and I get a block ticket right away. For others, if there is an ok job, I will say it directly: Currently my salary is around 5-6XXX $, is the other job's range around that range? If it is lower or not equal, then say goodbye from the beginning for good. And if you receive an invitation from the company's own HR, then it is likely that they will do business more professionally, just send your CV and then continue to the next round :3 Now let's talk about salary deals. The best way to get a suitable salary is to "Know people who know you". Before making a deal, you have to take the time to see what the average salary is for your position and how much the company pays (I usually go to Glassdoor and ask friends). Based on that, you can estimate the salary you want. Then, during the interview, if they ask your desired salary, you can give a preferred range (Giving a range will make it easier to negotiate, but don't give a specific number). For example, your desired salary is $7, you can say you want a salary of around $7,500-8,000, then negotiate down gradually. Besides, you can also interview about 3-4 companies at the same time, then compare the offers accordingly (This way you will have less worry about being missed). After that, you can frankly say directly to the staff: Company A's offer gives me 7k2, 200k higher than my company. I like working with your company more, if you increase the offer to 7k5, I will accept immediately. Ah, just a quick reminder. Don't just focus on the salary offer, but ask about miscellaneous things like benefits, bonuses, vacation days, insurance, etc. Sometimes a difference of a few hundred dollars is not much of a difference, but bonuses and salary increases are very different. Bonus tips: With Glints' Talent Hunt function, you will receive 1-1 career coaching from consultants. They will support you from scheduling interviews to negotiating salary (These guys do a lot of consulting so they know the salary very well). You will no longer have to grope around negotiating salary alone. If you are interested, please register. Some other cool tricks and experiences you should know. In addition, here are some other miscellaneous experiences that I find quite useful. Note for you guys too. While working, just save companies and positions that you find interesting, and contact handsome guys that you know. For example, here is a list of companies and pages I saved so that when needed, I can contact them to send my CV. If possible, when talking to HR, you can ask about the project you are working on and how many people are in your team. , what is the process? If you feel the team is too large/too small, the process is stagnant (no source control, no testers), then you can gently... run quickly. 3. If you find a job that's interesting but has technology you don't know or skills you're not familiar with, that's okay. You can feel free to research a bit and apply, then frankly say that I only know a little about this and see that the company uses it so I want to learn about it. In the past, I applied for a front-end job, but now sometimes I have to write Ruby back-ends, so I learned Ruby myself. 4. One of the tricky questions you may encounter is: Why did you leave your old company? You should not make excuses to speak ill of your old company! Just say that this company has a better job, newer technology, cool recommendations from friends, or "I want a position with more responsibility and learn more things". So, remember not to say bad things about your boss or your old company. 5. On recruitment sites like Glints, there are filter/matching job tools, remember to use them to filter positions, salaries, and skills to make it easier to find suitable jobs: Conclusion That's it, writing 1 paragraph is already long. , hope this article will be useful to you. If you have any experience, please leave a comment to share. Light QC 30s: Glints is the leading recruitment platform in Singapore and Indonesia. Glints' goal is to help young talents find jobs they love and advance their career path. Currently, Glints has helped 400,000 job seekers, as well as 15,000 companies find suitable and quality personnel. Those who are interested can register here. In addition, Glints also has a scholarship program to support graduating University students and young talents looking for career development opportunities. This scholarship is cash worth 9,000,000 VND/award and many other exclusive benefits from Glints. Please find out and register here: 1st Glints Vietnam Scholarship Rate this: Like this: Related
Gần đây viết bài kĩ thuật mệt quá, hôm nay chém nhó nhẹ nhàng chơi với anh em thôi nhé. Giật tít vậy cho anh em nhào vô đọc thôi hihi. Gần đây, thằng Codeaholicguy bạn mình có gửi cái link khá bựa của các một trang reviw công ty nọ, có cái comment khá bựa. Tìm hiểu thêm mới biết, ở Việt Nam cũng có 1 số trang để anh em dev mình đánh giá/than phiền/tìm hiểu thêm về công ty: IT Viec : Có mục review nhưng bắt đăng kí, kiểm duyệt kĩ, phải có account mới được đăng Review Công Ty : Xem review thoải mái, đăng và comment ẩn danh Tâm Sự Dev : Hình như hồi xưa tên Chuyện Của Dev, cũng cho xem review và đăng review thoải mái. Gần đây, mình cũng hay lên mấy trang này hóng biến/hóng drama . Do vậy, nay mình ngồi lạm bàn chém gió chơi vài chuyện với anh em cho vui: Các review dạng này có đáng tin hay không? Có vẻ dân dev VN có khá nhiều thành phần vô học, dùng nhiều ngôn từ chợ búa? Developer chúng mình nên làm gì? Note: Những comment/hình ảnh trong bài viết là trích dẫn từ review, không phải của Tôi Đi Code Dạo. Do đó, Code Dạo không có khả năng xác thực các thông tin trong ảnh. Đăng note vậy để mấy bạn HR, công ty khỏi vào … cắn xé mình nhen. Công ty IT ở Việt Nam toàn tệ và xấu? Nói thật, các em/bạn định theo ngành IT đừng nên lên mấy trang này đọc về IT. Đọc xong các bạn sẽ thấy … chán nản và không muốn theo ngành nữa luôn. Các bạn lều báo hay nói như: lập trình lương nghìn đô , nhu cầu tuyển dụng nhiều, công việc thoải mái. Tuy nhiên, lên mấy trang này các bạn sẽ được tạt vài gáo nước lạnh vào cho tỉnh ra: Các bạn thấy đấy, hầu như ít có comment nào khen lương cao, môi trường tốt và toàn chê sếp sống đểu, công việc chán, môi trường cùi bắp. Vậy chẳng lẽ công ty IT ở Việt Nam nào cũng tệ như vậy hay sao?? Cá nhân mình thấy, không nên đánh giá các công ty chỉ dựa theo comment này. Đơn giản là vì: Những người đang hài lòng với công ty, với công việc hiện tại thường ít lên mấy trang này để viết review Những người sắp nghỉ/đã nghỉ hoặc cay cú gì với công ty mới lên review/ bêu xấu công ty Do vậy, khi đọc review, các bạn cũng nên chú ý xem thái độ review khách quan hay hằn học, lịch thiệp hay vô học, rồi mới biết review đó có đáng tin hay không nhé. Mà, đọc nhiều review, mình tự thấy buồn thay, vì dân dev VN có khá nhiều thanh niên … vô học, hoặc có học nhưng hành xử như dân vô học. Lập trình viên Việt Nam toàn dân vô học? Nghe nói, lập trình viên là mấy anh học thức cao chót vót , có bằng Đại Học trở lên (Riêng thằng Code Dạo có bằng Thạc Sĩ cơ). Thế nhưng, khi đọc review các trang review này, thấy phần đông anh em thợ code dùng nhiều từ ngữ chợ búa không thua mấy anh thợ hồ là mấy. Mình rất thấu hiểu sự bực mình cay cú của các anh em khi công ty chậm lương, khi gặp thằng sếp cà chớn, khi đồng nghiệp anh em bị đuổi không lý do. Bản thân mình khi làm ở công ty cũ cũng có nhiều điều cay cú và bức xúc, cũng mấy lần muốn chửi thẳng vào mặt thằng CEO nhưng thôi … nhịn vì mình là người lịch sự. Lẽ nào developer chúng mình xấu xí đến vậy sao! Lẽ nào mấy anh dev có bằng Đại Học, làm việc máy lạnh mà cũng không hay ho hơn gì mấy bạn tốt nghiệp cấp 3, xong đi lao động chân tay cả sao?? Hay là do, mấy trang này cho review ẩn danh , nên các đại ca thích nói gì thì nói. Bản thên mình thấy, bên ITViec họ có kiểm duyệt, bắt đăng nhập, có verify nên ngôn từ có vẻ lịch sự hơn nhiều . Tạm kết? Cá nhân mình rất ủng hộ những trang review như thế này. Bản thân mình hồi trước đi phỏng vấn cũng hay lên glassdoor xem review công ty. Nhờ nó mà trước khi phỏng vấn, mình biết sơ về công ty đó, có đáng vào hay không, có phù hợp với mình hay không. Nhờ những trang này, developer tụi mình có thể né được các công ty phỏng vấn coi khinh ứng viên, các công ty lương thấp, chính sách kém. Tuy nhiên, mình chỉ có đôi lời chia sẻ với anh em như sau: Nên đọc review tham khảo, đa phần review đều đáng tin , nhưng nên cẩn thận né mấy review chửi bới hoặc mạt sát người khác. Có bức xúc công ty cũng nhớ đánh giá khách quan, dùng lời lẽ lịch thiệp chứ đừng nên văng tục chửi thề hay lợi dụng để hạ thấp người khác. Hãy sống như người có văn hóa, để người khác nhìn vào khỏi nghĩ xấu về lập trình viên tụi mình. Tưởng tượng có mọi người biết được comment đó do bạn viết ra, liệu bạn có dám viết như vậy nữa không? Đó, Code Dạo chỉ có vài lời chia sẻ vậy thôi. Các bạn có hay đi đọc review/ đi review dạo, hay ghé các trang review này không? Chia sẻ suy nghĩ của bạn trong mục comment nhé. Rate this: Like this: Related
I've been so tired writing technical articles lately, today I'll just take it easy and play with you guys. The headline is just so you guys can jump in and read it hihi. Recently, my friend Codeaholicguy sent me a pretty stupid link to a company's reviw site, with a pretty stupid comment. After learning more, I found out that in Vietnam there are also a number of pages for fellow developers to evaluate/complain/learn more about the company: IT Viec: There is a review section but registration is required, carefully moderated, you must have an account to post Company Review: View reviews freely, post and comment anonymously Dev's Story: It seems like in the past, it was called Dev's Story, so you could see reviews and post reviews freely. Lately, I've been going to these sites a lot to look for news/drama. So, now I'm sitting around gossiping and playing a few things with you guys for fun: Are reviews of this type trustworthy? It seems that Vietnamese developers have quite a lot of uneducated people, using a lot of common language? What should we developers do? Note: The comments/images in the article are excerpts from the review, not from Toi Go Code Dao. Therefore, Code Dao is not able to authenticate the information in the photo. Posting a note like this so that HR people and companies don't come in... and tear me apart. Are IT companies in Vietnam all bad and ugly? Honestly, if you are planning to pursue an IT career, you should not go to these sites to read about IT. After reading, you will feel... discouraged and not want to follow the industry anymore. The journalists often say things like: programming salary of thousands of dollars, high recruitment demand, comfortable job. However, on these pages, you will be splashed with a few buckets of cold water to wake yourself up: You see, there are almost no comments praising high salaries and good environment, but they mostly criticize the boss for being rude and the work is boring. corny environment. So are all IT companies in Vietnam as bad as that?? Personally, I don't think companies should be judged based on this comment alone. Simply because: People who are satisfied with the company and their current job often rarely go to these sites to write reviews People who are about to quit/have quit or are bitter about the company will come forward to review/slander the company Therefore, when reading reviews, you should also pay attention to whether the review attitude is objective or vicious, polite or uneducated, then know whether the review is trustworthy or not. Well, reading many reviews, I feel sad, because Vietnamese developers have quite a few young people... uneducated, or educated but acting like uneducated people. Vietnamese programmers are all uneducated? It is said that programmers are highly educated people, with university degrees or higher (Code Dao himself has a Master's degree). However, when reading the reviews of these review sites, I see that the majority of coders use many common words, not much less than the bricklayers. I understand very well the frustration and bitterness of my brothers when the company's salary is delayed, when they meet a grumpy boss, when their colleagues are fired for no reason. When I worked at my old company, I also had many bitter and angry things. I wanted to curse the CEO in the face a few times, but I stopped... because I'm a polite person. Could it be that we developers are so ugly! Is it possible that developers with university degrees and working on air conditioning are no better than those who graduated from high school and then went to work doing manual labor?? Or maybe it's because these sites allow anonymous reviews, so the big guys can say whatever they want. Personally, I see that at ITViec they have censorship, forced login, and verification so the language seems much more polite. Conclusion? Personally, I highly support review sites like this. When I was interviewing, I often went to glassdoor to review the company. Thanks to it, before the interview, I knew a bit about the company, whether it was worth joining or not, whether it was suitable for me or not. Thanks to these sites, we developers can avoid interview companies that look down on candidates, companies with low salaries and poor policies. However, I only have a few words to share with you as follows: You should read reference reviews, most of them are trustworthy, but be careful to avoid reviews that curse or insult others. If you're frustrated with the company, remember to evaluate objectively and use polite language, don't swear or take advantage of it to bring others down. Let's live like a cultured person, so that others won't think badly of us programmers. Imagine if everyone knew that comment was written by you, would you dare to write like that again? That's all, Code Dao only has a few words to share. Do you often read reviews/go for review tours, or visit these review sites? Share your thoughts in the comments section. Rate this: Like this: Related
Ở kì trước, mình đã giới thiệu với các bạn về Azure SQL Database, những điểm hay ho đặc sắc của nó rồi. Ở kì này, tụi mình sẽ bắt tay vào tạo database luôn. Các bạn sẽ có ngay database để dùng cho đồ án, bài tập nhóm v…v mà ko cần phải cài đặt 2, 3 tiếng vất vả như xưa nữa! Phần 1 : Tìm hiểu về Azure Database và Elastic Pool Phần 2 : Tạo database mới và kết nối tới Database trong 5 phút Sự khác biệt giữa SQL Server và SQL Server Management Studio (SSMS) Ở Việt Nam, đa phần các trường thường dạy môn Cơ Sở Dữ Liệu (Database) thông qua MS SQL Server. Việc cài đặt SQL Server là một … cực hình với nhiều người, vì vừa lâu, vừa nặng , lâu lâu còn hay bị conflict với Visual Studio v…v Thật ra, mỗi lần cài đặt MS SQL Server, máy bạn sẽ được cài tận 2 thứ: SQL Server : Đây là database server, cho phép chúng ta lưu trữ, query dữ liệu SQL Server Management Studio (SSMS) : Đây là công cụ cho phép developer/sysadmin kết nối tới database để quản trị, theo dõi, query, phân quyền v…v Nếu ví SQL Server là cái kho chứa dữ liệu, thì SSMS chính là hệ thống điều khiển kho , cho phép ta theo dõi hoạt động trong kho, điều hàng hóa ra vào kho. Trong thực tế, các database server chỉ cài SQL Server thôi. Còn lại, sysadmin, developer, data engineer sẽ cài SSMS ở máy mình để kết nối, query, lấy dữ liệu từ data nằm trong SQL Server ở máy khác. Tạo Database trên Cloud trong 5 phút Chúng ta cùng bắt tay vào tạo thôi nào. 2. Điền thông tin đầy đủ, chọn resource group. Nếu chưa có Database Server, bạn bấm vào Create new để tạo Server nhen Server name là URL để sao này bạn kết nối tới Database Server đó. Nhớ lưu login và mật khẩu lại để sau này còn dùng mà kết nối nhe. Một database server có thể chứa nhiều database : Ví dụ bạn có database web bán hàng, database doanh số, database analytic, bạn có thể để tụi nó chung 1 database server cũng ko sao cả. 3. Sau khi đã tạo server, hãy chọn thiết lập cho DB của bạn. Để đơn giản, tụi mình không dùng Elastic Pool, chọn gói Basic cho rẻ (5$/tháng) thôi. 4. Sau đó, bạn chỉ việc bấm “Create” và ngồi chờ thôi. Sau 3 phút là DB đã được tạo xong, nhanh hơn hẳn ngồi 60p chờ cài nhỉ? 5. Sau khi thấy notification, các bạn bấm Go to resource để xem Database Server mình vừa tạo ra nha. 6. Database Server của chúng ta đã được tạo thành công rồi, giờ kết nối vào quẩy thôi nào Kết nối thử tới Database trên Cloud Sau khi đã có DB, chúng ta chỉ việc kết nối thử vào chạy query thôi nào. 1. Cài đặt Management Tool Nếu các bạn xài Windows, các bạn có thể cài SQL Server Management Studio . Nếu dùng Mac/Linux/Ubuntu, các bạn có thể xài Azure Data Studio nhen. 2. Thêm Client IP và Firewall Vì lý do bảo mật, chỉ các máy ảo/app service nằm chung resource group/virtual network với database server mới có thể kết nối tới server đó. Do vậy, các bạn phải thêm IP của mình vào whitelist để không bị chặn nha. Các bạn chỉ cần bấm “Set server firewal” ở góc trên bên trái, bấm “Add Client IP” sau đó Save là ok. 3. Kết nối tới database. Các bạn điền Server Name, login và password mà mình đã khai báo lúc tạo DB nhe. 3.2. Giả sử bạn đang ở ngoài hàng Net, ko cài Management Tool thì sao? Không sao cả, gần đây Azure đã có chức năng Query Editor ngay trên Dashboard luôn Các bạn có thể xem table, query, edit dữ liệu một cách dễ dàng 4. Lấy connection string cho ứng dụng Tất nhiên, database server thì phải có ứng dụng để đọc/ghi dữ liệu. Azure còn có một chức năng khá tiện lợi để lấy Connection String cho ứng dụng của bạn. Chỉ cần bấm vào Connection String bên menu trái, các bạn sẽ lấy được connection string cho app C#, Java, PHP v..v nha Với database này, các bạn có thể dễ dàng chia sẻ connection để bạn bè, đồng nghiệp trong team cùng kết nối tới để dev app. Không còn lo cảnh mỗi đứa một database, không có data để test hoặc mỗi lần sửa database phải chạy script lại nữa. Tạm kết Trong bài này, chúng ta đã tìm hiểu về bắt tay vào tạo Database trên Azure. Thay vì phải ngồi cài đủ thứ từ Visual Studio tới MS SQL, chỉ cần làm theo hướng dẫn là sau 5p các bạn đã có cái Database để cả team code chung rồi! Database này cũng khá rẻ, chỉ khoảng 7-8$/tháng nên team có thể dư sức góp tiền lại xài ké. Khi hệ thống phình bự lên, chỉ việc tăng DTU là database sẽ chạy nhanh hơn, chịu tải được nhiều hơn ngay (dĩ nhiên là tốn tiền hơn lun). Ngoài file ra, đôi khi hệ thống còn phải chứa rất nhiều file như: ảnh, text, document do người dùng up lên. Các dữ liệu này có thể nặng vài trăm MB tới hàng chục TB . Vậy chứa chúng ở đâu, làm sao cho người dùng truy cập? Ở phần sau tụi mình sẽ tìm hiểu về Azure Storage , dịch vụ lưu trữ file của Azure nha! Rate this: Like this: Related
In the previous installment, I introduced you to Azure SQL Database and its unique and interesting features. In this semester, we will start creating a database. You will immediately have a database to use for projects, group exercises, etc. without having to install 2 or 3 hours of hard work like before! Part 1: Learn about Azure Database and Elastic Pool Part 2: Create a new database and connect to the database in 5 minutes The difference between SQL Server and SQL Server Management Studio (SSMS) In Vietnam, most schools often teach Database subjects through MS SQL Server. Installing SQL Server is a... torture for many people, because it is both long and heavy, sometimes conflicts with Visual Studio, etc. In fact, every time you install MS SQL Server, your computer will be fully installed. 2 things: SQL Server: This is the database server, allowing us to store and query data SQL Server Management Studio (SSMS): This is a tool that allows developers/sysadmins to connect to the database to administer, monitor, query, decentralize, etc. If SQL Server is a data warehouse, then SSMS is a warehouse control system, allowing us to monitor activities in the warehouse and move goods in and out of the warehouse. In reality, database servers only install SQL Server. The remaining sysadmin, developer, and data engineer will install SSMS on their computers to connect, query, and retrieve data from data located in SQL Server on other computers. Create a Database on the Cloud in 5 minutes Let's start creating. 2. Fill in complete information, select resource group. If you do not have a Database Server, click Create new to create a Server. The Server name is the URL so you can connect to that Database Server. Remember to save your login and password so you can use it to connect later. One database server can contain many databases: For example, if you have a web sales database, a sales database, an analytic database, you can put them together in one database server, it's okay. 3. After creating the server, select the settings for your DB. For simplicity, we do not use Elastic Pool, choose the cheap Basic package ($5/month). 4. Then, just click “Create” and wait. After 3 minutes, the database was created, much faster than waiting for 60 minutes to install, right? 5. After seeing the notification, click Go to resource to see the Database Server I just created. 6. Our Database Server has been successfully created, now let's connect and test. Try connecting to the Database on the Cloud. Once we have the DB, we just need to connect and run the query. 1. Install Management Tool If you use Windows, you can install SQL Server Management Studio. If you use Mac/Linux/Ubuntu, you can use Azure Data Studio. 2. Add Client IP and Firewall For security reasons, only virtual machines/app services located in the same resource group/virtual network with the database server can connect to that server. Therefore, you must add your IP to the whitelist to avoid being blocked. You just need to click "Set server firewall" in the upper left corner, click "Add Client IP" then Save and it's ok. 3. Connect to the database. Please fill in the Server Name, login and password that I declared when creating the DB. 3.2. Suppose you are on the Internet and do not have the Management Tool installed? No problem, recently Azure has a Query Editor function right on the Dashboard. You can view tables, query, and edit data easily. 4. Get the connection string for the application Of course, a database server must have an application. Used to read/write data. Azure also has a pretty nifty function to get the Connection String for your application. Just click on Connection String on the left menu, you will get the connection string for C#, Java, PHP app, etc. With this database, you can easily share the connection with friends and colleagues in the team. Connect to develop the app. No more worrying about each person having one database, not having data to test, or having to run the script again every time you edit the database. Conclusion In this article, we learned about starting to create a Database on Azure. Instead of having to install everything from Visual Studio to MS SQL, just follow the instructions and after 5 minutes you will have a Database for the whole team to code together! This database is also quite cheap, only about $7-8/month, so the team can pool their money to spend. When the system swells, just increase the DTU and the database will run faster and can handle more load (of course it costs more money). In addition to files, sometimes the system must also contain many files such as images, text, documents uploaded by users. This data can weigh several hundred MB to tens of TB. So where are they stored, how can users access them? In the following we will learn about Azure Storage, Azure's file storage service! Rate this: Like this: Related
Thuở còn là sinh viên, mỗi khi phải ngồi nghe giảng giải những kiến thức khô khan buồn ngủ, chúng ta thường bị mấy ông thầy dụ dỗ “Kiến thức căn bản quan trọng lắm , nắm vững căn bản rồi sau này học gì cũng được!”. Mấy năm sau, chúng ta lại tiếp tục được nghe “ Tư duy lập trình mới quan trọng, ngôn ngữ hay thuật toán chỉ là phụ thôi”. Điều này đôi khi làm sinh viên “loạn” vì không biết thật sự “căn bản” là những cái gì; “tư duy lập trình” mặt mũi nó ra sao, làm sao để rèn luyện nó? Bài viết này sẽ cùng vén bức màn bí mật về những thứ gọi là “căn bản” và “tư duy lập trình” mà giang hồ thường nhắc đến. Kiến thức căn bản gồm những gì? Đây là những kiến thức cơ sở nhất, là những viên gạch đặt nền móng cho kiến thức sau này (VD như: thuật toán cấu trúc dữ liệu, OOP, vòng lặp, đệ qui, callback , 1 số mô hình MVC MVVM, cơ chế hoạt động của web, …). Vì chúng là kiến thức nền tảng , mang tính học thuật nhiều nên đôi khi khá là phi thực tế và buồn ngủ. Chắc hẳn ai cũng từng nhức đầu đau não khi nghe các thầy giảng về sự kiện, con trỏ hàm , cây nhị phân, đệ qui… . Tuy nhiên, nếu nắm vững những kiến thức nền tảng này, bạn sẽ thấy việc chuyển đổi qua lại giữa các ngôn ngữ khác nhau rất dễ dàng, vì chúng được xây dựng dựa trên nền tảng chung. (Như bản thân mình, vì đã rõ cơ chế GET/POST, giao tiếp giữa client/server, mô hình MVC, mình có thể học nhanh Zend của PHP, Struts2 của Java, ASP.MVC của C# ). Trường đại học chủ yếu dạy những kiến thức này , do đó đôi khi bạn sẽ thấy chương trình học khá khô khan. Hãy nhớ điều mình từng học khi xem phim kiếm hiệp thời xưa, để học được võ công thượng thừa, phải rành những chiêu thức cơ bản trước . Những chiêu thức hoa mĩ đều từ cơ bản mà ra cả. Tư duy lập trình là cái chi chi? Tư duy lập trình là một thứ hơi … hư cấu vì chưa ai thấy mặt mũi nó như thế nào cả. Có người bảo rằng tư duy lập trình là thuật toán, học thuật toán và giải bài tập cho giỏi thì nhiều thì tư duy lập trình sẽ giỏi. Cá nhân mình nghĩ, tư duy lập trình bao gồm tư duy giải quyết vấn đề và tư duy để chuyển cách giải đó thành code . Tư duy giải quyết vấn đề sẽ giúp bạn phân tích vấn đề thành những vấn đề nhỏ hơn, xem xét những phương án giải quyết phù hợp, lựa chọn phương án tối ưu. Sau khi đã chọn được phương án thích hợp, ta phải biết cách tư duy để chuyển phương án này thành code . Ví dụ như với ứng dụng Nhận Diện Idol , vấn đề đặt ra là: làm sau nhận diện được tên idol dựa vào hình ảnh đưa vào. Mình dùng tư duy để tìm ra hướng giải quyết gồm ba bước: Sau khi đã tìm được hướng giải quyết, mình mới bắt đầu viết code để hiện thực từng bước thôi. Để rèn luyện tư duy này, cách duy nhất là suy nghĩ nhiều, lập trình nhiều . Muốn cơ bắp to thì bạn phải tập gym chứ không thể xem tạp chí thể hình. Muốn chịch giỏi bạn phải chịu khó chịch chứ không phải chỉ xem JAV là giỏi. Tương tự, muốn rèn luyện tư duy lập trình thì phải chịu khó lập trình nhiều chứ không phải chỉ đọc sách là được. Căn bản quan trọng cỡ nào? Căn bản rất quan trọng, nhưng các bạn đừng đặt tư tưởng là “phải nắm vững căn bản rồi mới làm!”. Việc học căn bản khá nặng nề, mệt mỏi và buồn ngủ. Đừng cố gắng nắm vững căn bản ngay từ đầu, khó lắm! Cứ bắt tay vào thực hành đi, việc trực tiếp code sẽ giúp bạn ngộ ra nhiều điều, giải đáp những điều bạn chưa rõ khi học căn bản. Ngoài ra, bạn cũng đừng mang tư tưởng học căn bản cho xong là ngừng , từ nay mình giỏi rồi, học ngôn ngữ mới dễ òm, chả cần học thêm gì nữa. Tại sao vậy? Kiến thức thay đổi, đôi khi có những thứ căn bản cũng sẽ thay đổi theo. Giả sử bây giờ giang hồ không sử dụng OOP nữa, mà chuyển qua Functional Programming. Lúc này, đống căn bản về OOP sẽ trở nên vô dụng hết. Ngoài ra, có nhiều thứ vượt lên căn bản , phải đào sâu tìm hiểu và tiếp xúc lâu dài với công nghệ thì mới ngộ ra được. Kết Xét cho cùng “căn bản” vốn chỉ là căn bản thôi. Nó chỉ là một cái nền. Có nền móng vững chắc sẽ rất tốt, nhưng nếu nhà mà chỉ có nền mà không có tường , không có điện nước thì cho tiền cũng không ai dám ở. Một cái cây có bộ rễ vững chắc có thể chống chọi được bão tố, nhưng nếu nó cứ chăm chút dinh dưỡng cho bộ rễ thì sẽ không vươn cao vươn xa được. Các mẫu phỏng vấn tuyển dụng cũng không ai thêm chữ “căn bản” vào nội dung tuyển dụng, mà họ tuyển người có những kĩ năng cần thiết , kiến thức về công nghệ. Do đó, đừng quá bám rễ vào căn bản, cũng đừng đua đòi chạy theo công nghệ mà hãy biết uyển chuyển thay đổi cho phù hợp nhé. Quảng cáo 30s : Anh Song bạn mình, CEO bên Cybersoft đang có 1 khóa học Lập trình Tư Duy Thuật Toán . Khóa này giúp các bạn nắm vững lại kiến thức cơ bản, học cách phân tích bài toán, làm dự án để rèn luyện tư duy lập trình. Bạn nào có hứng thú thì kéo xuống dưới đăng kí, dùng mã CODEDAO_TUDUY để được ưu đãi nha Rate this: Like this: Related
When we were students, every time we had to sit and listen to dry and sleepy knowledge being explained, we were often tempted by teachers, "Basic knowledge is very important, master the basics and then you can learn anything in the future." !”. A few years later, we continue to hear "Programming thinking is important, language or algorithms are just secondary". This sometimes makes students "confused" because they do not know what "basics" really are; What does "programming thinking" look like, how to train it? This article will reveal the secret about the so-called "basics" and "programming thinking" that Gypsies often mention. What does basic knowledge include? This is the most basic knowledge, the bricks that lay the foundation for future knowledge (eg: data structure algorithms, OOP, loops, recursion, callback, some MVC MVVM models, basic mechanism of web operation, ...). Because they are fundamental knowledge and have a lot of academic content, they are sometimes quite unrealistic and sleepy. Surely everyone has had a headache when listening to teachers talk about events, function pointers, binary trees, recursion... However, if you master this fundamental knowledge, you will find it very easy to switch between different languages, because they are built on a common foundation. (Like myself, because I understand GET/POST mechanism, client/server communication, MVC model, I can quickly learn PHP's Zend, Java's Struts2, C#'s ASP.MVC). Universities mainly teach this knowledge, so sometimes you will find the curriculum quite dry. Remember what you learned when watching old swordplay movies, to learn superior martial arts, you must master the basic moves first. All the fancy moves come from the basics. What is programming thinking? Programming thinking is a bit... fictional because no one has seen what it looks like. Some people say that programming thinking is algorithms. If you learn algorithms and solve exercises well, the more you learn programming, the better your programming thinking will be. Personally, I think programming thinking includes problem-solving thinking and thinking to convert that solution into code. Problem-solving thinking will help you analyze problems into smaller problems, consider appropriate solutions, and choose the optimal solution. After choosing the appropriate option, we must know how to think to convert this option into code. For example, with the Idol Identification application, the problem is: how to identify the idol's name based on the input image. I used thinking to find a solution in three steps: After finding the solution, I started writing code to implement each step. To practice this thinking, the only way is to think a lot and program a lot. If you want big muscles, you have to go to the gym, not read fitness magazines. If you want to fuck well, you have to be good at fucking, not just watch JAV to be good. Similarly, if you want to practice programming thinking, you have to work hard at programming, not just read books. How important are the basics? The basics are very important, but don't think "you have to master the basics before doing it!". Learning the basics is quite heavy, tiring and sleepy. Don't try to master the basics from the beginning, it's very difficult! Just start practicing, directly coding will help you realize many things, answering things you didn't understand when learning the basics. In addition, you should not have the mindset of stopping after learning the basics. From now on, you are good at it. Learning a new language is easy, you don't need to learn anything else. Why so? Knowledge changes, sometimes basic things will change too. Suppose now Gypsy no longer uses OOP, but switches to Functional Programming. At this point, the basics of OOP will become useless. In addition, there are many things that go beyond the basics, you have to dig deeper and have long-term contact with technology to understand. Conclusion After all, "basics" are just basics. It's just a background. Having a solid foundation is very good, but if the house only has a foundation without walls, without electricity or water, no one will dare to live in it if you give money. A tree with strong roots can withstand storms, but if it keeps taking care of its roots, it will not be able to grow high and far. Recruitment interview forms also do not add the word "basic" to the recruitment content, but they recruit people with the necessary skills and knowledge of technology. Therefore, don't be too rooted in the basics, don't chase after technology, but be flexible enough to change accordingly. 30s advertisement: My friend Mr. Song, CEO of Cybersoft, is having an Algorithmic Thinking Programming course. This course helps you master basic knowledge, learn how to analyze problems, and do projects to practice programming thinking. If you are interested, scroll down to register, use code CODEDAO_TUDUY to get a discount Rate this: Like this: Related
Ở bài trước, mình đã “vạch mặt” Facebook và Google theo dõi lịch sử duyệt web của người dùng. Ở bài này, để hiểu rõ hơn cơ chế hoạt động của các hệ thống này, chúng ta cùng viết một hệ thống “theo dõi” đơn giản hơn, sử dụng cookie nhé. Thật ra, những chiêu trò track người dùng này… không có gì cao siêu ghê gớm . Hệ thống này được viết bằng NodeJS , chỉ có vài chục dòng code thôi. Các bạn cùng xem thử nhé Demo ngay cho nóng Các bạn có thể vào xem demo hệ thống tại đây: Để kiểm tra hệ thống có thật sự hoạt động hay không, hãy thử vào các trang có script tracking này rồi vào lại xem log nhe: Cơ chế hoạt động Hệ thống hoạt động theo cơ chế rất đơn giản: Cùng bắt tay vào code Mình sử dụng NodeJS để code cho tiện. Thay vì phải tìm máy chủ và host để deploy, mình dùng – một công cụ build và deploy app NodeJS cực nhanh . Đây là một tool khá tiện, code ngay tại chỗ, app được build và có host ngay . Mình chỉ việc code, còn lại trang là hệ thống tự deploy cả. Chúng ta cùng làm những điều mình nói phía trên nhé. 2. Tạo 1 đoạn script để gửi cookie của người dùng lên server Trong nhiều trường hợp, người dùng sẽ không ghé trang chính mà chỉ ghé trang có gắn script nên chưa có cookie. Do đó chúng ta tạo 1 iframe ẩn, mở trang chính để set cookie cho người dùng. Sau đó ta gọi AJAX call đến url logWrite để ghi log. Để track người dùng, các trang web chỉ cần thêm đoạn mã JavasSript phía dưới vào code HTML. 3. Viết hàm logWrite trên server, hàm này sẽ ghi lại id của người dùng (trong cookie) và địa chỉ web họ đã ghé thăm. 4. Khi người dùng ghé vào trang web tracking tại , ta lấy userid từ cookie và hiển thị log tương ứng. Thế là xong rồi đấy, đơn giản quá phải không nào! Cách không thủ vật – Track không cần script Tất nhiên, đôi khi chúng ta không làm chủ một trang web nên không thể thêm script tracking vào được. Vậy thì còn cách nào không? Dĩ nhiên là có! Không cần thêm JavaScript, mình có thể track bạn chỉ bằng một tấm hình “vô hại” như thế này: Khi trình duyệt hiển thị tấm hình này, nó gửi một HTTP Request có kèm cookie lên server . Server tiếp tục đọc và lưu vào log. Code cũng khá đơn giản thôi. Đây là chiêu mà các bạn marketing thường dùng. Họ thường đính kèm link ảnh trong post của các forum, trong email để đếm số người xem, kiểm tra email đã được đọc chưa v…v Note: Gần đây 1 số trình duyệt đã chặn cookie từ ảnh (để tránh bị tracking) nên chiêu này dùng lúc được lúc không nhe. Xoá cookie không khỏi nắng Tất cả những chiêu trò tracking nãy giờ đều được thực hiện bằng cookie . Vậy hẳn bạn sẽ có nghĩ là: “Xoá cookie hoặc sử dụng trình duyệt ẩn danh là xong! Track bố mày bằng đít nhé!”. Bạn nhầm rồi! Hãy đọc lại bài viết trước nha, còn nhiều chiêu trò đáng sợ lắm. Hãy cùng vào lại trang web tracking và bấm “Xem thông tin của thí chủ” nha. Sau đó, mở trình duyệt ẩn danh lên và bấm “Xem thông tin”! Mã số khác nhau (vì không lưu cookie), nhưng 2 thông tin này giống nhau y hệt. Mình có thể dựa vào những thông tin này để track bạn mà không cần cookie hay không? Dĩ nhiên là có! Đáng sợ chưa! Cơ mà vì mình là người tốt nên mình không làm đâu. Do vậy, các bạn đừng lầm tưởng rằng dùng trình duyệt ẩn danh tuyệt đối an toàn nhé! Dĩ nhiên, các bạn có thể đánh lừa hệ thống bằng cách đổi browser, fake IP, dùng VPN, đổi user-agent . Kết Thông qua bài viết này, các bạn đã biết được cách hiện thực một hệ thống tracking bằng cookie cực kì đơn giản mà khá mạnh . Trong bài này cũng vậy, mình chỉ làm demo thôi, không lưu bất kì thông tin gì của các bạn đâu nên mọi người đừng lo ha! Xin kết thúc bài viết bằng một câu mình đã nói ở bài viết trước: May mắn thay cho chúng ta, đa phần việc tracking này được dùng cho mục đính tốt đẹp (quảng cáo, cải thiện trải nghiệm). Hi vọng các bạn xem để học hỏi chứ đừng áp dụng làm điều xấu nhé! Các bạn có thể xem source code tại: hoặc vào Glitch để code và chỉnh sửa ngay nhe: Rate this: Like this: Related
In the previous article, I "exposed" Facebook and Google tracking users' web browsing history. In this article, to better understand the working mechanism of these systems, let's write a simpler "tracking" system, using cookies. Actually, these tricks to track users... are nothing terrible. This system is written in NodeJS, with only a few dozen lines of code. Let's check it out. Demo right away. You can watch the system demo here: To check whether the system really works or not, try going to the pages with this tracking script and then go back to see the log. : Operational mechanism The system operates according to a very simple mechanism: Let's start coding. I use NodeJS to code for convenience. Instead of having to find a server and host to deploy, I use - an extremely fast tool to build and deploy NodeJS apps. This is a pretty convenient tool, code right on the spot, the app is built and hosted right away. I just need to code, the rest of the page is self-deployed by the system. Let's do what we said above. 2. Create a script to send the user's cookies to the server In many cases, users will not visit the main page but will only visit the page with the script attached so there are no cookies. Therefore, we create a hidden iframe, opening the main page to set cookies for the user. Then we call the AJAX call to the logWrite url to write the log. To track users, websites just need to add the JavasSript code below to the HTML code. 3. Write a logWrite function on the server, which will record the user's id (in a cookie) and the web address they visited. 4. When the user visits the tracking website at , we get the userid from the cookie and display the corresponding log. That's it, it's so simple, isn't it! The non-defensive way - Tracking without a script Of course, sometimes we don't own a website so we can't add a tracking script. So is there any other way? Of course yes! Without adding JavaScript, I can track you with just a "harmless" image like this: When the browser displays this image, it sends an HTTP Request with a cookie to the server. The server continues to read and save to the log. The code is also quite simple. This is a tactic that marketers often use. They often attach image links in forum posts, in emails to count the number of viewers, check if the email has been read, etc. Note: Recently some browsers have blocked cookies from images (to avoid tracking), so This trick can be used sometimes and sometimes not. Deleting cookies is not a problem. All tracking tricks up until now have been done using cookies. So you might be thinking: “Delete cookies or use an incognito browser and that's it! Track your dad with your ass!”. You are wrong! Please read the previous article again, there are many scary tricks. Let's go back to the tracking website and click "View customer information". Then, open an incognito browser and click “View information”! The code is different (because cookies are not saved), but these two pieces of information are exactly the same. Can I rely on this information to track you without cookies? Of course yes! Scary yet! But because I'm a good person, I won't do it. Therefore, don't make the mistake of thinking that using an anonymous browser is absolutely safe! Of course, you can fool the system by changing browser, fake IP, using VPN, changing user-agent. Conclusion Through this article, you have learned how to implement an extremely simple but quite powerful cookie tracking system. Same in this article, I'm just doing a demo, I won't save any of your information so don't worry everyone! Let me end the article with a sentence I said in the previous article: Luckily for us, most of this tracking is used for good purposes (advertising, improving the experience). I hope you watch to learn, not to do bad things! You can view the source code at: or go to Glitch to code and edit right away: Rate this: Like this: Related
Ở phần trước, mình đã kể về những người đồng nghiệp/đàn anh khá cool ngầu, dạy cho mình nhiều điều hay ho mà mình đã gặp ở FPT và Aswig Solution. Chia tay Aswig, mình rời Việt Nam để qua UK du học, sau đó qua Singapore làm việc trong 1 startup về chứng khoán trên Algomerchant. Ở phần này, mình sẽ kể bà con nghe về những đồng nghiệp hay ho, những điều mình học được ở 2 công ty này nhé! ISS – Lancaster University – Lần đầu làm việc nước ngoài Chuyện làm sao mình xin việc, vào làm cho phòng IT của Đại học Lancaster thì mình cũng kể lâu rồi. Các bạn có thể xem lại 2 bài trước nha: Lần đầu xin việc ở nước ngoài Lần đầu Code Dạo nơi xứ người Trong bài này, mình chỉ kể về 2 người để lại cho mình khá nhiều ấn tượng, đó là anh Liam – Team Leader và bác Brian – PM (Product kiêm Project Manager) Anh Liam – Thế nào là senior đúng nghĩa Hồi mình mới vào, team IT của Đại Học Lancaster cũng khá bé, chỉ khoảng 4, 5 người. Anh Liam coi như là senior nhất trong team, nên anh cũng chịu trách nhiệm hướng dẫn coi sóc mình luôn. Điều khiến mình nhớ nhất vẫn là anh rất … lịch sự đúng kiểu dân UK, lâu lâu lại hỏi Are you okay? , để xem mình có cần giúp đỡ gì không. Hôm đầu tiên đồng hồ vừa chỉ 5h chiều là anh bảo mình … xách giỏ về vì hết giờ làm rồi. Mặc dù kinh nghiệm nhiều nhất team, nhưng anh không bao giờ tỏ vẻ, khinh người hoặc áp đặt mà luôn chịu khó thảo luận với đồng nghiệp. Ngoài ra, anh còn rất nhiệt tình review code của đồng nghiệp, cài đặt Linter , setup code convention để đảm bảo chất lượng code. Nhờ làm việc với anh, mình hiểu như thế nào mới là một senior, một buddy đúng nghĩa. Bác Brian – Tầm quan trọng của soft skill Bác Brian là Product Manager team Project Manager của team mình. Tuy cũng khá cao tuổi (tầm 50-60) nhưng bác vẫn rất sung , code C# back-end bay tóc hết. Khả năng technical của bác cũng tàm tạm, không phải quá ngầu hay gì. Tuy vậy, mình lại học được khá nhiều soft-skill từ bác Brian: Làm sao giải thích vấn đề cho người ở những department khác, những người không chuyên về IT. Làm sao trò chuyện và lấy yêu cầu từ khách hàng Làm sao quản lý, tạo động lực cho nhân viên, tăng năng suất của team Bác cũng là một con người khá thú vị. Ngoài giờ làm việc, bác còn quản lý một đội bóng đá nữ (tiểu học), tổ chức các quỹ từ thiện v..v Tốt nghiệp xong, anh Liam nghỉ để qua Úc nên phòng IT tuyển developer full time. Xác suất mình được nhận ở lại khá là cao do đã làm việc với team từ lâu, performance tốt . Tuy nhiên, do bên UK thuế cao, đồ ăn thức uống không hạp mồm nên mình … rong ruổi qua Singapore làm Code Dạo tiếp! Algomerchant Singapore – Lần đầu làm startup Algomerchant là một startup nho nhỏ về chứng khoán. Công ty không bự lắm nên mấy đứa co-founder vừa làm dev, vừa làm COO, CTO luôn. Hai đồng nghiệp giúp mình học hỏi được nhiều điều là anh Marco – COO và Aditya – CTO Marco – Cần mẫn, siêng năng, tầm quan trọng của document và process Ấn tượng đầu tiên của mình về anh Marco – COO tức Chief Operating Office, thì anh là người khá trầm mặt, ít nói, khó gần . Tuy vậy, thanh niên này rất nhiệt tình, cống hiến hết mình cho công ty: Chịu khó document rất kĩ architecture của hệ thống . Nhờ đống document của anh mà mình và các thành viên khác làm việc dễ dàng hơn rất nhiều Thiết lập danh sách SOP (standard operating procedure), check hàng ngày để đảm bảo hệ thống của công ty chạy ổn định Thường đi làm sớm, về khá muộn, khi có sự cố (hệ thống bị lỗi, CEO réo gọi) thì thức đến khuya để giải quyết Nói thật lòng, mình không quá đồng ý với cách sống hết mình vì công việc như vậy. Theo mình, công việc chỉ là 1 phần, phải biết cân bằng giữa công việc và cuộc sống . Tuy nhiên, nếu mình có mở công ty hoặc làm chung team, mình muốn có một đồng đội kiên trì và nhiệt tình như anh Marco vậy. Aditya – Kĩ năng mềm cứng gì cũng “cứng” Trái ngược với Marco, anh Aditya – CTO tức Cheif Technical Officer, lại là một người có khuôn mặt baby, tính tình khá xởi lởi dễ gần. Về technical Có thể nói, anh là một trong những người thông minh + technical cứng nhất mà mình từng làm việc chung. Nói chuyện và làm việc với người thông minh rất sướng, bạn chỉ cần giải thích ngắn gọn là họ hiểu điều bạn muốn nói, còn đưa ra cách cải thiện, lựa chọn khác tốt hơn. Thảo luận với họ, bạn cũng thấy mình thông minh hơn ra. Khi làm việc cũng vậy, mỗi lần cần giải quyết issue gì, anh luôn suy nghĩ tìm root cause và giải quyết vấn đề từ gốc . Mỗi khi dùng công nghệ gì, anh cũng tò mò tìm hiểu xem nó hoạt động ra sao , chứ không xài vô tội vạ. Về soft skill Các bạn thường lầm tưởng rằng mấy ông lập trình giỏi thường hay đụt, không biết ăn nói . Aditya sẽ chứng minh cho bạn điều ngược lại. Khi nói chuyện với dev, anh rất nhiệt tình giảng giải, đi sâu vào chi tiết technical . Khi trình bày với CEO, HR, anh lại giải thích high-level hơn, dùng ít từ ngữ chuyên ngành để họ hiểu. Mình từng rất khâm phục khi thấy anh nhiệt tình giải thích cho bạn marketing thế nào là front-end, back-end, server, cách SEO hoạt động ra sao. Về tính cách thì mình cảm thấy anh là người … chơi được, lâu lâu nói chuyện công nghệ, chém gió technical linh tinh cũng rất vui. Tạm kết Ngẫm lại, số mình cũng khá may mắn, nên đi làm đâu cũng có đồng nghiệp cool ngầu, cũng thấy có những điều hay để mình học tập cả. Không có họ, có thể bây giờ trình độ của mình vẫn ở mức tà tà bậc trung , hoặc cứ ếch ngồi đáy giếng, tưởng mình hơn người (mà không biết bên ngoài còn nhiều người giỏi hơn). Còn bạn thì sao, trong quá trình làm việc, có những người đàn anh/những người đồng nghiệp nào để lại nhiều ấn tượng cho bạn không, hãy kể lại trong mục comment nhé! Rate this: Like this: Related
In the previous section, I talked about the cool colleagues/seniors who taught me many interesting things that I met at FPT and Aswig Solution. Saying goodbye to Aswig, I left Vietnam to study abroad in the UK, then went to Singapore to work in a securities startup on Algomerchant. In this part, I will tell you about my cool colleagues and the things I learned at these two companies! ISS – Lancaster University – First time working abroad The story of how I applied for a job and worked for the IT department at Lancaster University has been told for a long time. You can review the previous 2 articles: First time applying for a job abroad Code's first time walking in a foreign land In this article, I only talk about two people who left a lot of impression on me, that is Mr. Liam - Team Leader and Mr. Brian - PM (Product cum Project Manager) Mr. Liam - What is a true senior When I first joined , Lancaster University's IT team is also quite small, only about 4 or 5 people. Liam is considered the most senior in the team, so he is also responsible for guiding and taking care of me. What I remember the most is that he was very... polite like a UK person, occasionally asking Are you okay? , to see if I need any help. The first day, as soon as the clock showed 5pm, he told me to... take my basket home because work was over. Even though he has the most experience in the team, he never acts condescending or imposes, but always takes the trouble to discuss with his colleagues. In addition, he is also very enthusiastic about reviewing his colleagues' code, installing Linter, and setting up code conventions to ensure code quality. Thanks to working with him, I understand what it means to be a true senior and buddy. Uncle Brian - The importance of soft skills Uncle Brian is the Product Manager of our team's Project Manager team. Even though he's quite old (about 50-60), he's still very fit, and his C# back-end code is blowing his hair away. Your technical ability is okay, not too cool or anything. However, I learned quite a few soft-skills from Uncle Brian: How to explain the problem to people in other departments, who are not IT experts. How to chat and get requests from customers How to manage and motivate employees and increase team productivity Uncle is also a quite interesting person. Outside of work, he also manages a women's soccer team (elementary school), organizes charity funds, etc. After graduating, Liam quit to go to Australia, so the IT department recruited full-time developers. The probability of being accepted to stay is quite high because I have worked with the team for a long time and have good performance. However, due to high taxes in the UK and unpalatable food and drinks, I... traveled to Singapore to work on Code Dao again! Algomerchant Singapore – First time starting a startup Algomerchant is a small securities startup. The company is not very big, so the co-founders are both developers, COO, and CTO. Two colleagues who helped me learn a lot are Mr. Marco - COO and Aditya - CTO Marco - Diligence, diligence, the importance of documents and processes My first impression of Mr. Marco - COO aka Chief Operating Office, He is a rather quiet person, quiet, and difficult to approach. However, this young man is very enthusiastic and devotes himself to the company: Take the trouble to carefully document the system's architecture. Thanks to his documents, my work and other members' work is much easier Set up a list of SOPs (standard operating procedures), check daily to ensure the company's system runs stably Often go to work early, come home late, and when there is a problem (system error, CEO calls) they stay up late to solve it. To be honest, I don't really agree with this way of living wholeheartedly for work. In my opinion, work is only part of it, you must know how to balance work and life. However, if I ever open a company or join a team, I want to have a persistent and enthusiastic teammate like Marco. Aditya - Hard and soft skills are all "hard" In contrast to Marco, Mr. Aditya - CTO or Cheif Technical Officer, is a person with a baby face and a quite easy-going and approachable personality. Technically, it can be said that he is one of the smartest + most technical people I have ever worked with. Talking and working with smart people is very nice. You only need to explain briefly to make sure they understand what you want to say, and also suggest ways to improve and make better choices. Discussing with them, you will also find yourself smarter. The same goes when working, every time he needs to solve an issue, he always thinks about finding the root cause and solving the problem from the root. Every time he uses any technology, he is curious to find out how it works, rather than using it carelessly. Regarding soft skills, you often mistakenly think that good programmers are often dumb and don't know how to speak. Aditya will prove you otherwise. When talking to the dev, he was very enthusiastic in explaining and going into technical details. When presenting to the CEO and HR, he explained at a more high-level, using less specialized words so they could understand. I was very impressed when I saw him enthusiastically explaining to you how marketing is front-end, back-end, server, and how SEO works. In terms of personality, I feel like he's a... playable person. Sometimes it's fun to talk about technology and gossip about technical stuff. Conclusion Looking back, I'm quite lucky, so wherever I go to work, I have cool colleagues, and I also find there are good things for me to learn. Without them, maybe my level would still be at the average level, or I would still be sitting at the bottom of a well, thinking I'm better than others (not knowing there are many better people out there). How about you, during your work, are there any seniors/colleagues who left a big impression on you? Please tell us in the comments section! Rate this: Like this: Related
Ở kì trước, mình đã chỉ các bạn cách deploy một ứng dụng đơn giản trong 5 phút lên Azure rồi. Tuy nhiên, ứng dụng nào thì cũng cần Database . Không có Database thì lấy đâu ra chỗ lưu trữ dữ liệu, truy cập và tính toán dữ liệu! Dĩ nhiên, Azure cũng cung cấp dịch vụ Database “trên mây” luôn. Bài viết này cũng sẽ gồm 2 phần: Phần 1 : Tìm hiểu về Azure Database và Elastic Pool Phần 2 : Tạo database mới và kết nối tới Database trong 5 phút Công việc của mấy anh DBA khi chưa có Azure Đầu tiên, các bạn phải biết rằng quản lý database của một hệ thống chưa bao giờ là chuyện đơn giản . Nhiều công ty họ có nguyên một người hoặc một team DBA – Database Administrator chỉ để quản lý database của hệ thống. Công việc của mấy anh này cũng khá gian nan vất vả: Cài đặt : DBA sẽ làm việc trực tiếp với mấy anh IT để cài đặt databse (MySQL, MS SQL, Postgress) lên mấy con server của công ty. Sau đó phải mở port, thiết lập username, password, connection để ứng dụng truy cập vào được. Update phần cứng/phần mềm : Đôi khi, họ cũng phải cài bản mới hơn của database để cập nhật tính năng, vá lỗi bản mật v…v. Khi lượng khách hàng nhiều, DB không đáp ứng nổi, họ phải nâng cấp phần cứng phần mềm lên luôn. Monitor/Sửa chữa : Sau khi hệ thống chạy, họ sẽ quan sát xem database hoạt động nhanh hay chậm, có bị crash hay tắc nghẽn gì không. Khi database tèo (cúp điện, dĩa lỗi, server hư), các anh phải xắn tay áo lên sửa chữa. Backup/Rollback dữ liệu : Để đề phòng trường hợp máy hỏng, mất dữ liệu, developer xóa nhầm, DB phải cài đặt backup dữ liệu thường xuyên để có thể rollback lại được. Optimize : Khi query chạy chậm, hoặc cho kết quả sai, DBA phải ngồi với developer để tối ưu lại câu query, đánh index, config lại server. Nhiều khi DBA họ viết query và procedure cho dev dùng luôn. Khi không có DBA, nhiều khi dev tụi mình sẽ phải tự gánh các phần này luôn. Nếu không có kiến thức về DB, ta dễ mắc phải nhiều sai lầm như: Không backup dữ liệu, vái trời cho DB chạy tốt Không có monitor nên database chậm rì cũng không biết Không update và setup bảo mật nên dùng DB cũ, lỗi bảo mật tùm lum Với Azure Database, mọi thứ trở nên đơn giản hơn nhiều cho anh em developer tụi mình. Vậy nó có gì hot? Azure Database có gì hot? Azure Database hỗ trợ rất nhiều thứ đến tận răng, chúng ta chỉ cần dùng mà không quan tâm gì cả: Không cần lo chuyện cài đặt/update: Chỉ cần vào Azure Portal tạo DB mới là được. Azure sẽ tự lo việc config, cài đặt, update lên bản mới. Monitor và Analytic : Azure có sẵn dashboard để monitor trạng thái của DB, thời gian query, lượng đọc ghi, các query chậm, đủ cả. Tự động backup/restore : Azure Db có sẵn chức năng back-up theo ngày hoặc theo giờ. Ta có thể back-up và restore trong vòng 1 nốt nhạc, không cần quan tâm tới việc lưu trữ ở đâu. Tất nhiên Azure sẽ charge thêm phí lưu trữ . Đảm bảo uptime : Azure sẽ đảm bảo server của bạn luôn hoạt động (Uptime tới 99.99% lận), không còn lo server chết hay đĩa hỏng gì cả. Nếu server sập có thể liên hệ Azure đòi tiền lại . Gợi ý optimize query : Nhờ có bộ analytic và monitor cực mạnh, Azure DB có thể show cho chúng ta những query nào chậm, query nào tốn tài nguyên, đồng thời … gợi ý luôn cách tạo index nào để optimize, tăng tốc độ xử lý (Thời làm ở Algomerchant , có nhiều lần mình phải dùng Azure để xem câu query nào chậm, làm DTU của DB lên 80% đấy) Nói chung, những chức năng này không thay thế được hoàn toàn mấy anh DBA, nhưng chúng giúp cuộc sống của anh em dev dễ thở rất nhiều Các bạn có thể tìm hiểu thêm tại đây: Tiết kiệm chi phí với ElasticPool Azure tính phí Database theo DTU , là tổng hợp của CPU/RAM/Storage. DTU ít thì sẽ chạy chậm hơn, ít RAM hơn, giá cũng… rẻ hơn. Khi người dùng nhiều, ta có thể tăng DTU để hệ thống chạy nhanh hơn, chịu tải được nhiều hơn , phục vụ nhiều người hơn. Ngoài ra, có nhiều hệ thống mà ta cần một DB riêng cho mỗi khách hàng, hoặc cần nhiều DB riêng cho mỗi microservice . Một DB này có nhu cầu sử dụng khác nhau, nếu trả phí theo từng DB sẽ khá là … chát. Do vậy, bên Azure có một model khác là ElasticPool . Có thể hiểu Pool này là một bể chứa xài chung cho các database. Toàn bộ các database nằm chung này có thể xài chung resource với nhau để tiếp kiệm chi phí. Tạm kết Trong bài này, chúng ta đã tìm hiểu về Azure Database rồi. Trong phần xong chúng ta sẽ xắn tay lên tạo Database và kết nối tới luôn cho nóng nha. Thay vì phải ngồi cài đủ thứ từ Visual Studio tới MS SQL, chỉ cần làm theo hướng dẫn là sau 5p các bạn đã có cái Database để code rồi, nhớ đón xem nhen! Rate this: Like this: Related
In the previous article, I showed you how to deploy a simple application in 5 minutes to Azure. However, every application needs a Database. Without a database, where can we find a place to store data, access and calculate data? Of course, Azure also provides Database services "in the cloud". This article will also include 2 parts: Part 1: Learn about Azure Database and Elastic Pool Part 2: Create a new database and connect to the database in 5 minutes The work of DBA guys without Azure First, you must know that managing the database of a system is never a simple matter. Many companies have one person or a team of DBA - Database Administrator just to manage the system's database. The work of these guys is also quite arduous and hard: Installation: DBA will work directly with IT guys to install databases (MySQL, MS SQL, Postgress) on the company's servers. Then you must open the port, set up username, password, and connection for the application to access. Hardware/software update: Sometimes, they also have to install a newer version of the database to update features, patch security bugs, etc. When the number of customers is large, the DB cannot respond, they have to upgrade their hardware and software. Monitor/Repair: After the system runs, they will observe whether the database operates quickly or slowly, if there are any crashes or bottlenecks. When the database goes bad (power outage, disk error, server failure), you have to roll up your sleeves and fix it. Backup/Rollback of data: To prevent computer failure, data loss, or mistaken deletion by the developer, the DB must install regular data backups so that they can be rolled back. Optimize: When the query runs slowly, or gives wrong results, the DBA must sit with the developer to optimize the query, index, and reconfigure the server. Many times, DBAs write queries and procedures for developers to use. When there is no DBA, many times our developers will have to shoulder these parts themselves. Without knowledge of DB, we easily make many mistakes such as: Don't back up data, pray to God the DB runs well There is no monitor so the database is slow and I don't know If you don't update and set up security, you should use an old database, security errors abound With Azure Database, everything becomes much simpler for us developers. So what's hot about it? What's hot in Azure Database? Azure Database supports a lot of things, we just need to use it without worrying about anything: No need to worry about installation/update: Just go to Azure Portal to create a new DB. Azure will take care of configuring, installing, and updating to the new version. Monitor and Analytic: Azure has a dashboard available to monitor DB status, query time, read and write volume, slow queries, all. Automatic backup/restore: Azure Db has a built-in backup function by day or hour. We can back-up and restore within a minute, no matter where it is stored. Of course Azure will charge additional storage fees. Guaranteed uptime: Azure will ensure your server is always up and running (uptime up to 99.99%), no more worrying about dead servers or damaged disks. If the server crashes, you can contact Azure to get your money back. Suggestions for optimizing queries: Thanks to the powerful analytics and monitoring suite, Azure DB can show us which queries are slow, which queries consume resources, and at the same time... suggest how to create indexes to optimize and increase processing speed. physical (When I worked at Algomerchant, there were many times I had to use Azure to see which queries were slow, causing the DB's DTU to increase by 80%). In general, these functions cannot completely replace DBAs, but they make the lives of developers a lot easier. You can learn more here: Save costs with ElasticPool Azure charges Database according to DTU, is a combination of CPU/RAM/Storage. With less DTU, it will run slower, have less RAM, and the price is... cheaper. When there are many users, we can increase DTU so that the system runs faster, can handle more load, and serve more people. Additionally, there are many systems where we need a separate DB for each customer, or multiple separate DBs for each microservice. Each DB has different usage needs. If you pay for each DB, it will be quite... expensive. Therefore, Azure has another model called ElasticPool. This Pool can be understood as a shared storage tank for databases. All of these shared databases can share resources together to save costs. Conclusion In this article, we have learned about Azure Database. In the final part, we will create a database and connect to it right away. Instead of having to install everything from Visual Studio to MS SQL, just follow the instructions and after 5 minutes you will have a Database to code, remember to check it out! Rate this: Like this: Related
Xin bắt đầu bài viết bằng một câu chuyện nho nhỏ về hai thanh niên tên K và tên H. Ngày xửa ngày xưa, K và H là đôi bạn thân học cùng Đại Học. Thuở ra trường, do có khả năng, cả hai được nhận vào một công ty làm C#, sử dụng ASP.NET MVC. Câu chuyện bắt đầu từ đó. Hai cách tiếp cận vấn đề Để học ASP.NET MVC, K ra Nhất Nghệ học và lên mạng xem thêm các clip tiếng Việt về ASP.NET. Nhờ làm theo hướng dẫn, sau một tháng K đã thành thạo những task cơ bản , hoàn thành công việc được giao. Mỗi lần gặp task phức tạp hoặc có lỗi, K lại lên stackoverflow xem cách giải quyết. Thấy mình làm được việc, K nghĩ mình đã biết đủ rồi, không cần học thêm gì nữa. H thì không vội vàng học công nghệ mà tìm hiểu thật kĩ về ngôn ngữ C# và mô hình MVC. Sau đó H thì lại lên Pluralsight học, tìm đọc các sách chuyên sâu về ASP.NET của Apress. H không chỉ code theo hướng dẫn, mà còn tìm hiểu kĩ nền tảng của ASP.NET: route mapping thế nào, view được hiển thị ra sao, các HTML Control sẽ được khởi tạo như thế nào. Hai năm sau, ASP.NET dần nâng cấp lên các phiên bản mới. K bắt đầu hụt hơi khi không theo kịp những thay đổi của công nghệ, gặp bug lạ là bó tay. Trong khi đó, do đã nắm vững bản chất công nghệ , H dễ dàng áp dụng những chức năng mới. H còn nhanh chóng học thêm về Ruby on Rails, Django nhờ đã nắm vững cơ chế hoạt động của mô hình MVC. Nửa năm sau, bố của K thấy K đi code hoài tội quá, cho K 1 tỷ để mở công ty. Công ty thành công rực rỡ, K có xe xịn, nhà cao, vợ đẹp con ngoan . Còn H vẫn ngày ngày đi code dạo và viết blog . Qua câu chuyện này, chúng ta rút ra được hai bài học: Bài học thứ nhất : Giỏi code đến mấy cũng không bằng nhà giàu, may mắn và gặp thời. Bài học thứ hai : Để trở thành một lập trình viên giỏi thật sự, ta phải nắm rõ bản chất vấn đề, hiểu bản chất công nghệ/ngôn ngữ của mình đang sử dụng. Tại sao phải nắm bản chất vấn đề? Mình đã từng nói về tầm quan trọng của việc nắm rõ bản chất trong bài: Cảnh giới tối cao trong code học . Hiện nay, nhiều bạn sinh viên thích học lập trình theo kiểu chưa học bò đã lo học chạy : Nhắm mắt nhắm mũi chọn một công nghệ, lao đầu vào các khoá học trên mạng, code theo hướng dẫn để code ra một sản phẩm gì đấy . Cách học code tốt nhất chính là… tự tay code . Ưu điểm của phương pháp học này là các bạn được code ngay, tạo ra được sản phẩm. Điều này làm bạn có hứng thú hơn so với việc ngồi học lý thuyết nhàm chán. Tuy nhiên, cách học này cũng dễ làm bạn… tự tin thái quá, nghĩ rằng mình đã biết hết. Điều này dễ dẫn đến việc cắm đầu cắm đít code theo hướng dẫn mà không hiểu rõ cách code hoạt động, không hiểu bản chất công nghệ mình sử dụng . Để làm lái xe giỏi, bạn không cần phải biết cách động cơ xe hoạt động, cấu tạo của cần lái, vô lăng. Tuy nhiên, làm lập trình viên mà không hiểu về công nghệ mình dùng, ngôn ngữ mình code, bạn sẽ gặp nhiều khó khăn khi làm những task phức tạp, khi gặp bug lạ , khi cần thiết kế hay tối ưu code . Hãy như H ở câu chuyện trên. Hiểu rõ bản chất vấn đề, bạn có thể dễ dàng chuyển đổi qua lại giữa nhiều công nghệ, tự tin giải quyết các vấn đề phức tạp. Đó cũng là lý do mà trong các trường đại học , các thầy cô thường khuyến khích các bạn code tay để hiểu vấn đề, thay vì dùng ngôn ngữ này/công nghệ nọ. Đừng vội học framework!! Tình trạng này mình đã gặp khá nhiều. Có vài bạn đi làm, vì nhu cầu công việc nên phải học ngay một công nghệ nào đấy (Laravel, AngularJS, …). Các bạn cắm đầu vào học ngay công nghệ để làm được việc. Các framework này đã hỗ trợ tận răng nên học khá dễ dàng, học một thời gian các bạn đã làm được những task đơn giản, hoàn thành việc được giao. Tuy nhiên, điều này lại khá tai hại. Kiến thức chỉ có phần ngọn mà không có phần gốc , không có nền tảng sẽ dễ dàng lung lay. Khi gặp những task phức tạp, tìm không ra hướng dẫn, các bạn dễ bó tay. Khi gặp những con bug đểu, nằm sâu trong framework, bạn cũng không biết cách sửa. Lúc này, bạn chỉ giống như một thợ code, code như cái máy chứ không hiểu rõ công việc mình đang làm. Lời khuyên mình muốn dành cho các bạn là: Chịu khó học bò trước khi học chạy. Nắm vững bản chất của ngôn ngữ mà công nghệ mình sử dụng, đơn cử như: PHP còn chưa vững thì đừng đú Laravel hay CodeIgniter. Có mần AngularJS, jQuery hay React thì cũng nên học kĩ JS trước Muốn code Android thì phải hiểu rõ Java. Làm ứng dụng di động bằng React-Native, hãy hiểu JS, hiểu React trước khi bắt đầu code theo hướng dẫn. Vậy làm sao để nắm được bản chất công nghệ, hãy đọc phần cuối nhé! Làm sao để nắm được bản chất công nghệ? Chịu khó đọc nhiều sách : Các sách công nghệ thường viết kĩ về lý thuyết, có cấu trúc hơn là các video hay khoá học. Đọc thể loại sách này khá là chán, các bạn nên kết hợp đọc sách + xem video + code. Mình khuyên các bạn học C# nên đọc C# in Depth , học JavaSscript thì nên đọc series You don’t know JS , học NodeJS thì nên xem khoá học Understanding NodeJS . Mỗi ngôn ngữ đều có những cuốn sách nền tảng khá hay. Luôn luôn đói ăn, luôn luôn ngu học : Đây là một câu danh ngôn của Steve Jobs được mình độ chế lại. Đừng nghĩ rằng mình đã giỏi, đã biết tất cả mà hãy luôn cho rằng mình ngu, chưa biết gì nên phải học hỏi . Hãy giữ cho mình một sự tò mò, muốn tìm hiểu bản chất vấn đề. Đừng “sợ” thư viện và framework : Các thư viện/framework này thật là chỉ là “code người ta”, code do developer khác viết. Hầu như chúng đều có source code trên github . Các bạn chỉ cần lên github mở source code ra xem là biết có gì trong đó thôi. Bản thân mình cũng từng mở xem source code của vài cái library JS, nhiều cái bên trong code cũng ngu chết mẹ. Viết blog hoặc tutorial : Chia sẻ kiến thức của mình cho người khác cũng là một cách khá hay. Để viết một bài blog hay tutorial, bạn sẽ phải tìm hiểu kĩ về bản chất công nghệ , về những thứ liên quan trước khi viết. Do vậy mình viết blog nhiều là vì lợi ích của mình đấy, không phải các bạn đâu hihi. Còn các bạn thì sao? Các bạn có nghĩ rằng mình nên nắm vững bản chất công nghệ không, hay chỉ cần hiểu để làm được việc là được rồi? Cùng đưa ý kiến trong phần bình luận nhé. 30s quảng cáo: Bên Cybersoft của Anh Song bạn mình hiện đang có khóa học Rèn luyện tư duy lập trình, kiến thức nền tảng . Khóa học này giúp các bạn vững nền tảng căn bản, có kiến thức để học những thứ “cao siêu” hơn như framework, platform, mobile v..v nhé. Bạn nào quan tâm có thể xem thêm về khóa học tại đây nhe: Rate this: Like this: Related
Please start this article with a small story about two young men named K and H. Once upon a time, K and H were close friends studying at the same University. When they graduated, due to their ability, they were both accepted into a company that made C#, using ASP.NET MVC. The story starts from there. Two ways to approach the problem To learn ASP.NET MVC, go to Nhat Nghe to study and go online to watch more Vietnamese clips about ASP.NET. Thanks to following the instructions, after a month K was proficient in basic tasks and completed the assigned work. Every time he encounters a complicated task or has an error, K goes to stackoverflow to see how to solve it. Seeing that he could do the job, K thought he knew enough and didn't need to learn anything else. H is not in a hurry to learn technology but learns thoroughly about the C# language and the MVC model. After that, H went to Pluralsight to study and read in-depth books about ASP.NET from Apress. H not only coded according to the instructions, but also thoroughly researched the foundation of ASP.NET: how route mapping works, how views are displayed, how HTML Controls will be initialized. Two years later, ASP.NET gradually upgraded to new versions. K began to run out of breath when he couldn't keep up with changes in technology, and encountered strange bugs and gave up. Meanwhile, because he has mastered the nature of technology, H can easily apply new functions. H also quickly learned more about Ruby on Rails and Django thanks to mastering the operating mechanism of the MVC model. Half a year later, K's father saw that K was so guilty of coding and gave K 1 billion to open a company. The company is a great success, K has a good car, a tall house, a beautiful wife and good children. And H still walks around coding every day and writes blogs. Through this story, we learn two lessons: Lesson number one: Being good at coding is not the same as being rich, lucky, and well-timed. Lesson two: To become a truly good programmer, we must clearly understand the nature of the problem and understand the nature of the technology/language we are using. Why must we understand the nature of the problem? I have talked about the importance of understanding the essence in the article: The ultimate realm in learning code. Nowadays, many students like to learn programming in a way that has not yet learned to crawl but instead focuses on learning to run: Close your eyes, choose a technology, dive headfirst into online courses, code according to instructions to code a product. there . The best way to learn to code is... to code yourself. The advantage of this learning method is that you can immediately code and create products. This makes you more interested than sitting and studying boring theory. However, this way of learning can also easily make you... overconfident, thinking you know everything. This easily leads to plugging away at the code according to the instructions without understanding how the code works, without understanding the nature of the technology you use. To be a good driver, you don't need to know how the car engine works or the structure of the steering column or steering wheel. However, being a programmer without understanding the technology you use and the language you code in, you will encounter many difficulties when doing complex tasks, when encountering strange bugs, when needing to design or optimize code. Be like H in the story above. Understanding the nature of the problem, you can easily switch back and forth between many technologies, confidently solving complex problems. That is also the reason why in universities, teachers often encourage you to code by hand to understand the problem, instead of using this language/technology. Don't rush to learn the framework!! I have encountered this situation quite a lot. Some people go to work and because of work needs, they have to immediately learn a certain technology (Laravel, AngularJS, ...). You immediately dive into learning technology to get the job done. These frameworks have full support so learning is quite easy. After studying for a while, you will be able to do simple tasks and complete assigned tasks. However, this is quite harmful. Knowledge only has the tip without the root, without the foundation it will easily shake. When faced with complex tasks and unable to find instructions, it's easy to give up. When you encounter stupid bugs, deep in the framework, you don't know how to fix them. At this point, you are just like a coder, coding like a machine and not understanding the work you are doing. The advice I want to give you is: Try hard to learn to crawl before learning to run. Master the nature of the language your technology uses, for example: If PHP is not strong, don't try Laravel or CodeIgniter. If you are interested in AngularJS, jQuery or React, you should learn JS first If you want to code Android, you must understand Java. Make a mobile application using React-Native, understand JS, understand React before starting to code according to the instructions. So how to understand the essence of technology, read the last part! How to grasp the essence of technology? Take the trouble to read a lot of books: Technology books are often written in more detail about theory and are more structured than videos or courses. Reading this type of book is quite boring, you should combine reading books + watching videos + coding. I recommend that those learning C# should read C# in Depth, those learning JavaSscript should read the You don't know JS series, those learning NodeJS should watch the Understanding NodeJS course. Every language has good foundational books. Always hungry, always stupid: This is a quote from Steve Jobs that I adapted. Don't think that you are good and know everything, but always think that you are stupid and don't know anything so you have to learn. Keep yourself curious, wanting to understand the nature of the problem. Don't be "afraid" of libraries and frameworks: These libraries/frameworks are really just "other people's code", code written by other developers. Almost all of them have source code on github. You just need to go to github and open the source code to see what's in it. I myself once opened the source code of a few JS libraries, many of the things inside the code were also stupid as hell. Writing a blog or tutorial: Sharing your knowledge with others is also a good way. To write a blog post or tutorial, you will have to learn carefully about the nature of the technology and related things before writing. Therefore, I blog a lot for my own benefit, not for yours, hihi. How about you? Do you think you should master the essence of technology, or should you just understand it to get the job done? Please give your opinion in the comments section. 30 seconds of advertising: My friend Song's Cybersoft company is currently offering a course on training programming thinking and basic knowledge. This course helps you solidify the basic foundation, have the knowledge to learn more "advanced" things like framework, platform, mobile, etc. Those who are interested can see more about the course here: Rate this: Like this: Related
Khi đi làm, vào một công ty, tiếp xúc với nhiều dự án, các bạn sẽ học hỏi được rất nhiều thứ. Dù bạn có là junior gà mờ, hoặc là senior dày dặn kinh nghiệm, bạn đều sẽ học được rất nhiều điều hay ho từ các bác đàn anh, đồng nghiệp. Mình may mắn được làm việc chung mới nhiều người giỏi, nhiều kinh nghiệm hơn mình. Có người mình làm chung chỉ vài tháng, người thì hơn một năm. Dù ít dù nhiều, họ đều có những điều hay cho mình học hỏi, giúp mình nâng cao khả năng lập trình, nhận ra những điều quan trọng trong ngành IT. Có thể nói, nếu không có những người như vậy, mình sẽ không có đủ tự tin và hiểu biết như mình bây giờ. Do vậy, mình viết bài này, vừa tâm sự, vừa tri ân những người đàn anh/đồng nghiệp đã giúp mình trở thành con người như bây giờ. Bài dài nên mình tách làm 2 phần cho các bạn đọc dần nhe! Thời còn Junior – 6 tháng ngắn ngủ tại FPT Hồi mới ra trường, mình có vào FPT Software làm tầm nửa tháng. Tuy thời gian không lâu, nhưng có 2 người đàn anh để lại cho mình khá nhiều ấn tượng: Người đầu tiên là một anh senior tên Tiến/Việt gì đó , không nhớ tên. Anh là senior duy nhất trong team, không cùng team nên cũng ít nói chuyện, cũng không thân lắm. Tuy nhiên, do được cấp trên tin tưởng nên task khó hay trâu bò gì anh cũng chơi được hết. Nhờ anh, mình mới tìm hiểu và viết bài viết về SOLID Code cho developer . Anh cũng có thói quen khá vui là hôm nào cũng mặc sơ mi đi làm. Khi mình hỏi tại sao thì anh bảo là : Để hôm nào mặc sơ mi đi phỏng vấn sếp cũng không biết. Người thứ hai là anh Thành Luân . Anh cũng hơi lớn tuổi, làm trưởng nhóm của mình. Tính anh hiền lành cởi mớ, cuối tuần cả team tầm 4, 5 người lại đi nhậu chung để … nói xấu cấp trên. Kỉ niệm đáng nhớ nhất là có đợt anh PV với client bị rớt, anh ngồi chia sẻ tâm sự là do nói tiếng Anh với họ, không giải thích cho họ hiểu được. Sau đó anh ngồi tiếc nuối giá ngày xưa chịu khó học tiếng Anh kĩ hơn. Nghe anh nói, mình mới nhận ra rằng tiếng Anh quan trọng thế nào đối với lập trình viên! Có tiếng Anh, bạn sẽ dễ kiếm việc lương cao hơn , rất nhiều cơ hội và cánh cửa sẽ mở ra cho bạn. Không có tiếng Anh, bạn sẽ hối hận khi để tuột mất nhiều cơ hội ngon ăn! Aswig Solution – Một năm vui vẻ Một năm làm việc tại Aswig Solutions là một năm khá vui vẻ, hạnh phúc trong quãng đời đi làm của mình. Ngày xưa, mình cũng có kể về nó ở bài Tạm biệt Aswig . Qua Aswig, mình may mắn được làm member của anh Hưng leader đẹp trai . Nhờ được làm đệ của anh, quan sát cách anh làm việc mà mình hiểu được một người team leader đúng đắn nên là người như thế nào. Nâng tinh thần làm việc cho team : Khi mình gia nhập, team đang làm phase 2 của dự án Foundation. Do phase 1 không hiệu quả cho lắm nên team coi như phải … đập đi làm lại. Để anh em không nản lòng, anh Hưng luôn chia sẻ với team về tầm quan trọng của dự án, sản phẩm tạo ra sẽ mang lại giá trị gì, được nhiều team sử dụng v…v. Mỗi khi có feedback từ sếp và cấp trên, anh cũng đều thông bảo chia sẻ cho team biết. Tạo môi trường làm việc thoải mái, không cay cú với team member : Để nâng cao tinh thần đồng đội, cả team hay rủ nhau đi nhậu, đi quẩy, mát xa… Hồi đó mình còn trẻ trâu háu đá , ngồi nhậu với anh em hay đùa anh Hưng là “sếp Hưng soft-skill cứng lắm, còn code skill thì e không biết”. May là anh cũng không chấp “trẻ trâu”, không để bụng hay dìm hàng gì mình. Khi dự án cần có architecture mới, anh vẫn nghe mình và đồng nghiệp chia sẻ, góp ý chứ không độc đoán tự quyết định. Làm việc với product owner, với team khác : Làm một người team lead chân chính, ngoài chuyện lãnh đạo team, bạn còn phải làm việc với team khác, với manager , với product owner. Nhờ đẹp trai hiền lành thân thiện nên anh Hưng được các bác team leader khác quí mến, cả Product Owner cũng quí nên anh giành được dự án ngon cho team làm lun. Quan sát cách anh viết mail, cách anh nói chuyện với các sếp, mình mới nhận tầm quan trọng của soft skill trong ngành này. Không ngừng học hỏi để không lạc hậu: Tuy đã hơn 30, lại có vợ con nhưng anh vẫn không hề viện cớ mình già mà lười học. Lúc anh em ngồi nói chuyện, anh còn kể tự học lại Toán để tìm hiểu về Machine Learning , AI (Thứ mà mình nghe còn ớn). Mình cũng khá tự hào khi nghe anh bảo “Có mấy thằng đệ như thằng Hoàng nên phải ráng giỏi hơn nó kẻo nó khinh”. Tạm kết Đấy, kể đến đây thì bài cũng đã khá dài rồi! Ở phần sau, mình sẽ kể cho các bạn nghe về những đồng nghiệp cool ngầu mà mình có cơ hội làm việc chung tại Lancaster University và Algomerchant Singapore nhe! Còn bạn thì sao, trong quá trình làm việc, có những người đàn anh/những người đồng nghiệp nào để lại nhiều ấn tượng cho bạn không, hãy kể lại trong mục comment nhé! Rate this: Like this: Related
When you go to work, join a company, come into contact with many projects, you will learn a lot of things. Whether you are a novice junior or an experienced senior, you will learn a lot of cool things from your seniors and colleagues. I'm lucky to work with many people who are better and more experienced than me. Some people I worked with for only a few months, others for more than a year. Whether more or less, they all have good things for me to learn, help me improve my programming ability, and realize important things in the IT industry. It can be said that without such people, I would not have the confidence and understanding that I have now. Therefore, I wrote this article to confide in and express my gratitude to the seniors/colleagues who helped me become the person I am today. The article is long so I split it into 2 parts for you to read gradually! Junior time - 6 short months at FPT When I first graduated, I worked at FPT Software for about half a month. Although it wasn't long, there were two seniors who left me with quite an impression: The first was a senior named Tien/Viet or something, I don't remember his name. He is the only senior in the team, not in the same team so he rarely talks and is not very close. However, because he has the trust of his superiors, he can handle any task that is difficult or challenging. Thanks to you, I learned and wrote an article about SOLID Code for developers. He also has a funny habit of wearing a shirt to work every day. When I asked why, he said: So I don't know how to wear a shirt to an interview with my boss. The second person is Mr. Thanh Luan. He is also a bit older and is the leader of his group. He has a gentle personality, and on weekends the whole team of about 4 or 5 people go out drinking together to... badmouth their superiors. The most memorable memory is that there was a time when a reporter with a client failed. He sat down and shared his feelings that it was because he spoke English to them and didn't explain it to them so they could understand. After that, he sat and regretted that he would have taken the trouble to learn English more carefully in the past. Listening to him speak, I realized how important English is for programmers! With English, it will be easier for you to find a higher paying job, many opportunities and doors will open for you. Without English, you will regret missing out on many delicious opportunities! Aswig Solution – A happy year A year working at Aswig Solutions is a pretty fun and happy year in my working life. In the past, I also talked about it in the article Goodbye Aswig. Through Aswig, I was fortunate to be a member of the handsome leader Hung. Thanks to being his disciple and observing how he works, I understand what a proper team leader should be. Raise the team's working spirit: When I joined, the team was working on phase 2 of the Foundation project. Because phase 1 was not very effective, the team felt like they had to... do it again and again. To keep everyone from getting discouraged, Mr. Hung always shares with the team the importance of the project, what value the created product will bring, how it will be used by many teams, etc. Every time he gets feedback from his boss and superiors, he always tells the team to share it. Create a comfortable working environment, not bitter with team members: To improve team spirit, the whole team often invites each other to go drinking, go partying, get massages... At that time, I was young and hungover, drinking with my brother. I often joke with Mr. Hung that "Boss Hung's soft skills are very hard, but I don't know the coding skills". Luckily, he doesn't accept being "young" and doesn't take it personally or put down anything. When a project needs a new architecture, he still listens to himself and his colleagues sharing and giving suggestions, rather than making arbitrary decisions on his own. Work with the product owner, with other teams: To be a true team lead, in addition to leading the team, you also have to work with other teams, with the manager, with the product owner. Thanks to being handsome, gentle and friendly, Mr. Hung is loved by other team leaders, and also by the Product Owner, so he wins good projects for the team. Observing the way he wrote emails and the way he talked to bosses, I realized the importance of soft skills in this industry. Constantly learning so as not to become outdated: Even though he is over 30 and has a wife and children, he still does not make excuses that he is old and lazy to study. When we sat down to talk, he even told himself to re-study Math to learn about Machine Learning and AI (something I heard was still cool). I was also quite proud when I heard him say, "There are a few juniors like Hoang, so we have to try to be better than him so that he doesn't look down on us." Conclusion: This article is already quite long! In the following, I will tell you about the cool colleagues I have the opportunity to work with at Lancaster University and Algomerchant Singapore! How about you, during your work, are there any seniors/colleagues who left a big impression on you? Please tell us in the comments section! Rate this: Like this: Related
Hiện tại, ngành IT là một ngành có mức lương khá ổn . Tuy không phải ai cũng được mức vài nghìn đô như lều báo bơm thổi , phần lớn chúng ta đều có mức lương kha khá, đủ sống , cao hơn chút so với mặc bằng chung. Lâu lâu, mình lại nhận được những câu hỏi như: Tại sao em làm hoài mà không lên chức được, lương cứ lẹt đẹt chừng ấy Làm bao lâu thì mới được mức lương XXX Do vậy, trong kì này mình sẽ chia sẻ một số bí quyết để đạt lương “khủng” mà ít người nói cho bạn biết nhé! Còn nếu bạn thắc mắc là lương mình cỡ nào mà bày đặt chia sẻ ấy thì… kéo xuống nhìn biểu đồ cuối bài viết nhé hihi. Chuyện về hai anh developer tên Tèo và Tũn Ngày xửa ngày xưa, có 2 bạn sinh viên tên Tèo và Tũn. Tũn và Tèo học giỏi ngang nhau, cùng tốt nghiệp thủ khoa Đại Học Ép Tao Dê danh tiếng. Thế nhưng, dòng đời khắc nghiệt đưa đẩy cuộc đời họ xa nhau. Tũn – Chàng ốc sên nghiêm túc cần mẫn Ra trường, Tũn vào Ép Tao Dê Sốp làm với mức lương 7 củ. Nhờ giỏi giang, chăm chỉ, mỗi năm Tũn được tăng tận 10% lương. Sau 3 năm đi làm, lương của Tũn đã lên gần 10 củ. Trung thành với công ty, Tũn làm tiếp 2 năm nữa lên senior , được tăng lương lên 40% đến tận 15 củ. Tũn lại càng cố gắng hết mình, OT ngày đêm góp sức cho công ty. 3 năm sau, Tũn đã thành team leader, được tăng gấp đôi lương, lên 30 củ. Túm lại, sau 8 năm đi làm, Tũn đã lên manager, được mức lương 30 củ. Tí khá hài lòng với công sức của mình. Tèo – Thanh niên thức thời, chạy theo tiếng gọi của đồng tiền Tèo thì khác, Tèo cũng vào Ép Tao Dê Sốp với mức lương 7 củ. Làm được nửa năm, thấy môi trường không phát triển được, Tèo nhảy qua một công ty khác , từ junior dev lên dev, lương vào phát lên 12 củ. Làm được hơn một năm, trải qua vài dự án to nhỏ, do có năng lực nên công ty tăng lương cho Tèo lên 15 củ. Tuy nhiên, do thấy khả năng mình đã đủ trờ thành senior , Tèo lại … vọt qua một công ty nước ngoài khác, lương tầm 1000$, tức hơn 23 củ . Qua công ty mới, Tèo lại tiếp tục cày bừa, được 1 năm, sếp thấy giỏi nên kéo Tèo qua công ty bên Sing , lương Tèo vọt phát từ 23 củ đến 70 củ. Tính ra, sau 4 năm, lương Tèo đã gấp đôi lương 8 năm của Tũn . Chưa hết, sau 2 năm cày cuốc quan hệ bên Sing, Tèo nhảy qua một startup mới mở khác làm Technical Leader, mỗi tháng thu nhâp tầm 4000 ly trà sữa , tức hơn 150 củ. Các bạn thấy đấy, 2 người đều giỏi ngang nhau. Tại sao 1 người sau 8 năm lương chỉ 30 củ, 1 người thì lương đã lên 150 củ?? Ba cách đơn giản để tăng lương Thật lòng mà nói, có ba cách “đơn giản” để tăng lương: Có một sự thật khá “đắng lòng” thế này: nếu cứ ở mãi một công ty, lương bạn sẽ tăng rất chậm . Thông thường, các công ty chỉ tăng khoảng 5-10% mỗi năm đã là cao. Lâu lâu các bạn được lên chức thì các bạn sẽ may mắn được tăng 20-40%, còn nếu không thì lương cũng chỉ lẹt đẹt như lúc mới vào. Ngược lại, khi đi xin việc, các bạn có thể deal lương theo giá cả thị trường , theo số năm kinh nghiệm. Các bạn cũng có thể lấy offer từ nhiều công ty để so sánh giá cả, thương lượng để lấy mức cao nhất. Các bạn thấy đấy, hầu hết các sếp cũng như HR sẽ không chỉ chiêu này cho bạn . Công ty chỉ trả số tiền ít nhất có thể để giữ bạn lại. Đâu công ty nào muốn nhân viên nghỉ việc, đâu sếp nào muốn trả thêm tiền cho nhân viên của mình phải không nào? Quan trọng nhất, làm cho mình “có giá” hơn Tuy nhiên, điều quan nhất để được tăng lương tăng chức, chính là bạn phải làm cho bản thân mình … có giá hơn. Nói đơn giản thế này, công ty trả lương cho bạn nếu bạn có thể mang lại lợi nhuận. Do đó, để đạt được mức lương cao hơn, bạn phải mang lại nhiều lợi nhuận hơn trong công ty. Muốn làm được điều đó, bạn cần phải: Nhận nhiều trách nhiệm hơn, làm những việc khó hơn (junior thì làm task bự hơn, senior thì phụ team lead mentor cho nhân viên mới v..v.) Nâng cao khả năng của bản thân (học công nghệ mới, học thêm kĩ năng mềm, học domain knowledge ) Một số điều khác mình đã chia sẻ trong bài: Làm thế nào để trở thành lập trình viên có giá và lương cao nhé! Tạm kết – Đừng theo ngành vì lương Trong suốt bài viết, mình đã tập trung nói chuyện tiền bạc lương bổng rồi. Tuy nhiên, mình có lời khuyên là Thật đấy, nếu theo ngành IT vì ham mức lương chục triệu như báo đài ca ngợi, bạn sẽ nhanh chóng vỡ mộng khi ra trường đi làm với mức lương vài triệu, công việc suy nghĩ nhiều và mệt, lại còn phải học nhiều . Ngược lại, nếu đam mê IT, bạn sẽ thấy vui khi được code, thấy thích học công nghệ mới . Dần đà bạn sẽ trở nên giỏi hơn, có giá hơn, lương cũng sẽ vùn vụt tăng theo khả năng thôi. Hãy cứ theo đuổi đam mê, tiền lương sẽ theo đuổi bạn. Còn bạn thì sao, bạn có kinh nghiệm gì trong việc deal lương, tăng lương hay không? Nhớ chia sẻ với bà con trong mục comment nhé! Rate this: Like this: Related
Currently, the IT industry is an industry with quite good salaries. Although not everyone can earn a few thousand dollars like an inflatable newspaper tent, most of us have a decent salary, enough to live on, a bit higher than the average salary. Every once in a while, I receive questions like: Why can't I get promoted when I work all the time? My salary is still the same How long does it take to get salary XXX? Therefore, this time I will share some secrets to achieving a "huge" salary that few people tell you! And if you're wondering what my salary is to share, then... scroll down and look at the chart at the end of the article, hihi. The story of two developers named Teo and Tun Once upon a time, there were two students named Teo and Tun. Tun and Teo studied equally well, graduating as valedictorians from the prestigious Ep Tao De University. However, the harsh course of life pushed their lives apart. Tun - Serious and diligent snail After graduating from school, Tun joined Tao De Sop Forced to work with a salary of 7 thousand. Thanks to his good work and hard work, every year Tun receives a 10% salary increase. After 3 years of working, Tun's salary has increased to nearly 10 dollars. Loyal to the company, Tun worked another 2 years to become senior, receiving a salary increase of 40% to 15 years. Tun tries his best, day and night OT contributes to the company. 3 years later, Tun became team leader, his salary doubled, to 30 years. In short, after 8 years of working, Tun became a manager and received a salary of 30 thousand. Ti is quite satisfied with his efforts. Teo - Young people who are conscious of the times, follow the call of money. Teo is different. Teo also joined Press Tao De Sop with a salary of 7 bulbs. After working for half a year, seeing that the environment could not develop, Teo jumped to another company, from junior dev to dev, his salary increased to 12 times. After working for more than a year, going through several large and small projects, due to his ability, the company increased Teo's salary to 15 bucks. However, seeing that he was capable of becoming a senior, Teo... jumped to another foreign company, with a salary of about $1,000, or more than 23 million. Through the new company, Teo continued to plow and plow. After 1 year, the boss saw that he was good so he pulled Teo to the company in Singapore, Teo's salary skyrocketed from 23 tubers to 70 tubers. Calculated, after 4 years, Teo's salary is double Tun's 8-year salary. And yet, after 2 years of cultivating relationships in Singapore, Teo jumped to another newly opened startup to become a Technical Leader, earning about 4,000 cups of milk tea each month, or more than 150 tubs. You see, both of them are equally good. Why is one person's salary only 30 bulbs after 8 years, while the other person's salary has increased to 150 bulbs?? Three simple ways to increase your salary Honestly, there are three "simple" ways to increase your salary: There is a rather "bitter" truth: if you stay at the same company, your salary will increase very slowly. Normally, companies only grow about 5-10% per year which is high. Once in a while, when you get promoted, you will be lucky to get a 20-40% increase, but otherwise, your salary will just be the same as when you first joined. On the contrary, when applying for a job, you can negotiate salary according to market price and years of experience. You can also get offers from many companies to compare prices and negotiate to get the highest price. You see, most bosses as well as HR will not show you this trick. The company pays the least amount possible to keep you. Which company wants employees to quit, which boss wants to pay their employees more money, right? Most importantly, make yourself more "valuable". However, the most important thing to get a raise in salary and promotion is that you have to make yourself... more valuable. Simply put, the company pays you if you can make a profit. Therefore, to achieve a higher salary, you must bring more profits in the company. To do that, you need to: Take on more responsibilities, do more difficult tasks (juniors do bigger tasks, seniors help team lead and mentor new employees, etc.) Improve your own abilities (learn new technology, learn soft skills, learn domain knowledge) Some other things I shared in the article: How to become a programmer with high prices and salaries! Conclusion - Don't follow the industry because of the salary Throughout the article, I have focused on talking about money and salary. However, my advice is: Really, if you pursue the IT industry because you want a salary of tens of millions like the media praises, you will quickly become disillusioned when you graduate and go to work with a salary of several million, a job with a lot of thinking and I'm tired and I still have a lot to study. On the contrary, if you are passionate about IT, you will be happy to code and enjoy learning new technology. Gradually you will become better, more valuable, and your salary will increase rapidly according to your ability. Keep pursuing your passion, the salary will follow you. What about you, do you have any experience in negotiating salaries and increasing salaries? Remember to share with everyone in the comment section! Rate this: Like this: Related
Sau khi nghỉ việc ở công ty nào, mình cũng đều viết 1 bài review, về quá trình làm việc, những thứ mình đã học, những đồng nghiệp cool ngầu mình đã được làm việc chung. Vừa rồi, mình vừa nghỉ việc tại Algomerchant để theo đi theo tiếng gọi đam mê, … nhầm, tiếng gọi của đồng tiền qua startup 90Seconds . Do vậy, mình viết review bóc phốt, lộn, review tạm biệt công ty cũ nhé. Note : Thật lòng mà nói, mình có khá nhiều điều không vừa ý ở công ty cũ. Tuy nhiên, không yêu đừng nói lời cay đắng, chia tay rồi thì nên để nhau yên nên mình cũng không muốn nói xấu công ty cũ làm gì. Do vậy, bài viết này chỉ kể về quá trình làm việc của mình, những trải nghiệm mình có được, những thứ mình tự hào vì đã làm ra, cùng những điều hay ho mình đã học được thôi nhé. Nửa năm đầu – Từ prototype đến sản phẩm trong … 3 tháng Mình gia nhập Algomerchant với vị trí Senior Front-end Engineer (title giờ đã có chữ Senior rồi, oách chưa). Senior đồng nghĩa với lương cao hơn, trách nhiệm cũng cao hơn. Cũng khá may mắn, ở Algomerchant, mình có cơ hội build một hệ thống khiến mình khá tự hào. Hệ thống mình làm mang tên Auto Invest , gồm một Trading Engine (C#) và một ứng dụng desktop ( Electron + AngularJS), thực hiện mua bán stock hoàn toàn tự động để … kiến tiền cho người dùng. Mình code từ Trading Engine cho đến app và infra luôn. Ở startup nên các bạn làm ăn nhanh gọn rẹt rẹt ! Mình vào công ty vào cuối tháng 8. Đến giữa tháng 9 thằng CTO bảo: Mày làm prototype thử cái ứng dụng trading xem? Sau 2 tháng, vừa làm vừa sửa đổi requirement, vừa test, vừa lấy feedback từ người dùng, phiên bản đầu tiên cũng … tạm xong. Team sales liền lập tức làm event sản phẩm cho người dùng, thu phí tận 100$ Sing/tháng . Đợt đấy, mình còn hỏi anh CTO: Ê prototype mới làm 2 tháng mà cũng đem đi bán hả, thu tiền mắc vl nữa?? Ảnh nhún vai trả lời: Ờ, startup nó vậy đó! Chuyện vận hành, quản lý hệ thống – Build được thứ khiến mình tự hào Làm xong sản phẩm đâu đã xong, người dùng đòi thêm đủ thứ yêu cầu, mở rộng này nọ. Chưa kể, mình còn phải vận hành hệ thống để đảm bảo nó giao dịch đúng, không làm mất tiền người dùng. Thế là, bạn Product Owner và mình xắn tay vào để build thêm hệ thống log và monitoring , giúp kiểm tra xem hệ thống có thực hiện giao dịch thành công hay không, chạy mất bao lâu, giao dịch với giá bao nhiêu, lời lỗ thế nào. Chưa kể, do API của các stock broker khá đặc thù, mỗi người dùng phải có 1 con server riêng , chạy app để kết nối tới broker đó. Do có vài trăm người dùng nên công ty mình cũng có khoảng … vài trăm con server (Virtual Machine) để chạy. Mình lại build hệ thống infra quản lý việc tạo/xóa/access vào các VM này, cũng phê phải biết. Nhờ nó, mình học được khá nhiều điều từ Azure, virtual machine cho tới OS, networking . Tính ra, hệ thống mình làm ra cũng không quá bự , nhưng có vài thứ để mình tự hào: Có được 1-200 người dùng trả phí (tận 100$/tháng) , mang lại kha khá thu nhập cho công ty Quản lý lượng tiền tầm 200 * 10.000$ = 2 triệu đô Sing để giao dịch chứng khoán (con số này nghe to nhưng thực ra chỉ là muỗi, mấy cái quỹ giao dịch toàn tiền trăm triệu, chục tỷ cơ) Thời thuật toán giao dịch gặp hên, sinh lời cũng được khoảng 8-10% / năm (bên Sing ngân hàng cho lãi khoảng 1.5% / năm nên đầu tư gì >5% là bà con vô ầm ầm rồi) Chuyện tăng lương, tăng thưởng Đợt đó mình đã làm được khoảng 6 tháng, đi phỏng vấn chơi thử 2 công ty khác, cũng có offer. Chưa accept offer thì có đứa HR trời đánh nào gọi điện tới công ty để confirm xem mình có làm ở đó không (Bạn HR nào làm vậy coi chừng bị anh em dev cho vô blacklist nha). Thằng CEO và COO cuống cuồng sợ mình nghỉ, nói hỏi này nọ, cuối cùng bỗng dưng mình được tăng 10% lương mà chẳng cần làm gì cả, haizz… Đợt tầm tháng 8, mình lại may mắn được 1 cục thưởng khác (khoảng 6000$ Sing tức tầm 100 củ ). Do infra hiện tại chạy trên Windows khá là mắc (tầm 30$/tháng/mỗi khách hàng), mình nghịch ngợm thử và migrate qua Google Cloud Kubernetes , giảm cost thành công xuống chỉ còn 14$/tháng/khách. Việc này tiết kiệm được cho công ty tầm 1k5-2k$/tháng (càng nhiều khách càng giảm cost). Thế là mình được cho 1 cục 6k$ để xài dần (nghĩ lại cũng hơi ít nhỉ, sau 3, 4 tháng là công ty có lợi rồi…) Chuyện văn hóa công ty, những điều học được Công ty có khá nhiều cái chưa tốt như: lương thưởng không rõ ràng, giờ giấc cà chớn, không work-life balance, thái độ của CEO, … tuy nhiên như đã nói từ đầu mình sẽ không kể xấu công ty làm gì! Kể hết có khi phải viết riêng 1 bài , dài lắm =))) Một trong những điều mình thích ở công ty là văn hóa non-finger pointing . Khi hệ thống có lỗi, có issue gì đó, cả team nhảy vào giải quyết. Sau khi có issue, tụi mình viết post-motern lý do lỗi xảy ra, cách đề phòng. Team không bao giờ chỉ trích hay khiến trách người gây ra lỗi, cũng không đùn đẩy trách nhiệm kiểu: mày làm phần đó, mày code lỗi thì mày sửa đi. Do đó mình tha hồ mắc lỗi mà không lo bị chỉ trích. Chưa kể, cảm giác sản phẩm các bạn làm ra được lên production , có người sử dụng, mang lại lợi nhuận cho công ty là một cảm giác khá … đã. Bạn sẽ hạnh phúc khi biết những thứ mình viết ra giúp đỡ được cho người khác . Ngoài ra, cá nhân mình thấy, nhờ được làm việc dưới trướng CEO tệ, manager tệ mà mình biết được những điều không nên làm (hứa lèo, xộn lào, coi thường nhân viên) khi muốn thành một manager tốt, làm CEO tốt. Đoạn kết Cuộc vui nào cũng đến lúc tàn. Mấy anh Việt Nam làm chung dần dần ra đi qua chỗ khác lương cao hơn, ổn định hơn. Phần mình, mình cũng vừa nghỉ việc tại Algomerchant đến qua 90Seconds – Một startup khác về video platform. Muốn biết công việc, đồng nghiệp ở startup mới thế nào, các bạn cứ theo dõi Tôi Đi Code Dạo nhé! Còn bản thân bạn có kỉ niệm gì vui, buồn ở công ty hiện tại không, cứ comment chia sẻ với mọi người nha. Rate this: Like this: Related
After quitting my job at any company, I always write a review, about the working process, the things I've learned, and the cool colleagues I've worked with. Recently, I just quit my job at Algomerchant to follow the call of passion,... mistakenly, the call of money through startup 90Seconds. Therefore, I write a review that exposes, confuses, and says goodbye to my old company. Note: To be honest, I had a lot of things I didn't like at my old company. However, if you don't love, don't say bitter words. After breaking up, you should leave each other alone, so I don't want to say anything bad about my old company. Therefore, this article only talks about my working process, the experiences I have had, the things I am proud of having done, and the cool things I have learned. First half year - From prototype to product in... 3 months I joined Algomerchant as a Senior Front-end Engineer (the title now has the word Senior, wow). Senior means higher salary and higher responsibility. Luckily, at Algomerchant, I had the opportunity to build a system that makes me quite proud. The system I created is called Auto Invest, including a Trading Engine (C#) and a desktop application (Electron + AngularJS), performing completely automatic stock trading to... make money for users. I code from Trading Engine to app and infra. At a startup, you do business quickly and efficiently! I joined the company at the end of August. In mid-September, the CTO said: How about you prototype the trading application? After 2 months, while working on modifying requirements, testing, and getting feedback from users, the first version is... temporarily finished. The sales team immediately organized a product event for users, charging up to S$100/month. At that time, I also asked the CTO: Hey, the prototype was only made 2 months ago and yet you still sell it, how expensive is it to collect money?? He shrugged and replied: Oh, that's what startups are like! About operating and managing the system - Build something that makes you proud. Once the product is finished, users ask for all kinds of requests, expansions and that. Not to mention, I also have to operate the system to ensure it transacts correctly and does not lose users' money. So, the Product Owner and I joined hands to build a log and monitoring system, helping to check whether the system performed transactions successfully or not, how long it took, how much the transaction cost, profit and loss. how. Not to mention, because the API of stock brokers is quite specific, each user must have a separate server, running the app to connect to that broker. Because there are a few hundred users, our company also has about... a few hundred servers (Virtual Machine) to run. I built the infra system to manage the creation/deletion/access to these VMs. It's cool to know. Thanks to it, I learned a lot of things from Azure, virtual machines to OS, networking. In fact, the system I created is not too big, but there are a few things I'm proud of: Get 1-200 paid users (up to $100/month), bringing quite a bit of income to the company Manage an amount of money of about 200 * 10,000$ = 2 million Singapore dollars to trade stocks (this number sounds big but is actually just a mosquito, some trading funds are full of hundreds of millions, tens of billions) When trading algorithms are lucky, the profit is about 8-10% / year (in Singapore, banks give interest about 1.5% / year, so if you invest > 5%, people will be in trouble). About salary increase and bonus. At that time, I worked for about 6 months, interviewed for 2 other companies, and also had offers. If you haven't accepted the offer yet, some HR person will call the company to confirm if they will work there (If any HR person does that, be careful to be blacklisted by the devs). The CEO and COO were frantically afraid that I would quit, asking questions, in the end I suddenly got a 10% salary increase without having to do anything, sigh... Around August, I was lucky enough to get another bonus (about 6000 Singapore dollars is about 100 tubers). Because the current infra running on Windows is quite expensive (about $30/month/per customer), I playfully tried and migrated to Google Cloud Kubernetes, successfully reducing the cost to only $14/month/customer. This saves the company about 1k5-2k$/month (the more customers, the lower the cost). So I was given a lump sum of $6k to spend gradually (thinking back, it's quite a bit, after 3 or 4 months the company will be profitable...) Company culture, things learned The company has quite a few things Good things like: unclear salary, sloppy hours, no work-life balance, CEO's attitude,... but as I said from the beginning, I won't say anything bad about the company! I might have to write a separate article to cover it all, it's very long =))) One of the things I like about the company is the non-finger pointing culture. When the system has an error or an issue, the whole team jumps in to solve it. After there is an issue, we write a post-motern explaining why the error occurred and how to prevent it. The team never criticizes or blames the person who made the error, nor does it push responsibility like: you did that part, if you code an error, you fix it. Therefore, I can freely make mistakes without worrying about being criticized. Not to mention, the feeling that the product you make goes into production, has users, and brings profit to the company is quite a feeling. You will be happy knowing what you write can help others. In addition, personally, thanks to working under a bad CEO and a bad manager, I know what not to do (overpromising, making lies, looking down on employees) when I want to be a good manager and a good CEO. . Conclusion All fun comes to an end. The Vietnamese guys I worked with gradually left and went to other places with higher salaries and more stability. As for me, I just quit my job at Algomerchant to join 90Seconds - Another video platform startup. If you want to know how the work and colleagues at the new startup are like, just follow I Go Coding! Do you have any happy or sad memories at your current company? Please comment to share with everyone. Rate this: Like this: Related
Từ trước đến nay, với các bạn muốn theo ngành IT, mình đều có lời khuyên là: Hôm nọ, mình có đọc mẩu truyện tranh ngắn sau, về một cuốn sách khá nổi tiếng trong ngành – Working Effectively with Legacy Code Mình chợt nhớ ra/ngộ ra rằng kiến thức công nghệ trong ngành IT cũng có 2 loại: Loại thứ nhất càng để lâu càng cũ , lạc hậu, trở nên vô dụng Loại thứ hai để lâu tận 10 năm, 20 năm cũng chả sao, thậm chí càng ngày càng có giá Loại thứ 2 là những kiến thức gì vậy, các bạn xem sẽ biết nhé! (Bật mí nhỏ là không phải chỉ có thuật toán như mấy ông thầy trong trường hay nói đâu! Kiến thức công nghệ – càng để lâu càng cũ Trong ngành IT, có những thứ rất hay thay đổi: Các thư viện/framework: Điển hình như trong JavaScript , Angular/React cứ vài tháng lại ra phiên bản mới, Webpack/Babel vài tháng cũng cập nhật 1 bản. Các ngôn ngữ lập trình : C# qua 6, 7 năm cũng tiến hóa từ C# 1.0 tới C# 5.0 , bây giờ latest là 7.0 rồi thì phải. Java cũng thế. Operation : ngày xưa thì phần mềm chạy trên server của công ty, giờ thì giang hồ chuyển qua dùng Cloud , dùng Docker hết. Tooling : Visual Studio thì 1, 2 năm ra một bản mới chẳng thua gì Fifa. Eclipse hay VS Code vài tháng cũng ra một bản cập nhật Đấy, những kiến thức này rất mau thay đổi: Khi C# ra tới bản 7.0, các công ty có thể vẫn xài bản 5.0 hoặc 6.0, nhưng những bản 2.0 chẳng ma nào đụng nữa. Khi giang hồ đua nhau xài Angular/React thì jQuery dần dần bị ghẻ lạnh Tuy chúng dễ lỗi thời nhưng các bạn đừng vội nghĩ là nó vô dụng! Nó là những kiến thức thực tế, hữu ích , dùng trực tiếp trong công việc. Do vậy, nhiều trường dạy nghề, trung tâm tập trung dạy cái này mà quên dạy những kiến thức nền tảng . Điều này dẫn đến chuyện là đào tạo xong thì làm được, nhưng sau này muốn tìm hiểu thêm, học thêm là bó tay. Kiến thức nền tảng và kinh nghiệm – Càng lâu càng có giá Đọc tới đây, hẳn nhiều bạn sẽ lôi câu nói ưa thích của các ông thầy ra Nói thật, câu này nghe thì ngầu ngầu vui tai thế thôi, chứ nếu chỉ học thuật toán không thì cũng không làm lập trình viên giỏi được đâu! Thật ra, những thứ kiến thức học một lần, dùng cả đời là những thứ như sau: Kiến thức nền tảng/căn bản : Đây là những thứ như thuật toán, kiến thức về mạng máy tính, hệ điều hành, OOP Kiến thức dạng khái niệm : Những thứ như design pattern , Testing (Unit Test/Autmation TesT) , IoC , System Design, Software Architecture Kinh nghiệm : Clean Code , SOLID , các Best Practice , CI/CD Kĩ năng mềm : Kĩ năng làm việc nhóm , kĩ năng viết document/email/slide, kĩ năng quản lý Một điều khá hay ho khác là… ngoài việc sống dai, những kiến thức này còn có thể dễ dàng tái sử dụng: Dù bạn có nhảy từ C# qua Java hay JavaScript thì vẫn cần biết viết Clean Code, biết SOLID Hiểu về mô hình MVC thì code được S pring, Struts, ASP.NET MVC hay Express cũng chơi tuốt luốt Đã có khả năng viết Unit Test thì có dùng NUnit , JUnit , hay Jasmine /Mocha/Jest vẫn viết được unit test tốt Có dùng công nghệ gì thì cũng không thể thiếu kĩ năng làm việc nhóm, kĩ năng viết document Do vậy, những cuốn sách về các chủ đề này luôn là những cuốn sách kinh điển. Điển hình là những cuốn sách như Clean Code, Code Complete, The Mythical Man-month, Peopleware, Don’t Make Me Think có tuổi đời rất lâu nhưng vẫn còn giá trị . Tiếc thay, ở Việt Nam các thầy lại thích tập trung vào thuật toán, nhồi vào đầu sinh viên tư tưởng thuật toán giỏi là code giỏi ; mà lại quên (hoặc không biết) truyền đạt cho sinh viên những thứ kiến thức như trên. Tạm kết Vậy, làm một developer, bản thân bạn phải làm sao? À quên, quảng cáo nhẹ 30 giây nhé! Những kiến thức trong cuốn Code Dạo Kí Sự của mình cũng là những kiến thức giá trị không đổi theo thời gian, đi theo bạn trong suốt quãng đường sự nghiệp đấy. Bạn nào muốn mua thì cứ vào bit.ly/codedao-tk tranh thủ mua nha, sách sắp hết hàng rồi đấy hihi! Rate this: Like this: Related
Up to now, for those who want to pursue the IT industry, my advice is: The other day, I read the following short comic about a quite famous book in the industry - Working Effectively with Legacy Code. I suddenly remembered realized/realized that technological knowledge in the IT industry also has 2 types: The first type, the longer it is left, the older it becomes, becomes outdated, and becomes useless The second type is fine for 10 or 20 years, and is even becoming more and more valuable What kind of knowledge is the second type? You'll know if you watch it! (A little secret is that it's not just algorithms like some teachers in school say! Technology knowledge - the longer you keep it, the older it gets. In the IT industry, there are things that change very often: Libraries/frameworks: Typically in JavaScript, Angular/React releases new versions every few months, Webpack/Babel also updates every few months. Programming languages: C# has evolved over the past 6 or 7 years from C# 1.0 to C# 5.0, now the latest is 7.0. Java is the same. Operation: In the past, the software ran on the company's server, now we have switched to Cloud and Docker. Tooling: Visual Studio releases a new version every 1 or 2 years, no worse than Fifa. Eclipse or VS Code also release an update every few months See, this knowledge changes very quickly: When C# reaches version 7.0, companies can still use version 5.0 or 6.0, but version 2.0 is no longer touched. When people raced to use Angular/React, jQuery gradually became estranged Although they easily become outdated, don't rush to think that they are useless! It is practical, useful knowledge, used directly in work. Therefore, many vocational schools and centers focus on teaching this but forget to teach the basic knowledge. This leads to the situation that after training, you can do the job, but if you want to learn more later, you will be helpless. Foundational knowledge and experience - The longer it takes, the more valuable it is. Reading this, many of you will probably pull out your teachers' favorite sayings. Honestly, this sentence sounds cool and fun, but if it's just for academics. Without math, you can't be a good programmer! In fact, the knowledge you learn once and use for a lifetime is the following: Foundational/basic knowledge: These are things like algorithms, knowledge of computer networks, operating systems, OOP Conceptual knowledge: Things like design patterns, Testing (Unit Test/Autmation Test), IoC, System Design, Software Architecture Experience: Clean Code, SOLID, Best Practices, CI/CD Soft skills: Teamwork skills, document/email/slide writing skills, management skills Another cool thing is... in addition to being long-lasting, this knowledge can also be easily reused: Even if you jump from C# to Java or JavaScript, you still need to know how to write Clean Code and know SOLID If you understand the MVC model, you can code S pring, Struts, ASP.NET MVC or Express all the time. If you have the ability to write Unit Tests, you can still write good unit tests using NUnit, JUnit, or Jasmine/Mocha/Jest. No matter what technology you use, teamwork skills and document writing skills are indispensable Therefore, books on these topics are always classics. Typically, books like Clean Code, Code Complete, The Mythical Man-month, Peopleware, Don't Make Me Think are very old but still valuable. Unfortunately, in Vietnam, teachers like to focus on algorithms, filling students' heads with the idea that good algorithms mean good coding; but forget (or don't know) to convey the above knowledge to students. Conclusion So, as a developer, what should you do? Oh, I forgot, 30 seconds of light advertising! The knowledge in my book Code Nho Ky Su is also valuable knowledge that does not change over time, accompanying you throughout your career. If you want to buy it, just go to bit.ly/codedao-tk to buy it, the book is almost out of stock hihi! Rate this: Like this: Related
Ở phần trước, chúng ta đã tìm hiểu về Azure App Service và những thứ linh tinh liên quan đến nó rồi. Không để bà con phải chờ lâu nữa, trong kì này chúng ta cùng deploy ngay và luôn nha. Đảm bảo sau 5 phút , các bạn sẽ có 1 trang web của riêng mình chạy trên Azure luôn. Chuẩn bị ứng dụng để deploy Các bạn có thể tải source code mà ứng dụng chúng ta sẽ deploy ở đây. Đây là một app viết bằng .NET Core siêu nhỏ gọn. Nếu các bạn đã có Visual Studio, các bạn chỉ cần mở file codedao-app.csproj trong project lên và chạy thôi. Nếu các bạn không muốn cài Visual Studio, hoặc thích xài Mac/Linux như mình, các bạn có thể làm theo 3 bước: Tạo web app để deploy nào! Nếu dùng Visual Studio, các bạn có thể deploy thẳng từ IDE. Tuy nhiên, làm vậy bạn sẽ không hiểu được cơ chế hoạt động của nó , cũng không biết mặt mũi cái Azure Portal sẽ như thế nào. Do vậy, chúng ta sẽ cùng thử deploy bằng cách dùng Azure portal, sau đó mình sẽ chỉ các bạn cách setup dự án kiểu CI, tự deploy mỗi khi bạn commit code nha. Đầu tiên, chúng ta phải tạo web app đã chứ: 1. Vào Azure Portal. Bấm Create a Resource => Web => Web App 2. Đặt tên cho app (tên gì cũng được), chuyển OS qua Window cho dễ deploy nha 3. Bấm vào App Service Plan => Create New => Chọn khu vực là South East Asia. Các bạn có thể xem lại bài trước để biết App Service Plan là gì. Nói nôm na nó là con máy ảo sẽ chạy app của chúng ta đấy! 4. Trong mục App Service Plan, bấm Pricing Tier => Dev/Test => Chọn F1 để dùng gói free => Bấm Apply 5. Quay lại đoạn tạo app, bấm Create để tạo Web App. 6. Vào xem web app vừa tạo. Bấm vào URL bên tay phải để truy cập vào Web App nha. Thấy hình xanh xanh như phía dưới là ok rồi đấy! Deploy bằng tay (thủ công) Sau khi đã có Web App, công việc của chúng ta chỉ đơn giản là đưa source code lên thôi. 1. Để chuẩn bị source code, các bạn vào lại thư mục source code ban đầu, chạy dotnet publish để build dự án, lấy code đã build nhé 1.b Các bạn nào dùng Visual Studio có thể click chuột phải vào Project, chọn Publish và chọn Publish ra file nha 2. Các bạn zip toàn bộ file trong thư mục publish thành 1 file zip, để tên là app.zip hoặc tên gì cũng được. (Zip toàn bộ file chứ đừng zip thư mục nha) 3. Truy cập vào giao diện deploy của Azure bằng cách thêm scm vào trước azurewebsite . Giả sử web của bạn là , bạn hãy truy cập vào . Bấm vào Tool => Zip Push Deploy 4. Kéo file app.zip vào đoạn (Azure hơi chuối, ko cho chọn file…). Nếu thấy Deployment Successful là ok nha. 5. Sau khi code của bạn đã deploy thành công, truy cập lại URL cũ để xem Website của chúng ta nhé. Webstie đã được deploy, có domain có HTTPS, không cần phải cài đặt setup vòng vòng gì cả. Các bạn thấy tiện chưa. Deploy theo phong cách CI với Git Với cách làm thủ công, mỗi khi bạn cần sửa code, bạn sẽ phải publish lại, up lên Azure lại, rất tốn công phải không nào! Hiện nay, phần lớn các công ty đều đã sử dụng CI – Continous Integration , giúp deploy tự động mỗi khi chúng ta commit code. Vì Azure cũng có hỗ trợ cái này nên mình cùng các bạn làm luôn. 1. Các bạn quay lại Web App của mình -> Deployment Center -> Local Git. Bấm Continue. 2. Chọn App Service Kudu build server , bấm Continue => Finish. Chờ 1 xíu để Azure tạo git branch cho bạn push code lên. 3. Các bạn đã có git branch để deploy code. Nhớ lưu Git Clone Uri lại. Mỗi khi có commit mới trong branch này, Azure sẽ tự động deploy code mới nhất lên nha. 4. Tạo local Git repository: Nếu các bạn dùng Git để clone project từ github về thì thư mục của bạn đã là repository, có thể bỏ qua bước này, qua bước 5 . Nếu các bạn tải file zip về, giải nén, hãy chạy lần lượt 3 lệnh sau để để commit toàn bộ file vào local nhé nhé. git init git add . git commit -m “First” 5. Tạo liên hệ giữ branch local của git và branch của Azure. Các bạn gõ git remote add azure-deploy [url branch ở bước 3] 6. Gõ git push azure-deploy để push code lên branch đó. Khi nó đòi username và password thì các bạn quay lại Azure Portal, bấm vào Deployment Credential để lấy nhé. 7. Chờ một xíu, code của bạn đã được build và deploy rồi đấy. 8. Khi bạn sửa code, chỉ cần commit và chạy git push azure-deploy để build và deploy lại lên azure là được. Tiện chưa nào! Với cách này, khi làm việc nhóm, dùng chung Git, mỗi khi sửa code thì mỗi thành viên chỉ cần push lên branch remote là được. Azure sẽ tự động build và deploy bản mới nhất luôn! Rất tiện lợi, đứa nào làm gì break build là biết nhé. Tạm kết Sau phần này, các bạn đã biết cách deploy 1 ứng dụng lên Azure App Service . Đây là một trong những kĩ năng quan trọng bậc nhất khi dùng Cloud, biết nó là bạn đã giỏi hơn khối đứa rồi đấy! Ứng dụng nào cũng phải có Database! Ở phần 3, mình có nói các bạn có thể cài DB trên máy ảo, sau đó mở port 1433 (Với MS SQL Server) hoặc port 3306 (Cho MySQL server) là được. Tuy nhiên, tội tình gì phải cài tốn công vậy, khi Azure đã có dịch vụ SQL Database trên Cloud luôn. Ở kì sau, tức phần 5, chúng ta sẽ tìm hiểu thêm và làm demo về dịch vụ này nha! Bật mí nè: Dịch vụ này sẽ giúp bạn có ngay 1 MS SQL Server trong vòng 2 phút mà không cần cài đặt gì luôn! P/S: Nếu trong quá trình làm theo gặp vấn đề, hay có câu hỏi thắc mắc gì, các bạn cứ post trong mục comment nhe. Mình sẽ cố gắng giải đáp. Rate this: Like this: Related
In the previous section, we learned about Azure App Service and miscellaneous things related to it. We won't let you wait any longer, this term, let's deploy right away. Guaranteed that after 5 minutes, you will have your own website running on Azure. Prepare the application for deployment You can download the source code of the application we will deploy here. This is a super compact app written in .NET Core. If you already have Visual Studio, you just need to open the codedao-app.csproj file in the project and run it. If you don't want to install Visual Studio, or like to use Mac/Linux like me, you can follow 3 steps: Create a web app to deploy! If you use Visual Studio, you can deploy straight from the IDE. However, by doing so, you will not understand its mechanism of operation, nor will you know what the Azure Portal will look like. Therefore, we will try to deploy using Azure portal, then I will show you how to set up a CI-style project, deploying it yourself every time you commit code. First, we have to create a web app: 1. Go to Azure Portal. Click Create a Resource => Web => Web App 2. Name the app (any name), switch the OS to Window for easy deployment 3. Click App Service Plan => Create New => Select the region as South East Asia. You can review the previous article to know what App Service Plan is. Simply put, it is a virtual machine that will run our app! 4. In the App Service Plan section, click Pricing Tier => Dev/Test => Select F1 to use the free package => Click Apply 5. Return to the app creation stage, click Create to create a Web App. 6. Go to the web app you just created. Click on the URL on the right to access the Web App. If you see the green image below, it's ok! Deploy manually (manually) Once we have the Web App, our job is simply to upload the source code. 1. To prepare the source code, go back to the original source code folder, run dotnet publish to build the project, get the built code. 1.b Those of you using Visual Studio can right click on Project, select Publish and select Publish to file 2. You zip all the files in the publish folder into 1 zip file, name it app.zip or whatever name it is. (Zip the entire file, not the folder) 3. Access the Azure deployment interface by adding scm before azurewebsite . Assuming your website is , please visit . Click Tool => Zip Push Deploy 4. Drag the app.zip file into the section (Azure is a bit slow, doesn't allow file selection...). If you see Deployment Successful, it's ok. 5. After your code has been successfully deployed, visit the old URL again to view our Website. The website has been deployed, has a domain with HTTPS, no need to install any setup around. Do you find it convenient? Deploy in CI style with Git With the manual method, every time you need to edit the code, you will have to republish and upload it to Azure again, which is very labor-intensive, isn't it? Currently, most companies have used CI - Continuous Integration, which helps deploy automatically every time we commit code. Because Azure also supports this, I will do it with you guys. 1. Go back to your Web App -> Deployment Center -> Local Git. Click Continue. 2. Select App Service Kudu build server, click Continue => Finish. Wait a moment for Azure to create a git branch for you to push the code to. 3. You already have a git branch to deploy code. Remember to save the Git Clone Uri. Every time there is a new commit in this branch, Azure will automatically deploy the latest code. 4. Create a local Git repository: If you use Git to clone the project from github, your directory is already the repository, you can skip this step, go to step 5. If you download the zip file, unzip it, run the following 3 commands one after another to commit the entire file locally. git init git add . git commit -m “First” 5. Create a contact between git's local branch and Azure's branch. Type git remote add azure-deploy [branch url in step 3] 6. Type git push azure-deploy to push code to that branch. When it asks for username and password, go back to Azure Portal and click Deployment Credential to get it. 7. Wait a moment, your code has been built and deployed. 8. When you edit the code, just commit and run git push azure-deploy to build and redeploy to azure. How convenient! With this method, when working in groups and using Git, each member only needs to push to the remote branch each time they edit the code. Azure will automatically build and deploy the latest version! Very convenient, everyone will know how to break build. Conclusion After this section, you know how to deploy an application to Azure App Service. This is one of the most important skills when using Cloud, knowing it means you are already better than many people! Every application must have a Database! In part 3, I said you can install DB on a virtual machine, then open port 1433 (For MS SQL Server) or port 3306 (For MySQL server). However, why bother installing it, when Azure already has SQL Database service on the Cloud. In the next installment, part 5, we will learn more and do a demo of this service! Here's a sneak peek: This service will help you have an MS SQL Server within 2 minutes without needing to install anything! P/S: If you encounter any problems while following along, or have any questions, please post them in the comment section. I will try to answer. Rate this: Like this: Related
Ở kì trước, chúng ta đã deploy một ứng dụng đơn giản trên máy ảo rồi. Trong phần 4 này, chúng ta sẽ tìm hiểu về Azure App Service, cũng như thực hành deploy ứng dụng lên Azure App Service một cách nhanh hơn, tiện hơn, nhẹ nhành hơn nha! Nhược điểm của việc tự quản lý server Ở phần trước, mình cố tình bắt các bạn deploy một ứng dụng lên server để hiểu ứng dụng thực sự hoạt động ra sao. Tuy nhiên, các bạn có thể thấy cách này khá là dài dòng phức tạp , chúng ta phải làm “hơi bị nhiều” bước: Cài Runtime ( C#, NodeJS, Java ) của ứng dụng đó Copy code ứng dụng về máy (file zip, pull từ Git) Chạy ứng dụng từ command line hoặc bỏ vào IIS/Apache Mở port từ Azure, mở firewall trên server Trỏ tên miền tới IP của máy ảo v…v Ngoài ra, cách thủ công này còn có 1 số vấn đề: Khó tự động hóa, mỗi khi update code bản mới, ta phải copy code lên server rồi chạy Phải tự bảo đảm security trên máy ảo (Cài lung tung rất dễ dính virus) Phải cài đặt và tinh chỉnh IIS và Windows để optimize hiệu năng Khi server chết (do xóa nhầm v…v), mất dữ liệu phải cài đặt lại, deploy lại Phải update OS, update runtime của ứng dụng lên phiên bản mới khi cần (cần tính năng mới, vá lỗi bảo mật) Trước đây, đây là việc của mấy anh sysdamin khi làm việc với server truyền thống, tốn khá nhiều thời gian và công sức. Thế nhưng, developer chúng ta chỉ muốn code, bỏ code lên là chạy , không muốn làm mấy việc rườm rà phức tạp như vậy. Thế là, Azure App Server ra đời, đáp ứng nhu cầu của developer! Azure App Service là gì, nó có gì hot? Nói một cách đơn giản, Azure App Service là một Platform cho phép ta tạo và deploy ứng dụng web/di động/API một cách nhanh chóng. Nếu còn nhớ kiến thức ở bài về IaaS và Paas , các bạn sẽ thấy rõ sự khác biệt giữa Virtual Machine và App Service: Azure Virtual Machine là Infrastructure as a Service , cho bạn hạ tầng (máy ảo) để bạn tự cài đặt và tùy chỉnh Azure App Service là Platform as a Service , cho bạn platform (có sẵn runtime), bạn chỉ cần bỏ code vào là chạy. Với Azure Web Service , bạn sẽ được Azure hỗ trợ tận răng . Chỉ cần deploy code lên là được. Mấy vấn đề như runtime để chạy code, biến môi trường, mở port, kết nối với domain, SSL,… đều được Azure lo hết. Bên cạnh đó, App Service còn tích hợp khá nhiều thứ hay ho: Application Insight giúp bạn log lại performance của ứng dụng, giúp dễ optimize và cải thiện Monitoring giúp theo dõi và thông báo khi có điều bất thường trong hệ thống (CPU hoặc RAM tăng cao, lỗi 500 nhiều) Snapshot giúp ta tự động back-up code và dữ liệu Phân biệt App Service và App Service Plan Việc tạo và deploy App Service cũng khá dễ dàng, chỉ tốn khoảng 5 phút là xong. Tuy vậy, trước khi bắt đầu, mình sẽ giúp các bạn phân biệt 2 khái niệm dễ gây nhầm lẫn: App Service và App Service Plan . Khi tạo 1 App Service trong Azure, các bạn sẽ thấy cửa sổ sau: Mỗi khi tạo App Service mới, các bạn sẽ phải chọn một App Service Plan đi kèm với nó. Bạn có thể hiểu nôm na như sau: App Service là một ứng dụng web /web api App Service Plan là server để chạy ứng dụng đó . Do vậy, khi tạo App Service, ta phải chọn App Service Plan để chọn máy chủ sẽ chạy ứng dụng của mình. Ví dụ, bạn làm web bán hàng, bạn tạo 2 ứng dụng cho khách hàng và cho admin, dùng chung 1 database. Hai ứng dụng này chạy chung trên một máy chủ ở Việt Nam. Lúc này, App Service Plan chính là máy chủ ở Việt Nam, và 2 ứng dụng chính là 2 App Service, chạy trên Plan đó. Một số điểm nhỏ khác cần lưu ý: Trong 1 App Service Plan , bạn có thể deploy bao nhiêu App Service tùy thích (Chỉ có gói Free và Shared là có giới hạn) Azure tính tiền theo App Service Plan , không phải theo App Service. Nếu có vài chục ứng dụng xài chung 1 Plan, bạn chỉ bị tính tiền 1 Plan đó! Khi nhiều App Service này dùng chung một Plan, chúng sẽ dùng chung tài nguyên (CPU, RAM, Disk), do đó nếu một ứng dụng chiếm quá nhiều tài nguyên, nó sẽ làm ảnh hưởng đến các ứng dụng khác. Ngày xưa ở công ty mình có cái App Service nặng quá, phải cho nó nằm nguyên 1 Plan chơi 1 mình luôn Tạm kết Ở kì này, mình đã nói sơ lý thuyết để các bạn hiểu về việc mình sẽ làm. Công nghệ gì cũng vậy, thay vì cắm đầu làm, các bạn tìm hiểu nguyên nhân nó ra đời, vấn đề nó giải quyết trước, thì khi làm sẽ dễ tiếp thu hơn nhiều ! Lý thuyết vậy cũng tạm đủ rồi, tới kì sau tụi mình sẽ bắt tay vào deploy ứng dụng lên Azure App Service luôn nha! Kì sau mình đã viết xong rồi nên các bạn cứ hóng tuần sau sẽ có nhé! Rate this: Like this: Related
In the previous session, we deployed a simple application on a virtual machine. In this part 4, we will learn about Azure App Service, as well as practice deploying applications to Azure App Service faster, more conveniently, and more easily! Disadvantages of self-managing the server In the previous part, I intentionally forced you to deploy an application to the server to understand how the application really works. However, you can see that this method is quite lengthy and complicated, we have to do "a lot" of steps: Install the Runtime (C#, NodeJS, Java) of that application Copy application code to your device (zip file, pull from Git) Run the application from the command line or drop it into IIS/Apache Open port from Azure, open firewall on server Point the domain name to the virtual machine's IP, etc In addition, this manual method also has some problems: Difficult to automate, every time we update a new version of the code, we have to copy the code to the server and then run it You must ensure security on the virtual machine yourself (Installing haphazardly can easily get viruses) Must install and tweak IIS and Windows to optimize performance When the server dies (due to mistaken deletion, etc.), data loss must be reinstalled and redeployed Must update OS, update application runtime to new version when needed (need new features, security patches) Previously, this was the job of sysdamin guys when working with traditional servers, taking a lot of time and effort. However, we developers just want to code, put the code in and run, and don't want to do complicated things like that. So, Azure App Server was born, meeting the needs of developers! What is Azure App Service, what's hot about it? Simply put, Azure App Service is a Platform that allows us to quickly create and deploy web/mobile applications/APIs. If you remember the knowledge in the article about IaaS and Paas, you will clearly see the difference between Virtual Machine and App Service: Azure Virtual Machine is Infrastructure as a Service, giving you infrastructure (virtual machines) for you to install and customize yourself Azure App Service is Platform as a Service, giving you a platform (with a built-in runtime), you just need to put the code in and run it. With Azure Web Service, you will be fully supported by Azure. Just deploy the code and you're done. Issues such as runtime to run code, environment variables, opening ports, connecting to domains, SSL,... are all taken care of by Azure. Besides, App Service also integrates many cool things: Application Insight helps you log your application's performance, making it easy to optimize and improve Monitoring helps monitor and notify when there are abnormalities in the system (high CPU or RAM, many 500 errors) Snapshot helps us automatically back-up code and data Distinguishing between App Service and App Service Plan Creating and deploying App Service is also quite easy, it only takes about 5 minutes to complete. However, before starting, I will help you distinguish between two confusing concepts: App Service and App Service Plan. When creating an App Service in Azure, you will see the following window: Every time you create a new App Service, you will have to choose an App Service Plan to go with it. You can understand it roughly as follows: App Service is a web application /web api App Service Plan is the server to run that application. Therefore, when creating an App Service, we must select App Service Plan to choose the server that will run our application. For example, if you make a sales website, you create 2 applications for customers and for admin, sharing the same database. These two applications run together on a server in Vietnam. At this time, the App Service Plan is the server in Vietnam, and the 2 main applications are the 2 App Services, running on that Plan. Some other small points to note: In 1 App Service Plan, you can deploy as many App Services as you like (Only Free and Shared packages are limited) Azure charges by App Service Plan, not by App Service. If there are several dozen applications using the same Plan, you will only be charged for that 1 Plan! When many of these App Services share the same Plan, they will share resources (CPU, RAM, Disk), so if one application takes up too much resources, it will affect other applications. In the past, at my company, there was an App Service that was too heavy, so I had to let it stay in an entire plan and play alone Conclusion In this period, I have briefly talked about the theory so you can understand what I will do. It's the same with any technology, instead of working hard, you find out why it was born and the problem it solves first, then when you do it, it will be much easier to absorb! That's enough theory for now, next term we will start deploying the application to Azure App Service! I've already finished writing the next installment, so please wait for it next week! Rate this: Like this: Related
Nhiều bạn hỏi mình là: Anh Code Dạo ơi, anh đi làm cả ngày, thời gian đâu mà tuần nào cũng ra vlog, ra blog đều đặn vậy. Thời gian đâu mà anh học công nghệ mới, code linh tinh đồ nữa. Vì thế, hôm này Code Dạo sẽ tiết lộ một bí mật nho nhỏ cho các bạn biết. Muốn biết nó là gì, kéo xuống dưới xem sẽ rõ nhé! Cái bàn “thần thánh” của Tôi Đi Code Dạo Nói “thần thánh” vậy để dụ các bạn bấm vào đọc bài viết thôi. Thật ra, nó chỉ là một cái bàn giá vài trăm nghìn , có thể mua trên Lazada hoặc Tiki . Bàn làm bằng nhôm, khá nhẹ và bền, dễ di chuyển. Hai bên là 2 cái núm vặn để điểu chỉnh độ nghiêng cho phù hợp. Bên phải bàn có kệ để lót chuột luôn nhưng do mình không xài chuột nên gỡ ra luôn cho gọn. Ngày trước, mỗi khi làm việc, mình thường hay mang laptop ra bàn làm việc rồi ngồi ghế làm. Tuy nhiên, từ hồi có cái bàn này, mình có thể vừa nằm trên giường duỗi chân nghỉ ngơi , vừa viết blog/code. Nhờ thế, một cái bàn re rẻ, nho nhỏ nhưng giúp năng suất làm việc của mình tăng lên trông thấy: Mình có thể vừa nằm vừa xem các khóa học trên Pluralsight Vừa dựa lưng vào gối vừa viết blog (Như blog này đang được viết trên bàn này đấy) Code lặt vặt, học thêm này nọ ngay trên giường Các bạn thấy đấy! Hôm nào đi làm về mệt thì mình nghỉ ngơi. Hôm nào khỏe khỏe, thấy còn sớm thì mình bỏ cái bàn lên giường rồi làm việc lặt vặt, code linh tinh tiếp thôi. Tại sao developer nên sắm một cái bàn như vậy? Theo mình, có 2 lý do developer tụi mình nên sắm một cái bàn như thế này: 1. Đỡ lười Thật đấy, nhiều khi để laptop trên bàn làm việc, về đến nhà là mình cảm thấy … lười, không muốn ra bàn ngồi, chỉ muốn nằm trên giường, đọc sách hoặc iPad rồi quẩy. Nhờ có cái bàn này, mình có thể nằm thư thái làm việc. Do vậy cảm giác như vừa làm vừa chơi chứ không phải làm việc hay học hành căng thẳng gì. 2. Đỡ đau lưng, đau hông, đau đùi, vô sinh Trước khi có cái bàn này, mỗi khi lười lười, nằm làm việc trên giường mình hay nằm kiểu này. Nhìn thì bảnh với xì tai vậy thui chứ nằm cả tiếng là mỏi lưng chết mẹ luôn! Những lúc ít cần code, chỉ cần đọc tài liệu hoặc xem lặt vặt thì mình hay nằm ngửa kiểu này. Ban đầu thì không sau, nhưng một hồi chân và đùi sẽ khá là mỏi (do bị laptop) đè. Chưa kể là còn nghe giang hồ đồn để laptop ấm ấm gần chim sẽ dễ gây vô sinh nữa đó các bạn! (Laptop mà đã nóng thì trứng nó còn luộc được , mấy con lăng quăng nhằm nhò gì!). Đấy, từ sau khi có cái bàn mình chỉ cần ngồi thảnh thơi thế này là xong. Chán thì dựa, lười thì nằm, không đau không mỏi. Tuy nhiên, cái bàn này có một tác dụng phụ nho nhỏ. Lâu lâu bạn muốn nằm nghỉ nhưng thấy lap bên cạnh lại hứng lên code hoặc làm lặt vặt này nọ. Do vậy, nếu muốn nghỉ ngơi thì nhớ cất lap đi hoặc mang qua phòng khác nhé! Tạm kết Ban đầy mình định giới thiệu con mình đã mua, nhưng tìm lại thì không thấy. Do vậy, mình giới thiệu cho các bạn một số con bán trên Tiki, trông chất lượng cũng khá ổn, review điểm cũng rất ok: Đấy, mình quảng cáo nhẹ vậy thôi! Các bạn cứ thử mua một cái bàn như vậy về xài thử xem năng suất làm việc, thời gian học của mình có tăng hay không nhé. Nếu thấy có ích nhớ quay lại comment cho Code Dạo biết nha! Bonus: Các bạn có thể xem thêm về con bàn “thần thánh” trong vlog của mình nhé ( 4:20 )! Rate this: Like this: Related
Many people ask me: Mr. Code Dao, you work all day, how often do you have to vlog and blog every week? Where do you find time to learn new technology and code and other miscellaneous diagrams? Therefore, today Code Dao will reveal a little secret to you. If you want to know what it is, scroll down to see it clearly! The "divine" table of Toi Go Coding is said to be "divine" just to entice you to click and read the article. Actually, it's just a table costing a few hundred thousand, which can be bought on Lazada or Tiki. The table is made of aluminum, quite light and durable, easy to move. On both sides are 2 knobs to adjust the tilt accordingly. On the right side of the table there is a shelf to line the mouse, but since I don't use the mouse, I removed it for neatness. In the past, every time I worked, I used to bring my laptop to my desk and then sit in my chair. However, since I got this desk, I can lie on the bed, stretch my legs, and write blogs/code. Thanks to that, a cheap, small desk helps my work productivity increase significantly: I can lie down and watch courses on Pluralsight While leaning back on the pillow, writing a blog (Like this blog is being written on this table) Coding chores, learning this and that right in bed You see! Every day when I come home from work tired, I rest. Every day when I'm healthy, I see it's still early, so I put the table on the bed and do some chores and miscellaneous coding. Why should developers buy such a table? In my opinion, there are 2 reasons us developers should buy a desk like this: 1. Less laziness Really, sometimes when I leave my laptop on my desk, when I get home I feel... lazy and don't want to sit at the desk. , just want to lie in bed, read a book or iPad and have fun. Thanks to this table, I can lie down and work comfortably. So it feels like work and play, not stressful work or study. 2. Relieve back pain, hip pain, thigh pain, infertility Before having this table, whenever I was lazy and working in bed, I often slept like this. He looks so handsome and cool, but lying down for an hour makes his back so damn tiring! When I rarely need to code, just need to read documents or do some random reading, I often lie on my back like this. Not at first, but after a while your legs and thighs will get quite tired (due to pressure from the laptop). Not to mention, I've heard rumors that leaving a warm laptop near birds will easily cause infertility! (If the laptop is hot, it can still boil eggs, what's the point of those mosquitoes!). See, since I got the table, I just need to sit comfortably like this and that's it. If you're bored, lean on it. If you're lazy, lie down. No pain, no fatigue. However, this table has a small side effect. Every once in a while you want to lie down and rest, but seeing your laptop next to you makes you want to code or do some errands. Therefore, if you want to rest, remember to put your laptop away or take it to another room! In conclusion, I wanted to introduce the one I bought, but I couldn't find it again. Therefore, I introduce to you some products sold on Tiki, the quality seems quite good, the review scores are also very ok: That's it, I just lightly advertise like that! You should try buying such a desk and try it out to see if your work productivity and study time increase or not. If you find it useful, please come back and comment to let Code Dao know! Bonus: You can see more about the "divine" table in my vlog (4:20)! Rate this: Like this: Related
Cách đây vài hôm, giang hồ rộ lên vụ Facebook lưu trữ mật khẩu người dùng dưới dạng plain text, nhân viên cũng có thể đọc được. The Verge: Wired: Bản Tiếng Việt: Facebook lộ mật khẩu Vốn tò mò, mình tự hỏi: Tại sao một công ty lớn như Facebook lại có thể phạm phải một lỗi sơ đẳng như vậy được? Tìm hiểu sâu hơn, mình lại tìm hiểu thêm được 2 điều khá hay: Cách Facebook bảo vệ mật khẩu của người dùng Một lỗi bảo mật nghiêm trọng về mật khẩu, mà cả Facebook lẫn Twitter từng mắc phải Tò mò chưa nào, các bạn đọc bài viết sẽ biết nhé! Mật khẩu nên được lưu như thế nào? Để mình giải thích ngắn gọn lý do chúng ta k hông nên lưu mật khẩu dưới dạng plain text cho các bạn không quá rành về bảo mật: Lưu dưới dạng plain text thì database admin hoặc developer có thể thấy mật khẩu người dùng. Database là nơi chứa nhiều dữ liệu, hay bị tấn công nhất . Khi database bị tấn công, hàng triệu người dùng sẽ lộ mật khẩu Người dùng thường tái sử dụng 1 mật khẩu ở nhiều dịch vụ, lộ 1 phát sẽ lộ hết các dịch vụ còn lại Do vậy, mật khẩu phải được hash và salt trước khi lưu trữ vào database. Nếu muốn tìm hiểu rõ hơn các bạn xem clip dưới nhé! Đấy, đến một thằng gà không chuyên bảo mật như mình còn biết cái này, lẽ nào Facebook lại không biết! Do vậy, mình lên đọc thông báo chính thức của Facebook về vụ này . Sau khi đọc xong cái này và bài bên The Verge , mình rút ra được 2 điều: Facebook có quan tâm đến bảo mật của người dùng hay không Thật ra cái gì đã bị lộ? Tại sao nó lộ? Facebook có quan tâm đến bảo mật của người dùng hay không? Câu trả lời là CÓ, họ quan tâm rất kĩ là đằng khác. Không chỉ vậy, họ còn có một hệ thống để thu thập mật khẩu bị lộ từ các tổ chức khác, đối chiếu với mật khẩu trong Facebook và cảnh báo người dùng. Hệ thống này hoạt động như sau: Khi các trang khác (twitter, thegioididong, v…v) bị hack, hacker thường đăng mật khẩu lên mấy forum hoặc paste site Facebook sẽ scan các site này, lấy username và mật khẩu, hash rồi so sánh với mật khẩu trong Facebook Nếu thấy những mật khẩu này login được, Facebook sẽ báo cho người dùng rằng họ đã bị lộ mật khẩu Đấy, nếu họ đã làm kĩ đến vậy, tại sao vẫn có chuyện mật khẩu plain text bị lộ ở đây? Lẽ nào các bạn “lều báo” vu oan cho Facebook? Vậy thật ra cái gì bị lộ? Tại sao lộ? Chuyện mật khẩu được lưu dưới dạng plain text là có thật , được chính Facebook thừa nhận. Tuy vậy, họ lại không nhắc gì tới nguyên nhân … tại sao nó lộ. Vốn tò mò, mình đi qua Wired tìm hiểu thì thấy một đoạn thế này Đọc xong, phỏng đoán của mình là: Facebook đã hash mật khẩu khi lưu xuống database, tuy nhiên trong network log, crash log v…v lại chứa mật khẩu chưa được mã hóa . Điều này là hoàn toàn dễ hiểu, khi đăng nhập, người dùng phải gửi mật khẩu chưa mã hóa lên server Facebook, thì server mới hash và so với mật khẩu trong database được. Nói túm lại: Mật khẩu của bạn đang được lưu dưới dạng plain text trong mấy log file hoặc log database của Facebook, còn nó có đi kèm username/email ko thì mình không rõ. Tạm kết Tóm tắt lại, vụ Facebook có lưu mật khẩu dưới dạng text là có thật , còn mật khẩu của bạn có bị lộ hay không thì cũng khá là khó nói. Những file log này thường không được bảo mật kĩ như database, nên developer cũng có thể mò thấy được. Bài học rút ra ở đây là gì: Đừng vội tin lều báo hay giang hồ đồn, mà hãy chịu khó kiểm chứng trước. Nghe lời lều báo tới lúc đi làm lại lưu mật khẩu dạng plain text thì … vỡ mồm Đến công ty lớn như Facebook cũng có lúc bị lỗi bảo mật (cách đây không lâu là vụ access_token), lâu lâu bạn có bị lỗi cũng đừng buồn. Nói đâu xa, Twitter cũng từng bị lỗi tương tự mà! Nên cẩn thận khi sử dụng logging. Logging là một công cụ rất mạnh , giúp bạn theo dõi hệ thống, sửa lỗi, nhưng log nhầm thông tin nhạy cảm thì … hậu quả khá là bự đấy. Rate this: Like this: Related
A few days ago, rumors surfaced that Facebook stores user passwords in plain text, which employees can also read. The Verge: Wired: Vietnamese version: Facebook password revealed Being curious, I wondered: How could a large company like Facebook make such an elementary mistake? Digging deeper, I learned two more interesting things: How Facebook protects users' passwords A serious security error about passwords, which both Facebook and Twitter have made Curious yet, readers will know! How should passwords be saved? Let me briefly explain why we should not save passwords in plain text for those of you who are not too familiar with security: Saved as plain text, the database admin or developer can see the user password. The database is the place where the most data is stored and is most often attacked. When the database is attacked, millions of users' passwords will be exposed Users often reuse the same password in many services, revealing one password will reveal all remaining services Therefore, passwords must be hashed and salted before storing in the database. If you want to learn more, watch the clip below! See, even a non-security expert like me knows this, how could Facebook not know! Therefore, I went to read Facebook's official announcement about this case. After reading this and the article on The Verge, I learned 2 things: Does Facebook care about user security or not? What was actually revealed? Why is it exposed? Does Facebook care about user security? The answer is YES, they pay very close attention. Not only that, they also have a system to collect leaked passwords from other organizations, compare them with passwords in Facebook and warn users. This system works as follows: When other sites (twitter, thegioididong, etc.) are hacked, hackers often post passwords on forums or paste the site. Facebook will scan these sites, get the username and password, hash it and compare it with the password in Facebook If you find these passwords can be logged in, Facebook will notify the user that their password has been leaked See, if they did it so carefully, why are plain text passwords still leaked here? Could it be that you "reporters" slander Facebook? So what was actually revealed? Why reveal? The story of passwords being saved in plain text is true, acknowledged by Facebook itself. However, they did not mention anything about the reason... why it was exposed. Being curious, I went through Wired to find out and saw a paragraph like this. After reading it, my guess is: Facebook hashed the password when saving it to the database, but the network log, crash log, etc. contain the password. not yet encrypted. This is completely understandable, when logging in, the user must send the unencrypted password to the Facebook server, then the server will hash it and compare it with the password in the database. In short: Your password is being saved as plain text in Facebook's log files or database logs, and whether it comes with a username/email or not, I don't know. Conclusion In summary, the fact that Facebook saves passwords in text format is true, and whether your password is leaked or not is quite difficult to say. These log files are often not as secure as the database, so developers can also find them. The lesson here is what: Don't rush to believe in newspapers or rumors, but take the trouble to verify first. Hearing what the tent said when I went to work and saved the password in plain text... my mouth broke Even large companies like Facebook sometimes have security errors (not long ago it was the access_token incident), if you have an error from time to time, don't be sad. Needless to say, Twitter also had a similar error! Be careful when using logging. Logging is a very powerful tool, helping you monitor the system and fix errors, but mistakenly logging sensitive information... the consequences are quite big. Rate this: Like this: Related
Series gồm 4 phần chính: Phần 1 : Giai đoạn trước 2005 – JavaScript là cái thứ chi chi Phần 2 : Giai đoạn 2005-2010 – Thời đại của jQuery Phần 3.1 : Giai đoạn 2010-2014 – JS Framework trỗi dậy Phần 3.2: Giai đoạn 2010-2014 – NodeJS náo loạn giới front-end Phần 4.1 : Giai đoạn 2014 đến nay – NodeJS, BabelJS, Webpack, ReactJS – Tứ đại thiên vương (tạm thời) của JS Phần 4.2 : Web front-end hiện đại có gì hot Trong phần cuối cùng này, mình sẽ tổng hợp lại những điều chúng ta từng tìm hiểu qua những bài viết trước. Mình cũng sẽ so sánh và đưa ra nhận xét tổng quan lập trình web (đặc biệt là front-end) ở thời điểm hiện tại nhé! Bình cũ, rượu mới – Vấn đề cũ, tool mới Từ sau giai đoạn 2014, các tool JavaScript xuất hiện cũng khá nhiều: Jest, Parcel, Rollup JS… Những tool mới này giúp giải quyết những vấn đề cũ mà developer front-end gặp phải một cách dễ dàng hơn. Ở bài trước, chúng ta thấy NodeJS đã chen chân vào giới front-end với npm, Webpack, Gulp, Mocha . Hiện nay, một dự án front-end tạm coi là xịn, đúng chuẩn sẽ sử dụng những tooling sau: Package Management : npm hoặc yarn Module/Dependency Management : Webpack/Parcel/RollupJS Testing : Jest/Mocha Code Transformation : Babel Linter : JSLint Task Runner : npm script, thay cho Gulp (vì nó gọn) Front-end framework/library : React + Redux/VueJS/AngularJS (Note: Bài viết này chỉ đúng vào thời điểm này, khoảng cuối năm 2018. Cỡ 2,3 năm nữa có khi mấy tool này cũng đổi luôn rồi). Webpack đã thay đổi cách chúng ta viết JavaScript ra sao? Ngày xưa, ta chỉ viết JavaScript thành 1 file, sau đó chèn thẳng vào HTML. Nếu JavaScript dài hơn, ta tách thành nhiều file rồi chèn vào dần như sau. Về bản chất, khi chạy JavaScript, trình duyệt sẽ lần lượt chạy code trong các file theo thứ tự từ trên xuống dưới . Do vậy, nếu ta để file sai thứ tự, thiếu file, những file phía dưới sẽ không chạy được. Với các dự án lớn, khi nhiều file phụ thuộc lẫn nhau, việc quản lý sẽ trở nên lòng vòng phức tạp. Do vậy, người ta bắt đầu chia tách JS thành cách module nho nhỏ, dựa theo các chuẩn module. Bạn nào đọc lại phần 3.2 sẽ biết Browserfy và Webpack cho phép chúng ta viết code theo chuẩn module CommonJS . Lúc này, mỗi file .js sẽ là một module, ta ghi rõ là sử dụng code từ module nào. Nói một cách đơn giản, khi Browserfy/Webpack đọc code trong file register.js, nó sẽ biết được hàm này dùng những module nào, sau đó gom code của những module đó vào chung 1 file để trình duyệt chạy. Toàn bộ code của dự án sẽ được gom thành 1 file dist.js như sau. (Thật ra, đây là một quá trình cũng khá lòng vòng phức tạp, bạn nào muốn tìm hiểu kĩ thì cứ Google “How Webpack work” nhé!) Nói chung, ta chỉ việc viết code, chia tách module đúng. Còn việc ghép code như thế nào để trình duyệt chạy được sẽ được Browserfy/Webpack lo tuốt. JavaScript phía front-end nay đã khác xưa như thế nào? Series cũng sắp kết thúc rồi, nên chúng ta cùng tổng hợp lại một chút về quá trình phát triển của JavaScript nhé: 2005 về trước : Dynamic website với SSR 2005-2009 : JavaScript và jQuery, kết hợp AJAX để làm web “hơi động” 2009-2014 : Buổi đầu của JavaScript, với nhiều framework dạng MVVM 2014 – hiện tại : JavaScript thời hiện đại, framework dạng component 2018-2025 : Trời mới biết cái gì sẽ hot =)) Ngày xưa ơi là xưa, các cụ viết front-end theo cách sau: Tải thư viện bằng cách copy link trên cdn bỏ vào, hoặc tải về máy rồi reference đến file javascript Source Code viết sao thì trên browser hiển thị vậy Logic đơn giản như validation, hiển thị Chưa có unit test Dần dần, các cụ bắt đầu tiến bộ hơn: Tải thư viện và quản lý bằng cách dùng bower Source code sao thì browser chạy vậy. Có gom nhiều file JavaScript thành 1 file, minify để tăng tốc độ tải . Logic đơn giản tới phức tạp: DOM manipulation, AJAX call Bắt đầu có unit test , setup hơi rườm rà Các framework phát triển theo hướng MVVM, một page là 1 view, gắn với 1 controller Ngày nay, với tool cụ hiện đại, chúng ta viết front-end theo kiểu Sử dụng yarn hay npm để quản lý thư viện Source code và code trên browser khác một trời một vực (Do Babel transpile ES6->ES5 , JSX->JS. Do Webpack gom code lại) Logic lòng vòng phức tạp (DOM render, validation, routing) Unit Test khá dễ viết, dễ chạy Các framework phát triển theo hướng component , dễ tái sử dụng. Mỗi page sẽ gồm nhiều component ghép lại. Ngẫm lại, các framework bây giờ hầu như tập trung theo hướng component , cũng quay lại giống như WinForm , WebForm ngày xưa. Đúng là đi vòng vòng rồi cũng quay lại về chỗ cũ. Kết – Đôi lời chia sẻ Túm cái váy, hiện tại nổi tiếng nhất vẫn là React/Vue/Angular (bản 2 trở lên). Tuy vậy, jQuery và AngularJS (Angular 1) vẫn còn được dùng rất nhiều, đa phần là bảo trì các dự án. Bạn cũng đừng lo lắng quá về chuyện không theo kịp công nghệ, không biết được những thứ đang mới, đang hot. Sử dụng công nghệ cũ nhưng làm ra sản phẩm tốt (Như TGDD chỉ dùng HTML,CSS, jQuery ) vẫn sống thoải mái nhé! Một lời khuyên nhỏ luôn, nếu các bạn đang làm quen với JavaScript thì cứ học kĩ căn bản sau đó chọn 1 framework phổ biến mà học. Đừng cắm đầu vào học và dùng framework ngay khi chưa hiểu gì về cách chúng hoạt động. Đọc xong series này, hi vọng các bạn đã có một cái nhìn tổng quan hơn về JavaScript hiện tại và xác định được những điều mình chưa biết, những thứ mình cần học. Series Lược Sử Lập Trình Web là một series khá dài, khối lượng kiến thức technical cao nên cũng không hề dễ đọc. Cảm ơn các bạn đã cùng mình đi đến cuối series. Sau khi series này kết thúc, mình sẽ viết vài bài nhẹ nhàng chém gió để lấy lại năng lượng trước khi viết các series tiếp theo. Có thể mình sẽ quay lại viết về UI/UX, hoặc viết về Cờ Lao gì đó. Các bạn nhớ theo dõi và đón xem blog nhé. 30s quảng cáo Anh Lê Quang Song bạn mình, CEO của Cybersoft.vn vừa mở một khóa học về Lập trình front-end với JavaScript, ReactJS, Angular . Các bạn học xong phần lớn đều có review rất ok, kiếm được việc làm kha khá. Bạn nào có hứng thú có thể tìm hiểu thêm tại bit.ly/codedao-front nha. Nếu bạn đăng kí học thì nhớ dùng mã giới thiệu TDCD_FRONT để được giảm 300k và tặng áo thun nhé :D. Rate this: Like this: Related
The series includes 4 main parts: Part 1: The period before 2005 – What is JavaScript? Part 2: Period 2005-2010 – The era of jQuery Part 3.1: Period 2010-2014 – The rise of JS Framework Part 3.2: Period 2010-2014 – NodeJS disrupts the front-end world Part 4.1: 2014 to present – ​​NodeJS, BabelJS, Webpack, ReactJS – The (temporary) Four Heavenly Kings of JS Part 4.2: What's hot about modern web front-ends? In this final part, I will summarize what we have learned through previous articles. I will also compare and give an overview of web programming (especially front-end) at the present time! Old bottles, new wine - Old problems, new tools Since 2014, many JavaScript tools have appeared: Jest, Parcel, Rollup JS... These new tools help solve old problems that front-end developers face. encounter more easily. In the previous article, we saw that NodeJS has entered the front-end world with npm, Webpack, Gulp, Mocha. Currently, a front-end project that is considered genuine and standard will use the following tooling: Package Management : npm or yarn Module/Dependency Management : Webpack/Parcel/RollupJS Testing : Jest/Mocha Code Transformation : Babel Linter : JSLint Task Runner : npm script, instead of Gulp (because it's compact) Front-end framework/library : React + Redux/VueJS/AngularJS (Note: This article is only true at this time, around the end of 2018. In about 2 or 3 years, these tools may have changed). How has Webpack changed the way we write JavaScript? In the past, we just wrote JavaScript into a file, then inserted it directly into HTML. If JavaScript is longer, we split it into multiple files and then insert them gradually as follows. In essence, when running JavaScript, the browser will run the code in the files in order from top to bottom. Therefore, if we put the files in the wrong order or are missing files, the files below will not be able to run. With large projects, when many files depend on each other, management will become complicated. Therefore, people started to split JS into small modules, based on module standards. Those who re-read section 3.2 will know that Browserfy and Webpack allow us to write code according to CommonJS module standards. At this point, each .js file will be a module, we will clearly state which module to use code from. Simply put, when Browserfy/Webpack reads the code in the register.js file, it will know which modules this function uses, then collect the code of those modules into one file for the browser to run. The entire code of the project will be collected into one dist.js file as follows. (Actually, this is a quite complicated process, if you want to learn more, just Google "How Webpack work"!) In general, we just need to write code and separate modules correctly. As for how to combine the code so that the browser can run it, Browserfy/Webpack will take care of everything. How is front-end JavaScript different now? The series is about to end, so let's summarize a bit about the development process of JavaScript: 2005 and before: Dynamic website with SSR 2005-2009: JavaScript and jQuery, combined with AJAX to make the web "slightly dynamic" 2009-2014: The beginning of JavaScript, with many MVVM-like frameworks 2014 – present: Modern JavaScript, component framework 2018-2025 : God only knows what will be hot =)) In the old days, people wrote front-ends in the following way: Download the library by copying the link on the cdn and putting it in, or download it to your computer and refer to the javascript file How the source code is written will appear in the browser Simple logic like validation, display There are no unit tests yet Gradually, they began to improve: Load the library and manage it using bower The source code is what the browser runs. Can combine multiple JavaScript files into 1 file, minify to increase download speed. Simple to complex logic: DOM manipulation, AJAX call Starting with unit testing, setup is a bit cumbersome Frameworks develop in the direction of MVVM, a page is 1 view, attached to 1 controller Nowadays, with modern tooling, we write front-end in style Use yarn or npm to manage libraries Source code and code on the browser are completely different (Due to Babel transpile ES6->ES5, JSX->JS. Due to Webpack gathering the code) Complex circular logic (DOM rendering, validation, routing) Unit Test is quite easy to write and run Frameworks develop component-oriented, easy to reuse. Each page will consist of many components combined. Thinking back, today's frameworks are mostly component-oriented, returning like WinForm and WebForm in the past. It's like going around in circles and then coming back to the same place. Conclusion – A few words to share In short, the most famous is still React/Vue/Angular (version 2 and above). However, jQuery and AngularJS (Angular 1) are still used a lot, mostly for project maintenance. Don't worry too much about not keeping up with technology or not knowing what's new and hot. Using old technology but making good products (Like TGDD only uses HTML, CSS, jQuery) still live comfortably! A little advice, if you are familiar with JavaScript, just learn the basics and then choose a popular framework to learn. Don't rush into learning and using frameworks without understanding how they work. After reading this series, I hope you have had a better overview of current JavaScript and identified what you don't know and what you need to learn. The Brief History of Web Programming series is a quite long series with a high amount of technical knowledge so it is not easy to read. Thank you for accompanying me to the end of the series. After this series ends, I will write a few light-hearted articles to regain energy before writing the next series. Maybe I'll go back to writing about UI/UX, or write about Co Lao or something. Please remember to follow and read the blog. 30 seconds of advertising My friend Le Quang Song, CEO of Cybersoft.vn, just opened a course on Front-end Programming with JavaScript, ReactJS, Angular. Most of the students who finished studying had very good reviews and found decent jobs. Those who are interested can learn more at bit.ly/codedao-front. If you register for the class, remember to use the referral code TDCD_FRONT to get a 300k discount and a free t-shirt :D. Rate this: Like this: Related
Chương 1 – Anh Coder và cô bé mê trà sữa Ngày xửa ngày xưa, ở một trường Đại Học nọ, có một chàng sinh viên nghèo tên Tùng. Vốn đam mê lập trình từ thuở bé , lại thêm ham học hỏi và khám phá nên Tùng may mắn được giành được học bổng ngành CNTT của đại học Ép Tao Dê. Lên Đại Học, do bị bạn bè xấu dụ dỗ, Tùng bị sa đà vào game gọt gái gú . Sáng ra Trần Duy Hưng chơi gái, tối về Trần Đức Cảnh chơi game. Từ một thanh niên tương lai sáng lạn, Tùng chểnh mảng việc học hành, tà tà ra trường với tấm bằng loại khá . Rồi Tùng cũng tìm được việc làm tại công ty Ép Tao Dê, mức lương bèo bọt 3,4 triệu chỉ đủ ăn trà đá uống mì tôm mỗi tháng. Thế rồi, Tùng biết yêu! Nàng tên Linh, làm bên nhân sự cùng công ty Ép Tao Dê với Tùng. Tóc nàng chấm ngang vai, râu nàng dài tới nách, lộn, chân nàng dài tới nách. Mỗi lần nàng bước trong công ty, lũ coder và Tùng ngoái đầu nhìn theo . Những đường cong trên cơ thể nàng tạo thành những đường thẳng trong quần, nhầm, trong những chỗ nào không tiện nói của các chàng cốt đơ. Tình yêu đơn phương làm thay đổi con người Tùng. Biết nàng thích uống trà sữa, mỗi ngày Tùng ráng nhịn một bữa mì tôm, để dành tiền đến cuối tuần, lén mua trà sữa đặt lên bàn nàng. Nàng có vẻ thích thú và biết ơn chàng trai thầm lặng đã mua trà sữa cho mình mỗi cuối tuần. Hai ly trà sữa và … kì ngộ Rồi một ngày, Tùng cảm thấy mua trà sữa tốn tiền mà không xơ múi được gì nên quyết định làm liều! Ngày sinh nhật nàng, Tùng đập heo lấy tiền mua 2 ly Gongcha cỡ bự mang qua làm quà tỏ tình. Ngờ đâu, vừa đạp xe đến cửa nhà nàng, tim Tùng bỗng thắt lại khi thấy Linh đang mùi mẫn ôm hôn một chàng trai khác. Chàng trai kia lái chiếc Mercedes mui trần màu trắng, một tay xoa tay nàng, một tay đút ly trà sữa Koi sủi bọt phô mai thơm ngon cho nàng uống. Vừa buồn, vừa giận, Tùng quăng mạnh 2 ly trà sữa rồi ngồi ôm mặt khóc. Hai ly trà bay theo quĩ đạo parabol, rơi trúng mặt một anh cao to 6 múi đi ngang qua. Chụp vội 2 ly trà sữa, anh đi ra chỗ Tùng ngồi, tỏ vẻ hỏi han: Ơ, chú mày làm gì mà lãng phí thế. Dân ta còn nghèo, đéo hiểu tiền đâu ra mà bọn trẻ uống trà sữa 50k/ly ! Chú mày mua 2 ly mà sao lại vứt? Tùng: Anh ơi, em khổ quá! Học hành chả ra sao, sự nghiệp chả ra gì , gái gú cũng không có! Hôm nay sinh nhật crush em, định mua trà sữa rồi tỏ tình mà nó bị thằng ngon hơn thịt mất rồi. Anh giai: Khổ! Thuở còn trẻ anh cũng mấy lần bị như chú mày, riết rồi chẳng có hứng thú gì với con gái nữa ! Mà thôi, trà sữa ngon thế này, vứt đi phí lắm, hai đứa mình uống đi, coi như để anh khao chú. Hoá ra anh tên Sơn, cũng học Ép Tao Dê, cũng làm trong ngành CNTT . Hai anh em vừa uống trà sữa vừa nói đủ chuyện trên trời dưới đất. Uống xong 2 ly trà sữa, cạn cả đá, hai người còn bịn rịn, tay trong tay không muốn rời. Lúc chia tay, anh thỏ thẻ: Anh bảo đề anh khao chú, mà quên mang tiền xừ nó rồi, thôi tặng chú cuốn sách làm quà vậy. Cuốn sách giá bằng hai ly trà sữa đấy nhé! Nói xong, anh rút trong túi quần một cuốn sách màu đen nhỏ nhỏ có in 4 chữ CDKS . Đặt cuốn sách vào tay Tùng, anh trầm giọng, vừa nói vừa nhìn Tùng thân thương trìu mến: “Đời anh được như bây giờ là nhờ cuốn sách này ! Nay gặp chú xem như có duyên, anh tặng chú coi như quà gặp mặt thay hai ly trà sữa, sau này giàu có nhớ mời anh ly trà sữa nhé”. Nói xong, anh Sơn bước đi, để lại Tùng ngơ ngác, tay vẫn còn cầm cuốn Code Dạo Kí Sự. Hữu duyên thiên lý năng tương ngộ Cầm cuốn sách về nhà, Tùng bán tín bán nghi “Sách lol gì mà đắt bằng tận 2 ly trà sữa”. Thế nhưng, vừa giở sách ra, mọi nghi vấn trong Tùng tan biến sạch . Tùng nhận ra thời sinh viên mình đã học và làm việc sai lầm như thế nào ; Tùng đọc được cách làm sao để trở thành một coder lương cao, được đồng nghiệp và cấp trên nể trọng . Tùng ôm cuốn sách vào lòng, vừa đọc vừa cảm kích anh Sơn vô hạn . Đọc xong cuốn sách, Tùng lao đầu vào trau đồi tiếng Anh , luyện kĩ năng mềm và cứng. Tùng cũng tham gia stackoverflow , viết code open source, tham gia các dự án trên Github. Thế rồi, trời không phụ người có lòng, các công ty nước ngoài dần biết đến Tùng, gửi email mời phỏng vấn… Sau 1,2 năm, Tùng hiện đang làm cho công ty một công ty nhỏ nhỏ ở Sing. Trà sữa bên này khá rẻ, chỉ 3 đô , mức lương hàng tháng của Tùng nay đã mua được 2000 ly trà sữa. Thế nhưng, chẳng hiểu sao, sau phốt 2 lý trà, Tùng không còn hứng thú gì với trà sữa , cũng như không còn hứng thú gì với con gái nữa. Một chiều cuối tuần, Tùng đi siêu thị về ngang quán trà sữa Koi mới mở gần công ty. Kỉ niệm xưa chợt ùa về, chân Tùng lạc bước vào quán lúc nào không hay. Cô bé phục vụ tóc hai bím dễ thương khẽ cười chào khách: Anh uống gì ạ? Tùng thần người, lắc lắc đầu: À mình chỉ tình cờ đi ngang qua thôi! Mà thôi kệ, cho mình một ly trà sữa trân châu không đường không đá không trân châu đi! Chợt có một giọng nói quen quen lạ lạ vang lên từ phía sau: “Ấy, mấy năm nay anh tìm chú mãi còn thiếu anh hai li trà sữa, nay có tiền rồi thì trả đi chứ”. Tùng sững người, quay đầu lại, gọi “Anh Sơn”, chai dầu ăn và ly trà sữa trên tay bỗng rơi xuống đất, từng giọt vàng vàng lấp lánh. Tùng nhào ra ôm chầm lấy anh Sơn, hai mắt rưng rưng, để lại phía sau cô bé bán trà sữa mắt chữ O mồm chữ A gọi với theo: “Anh gì ơi, anh chưa trả tiền trà sữa!!”. Kết Kể từ đó về sau, Sơn và Tùng sống hạnh phúc bên nhau đến cuối đời! Họ có với nhau một đứa con xinh xắn tên Sơn Tùng, ý lộn, Tùng Sơn. Vậy còn cuốn sách đen đen trị giá 2 ly trà sữa đã làm thay đổi cuộc đời Tùng thì sao? Cuốn sách đó nay đã lưu lạc tại Việt Nam, được xuất bản với tên gọi Code Dạo Kí Sự, giá cũng đúng bằng 2 ly trà sữa. Bài học rút ra ở đây là gì? Các bạn hãy ráng tìm anh Sơn của đời mình, hoặc bỏ 2 ly trà sữa mua sách tại đây nhé , biết đâu lại được 2000 ly trà sữa một tháng như Tùng thì sao 😉 Rate this: Like this: Related
Chapter 1 - Mr. Coder and the girl who loves milk tea Once upon a time, at a university, there was a poor student named Tung. Having been passionate about programming since childhood, and eager to learn and explore, Tung was fortunate to win a scholarship to study IT at Ep Tao De University. At university, due to being seduced by bad friends, Tung fell into the game of flirting with girls. In the morning, Tran Duy Hung plays with girls, in the evening, Tran Duc Canh plays games. From a young man with a bright future, Tung neglected his studies and mistakenly graduated from school with an excellent degree. Then Tung also found a job at the Ep Tao De company, with a low salary of 3.4 million, just enough to eat iced tea and instant noodles every month. Then, Tung knew love! Her name is Linh, she works in human resources at the company Ep Tao De with Tung. Her hair reaches shoulder length, her beard reaches her armpits, and her legs reach her armpits. Every time she walked in the company, the coders and Tung turned their heads to look after her. The curves of her body form straight lines in her pants, wrongly, in places that are inconvenient for guys to say. Unrequited love changes Tung's personality. Knowing that she liked to drink milk tea, Tung tried to skip one meal of instant noodles every day, save money until the weekend, and secretly buy milk tea and put it on her table. She seemed excited and grateful to the quiet guy who bought her milk tea every weekend. Two cups of milk tea and... a surprise Then one day, Tung felt like buying milk tea was a waste of money and didn't get anything out of it, so he decided to take a risk! On her birthday, Tung beat a pig to get money to buy 2 large glasses of Gongcha to bring as a love gift. Unexpectedly, just as he cycled to her door, Tung's heart suddenly sank when he saw Linh passionately hugging and kissing another guy. The other guy drove a white convertible Mercedes, rubbed her hand with one hand, and fed her a delicious cup of frothy cheese Koi milk tea with the other. Both sad and angry, Tung threw down two glasses of milk tea and sat down, hugging his face and crying. Two cups of tea flew along a parabolic trajectory, falling on the face of a tall six-pack guy passing by. Quickly grabbing two glasses of milk tea, he went to where Tung was sitting and asked: Hey, what are you doing that's so wasteful? Our people are still poor, I don't understand where the money comes from but the children drink milk tea for 50k/cup! You bought 2 glasses but why did you throw them away? Tung: Brother, I'm so miserable! Studying is not good, career is not good, there are no girls! Today is my crush's birthday. I was going to buy milk tea and confess my love, but he was killed by a better guy. Anh gai: Suffering! When I was young, I was like you many times, and then I was no longer interested in girls! Oh well, milk tea is so delicious, it's a waste to throw it away, let's drink it, let's just drink it as a treat for you. It turns out his name is Son, he also studied Ep Tao De, and also works in the IT industry. The two brothers drank milk tea and talked about everything from heaven and earth. After drinking 2 glasses of milk tea, all the ice was gone, the two of them were still exhausted, holding hands and not wanting to let go. When we broke up, he whispered: I said I wanted to give you the book, but I forgot to bring money for it, so I'll give you the book as a gift. The book costs the same as two cups of milk tea! Having finished speaking, he pulled out of his pants pocket a small black book with the four words CDKS printed on it. Putting the book in Tung's hands, he spoke in a low voice, looking at Tung lovingly and affectionately: "My life is what it is now thanks to this book! Now meeting you is considered fate, I will give it to you as a meeting gift instead of two glasses of milk tea, in the future when you are rich, remember to invite me a glass of milk tea. Having finished speaking, Mr. Son walked away, leaving Tung bewildered, still holding the book Code Dao Ki Su. A fateful fate, a chance to meet each other. Taking the book home, Tung was half-convinced, "What a book that costs as much as 2 cups of milk tea." However, as soon as he opened the book, all of Tung's doubts disappeared. Tung realized how he had studied and worked wrongly as a student; Tung learned how to become a high-paid coder, respected by colleagues and superiors. Tung hugged the book in his arms, reading it and expressing his infinite gratitude to Mr. Son. After reading the book, Tung threw himself into improving his English and practicing his soft and hard skills. Tung also participates in stackoverflow, writes open source code, and participates in projects on Github. Then, God does not disappoint, foreign companies gradually learned about Tung and sent emails inviting them for interviews... After 1 or 2 years, Tung is currently working for a small company in Singapore. Milk tea here is quite cheap, only 3 dollars, Tung's monthly salary can now buy 2000 cups of milk tea. However, for some reason, after 2 cups of tea, Tung was no longer interested in milk tea, nor was he interested in girls anymore. One weekend afternoon, Tung went to the supermarket and came back by the newly opened Koi milk tea shop near the company. Old memories suddenly rushed back, Tung's feet wandered into the shop without realizing it. The cute waitress with two pigtails smiled and greeted the customer: What do you want to drink? Tung suddenly shook his head: Oh, I just happened to pass by! But never mind, give me a cup of pearl milk tea without sugar, without ice, without pearls! Suddenly a strangely familiar voice rang out from behind: "Hey, I've been looking for you these past few years and still owe you two glasses of milk tea. Now that you have the money, please pay it back." Tung was stunned, turned around, called "Anh Son", the cooking oil bottle and milk tea cup in his hand suddenly fell to the ground, drops of gold glittering. Tung rushed out and hugged Mr. Son, his eyes filled with tears, leaving behind the milk tea seller with O-shaped eyes and A-shaped mouth calling out: "Brother, you haven't paid for the milk tea yet!!". Conclusion From then on, Son and Tung lived happily together for the rest of their lives! They have a beautiful child together named Son Tung, Tung Son. So what about the black book worth 2 cups of milk tea that changed Tung's life? That book is now lost in Vietnam, published under the name Code Dao Ki Su, the price is exactly the same as 2 cups of milk tea. The lesson here is what? Please try to find the Son of your life, or spend 2 cups of milk tea to buy books here, who knows, maybe you can get 2000 cups of milk tea a month like Tung 😉 Rate this: Like this: Related
Để anh em chờ lâu quá cũng ngại, kì này series Cùng Học Cờ Lao đã quay trở lại rồi nha. Ở kì trước, mình đã hướng dẫn các bạn cài đặt và làm đủ trò nghịch ngợm trên máy ảo rồi. Kì này, chúng ta sẽ thử deploy một ứng dụng đơn giản trên máy ảo, tìm hiểu cách Azure quản lý port nhé. Chuẩn bị máy ảo sẵn sàng! Để chuẩn bị, các bạn đọc lại kĩ phần 2 , làm theo nha. Có thể lâu quá các bạn quên thì xem lại phần trước để tạo lại máy ảo nhé. Sau khi làm xong chúng ta sẽ có 1 con máy ảo Windows có cài sẵn Chờ Rôm để tha hồ nghịch. Cài đặt NodeJS để chạy app (Hoặc Java, C#) Để server có thể muốn chạy 1 ứng dụng, chúng ta phải cài đặt Runtime của ứng dụng đó: Muốn chạy được app Java thì phải cài Java SE Runtime Environment Chạy app C# thì phải cài .NET Framework hoặc .NET Core Chạy app NodeJS thì phải cài … NodeJS Quá trình cài đặt trên máy ảo cũng tương tự cài đặt trên máy của các bạn vậy thôi. 1. Login vào máy ảo, mở Chrome lên 2. Vào trang chủ của NodeJS, tải bản mới nhất về để cài: 3. Sau khi cài đặt xong, bạn mở command line lên, gõ node -v nếu thấy hiện version là ok nha 2. Chạy và kết nối với app NodeJS đơn giản Tiếp theo, chúng ta sẽ chạy một project NodeJS vô cùng đơn giản. 1. Bạn mở Notepad lên, vào Start Menu tìm Nodepad là ra nha 2. Dán đoạn code sau vào, lưu lại thành server.js trong ổ D cho dễ tìm 3. Mở cửa sổ command line lên, cd vào ổ D có chứa file vừa tạo và gõ node server.js, bạn đã có một ứng dụng web vô cùng cơ bản rồi. 4. Để truy cập trang web mình vừa tạo, các bạn mở chrome lên, gõ localhost:3000 vào trình duyệt nha. Có thấy Hello từ Tôi Đi Code Dạo chưa? (Thấy NodeJS tiện chưa! Không cần phải tạo project, một đống thư viện lòng vòng như C# hay Java , cũng không cần tải Apache hay LAMP stack , chỉ cần 1 file là chạy được rồi!) Để người khác truy cập website của bạn Giờ giả sử bạn muốn khoe mọi người cái app “đơn giản” bạn thử làm thì sao? Để truy cập app, bạn chỉ cần truy cập tới server đang chạy là xong chứ gì! Đúng rồi, vậy làm sao để truy cập tới server đang chạy app đó? Dễ thôi, chỉ cần làm theo các bước sau đây: 1. Bạn có thể xem trực tiếp bên Azure, hoặc truy cập từ máy ảo để xem ip của máy ảo đó. 2. Theo hình, IP của mình là 13.76.129.242. Vậy là bạn chỉ cần gõ 13.76.129.242:3000 là truy cập được thôi: Thật ra là mình cố ý chỉ vậy để troll các bạn đấy. Mặc định, Azure sẽ chặn tất cả các port của VM đó (để tránh bị tấn công). Bạn sẽ thấy ở bài trước, khi tạo VM, ta phải mở port 3389 thì mới có thể RDP vào được. Do vậy, để bà con truy cập được web application ở port 3000, bạn phải cho phép truy cập port 3000 . 3. Các bạn quay lại Azure Portal , vào lại VM của mình, bấm vào phần Networking. Tại đây các bạn sẽ thấy port 3389 đã mở. 4. Các bạn bấm vào nút “Add Inbound Port” góc trên bên phải, chú ý điền Destionation Port Ranges 3000 là được nhé. 5. Ngoài ra, mặc định Window Fireware cũng sẽ … chặn tất cả các port. Các bạn quay lại máy ảo, vào Start Menu tìm Firewall, sau đó add port 3000 vào nhé. 6. Thử truy cập vào 13.76.129.242:3000 lại xem. Bạn đã truy cập được rồi đấy. Bạn cũng có thể gửi link này cho bà con vào xem thử luôn! Hướng dẫn kì này đến đây là hết rồi! Chúc mừng các bạn đã hoàn thành một bài khá dài và khó như vậy. À quên, làm xong demo các bạn nhớ xóa sạch đống VM, Disk, IP v…v vừa tạo để không bị charge tiền vô duyên nhé :3 Tạm kết Sau kì này, bạn đã có thể tự deploy một ứng dụng trên máy ảo Azure rồi đấy. Nếu bạn có app viết bằng C# hay Java cũng làm tương tự là được. Bạn chỉ cần làm các bước: Ngoài ra, bạn cũng có dùng con máy ảo này để cài database server (MS SQL Server, MySQL), sau đó mở port phù hợp cho các ứng dụng của bạn kết nối vào là được. Tuy nhiên, việc deploy app như vậy rất … thủ công, tốn thời gian (cài đặt, setup, mở port v…v). Do vậy ở kì sau, mình sẽ giới thiệu về 2 dịch vụ khá phổ biến nhất của Azure , giúp việc deploy dễ dàng hơn nha: Azure App Service – chỉ cần bỏ code lên là chạy Azure Database – Cài đặt và chạy MS SQL Database trong … 5 phút P/S: Viết cái nì mệt lắm nên thấy hay các bạn nhớ comment hoặc like/share nhiệt tình để mình có động lực viết tiếp nha! Mãi yêu :3. Rate this: Like this: Related
I'm afraid to let you guys wait too long, this time the Let's Learn Co Lao series is back. In the previous article, I showed you how to install and do all sorts of naughty things on virtual machines. This time, we will try to deploy a simple application on a virtual machine, learn how Azure manages ports. Get your virtual machine ready! To prepare, please read part 2 carefully and follow it. Maybe it's been too long and you've forgotten, so review the previous section to recreate the virtual machine. After finishing, we will have a Windows virtual machine with Chrome pre-installed to play with. Install NodeJS to run the app (Or Java, C#) In order for the server to want to run an application, we must install the Runtime of that application: To run Java applications, you must install Java SE Runtime Environment To run a C# app, you must install .NET Framework or .NET Core To run the NodeJS app, you must install... NodeJS The installation process on a virtual machine is similar to installing on your computer. 1. Login to the virtual machine, open Chrome 2. Go to the NodeJS homepage, download the latest version to install: 3. After installation is complete, open the command line, type node -v if you see the version is ok. 2. Run and connect to a simple NodeJS app Next, we will run a very simple NodeJS project. 1. Open Notepad, go to Start Menu and search for Nodepad. 2. Paste the following code, save it as server.js in drive D for easy finding 3. Open the command line window, cd to drive D containing the newly created file and type node server.js, you already have a very basic web application. 4. To access the website I just created, open Chrome and type localhost:3000 into the browser. Have you seen Hello from Let's Go Coding? (See how convenient NodeJS is! No need to create a project, a bunch of libraries around like C# or Java, no need to download Apache or LAMP stack, just one file to run!) Let others access your website Now suppose you want to show off to everyone the "simple" app you tried to make? To access the app, you just need to access the running server and that's it! Right, so how to access the server running that app? It's easy, just follow these steps: 1. You can view directly from Azure, or access from a virtual machine to see the ip of that virtual machine. 2. According to the picture, my IP is 13.76.129.242. So you just need to type 13.76.129.242:3000 to access: Actually, I intentionally just said that to troll you guys. By default, Azure will block all ports of that VM (to avoid being attacked). You will see in the previous article, when creating a VM, we must open port 3389 to be able to RDP. Therefore, in order for people to access the web application on port 3000, you must allow access to port 3000. 3. Go back to Azure Portal, go back to your VM, click on Networking. Here you will see port 3389 is open. 4. Click on the "Add Inbound Port" button in the upper right corner, pay attention to fill in Destionation Port Ranges 3000. 5. In addition, by default Windows Fireware will also... block all ports. Go back to the virtual machine, go to Start Menu to find Firewall, then add port 3000. 6. Try accessing 13.76.129.242:3000 again. You have access now. You can also send this link to everyone to check it out! This is the end of this guide! Congratulations on completing such a long and difficult lesson. Oh, I forgot, after finishing the demo, remember to delete all the VMs, Disks, IPs, etc. you just created so you don't get charged money unnecessarily :3 Conclusion After this period, you can deploy an application yourself on a virtual machine. There's Azure. If you have an app written in C# or Java, you can do the same. You just need to do the following steps: In addition, you can also use this virtual machine to install a database server (MS SQL Server, MySQL), then open the appropriate port for your applications to connect to. However, deploying such an app is very... manual and time-consuming (installation, setup, opening ports, etc.). So next time, I will introduce two of Azure's most popular services, making deployment easier: Azure App Service – just drop the code and run Azure Database – Install and run MS SQL Database in… 5 minutes P/S: Writing this is tiring, so if you find it interesting, please remember to comment or like/share enthusiastically so I can be motivated to continue writing! Love forever :3. Rate this: Like this: Related
Để trở thành lập trình viên giỏi, chúng ta cần phải có thái độ đúng đắn với ngành , cần phải rèn luyện những thói quen tốt, phải phạm nhiều sai lầm và học hỏi từ những sai lầm đó… Tuy nhiên, trước khi làm những điều đấy, bạn cần phải biết mình có dính phải thói quen xấu nào có thể ảnh hưởng gì đến công việc, đến sự phát triển của mình không. Do vậy, trong bài này, mình sẽ chỉ ra năm thói quen mà các bạn nên bỏ nếu muốn thoát kiếp lập trình viên “dỏm” nhé! 1. Code không có tâm, vô trách nhiệm Code như thế nào mới là code “không có tâm, vô trách nhiệm”? Code cho xong, chỉ chạy là được còn chạy đúng hay sai, có đúng ý PM hay khách hàng không thì… mặc kệ Code mà không quan tâm tới người đọc hay bảo trì, viết code dài lê thê, đặt tên tùy tiện, gom thành một cục Code xong … không thèm test mà commit luôn, hoặc chỉ test một lần rồi thôi chứ không test đầy đủ các trường hợp Đây là thói quen nên bỏ nhất, vì nó vừa gây hại đến team và đồng nghiệp, vừa ảnh hưởng đến khách hàng, còn làm ảnh hưởng đến hình ảnh của chính bạn nữa. Không đồng nghiệp nào tôn trọng những đứa code qua loa có tâm, tạo lỗi cho người khác fix. Không PM, không khách hàng nào tin tưởng giao sản phảm vào tay những đứa chỉ muốn làm cho có cả! Code không có tâm cũng sẽ khiến bạn… chán làm, chán code mình viết ra. Hậu quả là con đường nghề nghiệp lẫn tương lai bạn sẽ ngày càng mù mịt, không lối thoá t. 2. Code quá thông minh, optimize code vô tội vạ Thói quen này thường gặp ở những bạn rành thuật toán, thích optomize nhưng … chưa có kinh nghiệm. Dấu hiệu thường gặp là các bạn hay thích optimize cho code … càng ngắn càng tốt, hoặc viết code “thông minh” (nhưng đọc không hiểu gì) để code chạy nhanh hơn. Khi có kinh nghiệm, bạn sẽ biết rằng cách optimize code tốt nhất là chạy code thực tế, tìm những đoạn nào chậm rồi mới optimize nó. Đọc code khó hơn viết code rất nhiều. Trừ một số trường hợp thực sự cần optimize (library, hardware) , hãy ưu tiên viết code cho dễ đọc, dễ hiểu, dễ bảo trì nhé! 3. Quá tự tin vào bản thân Dân IT thường là những người có đầu óc logic, biết cách suy nghĩ logic nên … lâu lâu hay nghĩ rằng mình thông minh hơn người khác . Nếu xung quanh các bạn toàn đứa bạn học dốt, toàn đồng nghiệp cùi bắp, các bạn sẽ dễ bị ảo tưởng sức mạnh là … mình thông minh hơn tụi nó, giỏi hơn tụi nó nhiều, dẫn tới sự quá tự tin vào bản thân. Việc tự tin thì không có gì là xấu, những nếu quá tự tin, bạn sẽ dễ mắc phải một số sai lầm: Không chịu nghe người khác góp ý, luôn cho rằng mình viết code đúng, cách suy nghĩ/giải quyết vấn đề của mình là đúng Cho rằng bọn xung quanh… gà hơn mình, không học hỏi được gì, coi thường người khác Không nhận thấy được những thiếu sót của bản thân -> không thể nào tiến bộ Cách tốt nhất để bỏ thói quen này đó là … kiếm công ty xịn, team trâu bò, vào đó bị thực tế tát sml ra thì bạn sẽ bớt tự tin ngay ấy mà. 4. Quá cuồng một ngôn ngữ/công nghệ nào đó Thói quen này hay gặp ở những bạn … biết ít công nghệ, hoặc đã theo một ngôn ngữ nào đó quá lâu! Ví dụ, bạn code PHP quá lâu, biết PHP có điểm hay điểm mạnh gì, bạn sẽ tưởng rằng PHP là xịn nhất , làm gì cũng được! (Ngon làm app di động hoặc desktop tao coi coi) Hoặc bạn chỉ biết mỗi JavaScript , thấy nó làm được đủ thứ từ back-end đến front-end đến app di động. Do vậy bạn cuồng JavaScript , làm gì cũng xài JavaScript sida mà không biết rằng có những ngôn ngữ khác hay hơn, code tiện hơn gọn hơn. Ở những vị trí cao hơn như Team Leader, Software Architecture , nhiều khi bạn sẽ phải lựa chọn công nghệ cho dự án . Nếu dính phải thói quen này, bạn sẽ khó đánh giá được điểm mạnh, điểm yếu của công nghệ, khó thiết kế được architecture phù hợp. Tuy vậy, khi bạn đã biết nhiều ngôn ngữ, làm nhiều dự án, tự khắc bạn sẽ hết cuồng ngôn ngữ/cuồng công nghệ gì đó ngay ấy mà! 5. Không chịu học hỏi, tìm hiểu cái mới Đây cũng là một trong các thói quen nguy hại nhất, ảnh hưởng đến sự nghiệp sau này của bạn! Trong ngành IT của mình, công nghệ liên tục thay đổi . Nếu không chịu học hỏi, tìm hiểu cái mới, bạn sẽ dễ trở nên lạc hậu, không theo kịp thị trường, dẫn tới khó thăng tiến, khó tìm việc: Ví dụ cách đây vài năm, C# chỉ có bản ASP.NET MVC 4 chạy trên Windows. Gần đây bản mới nhất trên Windows đã là bản 6.0, bản ASP.NET Core MVC đã ra bản 2.1, chạy trên cả Windows lẫn Linux. Hoặc giới front-end, cách đây 6, 7 năm còn chuộng Angular và Gulp ; gần đây thì React/Vue/Webpack mới là trào lưu. Ai biết 5-10 năm nữa cái gì mới hot ! Mà cũng không cần nói đâu xa, kể cả công nghệ không thay đổi đi nữa, kiến thức bạn đang có cũng chưa chắc đã hoàn toàn đúng. Nếu cứ cắm đầu code đại mà không chịu tìm hiểu thêm, bạn sẽ không bao giờ biết thế nào là design pattern , thế nào là SOLID , thế nào là Dependency Injection …. những thứ mà chỉ dân senior mới nắm được. Đấy, cách đơn giản nhất để bỏ thói quen này làm chịu khó tìm hiểu nhiều hơn, học hỏi nhiều hơn , giữ cho mình không lạc hậu! Mình đã có hướng dẫn ở bài viết Đưa kiến thức lập trình tự tìm đến bạn rồi nhé! Tạm kết Trong bài này, mình đã chia sẻ về 5 thói quen xấu mà các bạn nên bỏ, nếu không muốn mãi mãi chỉ là lập trình viên “dỏm” rồi nhé! Liệu bạn có mắc phải thói xấu nào không, bạn đã bỏ được chưa? Hoặc bạn có thấy thói xấu nào cần bỏ mà mình quên nhắc tới không? Cho mình biết ý kiến của bạn trong mục comment nhé! Xem thêm Rate this: Like this: Related
To become good programmers, we need to have the right attitude towards the industry, need to practice good habits, make many mistakes and learn from those mistakes... However, before doing these That, you need to know if you have any bad habits that could affect your work or development. Therefore, in this article, I will point out five habits that you should quit if you want to escape the life of a "fake" programmer! 1. Mindless, irresponsible code What kind of code is "heartless, irresponsible" code? Once the code is finished, just run it, whether it's right or wrong, whether it's what the PM or the customer wants... don't care Code without concern for readers or maintenance, write long code, give arbitrary names, and lump it into one block Once the code is finished... don't even bother testing it and commit it, or just test it once and don't test all the cases This is the habit you should give up the most, because it not only harms your team and colleagues, it also affects customers, and it also affects your own image. No colleague respects those who code carelessly and create errors for others to fix. No PM, no customer will trust the product in the hands of those who just want to get it done! Code without heart will also make you... bored of work, bored of the code you write. As a result, your career path and future will become increasingly obscure, with no way out. 2. Code is too smart, optimizing code without any reason This habit is common in people who are familiar with algorithms, like to optomize but... have no experience. A common sign is that you often like to optimize code... as short as possible, or write "smart" code (but don't understand anything) to make the code run faster. As you gain experience, you will know that the best way to optimize code is to run the actual code, find which parts are slow, and then optimize it. Reading code is much more difficult than writing code. Except for some cases where optimization is really needed (library, hardware), prioritize writing code that is easy to read, understand, and maintain! 3. Too confident in themselves IT people are often logical people, know how to think logically, so... sometimes they think they are smarter than others. If you are surrounded by stupid classmates and weak colleagues, you will easily have the illusion of strength that you are smarter than them, much better than them, leading to overconfidence in yourself. . Being confident is not bad, but if you are too confident, you will easily make some mistakes: Refusing to listen to other people's opinions, always thinking that I write the right code and that my way of thinking/solving problems is correct. Thinking that the people around... are smarter than you, can't learn anything, and look down on others Not realizing one's own shortcomings -> unable to progress The best way to get rid of this habit is to... find a good company, a strong team, if you get slapped by reality, your confidence will immediately decrease. 4. Being too crazy about a certain language/technology This habit is common in people who... know little about technology, or have followed a certain language for too long! For example, if you code PHP for too long and know what PHP's strengths and weaknesses are, you will think that PHP is the best and can do anything! (Let's see if you can make a mobile or desktop app) Or you only know JavaScript, seeing how it can do everything from back-end to front-end to mobile apps. So you are crazy about JavaScript and use JavaScript for everything without knowing that there are other languages ​​that are better and have more convenient and compact code. In higher positions such as Team Leader, Software Architecture, you will often have to choose technology for the project. If you get into this habit, it will be difficult for you to evaluate the strengths and weaknesses of technology, and it will be difficult to design a suitable architecture. However, when you know many languages ​​and do many projects, you will automatically stop being crazy about languages/technology! 5. Refusing to learn and learn new things This is also one of the most dangerous habits, affecting your future career! In our IT industry, technology is constantly changing. If you refuse to learn and learn new things, you will easily become outdated and unable to keep up with the market, leading to difficulty in getting promoted and finding a job: For example, a few years ago, C# only had ASP.NET MVC 4 running on Windows. Recently the latest version on Windows is version 6.0, ASP.NET Core MVC version has been released 2.1, running on both Windows and Linux. Or the front-end world, 6 or 7 years ago, still favored Angular and Gulp; Recently, React/Vue/Webpack is the trend. Who knows what will be hot in 5-10 years! But needless to say, even if technology does not change, the knowledge you currently have may not be completely correct. If you just keep coding and don't learn more, you will never know what a design pattern is, what is SOLID, what is Dependency Injection... Things that only senior people can understand. See, the simplest way to break this habit is to study harder, learn more, and keep yourself from becoming outdated! I have instructions in the article Bringing programming knowledge to you! Conclusion In this article, I shared about 5 bad habits that you should quit, if you don't want to be a "fake" programmer forever! Do you have any bad habits, have you been able to stop them? Or do you see any bad habits that you need to break that you forgot to mention? Let me know your opinion in the comment section! see more Rate this: Like this: Related
Gần đây, bỗng dưng mình nhận được cùng lúc 2 câu hỏi có nội dung na ná nhau: Anh ơi, em sắp ra trường. Kĩ năng code và kiến thức lập trình của em hơi yếu, không biết vào công ty có được đào tạo lại không ạ? Anh ơi, thằng bạn em bảo là học trong trường tà tà qua môn là được. Kiến thức trong trường nó cũng vô dụng lắm, vào công ty người ta cũng đào tạo lại từ đầu hà! Xin trả lời cho hai bạn biết luôn luôn: Công ty không phải là trường học, cũng không phải chỗ làm từ thiện đâu! Việc công ty đào tạo lại đúng là có thật, nhưng nó sẽ có những bất cập sau: Chưa chắc bạn đã được nhận vào mà đào tạo. Chưa chắc bạn đã được đào tạo đúng cách, học được kiến thức phù hợp Bạn phải chịu hàng lô những ràng buộc đi kèm Chúng ta cùng tìm hiểu trong bài viết nhé! Chắc gì bạn đã được nhận vào mà đào tạo! Các bạn đừng nghe rằng ngành lập trình hiện tại đang “khát” nhân lực mà ham. Họ khát nhân lực chất lượng cao, khát senior có kinh nghiệm, chứ không bao giờ “khát” những sinh viên vừa ra trường, kiến thức không vững . Ở những vị trí thực tập/intern/fresher, nhu cầu tuyển dụng thì ít, mà nhu cầu tìm việc thì nhiều. Do lượng sinh viên tìm việc nhiều nên bạn sẽ phải cạnh tranh với nhiều người giỏi hơn cho một vị trí. Vì tuyển sinh viên vào là xác định phải mất công dạy dỗ, đào tạo lại, các công ty sẽ ưu tiên những bạn giỏi/thông minh, có kiến thức nền tảng vững , có tinh thần cầu tiến hoặc đã có kinh nghiệm. Để được vào công ty, bạn phải trải qua vòng phỏng vấn . Nếu kĩ năng code yếu, kiến thức nền tảng Đại Học cũng không nắm rõ, bạn sẽ rớt ngay từ vòng gửi xe rồi, làm gì được nhận mà đòi đào với chả tạo! Kiến thức được đào tạo chắc gì đã tốt, đã có ích Giả sử bạn đã may mắn vào được một công ty. Bạn nghĩ rằng từ nay đời mình sẽ lên hương, bạn sẽ được đào tạo thành một lập trình viên “xịn”? Bạn lầm rồi! Công ty không phải là trường học! Họ sẽ dạy cho bạn vừa đủ để được làm việc (kéo thả, chạy command này, code module nọ), chứ không dạy sâu, dạy bạn hiểu rõ bản chất những thứ mình làm. Hậu quả là bạn sẽ làm nhiều quen tay, trở thành thợ hồ công nghệ , chỉ biết dùng công nghệ chứ không hiểu công nghệ . Nếu chỉ làm được việc, chỉ có kiến thức bề mặt, bạn sẽ rất khó học cái mới, cũng khó phỏng vấn, xin việc ở những nơi khác. Ngoài ra, những thứ bạn được đào tạo là những cái có lợi cho công ty , chưa chắc có lợi cho sự phát triển sau này của bạn. Giả sử bạn thích C#, công ty lại đào tạo VB.NET hoặc PHP để làm việc. Hoặc bạn muốn làm Business Analyst , nhưng công ty lại đào tạo vào vị trí tester vì đang thiếu người. Bạn hoàn toàn không có lựa chọn nào! Hàng lô những ràng buộc đi kèm Cũng phải nhắc thêm, công ty là nơi để kiếm tiền, không phải nơi làm từ thiện . Do đó, chẳng có lý do gì họ phải bỏ thời gian và công sức ra đào tạo cho bạn mà không thu lợi lại! Bạn nghĩ rằng sau khi được đào tạo, bạn có thể thảnh thơi phủi mông bỏ đi sao, sai lầm! Với các công ty lớn (FPT Software chẳng hạn), nếu bạn tham gia chương trình fresher, bạn sẽ bị “bóc lột” khoảng sáu tháng tới một năm để bù lại công sức họ đã đào tạo cho bạn. Hoặc nếu bạn tham gia chương trình đào tạo BrSE , bạn sẽ phải làm việc ~2-3 năm cho họ. Hồi mình còn ở FPT Software, lâu lâu lại có các khóa học, chứng chỉ học free. Tuy nhiên, nếu bạn nghỉ việc sớm, bạn sẽ phải đền lại một phần số tiền cho các chứng chỉ đó. Nói cho cùng, đây cũng không phải là điều gì xấu, cả hai bên cùng có lợi. Bạn thì được đào tạo, công ty thì có nhân viên. Điều mình muốn nhắc nhở là không bao giờ có bữa trưa miễn phí . Khi bạn được nhận một cái gì đó, bạn cũng phải trả một giá tương tự. Kết Bạn thấy đấy, việc công ty đào tạo lại là có thật, nhưng nó cũng đi kèm với những bất cập. Do vậy, đừng trông chờ vào việc người khác đào tạo cho mình. Bạn hãy ráng học cho vững những môn lập trình trong trường, sau đó tự học thêm những kĩ năng mà nhà tuyển dụng cần . Ở những vị trí kinh nghiệm nhiều, lương khủng (senior dev, team leader, software architect) , sẽ không ai không ai nắm tay chỉ việc cho bạn đâu! Do vậy, đừng giữ thái độ là người ta sẽ dạy gì cho mình ! hãy nghĩ rằng mình sẽ từ học gì từ công việc, từ công ty nhé! Rate this: Like this: Related
Recently, I suddenly received two questions with similar content: Honey, I'm about to graduate. My coding skills and programming knowledge are a bit weak. I wonder if I will be retrained after joining the company? Brother, my friend said that if you study in a bad school, you can pass the subjects. Knowledge in school is also very useless, when entering a company, people will retrain from the beginning! Let me answer this for you both: The company is not a school, nor is it a place of charity! Company retraining is true, but it will have the following shortcomings: It is not certain that you have been accepted for training. It is not certain that you have been properly trained and learned the right knowledge You must bear a lot of accompanying constraints Let's find out in the article! Surely you have been accepted for training! Don't listen that the current programming industry is "thirsty" for human resources. They are thirsty for high-quality human resources, thirsty for experienced seniors, but never "thirsty" for students who have just graduated with unstable knowledge. In internship/intern/fresher positions, recruitment demand is low, but job search demand is high. Due to the large number of students looking for jobs, you will have to compete with many better people for a position. Because recruiting students requires effort in teaching and retraining, companies will prioritize those who are good/intelligent, have solid background knowledge, have a progressive spirit or have experience. To get into the company, you must go through an interview round. If your coding skills are weak and you don't have a clear grasp of university background knowledge, you will fail right away from the parking round, so why should you be accepted if you want to train and not train? The knowledge you gain is certainly good and useful. Suppose you are lucky enough to get into a company. Do you think that from now on your life will improve and you will be trained to become a "genuine" programmer? You are wrong! A company is not a school! They will teach you just enough to get the job done (drag and drop, run this command, code that module), but not in-depth, teaching you to clearly understand the nature of what you do. As a result, you will become too familiar with technology, becoming a technology bricklayer who only knows how to use technology but does not understand technology. If you can only do the job and only have surface knowledge, it will be very difficult for you to learn new things, and difficult for you to interview and apply for jobs in other places. In addition, the things you are trained in are beneficial to the company, not necessarily beneficial to your future development. Suppose you like C#, the company trains VB.NET or PHP to work. Or you want to be a Business Analyst, but the company trains you for a tester position because there is a shortage of people. You have absolutely no choice! Lots of accompanying constraints It must also be mentioned that the company is a place to make money, not a place to do charity. Therefore, there is no reason for them to spend time and effort training you without profit! You think that after being trained, you can relax and walk away, wrong! With large companies (FPT Software for example), if you join the fresher program, you will be "exploited" for about six months to a year to compensate for the effort they have trained you. Or if you join the BrSE training program, you will have to work ~2-3 years for them. When I was at FPT Software, from time to time there were free courses and certificates. However, if you leave your job early, you will have to pay back part of the money for those certificates. In the end, this is not a bad thing, both sides benefit. You are trained, the company has employees. What I want to remind you is that there is never a free lunch. When you receive something, you also have to pay the same price. You see, company retraining is real, but it also comes with disadvantages. Therefore, do not rely on others to train you. Try to master the programming subjects in school, then learn the skills that employers need. In positions with a lot of experience and huge salaries (senior dev, team leader, software architect), no one will hold your hand and show you what to do! Therefore, don't keep the attitude that people will teach you nothing! Think about what you will learn from work, from the company! Rate this: Like this: Related
Laptop lập trình quan trọng cỡ nào với lập trình viên? Cách đây không lâu, trong một cuộc phỏng vấn, anh Mark Zúc Zúc gì đó, CEO Facebook đã từng nói rằng: Bill Gates, ngày vừa sáng lập Microsoft, cũng có một câu tương tự: Đương nhiên là 2 bác ở trên không nói ra câu này đâu, do Code Dạo chế ra cả thôi. Nói có vẻ đùa nhưng sự thật đúng là như vậy! Đối với một developer, laptop vô cùng quan trọng. nó là người bạn, người anh em đồng hành. Nó thứ bạn sử dụng hơn 8 tiếng mỗi ngày, vừa để học và làm việc, vừa để xem phim heo và vui chơi giải trí. Do vậy, trong bài viết này, mình sẽ chia sẻ một số tiêu chí để chọn laptop lập trình , cùng một số mẫu laptop phù hợp cho các bạn tham khảo nhé. Laptop nào mà chả lập trình được? Sao phải chọn? Đương nhiên là hầu như laptop nào cũng dùng để lập trình được, nhưng laptop nhanh sẽ làm tăng năng suất làm việc của bạn hơn. Đừng tiếc tiền mà dùng máy dỏm, vì một chiếc laptop tốt sẽ tiết kiệm của bạn rất nhiều thời gian và tiền bạc về sau. Giả sử mỗi ngày dùng laptop 8-10 tiếng, máy nhanh hơn 10% sẽ giúp bạn tiết kiệm 1 tiếng mỗi ngày, 4 năm tiết kiệm được 1460 tiếng… tức 60 ngày (xem thêm về kĩ năng tính nhẩm “thần thánh” cho lập trình viên nhé). Chọn một chiếc laptop tốt ngay từ đầu cũng sẽ giúp bạn t iết kiệm được nhiều chi phí để nâng cấp, sữa chữa về sau. Chưa kể, nếu bạn muốn theo nghiệp lập trình game, lập trình di động thì phải có laptop mạnh hoặc chuyên biệt thì mới đáp ứng được nhu cầu. Tất nhiên, khi đi làm thì thường công ty sẽ cung cấp cho bạn một cỗ máy mạnh mẽ, đủ để code và làm việc. Tuy nhiên, những lúc tự học, tự test công nghệ mới , làm dự án cá nhân , bạn đều vẫn phải nghịch ngơm trên chiếc laptop nho nhỏ của mình thôi ;). Những yếu tố cần lưu ý khi lựa chọn laptop Tất nhiên, laptop cũng có 5,7 loại, mắc có rẻ có, rất có chọn lựa. Do vậy, mình liệt kê một số tiêu chí các bạn cần lưu ý khi lựa chọn laptop nhé! Cấu hình CPU : Càng nhanh càng tốt, ít nhất lên mua chip i5 hoặc i7, tốc độ xử lý từ 3Ghz lên là ok RAM : Càng nhiều càng tốt, ít nhất phải là 8GB vì có một số IDE ăn RAM rất khủng. Nếu có điều kiện thì mua luôn 16GB sẽ dễ thở hơn, chạy máy ảo cũng được luôn. Ổ cứng : Nếu có điều kiện, nên chọn loại có ổ SSD hoặc lắp thêm ổ SSD. Chi phí bỏ ra không nhiều nhưng lại tăng tốc độ của máy lên nhiều lần. Ổ cứng nên kiếm khoảng 500GB-1TB vì sẽ cần lưu trữ nhiều… tài liệu học tập, cài nhiều phần mềm. Card đồ hoạ : Thật ra cái này không cần lắm, dùng card onboard vẫn code bay tóc rồi. Tuy nhiên, nếu làm lập trình game, làm đồ hoạ hoặc cần encode video thì nên sắm loại có card rời. Nếu muốn chơi game thì kiếm con này card ổn ổn một tí nhé. Tuy nhiên, nhiều bạn khi mua máy cứ chăm chăm vào cấu hình mà quên các yếu tố khác rất quan trọng. Ngoài cấu hình cần để ý cái chi? Màn hình : To hay nhỏ? Màn hình có đủ sáng, hiển thị ok không không? Trọng lượng : Máy nặng hay nhẹ, có dễ mang đi hay không? Nếu hay di chuyển thì nên mua loại nhẹ, màn hình nhỏ. Nếu ít di chuyển thì nên mua loại to và nặng hơn, code cho sướng. Pin và tản nhiệt : Pin trâu hay pin yếu, tản nhiệt như thế nào, xài lâu có bị nóng không? Bàn phím : Bàn phím để code gõ có thoải mái không? Đây là thứ rất quan trọng vì bạn phải gõ code rất nhiều. Ngoài ra, chúng ta thường hay code đêm nên hãy ưu tiên loại có đèn bàn phím. Độ bền : Máy có bền hay không, bảo hành bao lâu? Laptop sẽ theo bạn ít nhất 4 năm đại học nên hãy hỏi bạn bè xem hãng đó máy xài bên hay mau hỏng, chế độ bảo hành thế nào? Giá : Giá cả ra sao? Có phù hợp túi tiền không? Một số mẫu laptop phù hợp Dưới đây, mình có khuyến khích một số loại laptop dựa theo ý kiến cá nhân, nếu có loại nào ổn hơn anh em cứ giới thiệu nhé: Ngon bổ rẻ HP 15-AY013NR 15.6-inch: Giá không cao, CPU i5-6200U, RAM 8GB, SSD 128GB (nên gắn thêm), card onboard Intel. Quá đủ để code. Dell XPS 13 Lenovo Thinkpad Cho các bạn có nhiều tiền Dòng Macbook Pro : Máy đẹp, chụp tự sướng trông rất bảnh, nhẹ nên tiện dụng dễ mang theo, pin trâu 7-8 tiếng. Máy chạy bền và ổn định, tắt mở rất nhanh, hỗ trợ command line và các công cụ lập trình rất tốt. Nhược điểm là giá hơi cao, đôi khi cần cài thêm Windows để code một số thứ. Ngoài ra Mac không thích hợp chơi game nên game không nhiều, khó chạy các game khủng. Dòng Alienware : Cấu hình ngon, chơi game và code đã, máy ngầu hầm hố. Tuy nhiên giá hơi cao và do “hầm hố” nên máy và cục sạc hơi nặng, vác theo rất mệt Lenovo Yoga 710 15.6-inch Asus Zenbook UX331UN-EG129TS/i5-8250U HP Envy 13-ah0026TU 4ME93PA HP Probook 440 G5 3CH00PA Asus F560UD-BQ327T Dell Vostro 3578 V3578C Kết Xét cho cùng, laptop chỉ là công cụ để học lập trình . Tuy nhiên, việc sử dụng công cụ thế nào còn tuỳ thuộc vào bản thân mỗi người! Bạn có laptop xịn 40-50 triệu mà chỉ dùng để suốt ngày chơi game, lướt Facebook thì cũng chỉ tổ phí tiền, còn không bằng thằng bạn chỉ có laptop 6-7 triệu nhưng dùng để lướt blog Tôi đi code dạo , đọc Medium , học code online , làm dự án cá nhân để học. Hi vọng bài viết giúp các bạn lựa chọn được người bạn ưng ý trên bước đường lập trình nhé. Có thắc mắc hay góp ý gì mọi người cứ viết trong mục comment nha Rate this: Like this: Related
How important is a programming laptop to programmers? Not long ago, in an interview, Mark Zuc Zuc, CEO of Facebook, once said: Bill Gates, the day he founded Microsoft, also had a similar sentence: Of course the two guys above didn't say that. This sentence doesn't exist, it's just made up by Code Deo. It sounds like a joke but it's true! For a developer, a laptop is extremely important. it is a friend, a companion. It's something you use more than 8 hours a day, both to study and work, and to watch porn and have fun. Therefore, in this article, I will share some criteria for choosing a programming laptop, along with some suitable laptop models for your reference. What laptop can't be programmed? Why choose? Of course, almost any laptop can be used for programming, but a fast laptop will increase your productivity. Don't waste your money by using a fake laptop, because a good laptop will save you a lot of time and money later. Assuming you use a laptop 8-10 hours a day, a 10% faster computer will save you 1 hour a day, 4 years saving 1460 hours... that is 60 days (see more about "divine" mental math skills for programmer). Choosing a good laptop from the beginning will also help you save a lot of costs for upgrades and repairs later. Not to mention, if you want to pursue a career in game programming or mobile programming, you must have a powerful or specialized laptop to meet your needs. Of course, when you go to work, the company will usually provide you with a powerful machine, enough to code and work. However, when self-studying, testing new technology, doing personal projects, you still have to play around on your small laptop ;). Factors to keep in mind when choosing a laptop Of course, there are 5 or 7 types of laptops, some are expensive, some are cheap, there are many options. Therefore, I list some criteria you need to keep in mind when choosing a laptop! Configuration CPU: The faster the better, at least buy an i5 or i7 chip, processing speed from 3Ghz up is ok RAM: The more the better, at least 8GB because some IDEs eat up a lot of RAM. If you can afford it, buying 16GB will make it easier to breathe, and you can run a virtual machine too. Hard drive: If possible, choose one with an SSD or install an additional SSD. The cost is not much but it increases the speed of the machine many times. The hard drive should be about 500GB-1TB because it will need to store a lot of... study materials and install a lot of software. Graphics card: Actually, this is not really needed, using an onboard card will still cause your hair to lose code. However, if you do game programming, graphics or need to encode video, you should buy one with a separate card. If you want to play games, get this card and it's okay. However, when buying a device, many people focus on the configuration but forget other very important factors. Besides configuration, what should you pay attention to? Screen: Big or small? Is the screen bright enough and displays ok? Weight: Is the machine heavy or light, is it easy to carry? If you travel often, you should buy a lightweight model with a small screen. If you don't move much, you should buy a bigger and heavier model, code for comfort. Battery and heat dissipation: Is the battery strong or the battery weak, how does it dissipate heat, will it get hot after using it for a long time? Keyboard: Is the keyboard comfortable to type code on? This is very important because you have to type a lot of code. In addition, we often code at night, so we should prioritize the type with a keyboard light. Durability: Is the machine durable or not, how long is the warranty? Your laptop will stay with you for at least 4 years of college, so ask your friends if that brand of laptop breaks down quickly and what is the warranty like? Price: What is the price? Is it affordable? Some suitable laptop models Below, I recommend some laptop types based on personal opinion. If there is a better type, please recommend it: Delicious, nutritious, and cheap HP 15-AY013NR 15.6-inch: Not high price, i5-6200U CPU, 8GB RAM, 128GB SSD (should be installed), Intel onboard card. More than enough to code. Dell XPS 13 Lenovo ThinkPad For those of you who have a lot of money Macbook Pro series: Beautiful device, looks cool when taking selfies, light so convenient and easy to carry, long battery life of 7-8 hours. The machine runs durable and stable, turns on and off very quickly, supports command line and programming tools very well. The downside is that the price is a bit high, sometimes you need to install Windows to code some things. In addition, Mac is not suitable for playing games, so there are not many games, making it difficult to run great games. Alienware series: Good configuration, great for playing games and coding, cool machine. However, the price is a bit high and because it is "holey", the device and charger are a bit heavy, making it very tiring to carry Lenovo Yoga 710 15.6-inch Asus Zenbook UX331UN-EG129TS/i5-8250U HP Envy 13-ah0026TU 4ME93PA HP Probook 440 G5 3CH00PA Asus F560UD-BQ327T Dell Vostro 3578 V3578C Conclusion After all, a laptop is just a tool to learn programming. However, how to use the tool depends on each person! If you have a good laptop worth 40-50 million but only use it to play games and surf Facebook all day long, it's just a waste of money. It's not as good as your friend who only has a laptop worth 6-7 million but uses it to surf blogs. I go for a walk coding, read Medium. , learn to code online, do personal projects to learn. Hope this article helps you choose a suitable friend on your programming journey. If you have any questions or suggestions, please write in the comment section Rate this: Like this: Related
Gần đây, vài bạn sinh viên có hỏi mình một câu khá vui là “Em học IT. Nói gì để thể hiện trình độ mình pờ rồ cho bọn bạn nó nể đây anh?”. Tiếc là, trình độ chỉ có thể thể hiện qua quá trình code, quá trình làm việc chứ không thể chỉ thông qua vài câu chém gió “cao siêu” được. Tuy vậy, có vài câu nói mà chỉ cần bạn nói ra là người ta sẽ biết ngay là bạn “gà bỏ mẹ”, hoặc “méo biết gì nhiều” về ngành. Do vậy, trong bài này, Code Dạo sẽ giới thiệu một số câu nói mà các bạn “lập trình viên gà” hay nói. Các bạn xem để biết vì sao, để biết đường mà phòng tránh không phát ngôn những câu như vậy nhé! Học “xong” một ngôn ngữ lập trình Đây là câu nói mình hay nghe từ các bạn sinh viên năm nhất, năm 2, sau khi các bạn đã… học xong C#, học xong Java, học xong hết rồi không biết học gì tiếp theo. Khi sắp ra trường, mới đi làm, các bạn sẽ biết rằng học “xong” một môn trong trường chỉ là xong mức cơ bản về syntax, một số khái niệm hay dùng của ngôn ngữ đó thôi. Chứ không phải là xong hoàn toàn đâu. Bản thân một ngôn ngữ ngoài syntax còn có runtime, có các thư viện (file, network, concurrency) hoặc framework đi kèm. Bản thân mỗi thư viện hay framework này cũng rất … vô cùng vô tận, dùng đến đâu biết tới đó chứ không thể nào rành rọt hết được. Do vậy, không bao giờ có chuyện học “xong” một ngôn ngữ! Đi làm được vài năm, bạn sẽ chỉ … thành thạo ngôn ngữ đó, biết một số mảng trong nó mà thôi. Vì thế, đừng bao giờ mở miệng ra nói mình đã học xong ngôn ngữ C, C++, Java … nhé, dân đi làm người ta cười đấy! Viết code cho chạy được là xong rồi Câu này thì mình lại hay gặp ở những bạn sắp ra trường, mới đi làm. Bản thân mình hồi mới ra trường cũng vậy, cứ nghĩ viết code cho chạy được là xong rồi. Đi làm các bạn sẽ “bối rối” vì thấy đời và trường học khác nhau một trời một vực. Code bạn viết ra phải dễ đọc, dễ hiểu, dễ bảo trì , phải có unit test đi kèm; nếu không lúc review code mấy ông senior sẽ bắt bạn viết lại ngay! Tại sao vậy? Bởi vì chúng ta là software engineer, làm phần mềm, vì nó mềm nên khách hàng có thể đổi yêu cầu, đưa yêu cầu mới, chúng ta phải sửa code để đáp ứng điều đó! Do vậy, code cho chạy được chưa phải là “xong” đâu! Đôi khi còn phải quay đi quay lại để sửa chữa, bảo trì tụi nó đấy! Cái này dễ òm hà, làm xíu là xong Câu này thì không chỉ junior developer mà mấy bác đi làm vài năm, tự tin hơi thái quá cũng hay bị dính phải. Và đôi khi, câu nói này đến từ chính miệng của các bác … PM hoặc manager nhưng không quá rành về công nghệ. (Hoặc rành nhưng cố tình nói vậy để dí deadline team cho vui). Thật lòng mà nói, có một số task thật sự đơn giản, làm xíu là xong như: sửa text sai chính tả, dịch chuyển button và label vài pixel, phóng to thu nhỏ cái ảnh. Thế nhưng, có rất nhiều task tưởng chừng có vẻ đơn giản nhưng lại tốn rất nhiều công sức: Thêm một field vào form này đi em, nhanh ấy mà (Phải sửa UI, thêm column trong database, sửa lại câu lệnh SQL để read/write) Khách hàng cần thêm cái button tính toán vô chỗ này nè (Bỏ vô có ảnh hưởng các button khác không? Button đó khi nào thì enable/disable, button đó làm chức năng gì) Cho web/app nó chạy nhanh thêm tí được không, dễ mà (Performance optimization là một nghệ thuật , hên thì chỉ mất 1 tiếng, xui thì 1 tuần cũng chưa chắc optimize được) Làm cho anh cái web cỡ Tiki hay Thế Giới Di Động nhé! Dùng WordPress chắc làm vài hôm chứ mấy! Do vậy, trước khi phát ngôn rằng … làm cái gì đó dễ òm, phải chắc chắn nó thật sự dễ nhé! Câu nói này, về bản chất không có gì là “gà”, khi phát ngôn với bạn bè cũng không ai cười nhạo hay bắt bẻ gì bạn. Tuy nhiên, khi đi phỏng vấn, nếu nói câu này ra để “ghi điểm” với người phỏng vấn, bạn sẽ có nguy cơ bị “bóc phốt” nếu không cẩn thận! Người ta chỉ cần hỏi vài câu như: Cuốn sách công nghệ gần nhất bạn đọc là cuốn nào? Công nghệ mới gần nhất mà bạn từng học/áp dụng là gì? Bạn hay xem tin tức công nghệ/bài viết kĩ thuật ở những nguồn nào? Nếu các bạn ú ớ không trả lời được , hoặc chỉ biết lên mương 14 xem tin bóng đá, lên channel Tôi Đi Code Dạo nghe anh Hoàng chém gió là sẽ mất điểm trầm trọng nhé! À, chia sẻ luôn là nếu bạn nào muốn biết nên đọc sách công nghệ nào, học ngôn ngữ/công nghệ gì thì cứ làm theo bài này để tự đưa kiến thức công nghệ đập thẳng vô mặt mình nha! Nhớ subscribe con bot của tụi mình tại nữa nhé! Kết Các bạn thấy đấy, để thể hiện mình pờ rồ thì khá là khó, nhưng để lộ cái sự “gà” ra thì lại vô cùng dễ dàng ! Chỉ cần phát ngôn mấy câu mình đã nói phía trên là xong rồi! Do vậy, các bạn nên cẩn thận đừng mắc phải những sai lầm mình đã nói nhé. Nhớ share bài này cho bạn bè để tụi nó không bị “dính” luôn nha! Mà thôi không share cũng được, chờ tụi nó lỡ mồm nói ra rồi bóc phốt cũng vui mà. P/S: Để theo dõi bài viết trên Tôi Đi Code Dạo, nhớ Subscribe Chat Bot của tụi mình nha. Bot của Code Dạo sẽ gửi bạn những bài viết cực kì hay ho về kĩ năng mềm và cứng, kinh nghiệm trong ngành vào thứ 4 hàng tuần nhé! Rate this: Like this: Related
Recently, some students asked me a funny question: "I study IT. What can I say to show my level of stupidity so that my friends will respect me?" Unfortunately, qualifications can only be shown through the coding process and working process, not just through a few "superb" gossip. However, there are some sayings that as soon as you say them, people will immediately know that you are "a complete idiot" or "don't know much" about the industry. Therefore, in this article, Code Dao will introduce some sayings that "chicken programmers" often say. Please watch to know why, to know how to avoid saying things like that! "Finish" learning a programming language This is a saying I often hear from first-year and second-year students, after you have... finished learning C#, finished learning Java, finished studying everything and don't know what to study next. according to. When you are about to graduate or start working, you will know that "finishing" a subject in school only means completing the basic level of syntax and some commonly used concepts of that language. But it's not completely over. A language itself, in addition to syntax, also has a runtime, accompanying libraries (files, networks, concurrency) or frameworks. Each of these libraries or frameworks themselves is very... infinite, you can't know how to use them, but it's impossible to master them all. Therefore, there is never a "finished" learning of a language! After working for a few years, you will only... be fluent in that language, know some aspects of it. Therefore, never open your mouth and say that you have finished learning C, C++, Java..., working people will laugh! Write code that runs and you're done. I often see this question from people who are about to graduate or just go to work. When I first graduated, I thought I could write code that would run and that would be enough. When you go to work, you will be "confused" because life and school are so different. The code you write must be easy to read, understand, maintain, and must have unit tests included; Otherwise, when reviewing the code, the senior guys will force you to rewrite it right away! Why so? Because we are software engineers, making software, because it is soft, customers can change requirements, give new requirements, we have to change the code to meet that! Therefore, running the code is not "done"! Sometimes we have to go back and forth to repair and maintain them! This is so easy, just do it and you're done. Not only junior developers but also those who have been working for a few years and are a bit overconfident often get caught up in this question. And sometimes, this statement comes from your own mouth... PM or manager but not too familiar with technology. (Or obviously but intentionally saying that to tease the team's deadline for fun). To be honest, there are some really simple tasks that can be done in just a few minutes, such as: correcting misspelled text, moving buttons and labels a few pixels, and zooming in and out of an image. However, there are many seemingly simple tasks that take a lot of effort: Please add a field to this form, it's fast (You have to fix the UI, add columns in the database, edit the SQL statement to read/write) Customers need to add a calculation button here (Will leaving it affect other buttons? When will that button be enabled/disabled, what function does that button do) Can you make the web/app run a little faster? It's easy (Performance optimization is an art, if you're lucky it will only take 1 hour, if you're unlucky it won't take 1 week to optimize). Make me a website like Tiki or Mobile World! Using WordPress will probably work for a few days! Therefore, before saying that... doing something is easy, make sure it is really easy! This statement, in essence, is not "chicken", when you say it to your friends, no one will laugh at you or retort you. However, when going for an interview, if you say this to "score points" with the interviewer, you will be at risk of being "exposed" if you are not careful! People just need to ask a few questions like: What was the last technology book you read? What was the last new technology you learned/applied? What sources do you often read technology news/technical articles from? If you can't answer, or only know how to go to ditch 14 to watch football news, go to Toi Di Code Dao channel to hear Mr. Hoang gossiping, you will seriously lose points! Oh, let me share that if you want to know what technology books to read, what language/technology to learn, just follow this article to have technology knowledge punched right in your face! Remember to subscribe to our bot here too! Conclusion You see, it's quite difficult to show that you're crazy, but it's extremely easy to reveal your "chicken" side! Just say the few sentences I said above and you're done! Therefore, you should be careful not to make the mistakes I mentioned. Remember to share this article with your friends so they don't get stuck! But it's okay not to share, waiting for them to accidentally say something and then expose it is fun. P/S: To follow the article on Toi Go Coding, remember to Subscribe to our Chat Bot. Code Dao's bot will send you extremely interesting articles about soft and hard skills and industry experience every Wednesday! Rate this: Like this: Related
Gần đây, sau vài vụ lùm xùm về dữ liệu người dùng, về chuyện lộ thông tin trên mạng, dân tình mới bắt đầu quan tâm tới chuyện thông tin cá nhân của mình có bị thu thập/bị lộ hay không. Hồi trước, mình đã có một bài viết về bàn tay vô hình của Facebook, Google dõi theo mọi dấu chân của bạn ! Hôm nay, mình sẽ giới thiệu một cuốn sách khá hay mang tên The Art Of Invisitility – Nghệ Thuật Tàng Hình trong thời đại Big Data . Về tác giả Tác giả cuốn sách này là Kevin Mitnick , một hacker khá nổi tiếng. Chuyện đời của cha này khá là lâm li bi đát, nhầm, khá là li kì: Năm 13 tuổi, ông đã bắt đầu sự nghiệp lừa đảo bằng cách lục thùng rác trạm xe buýt,tự mua máy đóng vé để tự làm vé xe buýt giả (để đi bus free). Năm 16 tuổi, lần đầu tiên ông hack vào máy chủ một công ty và chôm phần mềm về, lãnh ngay án tù 1 năm. Vẫn chưa tởn, gần hết hạn tù, ông lại tiếp tục… hack công ty Pacific Bell và bị FBI truy nã. Ông bắt đầu giở đủ mọi chiêu trò từ lừa đảo ngoài đời thực (social engineering) cho tới hack để thoát vòng truy đuổi của FBI. Ông trốn được tận 2 năm rưỡi cho đến khi bị bắt. Lúc vào tù, toà cấm ông đụng vào vi tính vì có lời đồn là ông có thể… kích hoạt bom hạt nhân chỉ cần thông qua điện thoại. Sau khi mòn răng bóc lịch trong tù cỡ 4, 5 năm thì ông được thả, Kevin quyết định rửa tay gác kiếm, mở công ty tư vấn bảo mật, đồng thời trở thành diễn giả kiêm tác giả. Tiểu sử tác giả hầm hố vậy nên các bạn có thể tin tưởng những điều trong sách, không phải do ổng chém gió ra đâu. Trước đây, mình đã review một cuốn khác của ông mang tên The Art of Intrusion – Nghệ thuật đột nhập cũng khá là ngầu. Tóm tắt Mở đầu sách, tác giả đã dội thẳng một gáo nước lạnh vào mặt bạn đọc về chuyện … thông tin của chúng ta đã và đang dễ dàng bị thu thập như thế nào: Mật khẩu của bạn dễ bị crack ra sao Email của bạn có bị ai đọc lén hay không Điện thoại của bạn cũng có khả năng bị nghe lén Tất cả những trang web bạn truy cập đều bị ISP (Internet Service Provider) track lại Những gì bạn làm trên 1 trang web đều bị Google, Facebook track lại Điện thoại di động, các thiết bị khác có đang âm thầm thu thập thông tin của bạn Hệ thống theo dõi của nhà nước có thể truy dấu bạn ra sao (dựa vào số xe, …) Ở mỗi phần, tác giả sẽ có một câu chuyện khá hay và đáng nhớ về những vụ việc liên quan đến bảo mật thông tin cá nhân: Hàng trăm diễn viên nổi tiếng bị lộ ảnh nóng trong vụ The Fappenning chỉ vì … đặt mật khẩu iCloud quá dễ đoán Một thanh niên nọ xóa lịch sử Chrome, bị bỏ tù vì tội “xóa chứng cứ phạm tội” Thanh niên hồi giáo ISIS đăng ảnh sống ảo lên mạng xã hội. Trong file ảnh có kèm vị trí nên căn cứ bị … đánh bom sập luôn trong 24h sau đó ( Nguồn ) Tương tự, Cụ già McAfee, vâng, cha đẻ của trình Antivirus các bạn hay xài đấy, ngáo ngơ đăng ảnh lên MXH. Trong file ảnh có kèm … vị trí chính xác mà ông đang ở luôn. Có nhiều người sẽ bảo rằng: Ủa mình không làm gì mờ ám thì có gì mà phải sợ?? Xin thưa rằng, quyền riêng tư cũng là quyền công dân . Bạn đi toilet thì không có gì mờ ám, nhưng bạn cũng có quyền đảm bảo việc đi cầu của mình không bị người khác theo dõi , ghi dấu phải không nào. Do vậy, ở phần cuối, tác giả đưa ra một số lời khuyên để hoàn toàn ẩn danh trên mạng (việc này thật sự khó hơn bạn tưởng nhiều), tránh bị theo dõi từ hacker cũng như chính phủ. Nhận xét Tuy viết về vấn đề kĩ thuật, nhưng tác giả muốn sách hướng đến đối tượng bạn đọc đại chúng, nhằm nâng cao sự cảnh giác về thông tin cá nhân. Do vậy, nội dung sách rất dễ hiểu , tác giả giải thích các khái niệm kĩ thuật một cách tường tận, cặn kẽ nên những bạn không quá rành về IT cũng có thể đọc và hiểu được. Ngoài ra, phong cách viết của tác giả rất chắc tay. Đầu chương nào cũng có một câu chuyện rất hấp dẫn để lôi cuốn người đọc , sau đó mới đi sâu vào khía cạnh kĩ thuật. Do đó các bạn có thể đọc từ đầu tới cuối mà không chán! Những lời khuyên để tránh lộ thông tin ở cuối sách cũng khá hữu ích (dùng Tor, thanh toán bằng bitcoin, nhờ người khác mua thẻ, dùng đi động dùng một lần), phù hợp cho các bạn đang bị hacker truy quét nhé! Đánh giá : 8.5/10 À, lúc mình review thì mới biết là sách vừa được Alphabooks dịch sang Tiếng Việt luôn, các bạn mua trên Tiki nhé: Kết Túm cái quần lại, đây là một cuốn sách đáng đọc cho dân IT , cho những người mê công nghệ, quan tâm đến thông tin cá nhân trên mạng. Nhắc nhỏ cho các bạn nghe, khi các bạn đang xem pỏn hoặc JAV , dù có mở trình duyệt ẩn danh thì các nhà mạng Viettel, VNPT vẫn biết IP của bạn đang xem pỏn đấy nhé! Trừ khi dùng Tor hoặc VPN, nếu không thì chạy trời không khỏi nắng đâu nha! Rate this: Like this: Related
Recently, after several scandals about user data and information leaks online, people have begun to care about whether their personal information is being collected/disclosed or not. A while ago, I wrote an article about the invisible hand of Facebook and Google that follows your every footprint! Today, I will introduce a pretty good book called The Art Of Invisitility - The Art of Invisibility in the age of Big Data. About the author The author of this book is Kevin Mitnick, a quite famous hacker. This father's life story is quite sad, tragic, and quite thrilling: At the age of 13, he began his fraud career by rummaging through bus station trash and buying a ticket machine to make his own fake bus tickets (to ride the bus for free). At the age of 16, he hacked into a company's server for the first time and stole software, immediately receiving a 1-year prison sentence. Still unrepentant, nearing the end of his prison term, he continued... hacking the Pacific Bell company and was wanted by the FBI. He started using all kinds of tricks from social engineering to hacking to escape the FBI's pursuit. He escaped for 2 and a half years until he was captured. When he was in prison, the court forbade him from touching computers because there were rumors that he could... activate a nuclear bomb just through his phone. After being released from jail for about 4 or 5 years, Kevin decided to hang up his sword, open a security consulting company, and become a speaker and author. The author's biography is strong, so you can trust the things in the book, it's not just him making up stories. Previously, I reviewed another book of his called The Art of Intrusion - The Art of Intrusion is also quite cool. Summary At the beginning of the book, the author pours cold water straight in the reader's face about how easily our information has been and is being collected: How easy is your password to be cracked? Is your email being secretly read by anyone? Your phone is also likely to be tapped All websites you visit are tracked by your ISP (Internet Service Provider). What you do on a website is tracked by Google and Facebook Mobile phones and other devices are silently collecting your information How can the state tracking system track you (based on vehicle number, etc.) In each section, the author will have a pretty good and memorable story about incidents related to personal information security: Hundreds of famous actors had their hot photos leaked in The Fappenning case just because... setting an iCloud password that was too easy to guess A young man deleted Chrome history and was jailed for "deleting evidence of a crime" ISIS Muslim youth posted virtual live photos on social networks. The photo file includes the location so the base was... bombed and collapsed within 24 hours (Source) Similarly, old man McAfee, yes, the father of the Antivirus program you often use, stupidly posted photos on social networks. In the photo file is included... the exact location where he is. Many people will say: If you don't do anything shady, what do you have to be afraid of? Please note that privacy is also a civil right. There's nothing shady about going to the toilet, but you also have the right to ensure your bowel movements are not monitored or marked by others, right? Therefore, at the end, the author gives some advice to be completely anonymous online (this is actually much harder than you think), avoiding being tracked by hackers as well as the government. Comments Although writing about technical issues, the author wants the book to be aimed at a general audience, to increase vigilance about personal information. Therefore, the content of the book is very easy to understand, the author explains technical concepts thoroughly and thoroughly so those who are not too familiar with IT can read and understand. In addition, the author's writing style is very solid. Every chapter has a very interesting story at the beginning to attract the reader, then goes into the technical aspects. Therefore, you can read from beginning to end without getting bored! The tips to avoid information disclosure at the end of the book are also quite useful (use Tor, pay with bitcoin, ask someone else to buy a card, use a disposable mobile phone), suitable for those of you who are being raided by hackers! Rating: 8.5/10 Well, when I reviewed it, I found out that the book had just been translated into Vietnamese by Alphabooks, you can buy it on Tiki: Wrap it up, this is a book worth reading for IT people, for People who love technology and are interested in personal information online. A little reminder for you, when you are watching porn or JAV, even if you open an incognito browser, Viettel and VNPT networks will still know your IP is watching porn! Unless you use Tor or a VPN, you won't be able to escape the sun! Rate this: Like this: Related
Ở bài trước, mình đã tự “bóc phốt” những thứ mình chưa biết trong năm 2018, để chia sẻ với bạn đọc rằng ai cũng có điểm giỏi điểm yếu, không có ai cái gì cũng biết cả! Tuy nhiên, sau khi ngẫm lại, bên cạnh những thứ mình chưa biết, mình cũng học hỏi được thêm khá nhiều thứ hay ho . Do vậy, mình viết bài này để tổng kết những thứ mình đã được học, được biết thêm trong năm 2018 nhé! Công nghệ mới mình đã học VueJS VueJS là một trong 3 framework JavaScript phổ biến nhất hiện tại (chỉ sau React và Angular), hiện tại số sao trên Github của nó còn cao hơn React. Do nghe đồn là VueJS rất dễ học, đơn giản tinh gọn nên mình cũng tò mò học thử. Quả là đúng như lời đồn, nếu đã quen với AngularJS hoặc React thì chỉ cần học 1, 2 tuần là bạn đã có thể tạm nắm vững VueJS và code như bay được rồi. Tranh thủ vừa học vừa làm, mình code ra 1 cái game Bầu Cua bằng VueJS và trang admin của ChatBot Codergangvn bằng Vue luôn. Electron ElectronJS là một công nghệ giúp ra viết ứng dụng Cross-Platform, chạy trên mọi nền tảng sử dụng NodeJS + HTML/CSS/JS. Có rất nhiều ứng dụng phổ biến viết bằng Atom như Slack, VS Code, Atom… Do công ty cần viết ứng dụng Desktop nên mình và CTO quyết định dùng Electron để viết luôn. Về cơ bản cũng không quá phức tạp, chỉ cần dùng HTML CSS làm giao diện , dùng JS hoặc Node runtime để đọc file, thực hiện các tác vụ khác là được. Mình học được đủ trò từ cách auto build ứng dụng trên Windows và Linux, cho tới cách chạy auto-update để tự update lên phiên bản mới. ELK Stack ELK Stack là tập hợp 3 phần mềm đi chung với nhau, phục vụ cho công việc logging. Ba phần mềm này lần lượt là: Elasticsearch : Cơ sở dữ liệu để lưu trữ, tìm kiếm và query log Logstash : Tiếp nhận log từ nhiều nguồn, sau đó xử lý log và ghi dữ liệu và Elasticsearch Kibana : Giao diện để quản lý, thống kê log. Đọc thông tin từ Elasticsearch Hôm trước mình đã có viết một bài giới thiệu về ELK stack rồi, các bạn xem lại nhé. Do ứng dụng của mình được chạy ở khá nhiều máy và server, rất khó để quản lý log và monitor ứng dụng. Do vậy, mình phải tìm hiểu về ELK Stack, setup stack để có thể gom log về 1 chỗ cho dễ xử lý và monitor. Docker + Kubernetes Do nhu cầu của dự án, cần chuyển 1 số VM chạy từ Windows sang Linux, cần giảm chi phí của Azure Cloud nên mình cũng có vọc vạch thử Docker. Trước đây mình cũng có tìm hiểu Docker, nhưng chỉ xem cho biết chứ không áp dụng được nhiều nên cũng không hiểu sâu lắm. Gần đây, nhờ phải tìm hiểu cho công việc, mình phải viết Dockerfile, build image rồi tìm cách chạy nó trong môi trường thực tế, mở port, limit CPU, RAM, Disk v…v. Vừa nghịch vừa học nên cũng học được khá nhiều . Sau đó, yêu cầu của dự án là phải chạy và tạo Container thông qua API, scale được trên nhiều máy. Thế là mình phải vác đít đi tìm hiểu Kubernetes, deploy hệ thống lên Kubernetes của Google luôn. (Ban đầu xài Azure mà Kubernestes của Azure sida với lỗi suốt nên chuyển qua Google luôn, rẻ hơn khoảng 30% mà lại ổn định) Vài thứ lặt vặt khác Command line và Linux Từ hồi dùng laptop Mac , kĩ năng command line của mình cũng tăng lên khá nhiều. Do năm nay mình được giao nhiều trọng trách hơn, lâu lâu được vọc mấy con Linux trên môi trường Staging của công ty để cài app, chỉnh reverse proxy nên cũng nắm được một số kiến thức quản lý Linux server lẫn chạy command line luôn. Vim Trước đây mình cũng từng thử học Vim nhưng một hồi nản lại bỏ vì thấy khá là sida khó nhớ! Gần đây mình xài Vim nhiều hơn, khi đọc và chỉnh sửa file trên Linux server phải xài Vim, mình cài luôn Vim Mode vào Chrome và VS Code để dùng code cho tiện tiện. Giờ thì kĩ năng Vim cũng mình vẫn chỉ ở mức tàm tạm, nhưng cũng đủ để tăng năng suất công việc của mình lên khá nhiều (xóa line dùng dd, nhập dòng dùng J, đổi ngoặc dùng ci …). Trong năm nay mình sẽ cố gắng dùng nhiều hơn, thành thục hơn. Các bạn cũng nên thử dùng Vim xem sao nhé! Domain Knowledge về Stock Market Bên cạnh kiến thức về kĩ thuật, kiến thức chuyên môn về lĩnh vực mình đang làm cũng rất quan trọng nhé! Do sản phẩm của công ty là về stock, mình phải đọc và hiểu về các khái niệm trong thị trường chứng khoán, các kiểu khớp lệnh, thời gian hoạt động của thị trường, cách đọc biểu đồ (chart) giá stock. Ngoài ra, mình mới biết được là trong ngành algorithmic trading (trading dựa trên thuật toán), có một khái niệm gọi là backtesting , tức cho thuật toán đó chạy với dữ liệu trong 10-20 năm gần nhất để kiểm tra xem nó có lợi nhuận hay không. Khá là nhiều thứ hay ho luôn! Kết Bên cạnh đó, mình còn học được một số kĩ năng mềm , kĩ năng tranh luận, cách lấy requirement khi quan sát CTO và Product Manager làm việc. Các bạn thấy đấy, mặc dù đã đi làm vài năm, nhưng mình vẫn thấy có rất nhiều điều mình có thể học được trong quá trình làm việc. Do vậy, nếu cảm thấy đã 2, 3 năm mà mình không phát triển được, không học được thêm gì mới , hãy xem lại bản thân hoặc tìm môi trường tốt hợp để mình phát triển nha. Rate this: Like this: Related
In the previous article, I "exposed" the things I didn't know in 2018, to share with readers that everyone has good points and weak points, no one knows everything! However, after thinking back, besides the things I didn't know, I also learned a lot of interesting things. Therefore, I wrote this article to summarize what I learned and learned more in 2018! New technology I learned VueJS VueJS is one of the 3 most popular JavaScript frameworks currently (only after React and Angular), currently its number of stars on Github is even higher than React. Because I heard rumors that VueJS is very easy to learn, simple and streamlined, I was curious to try it out. It is true as rumored, if you are familiar with AngularJS or React, you only need to study 1 or 2 weeks and you can temporarily master VueJS and code like flying. Taking advantage of studying and working, I coded a Bau Cua game using VueJS and the admin page of ChatBot Codergangvn using Vue. Electron ElectronJS is a technology that helps write Cross-Platform applications, running on all platforms using NodeJS + HTML/CSS/JS. There are many popular applications written in Atom such as Slack, VS Code, Atom... Because the company needed to write Desktop applications, the CTO and I decided to use Electron to write them too. Basically, it's not too complicated, just use HTML CSS as the interface, use JS or Node runtime to read files, and perform other tasks. I learned everything from how to automatically build applications on Windows and Linux, to how to run auto-update to automatically update to the new version. ELK Stack ELK Stack is a collection of 3 pieces of software that work together to serve logging work. These three software are respectively: Elasticsearch: Database for storing, searching, and querying logs Logstash: Receive logs from multiple sources, then process the logs and write data to Elasticsearch Kibana: Interface for log management and statistics. Read information from Elasticsearch The other day I wrote an article introducing the ELK stack, please review it. Because my application is run on many machines and servers, it is difficult to manage application logs and monitors. Therefore, I have to learn about the ELK Stack and setup stack so that I can collect logs in one place for easy processing and monitoring. Docker + Kubernetes Due to the needs of the project, I needed to transfer some VMs running from Windows to Linux, and needed to reduce the cost of Azure Cloud, so I also dabbled in Docker. Previously, I also learned about Docker, but I only looked at it and didn't apply it much, so I didn't understand it very deeply. Recently, thanks to research for work, I had to write a Dockerfile, build an image and then find a way to run it in a real environment, open ports, limit CPU, RAM, Disk, etc. I played and studied at the same time, so I learned quite a lot. After that, the project's requirement is to run and create Containers through API, scalable on many machines. So I had to go learn about Kubernetes and deploy the system to Google's Kubernetes. (At first I used Azure, but Azure Sida's Kubernestes had errors all the time, so I switched to Google, about 30% cheaper but stable) A few other small things Command line and Linux Since using a Mac laptop, my command line skills have improved. also increased quite a lot. Because this year I was assigned more responsibilities, occasionally playing around with Linux on the company's Staging environment to install apps and adjust reverse proxy, so I also grasped some knowledge of Linux server management and running the command line. Vim I also tried learning Vim before, but I got discouraged and gave up because I found it quite difficult to remember! Recently I use Vim more. When reading and editing files on a Linux server, I have to use Vim. I also install Vim Mode in Chrome and VS Code to use the code for convenience. Now my Vim skills are still only at a mediocre level, but they are enough to increase my work productivity quite a lot (delete lines using dd, enter lines using J, change parentheses using ci...). This year I will try to use it more and become more proficient. You should also try using Vim! Domain Knowledge about Stock Market Besides technical knowledge, professional knowledge about the field you are working in is also very important! Because the company's products are about stocks, I have to read and understand concepts in the stock market, order matching types, market operating time, and how to read stock price charts. In addition, I just learned that in the algorithmic trading industry (algorithm-based trading), there is a concept called backtesting, which means running the algorithm with data from the most recent 10-20 years to check if it works. profit or not. Quite a lot of cool things! Conclusion Besides, I also learned some soft skills, debate skills, and how to get requirements when observing CTO and Product Manager work. You see, even though I have been working for several years, I still feel there are many things I can learn while working. Therefore, if you feel like it's been 2 or 3 years and you haven't developed or learned anything new, take a look at yourself or find a good environment that's suitable for you to develop. Rate this: Like this: Related
Bản thân blog này là nơi mình chia sẻ kinh nghiệm cá nhân, chia sẻ những kiến thức của mình tới bạn đọc. Vì thế, blog chính là nơi mình … khoe những thứ mình đã biết (web, front-end, cloud, sách) v…v. Điều này không có gì sai, những sẽ dễ làm nhiều bạn lầm tưởng rằng mình biết nhiều, cái gì cũng biết! Do vậy, cuối năm cũ, đầu năm mới, mình sẽ thử làm ngược lại, tự bóc phốt chính mình , nói cho bạn đọc về những ngôn ngữ/công nghệ/những thứ mà mình chưa biết nhé! Ngôn ngữ lập trình Haskell Haskell là một ngôn ngữ lập trình functional được giới lập trình tôn thờ. Một phần vì nó khá là academic và khó học, một phần vì nó là ngôn ngữ thuần functional (Giống như Java là ngôn ngữ thuần OOP vậy). Bản thân mình cũng tự học ngôn ngữ này bằng cách đọc cuốn Learn Yourself a Haskell . Cảm giác giống như bạn học lập trình lại từ đầu vậy , có nhiều khái niệm rất lạ và khó nắm bắt (typeclass, monad). Do không có thời gian, hơi nản nên hiện tại mình đang gác lại Haskell, sau này có dịp sẽ quay lại :(. Python Python là một ngôn ngữ với nhiều thư viện tính toán, đồ thị, ML bá đạo. Hồi xưa mình chỉ đụng tới nó và Django tầm 2 tháng, giờ chả nhớ vẹo gì luôn. Mình từng giới thiệu Python là một trong những ngôn ngữ lập trình đáng học năm 2018 . Sau này nếu có hứng thú với Machine Learning có thể mình sẽ quay lại học nó nghiêm túc hơn. Assembly Không giống như các trường khác, hồi xưa trường mình không dạy gì môn Assembly/Mã máy cả, chỉ dạy C/C++ thôi. Do C/C++ đã dạy cho mình những khái niệm căn bản về con trỏ, vùng nhớ, array rồi. Từ lúc đi làm tới giờ mình chả dùng mã máy để làm gì nên thấy không học môn Assembly mình cũng không thiệt thòi gì mấy. Framework/Web Technology Mấy cái công nghệ này thì mình có biết nó là gì, nhưng cảm thấy chưa cần học vì chưa cần sử dụng. Khi nào cần dùng thì học chắc cũng không quá lâu đâu! Angular 2-5 và TypeScript Hiện tại, 3 framework phổ biến nhất trong giới front-end là React, Vue và Angular . Trước đây mình đã từng làm React tầm hơn 1 năm, gần đây thì cũng build vài cái dự án fun fun để học Vue rồi nên cũng tạm thành thục. Chỉ có Angular 2 là mình chưa đụng bao giờ (trước đây mình chỉ dùng AngularJS tức Angular 1 ). GraphQL GraphQL là một phương thức query mới, giúp front-end dễ dàng giao tiếp và trao đổi dữ liệu với back-end/server. Nó cũng đang là trend, được nhiều công ty lớn sử dụng (Github, Zendesk, Facebook, …). Tuy nhiên nó khá mới, tooling vẫn còn đang phát triển, cộng đồng vẫn cãi nhau về best practice nên mình tạm … né. Chờ vài năm nữa nó hot, được nhiều người dùng rồi học cũng chưa muộn. Progessive Web App (PWA) PWA có thể hiểu là ứng dụng web chạy như web thông thường, nhưng có thể tận dụng thêm các tính năng của mobile (offline, push notification, cache data) để tăng trải nghiệm người dùng. Nói nôm na, nó là web nhưng hoạt động được như app mobile vậy: chạy nhanh, chạy được khi mạng bất ổn định. Google đang khuyến khích lập trình viên phát triển web theo hướng này. Một số công ty lớn như Alibaba, Flipkart, Twitter, Pinterest, Spotify cũng đã áp dụng PWA. Cái này mình cũng có xem qua nhưng chưa dùng , khi nào cần thì học thôi! Công nghệ khác Mobile App (Native) Trước đây, mình cũng từng build 2 cái app đi động nho nhỏ để học React Native. Kinh nghiệm viết app iOS của mình là con số 0 bự chảng, app Android thì được tầm 2 tháng do làm đồ án tốt nghiệp phải gánh ông bạn. Giờ mà mình muốn học build app mobile từ đầu chắc cũng lắm gian nan, nếu cần thì chắc cứ React Native mà táng thôi. UI/UX Research Mình từng có một series viết về UI/UX , tuy nhiên những thứ về UI/UX mình học/áp dụng được chỉ dùng trong khi vẽ flow, design giao diện là chính v..v Do công ty không có team UI/UX chuyên nghiệp nên những thứ như UX research (tìm hiểu product và người dùng), A/B Testing (Test UI/UX với người dùng), … mình cũng không có cơ hội làm luôn! Quên nữa, mình design wireframe, design flow giữa các màn hình thì được. Gặp design sao cho đẹp cho ngầy thì phải nhờ designer rồi, đưa mình là mình bó dái luôn. Blockchain Tầm cuối năm 2017, đầu 2018, blockchain và crypto currency là những công nghệ hót hòn họt được nhà nhà người người quan tâm. Mình thì thấy cái gì được bà con tung hô thì kiếm đường … né trước, đợi tới khi hết trào lưu, công nghệ mature rồi mới bắt đầu tìm hiểu. Nói chung, qua tìm hiểu sở thì mình thấy blockchain vẫn chỉ là giải pháp phức tạp mà … chưa tìm ra ứng dụng cho nó (giống hồi Internet với ra đời ấy, ai nghĩ ra trò nghe nhạc, mua sắm qua mạng đâu!). Do vậy, chờ vài năm nữa rồi tìm hiểu cũng chưa muộn. Ngẫm về chuyện biết nhiều biết ít Các bạn thấy đấy, bản thân mình phải tự học, tự cập nhật kiến thức rất nhiều để viết blog. Thế nhưng vẫn có rất nhiều điều mình không biết . Do vậy, các bạn đừng quá tự ti khi mình chưa rành hết, mình vẫn còn những mảng mình không giỏi. Người xung quanh bạn cũng vậy thôi, không ai bá đạo gì cũng giỏi 100% cả: Ông đồng nghiệp làm back-end viết query cực siêu nhưng ko biết CSS Thằng bạn cực pro thuật toán, nhưng ko rành cách tạo 1 cái REST API ra sao Anh designer làm mockup HTML/CSS siêu đẹp nhưng ko biết AJAX hay REST là gì Không quan trọng là bạn biết nhiều hay ít, mà quan trọng là bạn làm được những gì với những thứ mình biết! Anh Mark ngày xưa chỉ biết PHP mà vẫn tạo ra được Facebook bây giờ đó thôi! Kết Đấy, túm lại là mình bóc phốt bản thân cũng đủ rồi. Các bạn có thể tự hào vỗ ngực nói: Anh Code Dạo ko biết assembly , thua mình rồi hihi (Ngon vô Code JS solo mày, ai thua xóa code). Lời khuyên cuối cùng là bạn đừng quá tự ti, cũng đừng lo khi thấy người ta biết quá nhiều mà mình biết quá ít, biết đâu mình cũng giỏi những cái mà người ta không biết đấy ! Còn nếu bạn đã đạt đến cảnh giới không biết mình chưa biết cái gì , lúc đó bạn bá đạo quá rồi, Code Dạo xin bái phục! Rate this: Like this: Related
This blog itself is where I share my personal experiences and knowledge with readers. Therefore, the blog is where I... show off the things I know (web, front-end, cloud, books) etc. There is nothing wrong with this, but it will easily make many of you mistakenly think that you know a lot and know everything! Therefore, at the end of the old year and the beginning of the new year, I will try to do the opposite, expose myself, and tell readers about languages/technologies/things that I don't know yet! Haskell programming language Haskell is a functional programming language that is revered by programmers. Partly because it is quite academic and difficult to learn, partly because it is a purely functional language (Just like Java is a pure OOP language). I myself also learned this language by reading the book Learn Yourself a Haskell. It feels like you are learning programming from scratch, there are many very strange and difficult concepts to grasp (typeclass, monad). Due to lack of time and a bit of frustration, I'm putting Haskell aside for now, and will come back later when I have a chance :(. Python Python is a language with many powerful calculation, graphing, and ML libraries. In the past, I I've only touched it and Django for about 2 months, and now I don't remember anything. I once recommended Python as one of the programming languages ​​worth learning in 2018. If I'm interested in Machine Learning, I might come back Study it more seriously. Unlike other schools, in the past, my school did not teach Assembly/Machine code, only C/C++ because C/C++ taught me basic concepts Pointers, memory areas, arrays. Since I started working, I haven't used machine code for anything, so I don't feel like I'm at a disadvantage if I don't study Assembly What is it, but I don't feel like I need to learn it because I don't need to use it yet. When I need to use it, it won't take too long to learn Angular 2-5 and TypeScript. Currently, the 3 most popular frameworks in the front-end world are React, Vue and Angular . Previously, I worked with React for more than a year. Recently, I also built a few fun fun projects to learn Vue, so I'm somewhat proficient. Only Angular 2 I have never touched (previously I only used AngularJS, which is Angular 1). GraphQL GraphQL is a new query method that helps the front-end easily communicate and exchange data with the back-end/server. It is also a trend, used by many large companies (Github, Zendesk, Facebook, ...). However, it's quite new, tooling is still developing, the community is still arguing about best practice, so I'm... avoiding it for now. Wait a few more years for it to be hot and used by many people, then it's not too late to learn. Progessive Web App (PWA) PWA can be understood as a web application that runs like a regular web, but can take advantage of additional mobile features (offline, push notification, cache data) to increase user experience. Simply put, it is a web but works like a mobile app: runs fast, can run when the network is unstable. Google is encouraging programmers to develop web in this direction. Some large companies such as Alibaba, Flipkart, Twitter, Pinterest, Spotify have also adopted PWA. I've seen this but haven't used it yet. I'll learn it when I need it! Other technologies Mobile App (Native) Previously, I also built 2 small mobile apps to learn React Native. My experience in writing iOS apps is 0, my Android app is only about 2 months old because I have to work on my friend's graduation project. Now, if I want to learn to build mobile apps from scratch, it will probably be very difficult. If necessary, I'll probably just stick with React Native. UI/UX Research I once had a series about UI/UX, but the UI/UX things I learned/applied could only be used while drawing flow, designing interfaces, etc. Because the company didn't have one. The UI/UX team is professional, so things like UX research (finding out products and users), A/B Testing (Testing UI/UX with users), ... I don't have a chance to do! Forget it, I can design wireframes and design flow between screens. If you encounter a design that looks beautiful, you have to ask the designer. If you give it to me, I'll give it a go. Blockchain In late 2017 and early 2018, blockchain and crypto currency are hot technologies that people are interested in. When I see something that people are praising, I look for a way... avoid it first, wait until the trend is over and the technology is mature before starting to learn about it. In general, through research, I see that blockchain is still just a complicated solution but... has not found an application for it (like when the Internet was born, who thought of listening to music and shopping online!) . Therefore, it is not too late to wait a few years to find out. Thinking about knowing more and knowing less You see, I have to self-study and update my knowledge a lot to write a blog. But there are still many things I don't know. Therefore, don't be too self-conscious when you don't know everything, you still have areas you're not good at. The people around you are the same, no one is 100% good at everything: My back-end colleague writes excellent queries but doesn't know CSS My friend is extremely pro at algorithms, but he doesn't know how to create a REST API The designer makes super nice HTML/CSS mockups but doesn't know what AJAX or REST is It doesn't matter how much or how little you know, what matters is what you can do with what you know! Mark only knew PHP in the past and still created Facebook today! Conclusion: In short, I've exposed myself enough. You can proudly pat your chest and say: Mr. Code doesn't know assembly, you're losing to me hihi (If you go to Code JS alone, whoever loses deletes the code). The last piece of advice is don't be too self-conscious, don't worry when you see people know too much but you know too little, maybe you're good at things that people don't know! And if you have reached the realm of not knowing what you don't know, then you are too dominant, Code Dao respectfully bows to you! Rate this: Like this: Related
Từ khi ra trường, mình vẫn luôn giữ thói quen đọc sách , vừa để giải trí vừa để học hỏi cái mới. Để khuyến khích thói quen đọc sách , cũng như chia sẻ sở thích với một số bạn, bài viết này sẽ là review tổng hợp ngắn những cuốn sách hay nhất mình đã đọc trong năm vừa rồi. Mỗi tháng mình đọc khoảng 3-6 cuốn sách. 12 cuốn sách dưới đây là 12 cuốn sách hay nhất mà mình đọc được mỗi tháng . Các bạn có thể xem toàn bộ danh sách ở cuối bài nhé. Năm 2015, 2016 và 2017 mình cũng có bài review tương tự, các bạn có thể xem ở đây: Mỗi tháng một cuốn sách – Năm 2015 Mỗi tháng một cuốn sách – Năm 2016 Mỗi tháng một cuốn sách – Năm 2017 Tháng 1 – Actionable Gamification – Beyond Poins, Badges and Leaderboards Cuốn này mình tình cờ thấy được khi đi dạo thư viện bên Singapore. Cầm lên đọc thử, thấy nội dung khá hút mắt, cách viết dễ hiểu nên mình lụm về đọc luôn. Cho những bạn nào chưa biết, gamification – tạm dịch là game hóa, tức là việc thêm thắt những yếu tố của game (điểm, huy hiệu, xếp hàng) vào một hệ thống để … khuyến khích người dùng , tăng sự gắn bó với hệ thống. Đây là một kĩ thuật được vô số sản phẩm lớn như Facebook, Youtube, Instagram, Candy Crush áp dụng (do đó các bạn mới ghiền như vậy). Sách không chỉ giới thiệu về các kĩ thuật gamification, mà còn đi sâu nguyên cứu về tâm lý con người, cách áp dụng những kĩ thuật đó. Tháng 2 – Game Programming Patterns Có thể các bạn sẽ lấy làm lạ là mình đâu có đi theo ngành game đâu, đọc cuốn này để làm gì? Công bằng mà nói, lập trình game cũng là … lập trình, có nhiều mảng còn khó hơn lập trình web và app bình thường nữa. Vì vậy, những pattern được nhắc đến trong sách cũng chính là những design pattern mà dân software engineer tụi mình hay dùng: Comand , Singleton, Observer, Event Queue . Tác giả viết rất dễ hiểu, dễ đọc, đi kèm code và ảnh minh họa cho các pattern này. Dù làm dân nhập môn hay đã đi làm lâu, làm game hay làm app, đây đều là một cuốn sách cực kì hữu ích cho bạn. Tháng 3 – Cây chuối non đi giày xanh Bạn nào theo dõi blog lâu năm cũng biết mình là fan cứng của cụ Nguyễn Nhật Ánh , đọc gần hết 80% sách của cụ. Do vậy, đợt về chơi Tết mình tranh thủ mua cuốn này mang lên máy bay đọc luôn. Cũng như đa phần sách của bác Anh, cuốn này nội dung cũng nhẹ nhàng, sâu lắng, kể về mối tình chíp hôi của mấy đứa nhóc từ năm cấp 1 đến năm cấp 2. Đọc xong vẫn thấy “đã” như các tác phẩm khác, tiếc là không có kết buồn buồn bi kịch như Đi Qua Hoa Cúc hay Mắt Biếc , mấy cái kết buồn buồn nó đọng lại lâu hơn. Mà quên nữa, truyện tình cảm mà không có hun hít gì hết, kì ghê. Tháng 4 – Mật mã – Từ cổ điển đến lượng tử Tháng này mình đọc tài liệu và tiếng Anh hơi nhiều nên chuyển qua đọc tiếng Việt cho nó nhẹ đầu. Lang thang đi tìm ebook free thì thấy cuốn này hay hay, tải về luôn. Thật sự, cuốn sách … không làm mình thất vọng. Lâu rồi mình mới thấy một cuốn sách technical hay như vậy. Sách có những mẫu chuyện rất hay về lý do các dạng mã hóa ra đời, về cuộc “chạy đua vũ trang” giữa những người tạo mã và giải mã. Đặc biệt, phần kĩ thuật viết cũng rất tốt , giúp mình củng cố lại kiến thức về s ymmetric key và asymmetric key (mã khóa đối xứng/bất đối xứng). Các bạn làm về securiy, cryptography hoặc software enginner cũng rất rất nên đọc nhé! Tháng 5 – Các thế giới song song – Michio Kaku Hồi cấp 3 mình học chuyên Lý, nên cũng mê mấy thứ liên quan đến Thuyết Tương Đối, lượng tử … Hồi đó cũng háo hức mua cuốn Lược Sử Thời Gian của Stephen Hawking về đọc, ban đầu còn hiểu, từ mấy chương sau trở đi là ngáo ngơ như con gà bơ luôn. Bác Michio Kaku có mấy clip giải thích về vật lý rất hay trên Youtube. Mình thấy bác viết cuốn này nên cũng tò mò mua đọc thử. Nội dung thì rất hay và cuốn hút, nhưng về sau thì càng ngày càng khó hiểu , chắc tại bản chất nó vốn khó hỉu rồi, không làm đơn giản được. Bạn nào đam mê về vũ trụ, thiên văn hay vật lý thì cứ mua đọc thử xem nhé. Tháng 6 – The Adventures of Johnny Bunko – The Last Career Guide You’ll Ever Need Mấy tháng trước đọc sách tiếng Việt nhiều rồi nên tháng này mình quay lại đọc tiếng Anh cho nó cân bằng nhé. Đây là một cuốn truyện tranh (kiêm sách định hướng nghề nghiệp trá hình), kể về Jonhny, một chàng nhân viên văn phòng quèn. Một ngày nọ, khi đi mua mì tôm, chàng lụm được vài cây đũa thần. Mỗi lần bóc đũa ra, sẽ có 1 bé tiên xì tin xuất hiện, đưa cho chàng những lời khuyên về nghề nghiệp . Nét vẽ khá dễ thương cute, những lời khuyên trong sách cũng không hề sáo rỗng mà có đi kèm tình huống thực tế nên đọc rất hay! Mình không spoil nữa, bạn nào muốn xem thì tự mua hoặc google bản ebook nha. Sách nhiều hình nên cũng dễ đọc lắm nhé! Tạm kết Ở phần 2 , mình sẽ giới thiệu 6 cuốn sách còn lại từ tháng 7 tới tháng 12, các bạn đón đọc nhé. Bonus : Đây là list các sách mình đã đọc từ tháng 1 tới tháng 6, cuốn nào in đậm là hay nhất tháng, in nghiêng là sách hay – đáng đọc nhé. Tháng 1 Cha con Giáo hoàng Bloggers Boot Camp – Learning How to Build, Write and Run a Successful Blog Actionable Gamification – Beyond Poins, Badges and Leaderboards Tháng 2 The Practitioner’s Guide to User Experience Design Death March – The Complete Software Developer’s Guide to Surviving “Mission Impossible” Projects Game Programming Patterns Phớt lờ tất cả & Bơ đi mà sống Những trò quỷ quái không trái lương tâm Không có bữa ăn nào miễn phí Tháng 3 Những triệu phú thầm lặng Lối mòn của tư duy cảm tính Viết gì cũng đúng 1 & 2 Cây chuối non đi giày xanh Chỉ cần mẩu khăn giấy Đừng hoang tưởng về biển lớn Một tư duy khác về Kinh Tế và Xã Hội Việt Nam 42 năm làm ăn tại Mĩ và Trung Quốc Ngoài vùng phủ sóng Tâm lý thị trường chứng khoán Tháng 4 Chết bởi tay Trung Quốc Microservices from Day One Ready Player One Lịch sử vạn vật The Art of Invisibility Mật mã – Từ cổ điển đến lượng tử Bạn không thông minh lắm đâu Tháng 5 Bạn đỡ ngu ngơ rồi đấy Quảng cáo không nói láo Điểm mù Cú hích Các thế giới song song – Michio Kaku Tháng 6 Creative Struggle – Illustrated Advice from Masters of Creativity Billy the Kid Wait – The Art and Science of Delay Site Reliability Engineering – How Google Runs Production Systems The Adventures of Johnny Bunko – The Last Career Guide You’ll Ever Need The Art of Thinking Clearly 97 Things Every Programmers Should Know Rate this: Like this: Related
Since graduating, I have always kept the habit of reading books, both for entertainment and to learn new things. To encourage reading habits, as well as share interests with some of you, this article will be a short review of the best books I have read in the past year. Every month I read about 3-6 books. The 12 books below are the 12 best books I read every month. You can see the entire list at the end of the article. In 2015, 2016 and 2017, I also had similar reviews, you can see them here: One book a month – 2015 One book a month – 2016 One book a month – 2017 January – Actionable Gamification – Beyond Points, Badges and Leaderboards I found this book by chance while walking around a library in Singapore. I picked it up and read it. I found the content quite eye-catching and the writing style was easy to understand, so I went home and read it. For those of you who don't know, gamification - roughly translated as gamification, is the addition of game elements (points, badges, queues) to a system to... encourage users and increase engagement with the game. system. This is a technique used by countless big products like Facebook, Youtube, Instagram, Candy Crush (that's why you guys are so addicted). The book not only introduces gamification techniques, but also delves into human psychology and how to apply those techniques. February – Game Programming Patterns Maybe you will be surprised that I did not go into the game industry, so why read this book? To be fair, game programming is also... programming, there are many areas that are more difficult than normal web and app programming. Therefore, the patterns mentioned in the book are also the design patterns that we software engineers often use: Comand, Singleton, Observer, Event Queue. The author's writing is very easy to understand and read, and includes code and illustrations for these patterns. Whether you are a beginner or have been working for a long time, making games or making apps, this is an extremely useful book for you. March - Young banana tree wearing green shoes Anyone who has followed the blog for a long time knows that he is a big fan of Mr. Nguyen Nhat Anh, having read almost 80% of his books. Therefore, when I came home for Tet, I took the opportunity to buy this book and take it on the plane to read. Like most of Mr. Anh's books, this book's content is also light and profound, telling about the love affairs of children from elementary school to middle school. After reading it, I still feel "good" like the other works. Another thing, unfortunately, there is no sad, tragic ending like Going Through Chrysanthemums or Blue Eyes, the sad endings linger longer. And I forgot, a love story without any kissing at all, it's weird. April - Cryptography - From classical to quantum This month I read a lot of documents and English, so I switched to reading Vietnamese to lighten my head. Wandering around looking for a free ebook, I found this book interesting and downloaded it. Actually, the book... did not disappoint me. It's been a long time since I've seen such a good technical book. The book has very good stories about why encryption types were born, about the "arms race" between code creators and decoders. In particular, the technical writing part is also very good, helping me consolidate my knowledge about s ymmetric key and asymmetric key (symmetric/asymmetric key encryption). Those who work in security, cryptography or software engineering should also read it! May – Parallel worlds – Michio Kaku In high school, I majored in Physics, so I was also interested in things related to Relativity, quantum theory... At that time, I also eagerly bought Stephen Hawking's A Brief History of Time to read. , at first I understood, but from the next few chapters onwards I was as dumb as a butter chicken. Uncle Michio Kaku has some very good clips explaining physics on Youtube. I saw you wrote this book so I was curious and bought it to read. The content is very good and attractive, but later on it becomes more and more difficult to understand, probably because it is inherently difficult to understand and cannot be simplified. If you are passionate about space, astronomy or physics, please buy and read it. June – The Adventures of Johnny Bunko – The Last Career Guide You'll Ever Need I've read a lot of Vietnamese books in the past few months, so this month I'll go back to reading English to balance it out. This is a comic book (cum-disguised career guidance book), about Johnny, a lowly office worker. One day, when he went to buy instant noodles, he found a few magic wands. Every time he peels off his chopsticks, a little fairy will appear, giving him career advice. The drawings are quite cute, the advice in the book is not cliché but comes with real situations so it's a great read! I won't spoil it anymore, if you want to watch it, buy it yourself or google the ebook version. The book has many pictures so it's easy to read! Conclusion In part 2, I will introduce the remaining 6 books from July to December, please read them. Bonus: This is a list of books I read from January to June, books in bold are the best of the month, books in italics are good books - worth reading. January Father and son Pope Bloggers Boot Camp – Learning How to Build, Write and Run a Successful Blog Actionable Gamification – Beyond Points, Badges and Leaderboards February The Practitioner's Guide to User Experience Design Death March – The Complete Software Developer’s Guide to Surviving “Mission Impossible” Projects Game Programming Patterns Ignore everything & Ignore and live These devilish tricks do not violate conscience There are no free meals March Silent millionaires The path of emotional thinking Whatever you write, 1 & 2 are correct Young banana tree wearing green shoes Just need a piece of tissue Don't be paranoid about the big ocean A different way of thinking about Vietnam's Economy and Society 42 years of doing business in the US and China Out of coverage area Stock market psychology April Died by China's hands Microservices from Day One Ready Player One History of all things The Art of Invisibility Cryptography – From classical to quantum You're not very smart May You are less stupid now Advertising does not lie Blind spot Pokes Parallel worlds – Michio Kaku June Creative Struggle – Illustrated Advice from Masters of Creativity Billy the Kid Wait – The Art and Science of Delay Site Reliability Engineering – How Google Runs Production Systems The Adventures of Johnny Bunko – The Last Career Guide You'll Ever Need The Art of Thinking Clearly 97 Things Every Programmers Should Know Rate this: Like this: Related
Ở kì trước, mình đã hướng dẫn các bạn tạo 1 account Azure free , đủ để làm trò nghịch ngợm và sử dụng Azure cho biết rồi. Để mọi người khỏi chờ lâu, mình sẽ bắt đầu ngay với 1 dịch vụ rất phổ biến của Azure: Virtual Machine, viết tắt là VM. Trong phần 2 và phần 3 này, chúng ta sẽ tạo ra một con máy ảo và nghịch ngợm đủ trò với nó nhé! VM (Virtual Machine) là cái chi chi? Nếu các bạn đã học môn Hệ Điều Hành ở trường thì chắc cũng biết Virtual Machine là gì, cơ chế hoạt động của nó rồi. Ở đây mình chỉ nhắc lại sơ thôi nhé! Nói nôm na, máy ảo nghĩa là … không phải máy thật ( ), nó là một chương trình cho phép ta giả lập một/nhiều máy trính giả ở trên máy tính thật . Ví dụ, một server của Azure sẽ rất bự, tầm 8-16 CPU Core và 64 GB RAM . Server này sẽ dùng phần mềm ảo hóa (virtualization) để tạo ra vài con máy ảo, mỗi còn 1-2 Core và 1-4GB RAM cho người dùng. Khi sở hữa 1 VM, bạn sở hữu một con … server ảo, có CPU, có RAM, có network. Con server này ảo vì nó … không có thật , mà nó nằm trên một con server thật to và xịn hơn nhiều. Tạm hiểu vậy là đủ rồi, bạn nào muốn biết rõ hơn thì xem video phía dưới nha. Tạo VM trên Azure như thế nào Quá trình tạo VM trên Azure khá ngắn gọn đơn giản, chỉ mất tầm 5-10p là xong. 1. Bấm vào Create a resource góc trên bên trái, chọn Window Server 2016 VM (Muốn tạo máy chủ Ubuntu/Linux cũng được nhé) 2. Điền thông tin vào. Các bạn nên tạo resource group để quản lý các resource (VM, database, cache) chung 1 dự án cho dễ. 2.1 Phần name là tên máy ảo, đặt gì cũng được. Mục region tức là vị trí địa lý của VM, mình ở châu Á nên chọn Southest Asia là được, server nằm ở Singapore ấy. 3. Các bạn bấm vào Change Size, chọn size phù hợp. Xài gói free thì được B1s (1 CPU, 1GB RAM) , nếu chọn được mấy size bự hơn thì cứ chọn nhé. 4. Thiết lập username và password. Các bạn thiết lập xong nhớ lưu lại để sau này truy cập. Password bắt buộc phải có viết hoa viết thường, có kí tự đặc biệt và dài hơn 12 chữ số. Các bạn có thể dùng AnhHo@ngDepTrai hoặc CodeD@0DeThuong hoặc tự chế ra nha =)) Trong phần inbound port, các bạn chọn mở port RDP (Nếu dùng Windows) và SSH (Nếu dùng Linux) nhé! Nếu không mở các port này thì chúng ta không kết nối tới VM được đâu! 5. Bấm Review + create để validate trước, sau đó bấm Create là được 6. Chờ khoảng 5 phút, tới khi nào bên Notification báo là Deployment Succeeded là các bạn đã tạo thành công nha! 7. Các bạn bấm vào Go To Resource để xem thông tin máy ảo vừa được tạo ra nha! Truy cập vào VM vừa tạo để làm trò 1. Sau khi tạo xong máy ảo, các bạn bấm vào nút Connect , tải file RDP về (nếu không thì qua bước 2 tự nhập IP vào cũng được) 2. Trên Windows đã có sẵn công cụ Remote Desktop, các bạn search trong menu là ra! Trên Mac thì mình xài Microsoft Remote Desktop, giao diện cũng na ná vậy. Các bạn nhập IP của máy, username và password mình vừa tạo là sẽ truy cập được ngay. 3. Lần đầu login sẽ hơi lâu để chờ cài đặt, 3p để setup server…v. Những lần sau thì bạn vào nó sẽ hiện cái vèo luôn. Con này chạy hơi giựt vì chỉ có 1-2GB . Sau này nếu muốn deploy app thì các bạn cứ dùng server Linux sẽ ok hơn nhiều. Cài đặt Chrome để tiện làm trò Máy ảo này dùng bản Window Server nên lựa chọn security khá cao, chặn đủ thứ. Do đó, các bạn cài Chrome để xài cho đỡ tù nhé. 1. Mở Powershell lên từ Start Menu 2. Dán đoạn code sau vào Powershell để cài Chrome 3. Chờ một xíu, nếu thấy biểu tượng Chrome hiện ra tức là đã cài thành công. Cảnh báo : Đây là VM để nghịch và học nên chúng ta cài Chrome và cài đủ thứ app cho thoải mái. Nếu dùng VM để chạy ứng dụng thực tế, các bạn nên hạn chế và cài càng ít càng tốt để đỡ nặng máy, tránh nguy cơ dính virus nữa nhé! Tạm kết Sau kì này, bạn đã có thể tạo ra 1 con VM chạy hệ điều hành Windows/Linux rồi đấy! Bạn có thể làm đủ trò với con VM này: Dùng nó làm VPN để không bị theo dõi Cắm torrent game hoặc JAV , Treo máy tăng view tăng like Livestream Facebook hoặc Youtube Đào bitcoin v…v Ở phần sau, chúng ta sẽ làm những trò “hay ho” hơn trên con máy ảo này: Cài app lặt vặt (Git, NodeJS), deploy ứng dụng Web (NodeJS/C#) nhé! Viết cái nì mệt lắm nên thấy hay các bạn nhớ comment hoặc like/share nhiệt tình để mình có động lực viết tiếp nha! Mãi yêu :3. Rate this: Like this: Related
In the previous installment, I guided you to create a free Azure account, enough to do mischief and use Azure. To keep everyone from waiting too long, I will start right away with a very popular service from Azure: Virtual Machine, abbreviated as VM. In part 2 and part 3, we will create a virtual machine and play around with it! What is VM (Virtual Machine)? If you have studied Operating Systems at school, you probably know what Virtual Machine is and how it works. Here I just briefly reiterate it! Simply put, virtual machine means... not a real computer (), it is a program that allows us to simulate one/many fake computers on a real computer. For example, an Azure server will be very large, about 8-16 Core CPUs and 64 GB RAM. This server will use virtualization software to create several virtual machines, each with 1-2 Core and 1-4GB of RAM for users. When you own a VM, you own a virtual server, CPU, RAM, and network. This server is virtual because it... is not real, but it is located on a real server that is much bigger and better. That's enough for now. If you want to know more, watch the video below. How to create a VM on Azure The process of creating a VM on Azure is quite short and simple, it only takes about 5-10 minutes to complete. 1. Click Create a resource in the upper left corner, select Window Server 2016 VM (If you want to create an Ubuntu/Linux server, you can also) 2. Fill in the information. You should create a resource group to easily manage resources (VM, database, cache) under one project. 2.1 The name part is the name of the virtual machine, you can put it anything. The region section means the geographical location of the VM. I'm in Asia so I should choose Southest Asia, the server is located in Singapore. 3. Click Change Size, choose the appropriate size. If you use the free package, you get B1s (1 CPU, 1GB RAM). If you can choose larger sizes, go ahead and choose them. 4. Set up username and password. After setting up, remember to save it for later access. Password must have upper and lower case letters, special characters and be longer than 12 digits. You can use AnhHo@ngDepTrai or CodeD@0DeThuong or make your own =)) In the inbound port section, choose to open the RDP port (If using Windows) and SSH (If using Linux)! If we don't open these ports, we won't be able to connect to the VM! 5. Click Review + create to validate first, then click Create. 6. Wait about 5 minutes, until the Notification side says Deployment Succeeded, you have successfully created! 7. Click Go To Resource to see information about the newly created virtual machine! Access the newly created VM to play the game 1. After creating the virtual machine, click the Connect button, download the RDP file (if not, go to step 2 and enter the IP yourself). 2. On Windows it is already available Remote Desktop tool, search in the menu and you will find it! On Mac, I use Microsoft Remote Desktop, the interface is similar. You enter your device's IP, username and password you just created and you will be able to access immediately. 3. The first time you log in, it will take a while to wait for installation, 3 minutes to set up the server...etc. The next time you log in, the box will appear. This one runs a bit slow because it only has 1-2GB. In the future, if you want to deploy the app, just use a Linux server and it will be much better. Install Chrome for convenience. This virtual machine uses the Windows Server version, so the security options are quite high, blocking everything. Therefore, you should install Chrome to use it to avoid jail time. 1. Open Powershell from the Start Menu 2. Paste the following code into Powershell to install Chrome 3. Wait a moment, if you see the Chrome icon appear, it means the installation was successful. Warning: This is a VM for playing around and learning, so we install Chrome and install all sorts of apps for comfort. If you use VM to run actual applications, you should limit and install as little as possible to reduce the machine's weight and avoid the risk of getting viruses! Conclusion After this period, you can create a VM running Windows/Linux operating system! You can do all kinds of things with this VM: Use it as a VPN to avoid being tracked Plug in game or JAV torrent, Hang the phone to increase views and increase likes Livestream Facebook or Youtube Mining bitcoin etc In the following part, we will do more "cool" things on this virtual machine: Install sundry apps (Git, NodeJS), deploy Web applications (NodeJS/C#)! Writing this is very tiring, so if you find it interesting, please remember to comment or like/share enthusiastically so I can be motivated to continue writing! Love forever :3. Rate this: Like this: Related
Chuyện lựa chọn công ty, nhảy việc là một trong những lựa chọn khó khăn nhất của lập trình viên. Vì vậy, mình cũng hay nhận được nhiều câu hỏi về chuyện này như: Nên làm việc ở công ty lớn hay công ty nhỏ? Làm product thì có gì khác hay hay ho hơn outsource? Có nên làm startup hay không? Bản thân mình, hồi mới ra trường thì đi làm ở FPT – Công ty outsource bự, cho tới Aswig Solution và Lancaster ISS – công ty product cỡ vừa, hiện tại thì đang làm ở Algomerchant – công ty product startup . Công ty to bự thì có gì hay ho Ở Việt Nam, đa phần các công ty IT lớn đều là công ty outsource: FPT Software, TMA, Global Cybersoft, Nashtech, KMS… Tham gia các công ty lớn, có bạn có thể nhận được khá nhiều thứ hay ho: Có qui trình cụ thể, rõ ràng : Từ việc giao task trên JIRA, lấy requirement thế nào, code phải dùng style gì, code review, tester test kiểu gì , PM update tiến độ trên JIRA,… tất cả đều có qui trình cụ thể, rõ ràng. Các bạn chỉ cần tập trung code, làm việc của mình là xong. Học hỏi được nhiều : Các bạn sẽ học được nhiều thứ , từ qui trình làm việc, cách build dự án , cách viết code cho đúng từ các ông anh senior. Ở nhiều công ty, họ còn mời người về đào tạo thêm về công nghệ, về qui trình cho nhân viên Có lộ trình thăng tiến : Ở những công ty lớn, họ thường có lộ trình thăng tiến khá rõ ràng. Làm bao lâu, performance tốt thì các bạn sẽ từ DEV1 lên DEV2 DEV4, lên team lead. Đãi ngộ tốt : Ngoại trừ bảo hiểm, khám sức khỏe, bonus, nhiều công ty còn có thêm những đãi ngộ hay ho như: phòng gym, hỗ trợ chi phí đi lại, company trip (dắt cả công ty đi chơi), hỗ trợ tiền thi chứng chỉ (50-100%). Công việc ổn định : Cái này là chuyện đương nhiên. Các công ty này có lượng việc nhiều, khách hàng nhiều nên … khó mà phá sản. Trừ khi bạn gây ra hậu quả nghiêm trọng lắm, bạn cũng không cần lo sẽ bị đuổi việc Không phải cứ bự là sướng Bên cạnh đó, làm công ty lớn cũng không phải 100% lúc nào cũng sướng. Có những thứ sẽ làm bạn bực mình hoặc khó chịu: Không có tiếng nói : Ở những công ty lớn, bạn sẽ cảm thấy mình chỉ là một mắt xích nhỏ của team, của công ty, dễ dàng bị thay thế. Không có quyền quyết định : Trong các công ty outsource, khách hàng là người lựa chọn công nghệ, lựa chọn architecture. Trừ khi bạn lên các vị trí như technical lead, software architecture , còn lại thì phần lớn việc của bạn chỉ là code theo yêu cầu , bắt code gì thì code nấy. Cạnh tranh nhiều, chính trị nhiều : Công ty đông, muốn lên vị trí cao thì bạn phải cạnh tranh, phải giỏi hơn những đứa còn lại. Chưa kể, một số công ty còn có phân chia bè phái này nọ (Cái này thì ngành nào cũng có chứ không chỉ IT) Công ty nhỏ và startup có gì vui? Nói chuyện công ty lớn rồi thì giờ chúng ta nói về công ty nhỏ và startup ha. Đa phần các công ty product ở Việt Nam là các công ty vừa và nhỏ. Ở các công ty lớn như VNG, Thegioididong , Tiki, team Engineer của họ chỉ là 1 trong nhiều team khác (team sales, team marketing) của công ty. Đợt có anh bên TGDD bảo team technical của TGDD chỉ tầm 14-20 người , rất nhỏ so với con số vài nghìn của FSoft . Nếu tính về ưu đãi và quyền lợi, các công ty nhỏ cũng không thua gì startup: Ít cạnh tranh, có tiếng nói : Trong các công ty nhỏ/team nhỏ, các bạn rất dễ thành “key member”. Ở tầm developer, các bạn có thể quyết định một chức năng nên implement ra sao, sản phẩm cần những chức năng gì. Lên vị trí cao hơn , bạn có thể thảo luận với team leader, đưa ra lựa chọn về công nghệ . Học được nhiều thứ : Ở công ty nhỏ, các bạn đôi khi phải tiếp xúc với các phòng ban khác (phòng sales, marketing) để hiểu yêu cầu của họ, cách họ làm việc. Điều này giúp bạn có kiến thức rộng hơn , hiểu hơn về công ty, hiểu hơn về sản phẩm, tạm nên tư duy sản phẩm. Niềm vui khi làm sản phẩm : Ở công ty product/startup, bạn sẽ cảm nhận niềm vui khi thấy chức năng mình code ra có người sử dụng ; thấy việc mình làm giúp ích cho người khác. Đây là điều mình ích cảm nhận khi làm outsource (Chỉ code có cái nộp, xong dự án là xong, người dùng quan trọng méo gì) Những điểm chưa bằng công ty lớn Thế nhưng, có vài điểm mà các bạn nên lưu ý khi muốn theo làm ở các công ty nhỏ: Quy trình không rõ ràng : nhiều công ty dùng Agile/Scrum theo kiểu nửa mùa. Qui trình không rõ ràng, requirement cũng không rõ ràng, lâu lâu lại đổi nên rất dễ gây ức chế cho developer . Phải tự bơi, gánh nhiều vai : Ở công ty nhỏ, nhất là startup, đôi khi bạn không chỉ code, mà còn phải ngồi chung với design, ngồi cùng BA và nói chuyện với sếp để hiểu requirement. Tuy chúng giúp bạn học hỏi được nhiều, nhưng cũng dễ khiến bạn stress . Chưa kể, công ty nhỏ, task nhiều thì sẽ không có người rãnh rỗi để mentor cho bạn. Chính sách không đầy đủ : Nhiều công ty nhỏ chỉ có đóng thuế + bảo hiểm cho bạn là hết. Không có các chính sách ngon lành như công ty lớn (Tuy nhiên nếu lương cao bù vào mấy cái lặt vặt đó là ok hết) Tạm kết Ngoài ra, còn một số thứ khác như áp lực làm việc ra sao, giờ giấc có được thoải mái hay không, … là phụ thuộc vào team, vào sếp chứ không phải vào công ty nhé! Nếu các bạn may mắn tìm được team tốt, sếp tâm lý thì có là công ty nhỏ cũng ok. Ngược lại, nếu bạn vào được công ty bự nhưng gặp trúng team cà giựt, sếp cà chớn thì cuộc sống cũng khó khăn lắm đấy! Túm cái váy lại, bản thân công ty to nhỏ thì có công ty này công ty nọ , trong một công ty cũng có team this team that . Do vậy những thứ mình chia sẻ chỉ có tính chất tổng quát và tham khảo chứ không phải công ty nào, team nào cũng vậy đâu nha! Hi vọng bài viết này đã giúp các bạn hiểu hơn về những ưu điểm, nhược điểm của các công ty lớn lẫn công ty nhỏ. Những bạn nào đã đi làm lâu, có nhiều kinh nghiệm thì cứ chia sẻ trải nghiệm, suy nghĩ của bạn về các công ty trong mục comment nha. P/S: Để theo dõi bài viết trên Tôi Đi Code Dạo, nhớ Subscribe Chat Bot của tụi mình nha. Bot của Code Dạo sẽ gửi bạn những bài viết cực kì hay ho về kĩ năng mềm và cứng, kinh nghiệm trong ngành vào thứ 4 hàng tuần nhé! Rate this: Like this: Related
Choosing a company or changing jobs is one of the most difficult choices for programmers. Therefore, I often receive many questions about this such as: Should I work at a big company or a small company? Is there anything different or better than outsourcing when making a product? Should I start a startup or not? Personally, when I first graduated, I worked at FPT - a large outsourcing company, to Aswig Solution and Lancaster ISS - medium-sized product companies. Currently, I am working at Algomerchant - a product startup company. What's so great about big companies? In Vietnam, most big IT companies are outsource companies: FPT Software, TMA, Global Cybersoft, Nashtech, KMS... Joining big companies, some of you can receive Get a lot of cool things: Have a specific, clear process: From assigning tasks on JIRA, how to get requirements, what style of code must be used, code review, what tester to test, PM updating progress on JIRA,... all have a specific process possible, clear. You just need to focus on coding, do your work and you're done. Learn a lot: You will learn many things, from working processes, how to build projects, how to write code properly from senior brothers. In many companies, they also invite people to provide additional training on technology and processes for employees Have a promotion path: In large companies, they often have a quite clear promotion path. No matter how long it takes, if your performance is good, you will move from DEV1 to DEV2, DEV4, to team lead. Good benefits: In addition to insurance, health check-ups, and bonuses, many companies also have additional good benefits such as: gym, travel expense support, company trips (taking the whole company out), support. Certification exam funding (50-100%). Stable job: This is natural. These companies have a lot of work and many customers, so... it's difficult to go bankrupt. Unless you cause very serious consequences, you don't need to worry about being fired Not every big person is happy. Besides, working for a big company is not 100% always happy. There are things that will annoy or annoy you: No voice: In big companies, you will feel like you are just a small link in the team or company, easily replaced. No decision-making authority: In outsourcing companies, the customer is the one who chooses the technology and architecture. Unless you get to a position like technical lead or software architect, most of your work is just coding as required, code whatever you want. Lots of competition, lots of politics: The company is crowded, if you want to get to a high position, you have to compete and be better than the rest. Not to mention, some companies also have factional divisions (this is true in every industry, not just IT). What's fun about small companies and startups? After talking about big companies, now let's talk about small companies and startups. Most product companies in Vietnam are small and medium-sized companies. In large companies like VNG, Thegioididong, Tiki, their Engineer team is just one of many other teams (sales team, marketing team) of the company. One time, a guy at TGDD said that TGDD's technical team only had about 14-20 people, very small compared to FSoft's number of several thousand. In terms of incentives and benefits, small companies are no worse than startups: Less competition, more voice: In small companies/small teams, you can easily become a "key member". At the developer level, you can decide how a function should be implemented and what functions the product needs. At a higher position, you can discuss with the team leader and make technology choices. Learn many things: In a small company, you sometimes have to interact with other departments (sales, marketing departments) to understand their requirements and how they work. This helps you have broader knowledge, understand more about the company, understand more about the product, and temporarily develop product thinking. The joy of making a product: At a product/startup company, you will feel joy when you see the function you code being used; See what you do helps others. This is what I feel when doing outsourcing (Just submit the code, the project is done, the user is not important at all) Points that are not as good as a big company However, there are a few points that you should keep in mind when Want to work at small companies: The process is not clear: many companies use Agile/Scrum in a semi-permanent manner. The process is not clear, the requirements are not clear, and they change from time to time, so it can easily frustrate developers. Having to swim on your own, taking on many roles: In a small company, especially a startup, sometimes you not only code, but also have to sit with the designer, sit with the BA and talk to the boss to understand the requirements. Although they help you learn a lot, they can also easily cause you stress. Not to mention, if the company is small and has a lot of tasks, there won't be anyone free to mentor you. Incomplete policies: Many small companies only pay taxes + insurance for you. There are no good policies like big companies (However, if the salary is high to compensate for those trivial things, it's ok) Conclusion In addition, there are a number of other things such as how the working pressure is, whether the hours are comfortable or not,... depends on the team, on the boss, not on the company! If you are lucky enough to find a good team and a good boss, even a small company is ok. On the contrary, if you get into a big company but meet a jerky team and a grumpy boss, life will be very difficult! To summarize, the company itself is big and small, there is this company and that company, within a company there is also this team and that team. Therefore, what I share is only general and for reference, not for every company or team! Hopefully this article has helped you better understand the advantages and disadvantages of large and small companies. Those of you who have been working for a long time and have a lot of experience, please share your experiences and thoughts about the companies in the comment section. P/S: To follow the article on Toi Go Coding, remember to Subscribe to our Chat Bot. Code Dao's bot will send you extremely interesting articles about soft and hard skills and industry experience every Wednesday! Rate this: Like this: Related