cd ~
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -xvfj vim-7.4.tar.bz2
cd vim74/src
make clean
make distclean
sudo make uninstall
./configure --prefix=/usr/local \
--enable-rubyinterp \
function start_if_not_running { | |
service_name=$1 | |
mypid=$(pgrep $service_name) | |
if [[ ! -n $mypid ]]; then | |
$service_name > log/$service_name.log 2>&1 & | |
mypid=$! | |
fi | |
echo $service_name $mypid | |
} |
[user] | |
name = Marcos Bellucci | |
email = <[email protected]> | |
[color] | |
branch = auto | |
status = auto | |
ui = auto | |
[apply] | |
whitespace = nowarn | |
[push] |
#Postgres ##Install
brew install postgresql
brew services start postgresql
initdb /usr/local/var/postgres - create new database cluster
/usr/local/Cellar/postgresql/<version>/bin/createuser -s postgres
##To start server at startup
#Roles-Responsibilities ##Admin
- Creates companies
##Company User (Human resource)
- Manage employees
- Manage positions
- Hire candidates
- Manage payments
#Guía para proceso de selección
##que es lo que precisamos ? Analizamos esto en base a lista de skills y como evaluarlas
##Skills Requeridas
1) Language -> Candidate must speak, read and write english
2) Problem solving -> Debe poder resolver problemas que exijan un pensamiento lógico
#Names
Names are a powerfull tool for communcating your intent
If you have to put a comment to explain your name then you chose a bad name
Make sure the a names says what it means and means what it says
If you have to read the code to undertstand what it means that is a bad name
Functions are the first tier of organization Should have as few levels of indent as possible Functions should be well named and should be organized into well named classes within well named namespaces
Functions should be 4,6 lines.
- function signature should be small- the fewer the arguments the better
- what types should be passed into those arguments
- why switch and if cost such harm in the software structure ? -> how to get rid of them ?
- why assign operator is consider harmful ?
- Many software problems can be avoided by constraining state changing operators, and side effects.
- How to structure our functions making error handling clean and maintainable fashion ?
Mailer.deliver do
from "[email protected]"
to "[email protected]"
subject "Threading and Forking"
body "Some content"
end
This code can be implemented like it's shown below.