• Re: Python (was TP7)

    From xqtr@21:1/111 to pokeswithastick on Saturday, February 15, 2020 09:58:08
    Sounds like Python is so flexible you could metaphorically hang yours with it. :)
    While burning down the room at the same time!

    If you want to forget how to program... learn Python :)
    Python may have some advantages, like speed on learning it and making things, but it's a "weird" language. The most weird thing about it, is that it uses spaces to define blocks of code :?

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A44 2020/02/04 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From Embalmed@21:4/166 to xqtr on Saturday, February 15, 2020 16:27:10
    things, but it's a "weird" language. The most weird thing about it, is that it uses spaces to define blocks of code :?

    And don't forget 4 spaces != a tab
    I hated that in the beginning but it really forces you to code cleanly and everyone has to use the same formatting.
    I love python :P

    |07E|10m|07b|10a|07l|10m|07e|10d |12-----------------------------------------------------
    |09Black Lodge Research BBS |11blacklodgeresearch.org:4022
    |08fsxNet: 21:4/166

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: Black Lodge Research BBS (21:4/166)
  • From tenser@21:1/101 to Embalmed on Sunday, February 16, 2020 22:47:12
    On 15 Feb 2020 at 04:27p, Embalmed pondered and said...

    things, but it's a "weird" language. The most weird thing about it, i that it uses spaces to define blocks of code :?

    And don't forget 4 spaces != a tab
    I hated that in the beginning but it really forces you to code cleanly
    and everyone has to use the same formatting.

    Everyone has to use the same formatting within a
    single source file, but there aren't a lot of
    restrictions across files. The thing about tabs
    is that, no matter the spacing chosen for a given
    file, one literal tab character is equal to some
    number of spaces, and some chuckle head will
    accidentally hit "tab" and hilarity will ensue.

    --- Mystic BBS v1.12 A44 2020/02/04 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Embalmed@21:4/166 to tenser on Sunday, February 16, 2020 03:12:23
    Everyone has to use the same formatting within a
    single source file, but there aren't a lot of
    restrictions across files. The thing about tabs
    is that, no matter the spacing chosen for a given
    file, one literal tab character is equal to some
    number of spaces, and some chuckle head will
    accidentally hit "tab" and hilarity will ensue.

    True enough. I haven't really been bitten by it in a while as we have
    settled into a common syntax amongst our team, but in the early days learning python I ran into that all the time.
    These days I always have pycharm do code reformatting anyway to better follow (most) PEP8 rules.

    |07E|10m|07b|10a|07l|10m|07e|10d |12-----------------------------------------------------
    |09Black Lodge Research BBS |11blacklodgeresearch.org:4022
    |11fsx|08Net: |0721:4/166 |11sci|08Net: |0777:1/133

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: Black Lodge Research BBS (21:4/166)
  • From StackFault@21:1/172 to Embalmed on Sunday, February 16, 2020 23:35:11
    I hated that in the beginning but it really forces you to code cleanly

    Indented code != Clean code :)

    I've seen crappy code, well indented...

    Cheers!

    |15 ß Þ |15StackFault |08<|03.|11.|15P|11h|03EN|11o|15M|11.|03.|08>
    |11 Ý ß |11The Bottomless Abyss BBS
    |03 ß Ýß |03ssh|08.|072222 |08/ |03telnet|08.|072023 |08/ |03https
    |08 ÜþÞ |08bbs|07.|08bottomlessabyss|07.|08net

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: The Bottomless Abyss BBS * bbs.bottomlessabyss.net (21:1/172)