axelson
Scenic Core Team
26) ElixirConf US 2018 Lightning Talk – Kernel functions you'll want to start using – Moxley Stratton
ElixirConf US 2018 Lightning Talk – Kernel functions you’ll want to start using – Moxley Stratton (@moxley)
All talks are available in the ElixirConf US 2018 Talks List or via the elixirconf2018 tag
First Post!
AstonJ
Nice talk!
I wonder how many people opt to use shortcuts like those mentioned?
Such as:
List.first(items)
vs
hd(items)
and:
Enum.count(items)
vs
length(items)
0
Most Liked
OvermindDL1
Depends on the types. List.first([]) will return nil but hd([]) will throw an error, and Enum.count(...) works on any enumerable and length/1 only works on lists (byte_size or bit_size for binaries and map_size for maps). Plus hd/length work in guards where the others do not.
But I use the type-specific forms when at all possible to help ensure proper types. ![]()
4
Last Post!
blatyo
Conduit Core Team
Popular in Talks
ElixirConf 2017 - Cajoling the Bird: How we squeezed more out of Phoenix PubSub- Simon Zelazny
Grindr is a m...
New
Posting a little bit late today but here you go:
ElixirConf 2017 - Elixir + Neo4j - Regina Imhoff
Neo4j is ...
New
ElixirConf 2017 - Closing Keynote - @chrismccord
All talks are available in the Elixir Conf 2017 Talks List o...
New
A bunch of talks were published :+1:t3:
New
@voltone - Security advocate, BEAM enthusiast
Learn you some ‘ssl’ for much security!
Talk in three words: TLS, security, troubleshooti...
New
Whether you’re developing a small web site or a large-scale distributed system, Erlang and Elixir are great tools for building server-sid...
New
Hi, I don’t know if I have the post in the right place.
I put here in case you might be interested, I am not the author, I just found it...
New
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
If I have a post route which an argument:
post /my_post_route/:my_param1, MyController.my_post_handler
How would get the post params ...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









