👨🏻💻 FreeLancer Web Developer
astm_bio = Hash.new
astm_bio[:experience] = 'More than 20 years in web development'
astm_bio[:languages] = ['Ruby', 'PHP', 'Shell script', 'Javascript']
astm_bio[:freamwork] = 'Ruby on rails'
astm_bio[:Databases] = ['Mysql', 'SQLite', 'PostgreSQL', 'Redis', 'Snowflake']
astm_bio[:Editors] = ['Vim', 'Atom', 'Sublime']
astm_bio[:UI_tools] = []
astm_bio[:Other_tools] = []
['jQuery', 'AngularJS', 'Ajax', 'Ionic', 'XML', 'Json', 'Yaml', 'Html5', 'Css3', 'Less css', 'Sass', 'BootStrap'].each do |tool|
astm_bio[:UI_tools] << tool unless astm_bio[:UI_tools].include?(tool)
end
['Photoshop', 'Cpanel', 'Whm', 'PhpMyAdmin', 'Git', 'GitHub Action pipeline','Agile', 'MySQL Workbench', 'CI / CD', 'Linux OS', 'Nginx', 'Docker', 'Automation test', 'Rspec', 'APM'].each do |other|
astm_bio[:Other_tools] << other unless astm_bio[:Other_tools].include?(other)
end
puts astm_bio
# The result for astm_bio hash will be =>
{
:experience => "More than 17 years in web development",
:languages => ["Ruby", "PHP", "Shell script", "Javascript"],
:freamwork => "Ruby on rails",
:Databases => ["Mysql", "SQLite", "PostgreSQL"],
:Editors => ["Vim", "Atom", "Sublime"],
:UI_tools => ["jQuery", "AngularJS", "Ajax", "Ionic", "XML", "Json", "Yaml", "Html5", "Css3", "Less css", "Sass", "BootStrap"],
:Other_tools => ["Photoshop", "Cpanel", "Whm", "PhpMyAdmin", "Git", "GitHub Action pipeline", "Agile", "MySQL Workbench", "CI / CD", "Linux OS", "Nginx", "Docker", "Automation test", "Rspec", "APM"]
}