Conditional class in Phoenix Componentphoenix의 component를 작성하다보면 for, if 문을 사용하는 경우가 많은데 tag 뒤에 :for, :if 를 사용해서 간단하게 줄일 수 있다. tailwind css를 사용한 class도 경우에 따라 추가적인 class를 주고 싶을 때가 있는데 core_component.ex를 살펴보다 class에 list를 줄 수 있다는 것, 그리고 list 내부에 false인 경우 무시된다는 것을 알게 되었다. 위에서 말한 두가지 요소를 합...1 min read·clue.hashnode.devApr 19, 2023
Primes in Scala and ElixirI've learned and used scala for years and quite like it. But it is quite painful when you want to make a web server, all in scala. There are http4s and scalajs-react but you have to make everything including sessions, authentication, etc. Elixir, pho...1 min read·clue.hashnode.devJan 13, 2023
Elixir 설치간만에 들어가본 twitter에서 elixir 언어를 배워보라는 포스팅을 보았다. Erlang 기반으로 만들어진 함수형 언어에 Phoenix라는 웹 프레임워크를 가지고 Livebook이라는 jupyter notebook 같은 툴까지 제공한다니 관심이 간다. 예전 ruby on rails의 blog 데모같이 15분에 twitter clone을 만드는 데모도 있고 livebook anounce에서는 간단한 machine learning까지 선보이니...1 min read·clue.hashnode.devDec 28, 2022