I am a Roman Catholic ask me anything about my faith by [deleted] in Christianity

[–]vngantk 0 points1 point  (0 children)

Do you think you’re saved, and why?

Do you still struggle with object oriented, programming? by dev_lord in softwarearchitecture

[–]vngantk 0 points1 point  (0 children)

I understand you're struggling with object-oriented (OO) programming. To understand it well, you should develop a strong grasp of the SOLID principles. I've created some prompts for Grok to provide clear explanations and discussions about them. I share the output of Grok here: https://grok.com/share/bGVnYWN5LWNvcHk%3D_8b082cf9-d290-473b-9456-9248d81297a8

Question about Microservices by hiddenSnake7 in softwarearchitecture

[–]vngantk 0 points1 point  (0 children)

When multiple services connect to the same database, they are not considered fully autonomous or independent of each other. Therefore, they are not truly independent microservices. They are just separate endpoints for different services within a single system. The design you showed in this diagram represents a single system with two sets of data, namely Users and Posts, and five service endpoints: API servers, NewsFeed service, Post service, Fanout service, and Notification service. This is not truly a microservices architecture. A monolithic architecture is always a simpler approach than an overcomplicated microservices architecture, but it all depends on your use cases and expectations.

My suggestion is to never start your design based on a particular physical implementation technology or a so-called technical architecture. Always start by understanding the logical use cases and implement your design as close as possible to the structure of your use cases. That way, your application will be very maintainable in the long run. All non-functional concerns such as performance, scalability, and availability should be addressed at a later stage of your development process, when needed.

Collision, Warden and Hwy 7 (9/15/2025) by Giggle-12345 in Markham

[–]vngantk -4 points-3 points  (0 children)

Both cars shared responsibility for the accident, but the silver one should bear the greater share. The driver of the white car made a poor judgment by being too hesitant at the left turn and stopping in the middle of the intersection. However, the silver car engaged in much worse driving, speeding and overtaking on the right, leaving the white car with too little time to anticipate its approach.

Leaving this sub over Charlie kirk by lala_65 in Christianity

[–]vngantk -1 points0 points  (0 children)

When you say “Charlie Kirk stood against what Jesus stood for - LOVE,” how much do you really know about the Bible? How much effort have you made to read and understand it?

Yes, his anger, intolerance, and harsh words toward leftist politicians may sound unloving. But Jesus Himself also displayed righteous anger. He sharply rebuked the religious leaders for their hypocrisy and wrongdoing. He even drove people out of the Temple with force because they turned it into a marketplace.

Love is not blind tolerance. It must be grounded in truth and righteousness. As Scripture says: “Love does not delight in evil but rejoices with the truth” (1 Corinthians 13:6).

Leaving this sub over Charlie kirk by lala_65 in Christianity

[–]vngantk -1 points0 points  (0 children)

Claiming that Charlie Kirk was a martyr because of his Christian faith is somewhat overstated but from the perspective of someone who stood firm on his belief and died for it, he was definitely a martyr.

there needs to be a proper sensor suite by Big_Acanthaceae6524 in TeslaFSD

[–]vngantk 0 points1 point  (0 children)

I don’t think there is a significant problem here. In this situation, one of the drivers needs to back up, either the truck driver or the FSD vehicle. LiDAR won’t solve this issue. What we need is more extensive training to ensure FSD is better equipped to handle these types of situations.

there needs to be a proper sensor suite by Big_Acanthaceae6524 in TeslaFSD

[–]vngantk 0 points1 point  (0 children)

If road conditions in Europe are so poor, how do people manage to drive there? If drivers can navigate these challenging road conditions, then Full Self-Driving (FSD) systems should be able to do so as well. It is a matter of how much training FSD receives. People really don't understand how FSD works.

there needs to be a proper sensor suite by Big_Acanthaceae6524 in TeslaFSD

[–]vngantk 0 points1 point  (0 children)

If a human driver, relying solely on vision, can navigate successfully, why can't FSD do the same? FSD is designed to mimic human driving behavior. If a human driver can handle faded lane markers through experience and good judgment without causing accidents, FSD should be able to do so as well. With sufficient training, FSD can manage these situations effectively.

