nixCraft,
@nixCraft@mastodon.social avatar

No, that code is not encrypted. It is just a Perl code with lots of regexes. 🤷🏻‍♀️

PerlPlayer,
@PerlPlayer@mastodon.social avatar

@nixCraft that's art 🥰

samb,
@samb@techhub.social avatar

@nixCraft Perl, a write-only language.

mjgardner,
@mjgardner@social.sdf.org avatar

@samb @nixCraft “Real programmers can write assembly code in any language. :-) :-) :-)”

—Larry Wall https://groups.google.com/g/comp.lang.perl/c/vI7XOATieN8/m/rO2eMk58uPQJ

pjakobs,
@pjakobs@mastodon.green avatar

@nixCraft I fail to see the difference

mjgardner,
@mjgardner@social.sdf.org avatar

@pjakobs @nixCraft Today’s will likely run yesterday's badly-written Bostic-compliant* code as well as today's well-written modern code.

So in a sense, Perl fails to see the difference too. But the good news is that you can get your job done with that old code without losing sleep porting it.

pjakobs,
@pjakobs@mastodon.green avatar

@mjgardner
I honestly like perl, it's a language that makes it easy to express a thought in working code.
The challenge is, that it might be much more difficult to extract that thought from the code later on if the writer of the code was not careful to take that into account.
@nixCraft

mjgardner,
@mjgardner@social.sdf.org avatar

@pjakobs @nixCraft is explicitly designed not to prohibit bad thoughts.

“All of these [other programming languages like Lisp, Python, and Java] are ways of taking freedom away from the end user ‘for their own good.’ They’re just versions of Orwell’s Newspeak, in which it’s impossible to think bad thoughts.”

https://www.linuxjournal.com/article/3394#:~:text=All%20of%20these%20are%20ways%20of%20taking%20freedom%20away%20from%20the%20end%20user%20%E2%80%9Cfor%20their%20own%20good%E2%80%9D.%20They%27re%20just%20versions%20of%20Orwell%27s%20Newspeak%2C%20in%20which%20it%27s%20impossible%20to%20think%20bad%20thoughts

mina,
@mina@berlin.social avatar

@mjgardner

I love Larry's humour (and his ideas).

@pjakobs @nixCraft

mjgardner,
@mjgardner@social.sdf.org avatar

@mina @pjakobs @nixCraft The fundamental debate is whether a language is a tool for creativity or just a tool.

And consequently, are you a creative , or just a tool?

pjakobs,
@pjakobs@mastodon.green avatar

@mjgardner I look at it slightly different - since all my work is in open source, I consider myself as a temporary custodian of a project (whether it's one I have started or taken from other beginnings) and thus a good part of my creativity is spent on expressing my ideas such that future custodians can work with them, build on them and don't think I was a crazy madman taking to code with a pickaxe and superglue @mina @nixCraft

mina,
@mina@berlin.social avatar

@pjakobs

It is always a challenge to reuse existing code, once it surpasses a certain complexity.

I strongly believe in documentation and semantic naming. Once, I had a CTO who used to name every function, which would change something, "update", so his code was full of

o->update() [being o the reference to some object of some class].

The goodwill of the programmer makes the difference, not the language (leaving aside assembler).

@mjgardner @nixCraft

pjakobs,
@pjakobs@mastodon.green avatar

@mina that can be legti, in my current project, I need to write a frontend using javascript (😮 ) and vue, one part is that I have multiple pinia "stores" (globally available structures that in my case represent the information gathered from a backend API endpoint). The all have a "fetchData()" and a "updateData()" function that essentially do the same thing (from an application point of view) to different data substructures. @mjgardner @nixCraft

pjakobs,
@pjakobs@mastodon.green avatar

@mina I think that's in fact a strength of OOP: the object can be looked at as the noun, the exposed functions as the verbs. If I have the same verb for multiple objects, I would assume that it does essentially the same thing within the context of the object.
But I guess one can push this to a point where it does not make sense anymore.
@mjgardner @nixCraft

mjgardner,
@mjgardner@social.sdf.org avatar

@pjakobs @mina @nixCraft Noun-verb is not the only paradigm. In fact, that was not even how object-oriented was originally conceived: http://userpage.fu-berlin.de/~ram/pub/pub_jf47ht81Ht/doc_kay_oop_en

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@pjakobs @mina @nixCraft

✍️ One person composes a sonnet.

👿 Another tags a building with crude graffiti.

🖼️ A third graffitis a beautiful mural illustrating the first’s poetry.

🤟 Do we condemn a language for enabling that spectrum and synthesis?

🧑‍🎨 Or do we recognize the difference between vandalism and creation?

ology,
@ology@fosstodon.org avatar

@mjgardner @pjakobs @nixCraft Doubleplusungood!

mjgardner,
@mjgardner@social.sdf.org avatar
pat,

@nixCraft I just write my python so that 3 months later nobody on earth understands it.

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@pat @nixCraft Per PEP 387, it doesn’t take long for newer versions of Python to fail to understand it as well: https://peps.python.org/pep-0387/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • khanakhh
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • GTA5RPClips
  • cisconetworking
  • JUstTest
  • normalnudes
  • osvaldo12
  • ethstaker
  • mdbf
  • modclub
  • Durango
  • tester
  • provamag3
  • cubers
  • Leos
  • anitta
  • megavids
  • lostlight
  • All magazines