Conversation

Lucy [hiatus era] 𒌋𒁯

time to fork zig trollInsane
4
0
3
it's not that much actually (famous last word)
just editing some enums really
0
0
2
@zvava integrate my multi-threading api + make it understand my os tag for future additions
0
0
1
@lucy for tabs as indentation?
1
1
3
@snacks im going to gauge out your eyeballs
2
0
4
@lucy someone doesn't like tabs
0
0
1
@lucy @snacks literally just configured the fmt on new project to use tabs kuromi_evil
1
0
3
@lucy @snacks i like them
i also dislike semicolons what do you think aobut that
2
0
0
@Paulajak @snacks i feel indifferent about them. what i hate is a language enforcing to use a specific coding style.
like, if an if (that) { do } fits in a single line, why tf would i use multiple lines and indentation? it makes code less readible in some cases. i don't want a language to enforce style obsessions
2
0
1
@lucy @Paulajak @snacks braces are also an enforced style (of a different kind)
you can freely do
if cond: func()
in snakelang if you want to
1
0
2
@eal @Paulajak @snacks python still has not i++ does it lol
2
0
0
@eal @Paulajak @snacks paula what's your opinion on that
0
0
0
@lucy @Paulajak @snacks python has many warts but that particular one not
1
0
0
@Paulajak @lucy there's languages that don't even have statements, it's mostly an artifact of rigid syntax ig
1
0
0
@eal @Paulajak @snacks jokes aside i can live with indentation i just don't like it. what really bugs me is how you gotta declare globals to be globals.
0
0
2
@snacks @Paulajak it makes tokenizing statement based syntax easier
2
0
1
@snacks @Paulajak but then it can as well be optional, if you consider linebreaks to do the same. but then the code is mixed ; and non-; which is messy to read.
0
0
0
@lucy @Paulajak i am aware, i just wanted to mention that statements aren't neccessary for a pl in the first place wich would make semicolons or not moot
1
0
1
@snacks @Paulajak can you give me an example of a good pl language without statements? (except lisps)
1
0
0
@lucy @Paulajak haskell, anything stack based, idk if you'd consider unix shell a good language
1
0
0
@snacks @Paulajak haskell is bad, stack machines are demonic, unix shell is the final boss of hell
1
0
0
@lucy @Paulajak statements are made by people who can't think of any syntax that isn't assembly
1
0
1
@snacks @Paulajak i like assembly
1
0
1
@snacks @Paulajak except at&t fuck that shit
0
0
1
@lucy @Paulajak @snacks I throw up in my mouth a little every time I write Golang
1
0
2
@scathach @Paulajak @snacks golang is lowkey the best option if you're stuck doing webshit for whatever reason lainstress
2
0
1
@lucy @Paulajak @snacks Common Lisp is by far the best language I've used for webshittery

Elixir looks pretty good too but I haven't used it much
1
0
1
@scathach @Paulajak @snacks i don't like elixir because it's syntax is cluttered
3
0
1
@lucy @Paulajak @snacks Trying to do a Lisp without sexps 🤢
1
0
0
@lucy @Paulajak @snacks @scathach Perl is honestly the best for web imo. Sure, some niche applications will want something like Elixir maybe or Go, but for 99% of web applications, Perl with Mojolicious is insanely capable, fast to iterate on and deploy (especially with AI pair programming), and generally pretty robust.
1
0
1
@arcana @Paulajak @lucy @snacks >dynamically typed but with syntax is so complicated that linting it is NP-hard

I like mojolicious for small scripts but for anything over like 100 lines Perl is a hard and emphatic no
1
0
3
@scathach @Paulajak @lucy @snacks It's perfectly fine for most projects as stated, and gets MVPs up in no time. The vast majority of web applications do not require more than that, and the rapid iteration time is the selling point.

It's something it took me until my 30s to really get, but far too many people when they're young programmers try to over-engineer everything and I speak from great experience, it's a massive mistake. Save that energy for where it's actually needed.
3
0
1
@scathach @Paulajak @lucy @snacks Though Perl::Critic is excellent imo, and Perl has a very strong testing culture and a lot of very good testing tools. I've found these to be more than sufficient in building systems that processed millions of USD worth of transactions everyday.
1
0
0
@arcana @Paulajak @lucy @snacks Common Lisp lets you iterate much faster, has better performance on account of being natively compiled, has better type safety, and has a more expressive object system that you can grow into as-needed

The only thing Perl does better than CL is text munging – which I can't lie it's *very* good at
1
0
0
@arcana @Paulajak @lucy @snacks COBOL processes trillions of USD but that doesn't mean it's a good language for building anything in

Perl has its strong points and you *can* do basically anything with it but that isn't the same as it being a good fit for those things. Better than JS and PHP but that's a dismally low bar
1
0
1
@scathach @Paulajak @lucy @snacks A lot of web applications process quite a lot of text. That application I mentioned had to process million line multi delimiter CSVs every day so the text processing made it top class. I'm not denying CL can be very good, and PG certainly speaks very favourably of it.

I think there could be other comparisons in favour of Perl, and vice versa depending on the use case, but if you get a working site up in 6 hours for an SME, then it does the job imo
1
0
0
@arcana @Paulajak @lucy @scathach in my experience that attitude ends with spending most of your time spent fixing basic bugs and constantly reimplementing everything for small additions before you even release
1
0
0
@snacks @Paulajak @lucy @scathach In my experience it's the opposite. Quick iteration leads to a product that actually deploys, the opposite leads to an unfinished repo 10 years later that the creator never actually finished.
0
0
0
@scathach @Paulajak @lucy @snacks I think this could be a genuine debate for a long time, but ultimately I think that would be pointless. Use what you think is best for the task and what achieves the goals you're aiming for.

I've been on both ends of the spectrum and just speak from my experience with that. I wasted far too many years of my life trying to be a perfectionist.
0
0
0
@arcana @Paulajak @lucy @snacks That's not a text munging problem, that's a streaming CSV parser library problem

Doing that kind of text munging within the business logic of your app is setting yourself up for a world of pain down the road
1
0
0
@scathach @Paulajak @lucy @snacks Oh that was separate to the app itself, it was a daily cronjob that connected to an FTP server where it gathered the data and then parsed it into a Postgres Database for the actual app to use.

It did a lot of text munging too, but the CSV aspect was honestly very simple, though there were a lot of things that needed to be escaped, checked for, etc.
0
0
1
@lucy @Paulajak @snacks @scathach same for most FP languages tbh
0
0
1