Re: My First Ever OOP code

Wolfgang Dann <[email protected]> Tue, 06 Jan 2026 12:49:33 +0100
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>
Am Montag, dem 05.01.2026 um 19:46 -0700 schrieb Duke Normandin:
> See it here:=C2=A0 https://controlc.com/a19d683a
>=20
> Critiques please!
>=20
> My first impression(s) is that it seems a lot more complicated to
> create the OOP logic to get things done than it is in C, e.g. IMHO
>=20
> Maybe it's because I'm not familiar with the syntax yet. But I got
> it done - thanks to Divine Intervention - I'm sure!! LOL

For me it looks like you don't get the paradigm of smalltalk.
Unlike C, Smalltalk has a certain paradigm to program in.
For your example, you should maybe first think about at what
kind of objects you want to measure the temperature.
And then you create a versatile object with temperature as property or
feature. And then this object can answer it's temperature to you on the
screen, in Fahrenheit or Celsius.
For a good joke the private temperature could be in kelvin. :-)

HTH