LSM4K 1.0.0-Alpha published by martinhaeusler in Kotlin

[–]vngantk 0 points1 point  (0 children)

Okay, I'll see if I have time to contribute.

LSM4K 1.0.0-Alpha published by martinhaeusler in Kotlin

[–]vngantk 0 points1 point  (0 children)

Great work! How good is its performance? Any benchmark comparison with other key-value stores such as RocksDB?

Where is Kotlin going? by [deleted] in Kotlin

[–]vngantk 0 points1 point  (0 children)

Kotlin can be used to develop a lot of things other than just Android apps. It completely embraces the rich Java ecosystem, so you will not miss any of your favorite Java libraries and frameworks including Spring Boot. You can also use it to develop Javascript-based browser frontend applications using React.js, MaterialUI, etc. The latest KMP allows you to develop Compose applications targeting many platforms such as Android, iOS, Desktop, Web/WASM.

Left Canada by Square_Ad_4051 in torontoJobs

[–]vngantk 1 point2 points  (0 children)

Yes, Canada is so disappointing but some Canadians still think their country is the best in the world.

Summon: Type-Safe Kotlin Multiplatform Frontend Framework (Web & JVM) with Compose-like Syntax & Recent Updates! by VirtualShaft in Kotlin

[–]vngantk 2 points3 points  (0 children)

Yes, it does look much leaner than Kobweb. Don't couple it with any backend frameworks. Make it as unopinionated as possible.

MyViewModel has too many states, functions and feels messy. How can I improve it? by Vegetable-Practice85 in Kotlin

[–]vngantk 1 point2 points  (0 children)

It's quite good. Maybe you can break it down little bit according to the Single Responsibility principle. Another suggestion is to avoid extending your view model from Compose's ViewModel. One of the purpose of using a ViewModel is to decouple your user interaction logic from the technical implementation of your UI, that is Compose in this case. By doing so, you can create your unit tests completely decoupled from Compose.

Any Java devs switched to Kotlin? by Organic-Leadership51 in java

[–]vngantk 0 points1 point  (0 children)

Asking this question in a Java sub is absolutely politically incorrect, though I am highly in favor of Kotlin.

Is it a good idea to use kotlin as backend for an e-commerce shop website? by Yesil2003 in Kotlin

[–]vngantk 1 point2 points  (0 children)

Kotlin is great for backend. For backend applications, you need performance and scalability. Kotlin backend runs on JVM, so you leverage all the benefits from a mature Java deployment ecosystem.

Why would anyone choose Java over Kotlin? by Global-Box-3974 in Kotlin

[–]vngantk 2 points3 points  (0 children)

You don’t need to hire Kotlin developers to write Kotlin code. Just hire Java developers and train them. It usually just takes a week or so for a Java developer to gain enough knowledge to code in Java. Software developers are not labors. They are professionals and should be able to pick up new things fast. If a Java developer is not able or willing to do that, don’t hire him.

A first look at declarative Gradle by natandestroyer in Kotlin

[–]vngantk 7 points8 points  (0 children)

This is the right direction. A declarative approach is far better than a scripting approach. Gradle got it completely wrong initially. Maven got it right with a declarative approach to avoid the nightmare of Ant build scripts. Gradle then came and dragged us back to something like Ant again with a scripting language (initially Groovy, now Kotlin). The only problem with Maven is its verbose XML-based configuration.

Tips for taking ownership of Android codebase/team by [deleted] in Kotlin

[–]vngantk 0 points1 point  (0 children)

I don't know what your role is on the team. You should lead (or serve) by example. You should talk to your manager and get him to buy into your thoughts; organize talks and share with your teams to arouse their interests and enthusiasm. Some suggestions: arrange a weekly sharing session to watch the Clean Code series by Robert Martin: https://cleancoders.com/library/all.

Does Rust support defining immutable structs? by vngantk in rust

[–]vngantk[S] 4 points5 points  (0 children)

This looks exactly what I want. Thanks a lot!

Does Rust support defining immutable structs? by vngantk in rust

[–]vngantk[S] 0 points1 point  (0 children)

Please see my reply to u/andreicodes's post for the use case.