🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1030

Re: Back To CS Basics. Fuck AI

#1030
From: Stéphane CARPENTIER
Date: Sun, 18 Oct 2026 09:33
58 lines
3737 bytes
Le 17-10-2026, Richard Kettlewell <invalid@invalid.invalid> a écrit :
> Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
>> Richard Kettlewell <invalid@invalid.invalid> a écrit :
>>> Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
>>>> Like, it's not a typed language but start playing with dictionaries
>>>> without declaring your variables first to see how the claims stand
>>>> before the facts.
>>>
>>> Python is absolutely a typed language. Every object has a type and it
>>> won’t let you use objects in a manner incompatible with their type:
>>>
>>>     >>> 0+""
>>>     Traceback (most recent call last):
>>>       File "<python-input-0>", line 1, in <module>
>>>         0+""
>>>         ~^~~
>>>     TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>
>> In this case python is a strongly typed language and in other cases
>> it's not that important.
>>
>> With some typed languages, you can't use a variable if you didn't
>> declare it's type before. With python, you don't need to declare
>> integers and strings but you need to declare dictionaries. Why? Don't
>> know.
>
> No special declaration is needed for dicts, you can just write out the
> dict you want.
>
>     >>> d={'a': 1, 'b': 2}
>     >>> type(d)
>     <class 'dict'>

As John said, I'm probably confusing declaring, creating and assigning a
value to a variable. Because when I assigned an empty dictionary to a
variable, all three of them are done at the same time.

The issue wasn't about assigning a new dictionary to a variable, but
adding some values in it. Some methods didn't worked for adding values
if I didn't assign an empty dictionary or an empty list first, before
doing anything on it. 

>> With other programming languages I saw, either that works or that
>> doesn't, but I never saw something that stops working when it starts to
>> be more complex. It looks like it's a python specialty.
>
> No, I think the issue here is pretty obviously the attempt to use a tool
> without learning how it works.

I managed to do it with other programming languages. I managed to do it
with python, to. In the end, it worked. But it was more cumbersome with
python. I'm not saying that a programming language should be able to be
used without being learned. I'm saying that it's not an easier language
to use.

-- 
Si vous avez du temps Ă  perdre :
https://scarpet42.gitlab.io
Technical Details
Message-ID: <6ad49284$0$28083$426a74cc@news.free.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed2-b.proxad.net!nnrp5-1.free.fr!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com> <11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me> <11aucit$3o8ih$3@dont-email.me> <6ad34325$0$3147$426a74cc@news.free.fr> <wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk> <6ad3a65d$0$31896$426a74cc@news.free.fr> <wwv33u4t9bq.fsf@LkoBDZeT.terraraq.uk>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed2-b.proxad.net!nnrp5-1.free.fr!not-for-mail
Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy
From: Stéphane CARPENTIER <sc@fiat-linux.fr>
Subject: Re: Back To CS Basics. Fuck AI
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
 <11atgth$3e59h$1@dont-email.me>
 <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com>
 <11atlpr$3g55c$1@dont-email.me> <11au66n$3m5co$6@dont-email.me>
 <11aucit$3o8ih$3@dont-email.me> <6ad34325$0$3147$426a74cc@news.free.fr>
 <wwv33u4o26s.fsf@LkoBDZeT.terraraq.uk>
 <6ad3a65d$0$31896$426a74cc@news.free.fr>
 <wwv33u4t9bq.fsf@LkoBDZeT.terraraq.uk>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 18 Oct 2026 09:33:56 GMT
Lines: 58
Message-ID: <6ad49284$0$28083$426a74cc@news.free.fr>
NNTP-Posting-Date: 18 Oct 2026 11:33:56 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1792316036 news-3.free.fr 28083 78.201.248.7:38056
X-Complaints-To: abuse@proxad.net