Learn something new every day.
- I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
Learn something new every day.
- I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
Any reason why you changed
priceto_pricein your "Right" code version?Some people like to prefix private variables with an underscore but yours is
public. π€My code is generated by Copilot.
It changed it.
I am fine with both conventions
I see. I would have marked it as
privatein the βwrongβ version to begin with. Otherwise having a getter on a public property is unnecessary.you are right, I'll change it to private
Change it in the "Right" version and it's all good!