Very interesting article!
Above mentioned platforms are best to create a multi-vendor site. Here I would like to suggest you to add YoRent in this list. It's a popular multi-vendor eCommerce platform that enables entrepreneurs to launch an online rental marketplace. YoRent multi-vendor system allow users to build a feature rich website where vendors can sell & rent their products.
voidmain()async{var dir =awaitDirectory('bin/user/document').create(recursive:true);// tạo foldervar file =File('${dir.path}/myfile.txt');// tạo file từ folder ở trênawait file.writeAsString('hello world!!');// ghi nội dung vào file, hàm này là bất đồng bộ nên tốt nhất đợi nó ghi xong rồi mới đọc filevar content =await file.readAsString();// đọc nội dung fileprint(content);// hello world!!}
Bài viết khá chi tiết nhưng mình nghĩ vẫn có thể giải quyết bằng các công nghệ đơn giản hơn. Bạn có thể tham khảo Postgres làm DB, Hasura làm GraphQL Engine . Sau đó dùng GraphQL Subcription để làm ứng dụng realtime đơn giản hơn khá nhiều.
if (...) {
for(var i = 0; i < someArray.length; i++) {
var isValid = hasValid(someVar[i]);
if (!isValid) {
toBeDeleted.push(someVar[i]);
}
}
}
else {
var service = initSomeService();
service.doSomeStuff();
if (service.someCondition != null) {
service.scheduleNextTask();
}
}
có thể viết lại thành
var isCondition = (...)
if (isCondition ) {
for(var i = 0; i < someArray.length; i++) {
var isValid = hasValid(someVar[i]);
if (!isValid) {
toBeDeleted.push(someVar[i]);
}
}
}
if(!isCondition) {
var service = initSomeService();
service.doSomeStuff();
if (service.someCondition != null) {
service.scheduleNextTask();
}
}
Tốt nhất là chỗ nào if else lồng nhau nhiều, xử lý nhiều, dài nên tạo ra hàm riêng ở ngoài.
Nếu xử lý logic nghiệp vụ quá phức tạp đến mức tạo sub method vẫn nhìn ngứa mắt thì nên comment lại những block đó, sau này 1, 2 tháng sau quay lại bạn hoặc người khác sẽ k tự chửi thề mình.
Nếu dùng return như bạn chủ thread nói thì cần phải cân nhắc về thứ tự xử lý khi return để tránh xảy ra việc còn xử lý cần làm nhưng đoạn code lại return mất từ trước.
Hello! My name is Etel. I work on Community at Prisma. Thanks so much for translating this DigitalOcean article about Prisma into Vietnamese. It's great when these articles can get a wider audience through translations!
We at Prisma really appreciate your work and wanted to offer our thanks and also offer some swag as a thank you. If that's something you might be interested in, feel free to shoot me an email sverdlov [at] prisma [dot] io
nhiều kiến thức lạ chưa thấy bh nhưng chưa có dịp đáng buồn nên đọc mang tính chất giải tỏa tò mò là chính đề nghị anh làm 1 loạt series tâm sự ngày thường và cuộc sống bên sing
THẢO LUẬN
Anh update lại rồi
Hi Naveen,
Very interesting article! Above mentioned platforms are best to create a multi-vendor site. Here I would like to suggest you to add YoRent in this list. It's a popular multi-vendor eCommerce platform that enables entrepreneurs to launch an online rental marketplace. YoRent multi-vendor system allow users to build a feature rich website where vendors can sell & rent their products.
A ơi sửa lại link đi ạ, những link đầu bài đều không vào được
cái này ngoài khả năng của mình rồi bạn. Bạn nên vào các group Flutter để trao đổi nhé: https://www.facebook.com/groups/fluttervietnam
Đây bạn: bỏ code vào cặp dấu ```
Cái 1 e thấy dùng border-radius: calc(100vh/2) vẫn được a nè
)
với Laravel thì mình nghĩ Laravel Echo vẫn là cách mn thường dùng nhất bạn à
quá đẹp
Bài viết khá chi tiết nhưng mình nghĩ vẫn có thể giải quyết bằng các công nghệ đơn giản hơn. Bạn có thể tham khảo Postgres làm DB, Hasura làm GraphQL Engine . Sau đó dùng GraphQL Subcription để làm ứng dụng realtime đơn giản hơn khá nhiều.
Xin cảm ơn rất nhiều ạ (love) (love)
Bài viết hay quá ạ

thì toàn bộ method viết bằng php mà, có hàm nào chạy bằng js đâu, buộc phải request lên server, dù chỉ là chức năng đơn giản như i++
(thankyou)
bài viết rất hữu ích, thanks bạn
có thể viết lại thành
Tốt nhất là chỗ nào if else lồng nhau nhiều, xử lý nhiều, dài nên tạo ra hàm riêng ở ngoài.
Nếu xử lý logic nghiệp vụ quá phức tạp đến mức tạo sub method vẫn nhìn ngứa mắt thì nên comment lại những block đó, sau này 1, 2 tháng sau quay lại bạn hoặc người khác sẽ k tự chửi thề mình.
Nếu dùng return như bạn chủ thread nói thì cần phải cân nhắc về thứ tự xử lý khi return để tránh xảy ra việc còn xử lý cần làm nhưng đoạn code lại return mất từ trước.
Trên đây là 1 số kinh nghiệm của mình.
Cảm ơn anh. Bài dịch hay quá ạ



Hello! My name is Etel. I work on Community at Prisma. Thanks so much for translating this DigitalOcean article about Prisma into Vietnamese. It's great when these articles can get a wider audience through translations!
We at Prisma really appreciate your work and wanted to offer our thanks and also offer some swag as a thank you. If that's something you might be interested in, feel free to shoot me an email sverdlov [at] prisma [dot] io
cuộc sống bên này thì ko cần tới cả series đâu e, 1 bài là đủ, cũng là ý hay, hôm tới rảnh a sẽ thử viết về cái này xem sao
nhiều kiến thức lạ chưa thấy bh nhưng chưa có dịp đáng buồn nên đọc mang tính chất giải tỏa tò mò là chính
đề nghị anh làm 1 loạt series tâm sự ngày thường và cuộc sống bên sing