Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Conscience doth make cowards of us all. -- Shakespeare


comp / comp.lang.tcl / Re: Looking for OOP ideas

SubjectAuthor
* Looking for OOP ideasLuc
`* Re: Looking for OOP ideasRalf Fassel
 `* Re: Looking for OOP ideasLuc
  `* Re: Looking for OOP ideaset99
   `- Re: Looking for OOP ideasLuc

1
Subject: Looking for OOP ideas
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 25 Sep 2024 19:59 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Looking for OOP ideas
Date: Wed, 25 Sep 2024 16:59:56 -0300
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20240925165956.10122029@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 Sep 2024 21:59:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4ff023fcdb8adc874e18eb4a8b17abff";
logging-data="4012684"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18azHcBQSYTb+cEd/JgUdy1EvuBCVQK4Co="
Cancel-Lock: sha1:qjY6LFvwYLyACUtMNgpfAFUTYpg=
View all headers

Here I am again. I still haven't learned OOP and have been feeling
like trying again. What I ask of you this time is ideas for practicing.
It's hard for me to come up with them because I am not sufficiently
familiar with OOP. I would like you to suggest some kind of project
I can tackle to practice as much OOP as possible. It doesn't have to be
anything really useful or practical. The goal is not to make any kind
of application, but rather just practice OOP. I would like something
that requires a lot of repetition, something that forces me to toy
with typical OOP mechanisms over and over. I think I will prefer
using Snit, but I am not really sure.

Thank you for any ideas.

--
Luc
>>

Subject: Re: Looking for OOP ideas
From: Ralf Fassel
Newsgroups: comp.lang.tcl
Date: Thu, 26 Sep 2024 09:24 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: Looking for OOP ideas
Date: Thu, 26 Sep 2024 11:24:30 +0200
Lines: 25
Message-ID: <yga7cayhinl.fsf@akutech.de>
References: <20240925165956.10122029@lud1.home>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net gDQUpDqaciixsUyzLPRdjwbXDN1c1rcfSGa4/Z+1xUpqU/rEw=
Cancel-Lock: sha1:Bg8LCGFaXsLepfO0f71gua1xIdE= sha1:BPHl/8lenNfCMLHSXOmCkbR3/xc= sha256:OYToG3E26TO9EKYmtymtvLMAoby4+dTBELD3jDLeMuw=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
View all headers

* Luc <luc@sep.invalid>
| Here I am again. I still haven't learned OOP and have been feeling
| like trying again. What I ask of you this time is ideas for practicing.
| It's hard for me to come up with them because I am not sufficiently
| familiar with OOP. I would like you to suggest some kind of project
| I can tackle to practice as much OOP as possible. It doesn't have to be
| anything really useful or practical. The goal is not to make any kind
| of application, but rather just practice OOP.

https://www.amazon.de/Object-Oriented-Programming-Dummies-Clement-Shammas/dp/1568843321

?

I haven't read that myself, but I consider the "for Dummies" series
being helpful most of the times.

| I would like something that requires a lot of repetition, something
| that forces me to toy with typical OOP mechanisms over and over. I
| think I will prefer using Snit, but I am not really sure.

Using snit will add more of the "nothing-to-do-with-oop" hurdles, so I
would recommend to only go there later when you are familiar with the
basic concepts of OOP.

R'

Subject: Re: Looking for OOP ideas
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Thu, 26 Sep 2024 13:17 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Looking for OOP ideas
Date: Thu, 26 Sep 2024 10:17:16 -0300
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240926101716.763c3cc8@lud1.home>
References: <20240925165956.10122029@lud1.home>
<yga7cayhinl.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 Sep 2024 15:17:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="eff6bb106ce815794a174e10665da8da";
logging-data="219794"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bO7oLkUnWmkDrNnMNwBO6WI3SFSEIetQ="
Cancel-Lock: sha1:ZUEda/9cO/ioocNLR6+mes96jCU=
View all headers

On Thu, 26 Sep 2024 11:24:30 +0200, Ralf Fassel wrote:

>https://www.amazon.de/Object-Oriented-Programming-Dummies-Clement-Shammas/dp/1568843321
>I haven't read that myself, but I consider the "for Dummies" series
>being helpful most of the times.

>Using snit will add more of the "nothing-to-do-with-oop" hurdles, so I
>would recommend to only go there later when you are familiar with the
>basic concepts of OOP.

I already know the most basic concepts of OOP. I would rather focus on
Tcl implementations only now.

