defmodule SimpleServer do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
{:ok, %{} }
end
end
defmodule SimpleServer do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
{:ok, %{} }
end
end
defmodule KVStore do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
end
def init(state) do
{:ok, state}
end
def handle_call({:get, key}, _from, state) do
{:reply, Map.get(state, key), state}
end
end
{:ok, pid} = KVStore.start_link()
GenServer.call(pid, {:get, :key})
defmodule ListServer do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def init(state) do
{:ok, state}
end
def handle_call(:pop, _from, [head | tail]) do
{:reply, head, tail}
end
end
defmodule Counter do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, 0, name: __MODULE__)
end
def init(state) do
{:ok, state}
end
def handle_cast(:increment, state) do
{:noreply, state + 1}
end
end
Back-end App Developer
Front-end Web Developer
Full Stack Developer (Java)
Full Stack Developer (.Net)
Full Stack Developer (MEAN)
Full Stack Developer (MERN)
DevOps Engineer
Database Engineer (AzureSQL)
Database Engineer (Oracle)
Database Engineer (General)
Solution Architect (.NET)
Solution Architect (Java)
Solution Architect (Ruby)
Solution Architect (Python)
AI Engineer (Python)
Sr. AI Engineer (Python)
AI Strategist (Python)
Business Intelligence Engineer
Systems Analyst
Mainframe Developer (COBOL)
Mainframe Developer (General)