lucasvegi

lucasvegi

Hello everyone, how are you?

I believe many of you may know me from the research I conducted on code smells/anti-patterns for Elixir, which was partially incorporated into the official Elixir documentation.

Currently, my Ph.D. advisor and I are investigating refactoring strategies for Elixir and cataloging them. For this reason, we need your help to identify which refactorings are most frequently performed in your Elixir systems and which ones bring positive impacts on maintainability, comprehensibility, and evolution of your Elixir code.

If you are interested in the quality of your code, could you please help us by answering this survey on refactorings? (it should take 20 minutes)(https://lucasvegi.github.io/Elixir-Refactorings/)

Thank you!

banner-tweet

Note: The complete catalog consists of 82 different refactoring strategies. However, each participant will be asked to respond to only a small portion of it, randomly selected. If you are interested in exploring all the refactorings, access the complete catalog.

Showing Posts 1 to 6

lucasvegi

lucasvegi OP

Thanks, @josevalim! I really do appreciate you having pinned the post!

DaAnalyst

DaAnalyst

Done.

Btw. re [Struct field access elimination] see:

https://github.com/DaTrader/extructure

mat-hek

mat-hek

Membrane Core Team

I’m confused about the meaning of the ‘relevance’ metric in the survey. For example, consider this question:

[ Transform a body-recursive function to a tail-recursive**]**.
This refactoring aims to convert a body-recursive function into a tail-recursive one, thus improving runtime performance due to the tail-call optimization provided by BEAM. More details and code examples here: [LINK]

I believe that the relevance of this very much depends on the particular function (does making it tail-recursive decrease readability and how much?) and, most importantly, on the expected input (do we expect infinite recursion and having a memory leak, or do we expect at most 10 stack frames to be kept at any time?). What should be my answer to this?

lucasvegi

lucasvegi OP

Hello, I understand your question. In fact, the relevance of a refactoring may depend on the application scenario, as you said.

I recommend that answers are always based on the worst case that the developer has experienced or is aware of someone having experienced. In this specific refactoring, as you said, it could be an infinite recursion, memory leak, etc.

In short, think something like this: “In general, can this bring me more advantages or not?”… The more advantage, the closer to 5.

lucasvegi

lucasvegi OP

For those who haven’t answered our survey yet, professor @adolfont made a short video showing our survey inside and how easy it is to answer it!

lucasvegi

lucasvegi OP

I would like to thank the great number of devs who have already participated in our survey. For those who have NOT yet participated and are interested, we will collect responses until April 3rd at 11:59 PM (UTC-3).

— All posts loaded —

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 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
nseaSeb
AcmeScript — Writing JS hooks as if I were still using Elixir I’ve been having fun building a little something over the last few days: Ac...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New

Other Trending Topics Top

jola
Wrote about how to safely run a globally unique process in an Elixir cluster, and a scary story from the past! Learn about :global for r...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
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