I just want some ideas to practice. Someone who is used to OOP should be
able to suggest something interesting.

--
Luc
>>

Subject: Re: Looking for OOP ideas
From: et99
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Thu, 26 Sep 2024 18:43 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: Looking for OOP ideas
Date: Thu, 26 Sep 2024 11:43:34 -0700
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <vd4a0m$b42j$1@dont-email.me>
References: <20240925165956.10122029@lud1.home> <yga7cayhinl.fsf@akutech.de>
<20240926101716.763c3cc8@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 Sep 2024 20:43:35 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bea3d11414600bbbad024bf777a8dbf3";
logging-data="364627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vcZM+/pw0P6KpfoOrN7Nq"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:u3IXyjd+12oGdu77nQSKzVEfqNA=
In-Reply-To: <20240926101716.763c3cc8@lud1.home>
Content-Language: en-US
View all headers

On 9/26/2024 6:17 AM, Luc wrote:
> On Thu, 26 Sep 2024 11:24:30 +0200, Ralf Fassel wrote:
>
>> https://www.amazon.de/Object-Oriented-Programming-Dummies-Clement-Shammas/dp/1568843321
>> I haven't read that myself, but I consider the "for Dummies" series
>> being helpful most of the times.
>
>> Using snit will add more of the "nothing-to-do-with-oop" hurdles, so I
>> would recommend to only go there later when you are familiar with the
>> basic concepts of OOP.
>
>
> I already know the most basic concepts of OOP. I would rather focus on
> Tcl implementations only now.
>
> I just want some ideas to practice. Someone who is used to OOP should be
> able to suggest something interesting.
>

I believe the best way to learn a new tool, such as a new programming language, is to think of something real rather than just write throwaway code using the new tool.

In your case, I would suggest that you create an object for the search you asked about in your earlier posting.

You might even have your object work with both in memory and a sqlite representation that you mentioned, where the latter might persist across program runs. You could use the object to hide the actual representation and have methods for lookup, load, add, etc. The constructor might be where you could choose the implementation type and provide any extra details, such as a file name.

As to snit, it was great when it was one of the only OO tools in TCL. Although the current tclOO says that its design is intended to be a platform for building OO systems, I think the future will see tclOO as simply tcl's OO system all by itself. Having to learn multiple OO systems would be a burden on any future programmers, IMHO.

e

Subject: Re: Looking for OOP ideas
From: Luc
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 27 Sep 2024 02:32 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Looking for OOP ideas
Date: Thu, 26 Sep 2024 23:32:21 -0300
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <20240926233221.75e5e0e1@lud1.home>
References: <20240925165956.10122029@lud1.home>
<yga7cayhinl.fsf@akutech.de>
<20240926101716.763c3cc8@lud1.home>
<vd4a0m$b42j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Sep 2024 04:32:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e7b51491f24ca7095b7116c0e7352966";
logging-data="600728"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q9zVAQBXZyOD8HrXbKAq9Y2me4b7A4bU="
Cancel-Lock: sha1:dKxrrqsCmv1VY5FCvAwCRHUtiV4=
View all headers

On Thu, 26 Sep 2024 11:43:34 -0700, et99 wrote:

>I believe the best way to learn a new tool, such as a new programming
>language, is to think of something real rather than just write throwaway
>code using the new tool.

I see your point, but as a former teacher and a chronically self-taught
individual, I beg to disagree. I am an expert on my own learning since
I've been using this one brain for decades and have learned a lot with it.
I know what it needs. It needs strong focus on mechanisms.

(That's one of the reasons why I dislike cramming a lot of non-dynamic
data during the learning of a mechanism, and that's not just me, it's
a common choice in teaching methodology.)

In other words, I need something I can toy with idly from time to time
until the whole concept becomes second nature.

>In your case, I would suggest that you create an object for the search you
>asked about in your earlier posting.

Not what I expected, but a good idea. Makes me have another idea that
might work.

>As to snit, it was great when it was one of the only OO tools in TCL.
>Although the current tclOO says that its design is intended to be a
>platform for building OO systems, I think the future will see tclOO as
>simply tcl's OO system all by itself. Having to learn multiple OO systems
>would be a burden on any future programmers, IMHO.

An interesting point of view and I had never seen anybody express that
opinion before. Again, I am glad I asked. I am glad this point of view
came up.

Thank you.

--
Luc
>>

1

rocksolid light 0.9.8
clearnet tor