AstonJ

AstonJ

Phil just posted this on EFS:

…interesting that some of the key updates to JavaScript appear heavily influenced by (or blatantly copied from) Elixir

Here are some blog posts about it:

https://medium.com/@alexdev82/whats-new-in-javascript-es2025-f9e99d04f45c

Showing Posts 65 to 56

lud

lud

Alright, thank you! :slight_smile:

(Yeah sometimes I want to keep an alias like MyApp.Schemas and then use Schemas.Foo, Schemas.Bar but Quokka doesn’t respect that :smiley: )

dimitarvp

dimitarvp

I like Quokka a lot but i found it difficult to configure it on what to alias and not alias. Eventually succeeded but it was annoying.

Still, I very much dig the idea to reuse Credo rules as formatting policies and I have zero complaints. I got a bit of a cold feet back then because the work codebase I was about to apply it to would have an even bigger diff (that was already quite huge) so I turned off sorting of map & struct keys.

But outside of my complaint about aliasing – something I could never configure 100% how I would prefer btw – then it’s working amazing and I’d recommend Quokka to anyone.

lud

lud

Hey!

A slightly out of topic question (we can always split), but how do you like Quokka?
I’m hesitating to introduce it into my personal projects because while you can disable stuff, there are many things that seem to be enforced by default and not configurable. It seems to me that once you change your style to adhere to that it would be a hassle to revert.

But on the other hand I’m a heavy credo user so it seems it could make my life simpler. Do you recommend it to any team or is there some cases where you would not use it?

It could really help to have a “git touched files only mode” (which I guess I can script easily).

garrison

garrison

Try not to take my paraphrasing out of context there. The line referencing taste is essentially identical in spirit to what you wrote just minutes before:

Splitting code into functions requires taste.

How do you decide what is “too long”? That is taste! As you can probably tell I prefer to phrase this as “requires skill”, but I think the taste phrasing is entirely acceptable. Of course, bikeshedding about phrasing is very on-point for this discussion in a meta sense! :slight_smile:

For the record, I have read large swaths of their codebase and all of their internals docs. They have excellent engineering practices and I am very impressed. And despite being an extremely complex, tightly optimized distributed database I find their code entirely understandable (and I don’t even know Zig), so I think it’s working.

dimitarvp

dimitarvp

Thank you for being so generous and kind but in my case I was just kind of an insufferable individualist during that period. I am not hiding from it. Knew it even back then and wanted to change it. I think I mostly succeeded.

sodapopcan

sodapopcan

I don’t know your full experience but a lot of people don’t like it because they are thrown into it with no guidance. I worked at a full-on XP and paired every day for 2.5 years and it’s been the highlight of my career. Of course there were other factors like I lucked out in being placed on a particularly good team where everyone just gelled, but it definitely had an impact because a few people left during that time and the general vibe stayed the same.

We did the more “hardcore” way of one person had to switch off every day, so if a story took three days, the two people who started it weren’t the same two people who finished it. The whole “Jimmy is the only person has any context on that part of the code” wasn’t a thing. Any given corner of the codebase had at least three people who pretty intimately familiar with it. It was great!

dimitarvp

dimitarvp

False dichotomy, why not humble geniuses? :wink: But we started severely digressing. Sorry.

tfwright

tfwright

Having worked with both pretentious pricks and people who seem annoyed at even being asked to care, I’ll take the pretension every time (partially because being pretty pretentious myself I try to forgive it in others).

dimitarvp

dimitarvp

That’s why I like the article.

Or they are genius but are pretentious pricks. :003:

tfwright

tfwright

I certainly agree this is sort of an unfortunate example because the writing here is kind of, a bit much. But if you read the actual principles they follow you can see they are only really trying to enforce some only moderately strict rules, honestly, a lot of which can be quantified. I do agree with @garrison that it’s sad that the general state of development is so poor that having principles at all beyond mere formatting rules is something that is worth bragging about. Although I have my own ideas about the reason for that which have little or nothing to do with the opinions of individual developers or even teams.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews