update ex_2

This commit is contained in:
2026-03-28 08:17:48 +07:00
parent c7ec02f5ab
commit 56d4c402e8
2 changed files with 133 additions and 97 deletions

View File

@@ -0,0 +1,9 @@
return SmartLight(id: id, name: name);
---
This is poor code naming.
you should use naming like this.
if user provides id and name: user_provided_id, user_provided_name
So I know the relationship.