IntelliJ Elixir v7.1.0
Enhancements
-
Elixir Facet in Small IDEs
- Preferences > Languages & Frameworks > Elixir can set the Elixir Facet SDK for the Project Module used in Small IDEs as a per-project settings.
- Preferences > Languages & Frameworks > Elixir> SDKs can add, delete, and configure Elixir SDKs as per-application settings.
- Preferences > Languages * Frameworks > Elixir > Internal SDKs can add, delete, and configure Erlang SDK for Elixir SDKs as per-application settings.
-
Configure SDK before running
mixwhen importing mix projects, so that themixpath does not need to be configured separately from the SDK path.-
The
mixpath no longer needs to be setup independently from the Elixir SDK.
-
The
-
Add Local shared
credoinspection, so the thecredoinspection works for Code > Code Cleanup.-
Show Mix ExUnit in context menu in Elixir Facets, so that
- Run ‘Mix ExUnit …’
- Debug ‘Mix ExUnit …’
- “Create “Mix ExUnit …’”
testdirectory and it is Marked as a Test Sources Root. It will appear green in Rubymine if already marked. To mark it, do the following:-
Right-Click
testdirectory - Select “Mark Directory as > Test Sources Root”
-
Show Mix ExUnit in context menu in Elixir Facets, so that
Bug Fixes
-
Protect access to
JavadocOrderRootType.getInstance()so that it doesn’t cause an error in Small IDEs where its Extension Point is not defined. - If the explanation tooltip is empty, fallback to the message for the credo annotator instead.
-
Check if
SdkAdditionalDataisnullbefore gettingErlangSDKas it can benullin certain scenarios in Rubymine. -
Fix
isConfigurationFromContext, so that it works on Mix ExUnit Run Configurations generated from directories. Check if theprogramParametersandworkingDirectorymatch by just generating another configuration from the context as this ensures the logic matches and includes support forPsiDirectory.
Elixir Users' Survey 2017
I’ve just published this year’s Elixir Users’ Survey. If you’d visit this link and fill it out for me I would sincerely appreciate it! :)
Raxx 1.0.0-rc.2 released
https://hex.pm/packages/raxx/1.0.0-rc.2
Raxx is a simple, functional foundation for web applications. It’s role is as an alternative to plug.
This release adds typespecs throughout to work with dialyzer.
.iex.exs to the rescue
Blogged about .iex.exs file tuning and project-specific iex configurations goodness.
— http://rocket-science.ru/hacking/2017/12/29/iex.exs-to-the-rescue
Unit Testing Phoenix Controllers with Mox
Here’s a walkthrough for unit testing Phoenix controllers using Mox, from installation to basic mocking strategies
https://spin.atomicobject.com/2017/12/27/elixir-mox-introduction/
[pt-br] Elixir practice: encontrando todos os anos bissextos do século 20
Elixir practice: encontrando todos os anos bissextos do século 20 com Elixir.
Implementing a peer-to-peer network in Elixir - Part 1: The Server
This is the first of three posts that will guide you through the implementation of a simple peer-to-peer network in Elixir.
On this post we’ll be creating the server and will learn how to use the Ranch library.
Implementing a peer-to-peer network in Elixir - Part 1: The Server
Elixir “with” syntax and guard clauses
In this blog post we will take a look at a simple example of refactoring Elixir code using with syntax (called a “special form” in the documentation), and guard clauses.
(Ab)using Ecto as Elixir data casting and validation library
I just put together a fairly detailed write-up on how I use Ecto as generic data types casting and validation library. If you are looking for a way to create table-less form with Phoenix, validate user commands, create sign up or contact forms that do not map directly to database tables, it might come in handy:
(Ab)using Ecto as Elixir data casting and validation library
Brewing the firmware for Raspberry PI with Elixir and Nerves
Brewing the firmware for Raspberry PI with Elixir and Nerves for PIX_PROJECT
https://blog.fazibear.me/brewing-the-firmware-for-raspberry-pi-with-elixir-and-nerves-5dd67970d073
AC6: Putting an Elixir OTP app in our Elixir OTP app
Building the http://Alchemist.Camp website, Part 6. It’s time to put an app in our app!
With only minimal changes to our mix.exs file and a couple of tweaks to paths, we make StatWatch into a dep for our web server so it always gets started with the server and added to its supervision tree.
Code Formatter- The Big Feature in Elixir V1.6.0
https://medium.com/@blackode/code-formatter-the-big-feature-in-elixir-v1-6-0-f6572061a4ba
Code formatting is easy now with the help of mix task mix format . It will take care of all you care about cleaning and refactoring as well. It can assure a clean code base…more
ExVenture Updates for December 2017
Changes made in the last month for ExVenture, a MUD written in Elixir. This month includes mostly back end admin changes and documentation.
The Rigid Code Behind Smooth Code— Elixir Intermediate
The Rigid Code Behind Smooth Code
What you see is more simplified
https://medium.com/@blackode/the-rigid-code-behind-smooth-code-elixir-beginner-77eb0a32218c
This article shows you the rigid lines of code behind smooth lines you write in elixir.
As we know, the most of the Elixir programming language is written in Elixir itself with the power of Macros and also we all know why we love to code in Elixir because of its simplicity. But, today we are going to walk back to find the light in the dark.
Alchemist Camp L11: A worker to log stats from a YouTube's API
Alchemist Camp has been growing much more quickly in its third week than in its first two, so let’s make an app to fetch stats from YouTube and log them every 6 hours!
We used YouTube’s API, HTTPoison, Poison to decode the JSON, and OTP to keep the worker up.
Phoenix & Elm landing page (pt.2)
Here is the second part of my new series on building a landing page with Phoenix and Elm.
http://codeloveandboards.com/blog/2017/12/23/phoenix-elm-landing-page-pt-2/
Merry Christmas and Happy New Coding Year!
Releasing Gringotts: A payment library for elixir with upto 6 gateways and more coming soon
We have worked on gringotts which is a payment gateways integrator library, it draws huge motivation from shopify’s activemerchant gem which is defacto library for payments in Ruby on Rails world.
The aim is to make Gringotts an activemerchant of Elixir world.
Morphix v0.2.1 released, now with bug fixes!
Many thanks to the shannonbrooks for expanding and uberbrodt for the bug fix on atomorphif*, which now properly handles struct types.
Morphix is a small library of convenience methods for transforming Enumerables.
Alchemist Camp C10: Threatened by rooks, bishops and knights
Normally it’s somewhat tedious to generate the squares of a chess board that can be attacked by bishops or nights, but we make short work of it using comprehensions to generate and filter the board positions down to the solution. We also reach to Erlang to fill in a gap in Elixir’s logical operator tool set.
The Square module was from Lesson 8 and the challenge was from Lesson 10 of Alchemist Camp.
Finishing out tic-tac-toe game and giving it a CLI
We finish our tic-tac-toe game, make a command line user interface for it and debug it.. This entails extensive use of comprehensions, filters and higher-order functions.
