sylwiavargas / The-Code-Bending-Dictionary

πŸ§šπŸ½β€β™€οΈ learn tech vocab in a friendly way πŸ§šπŸ½β€β™€οΈ CONTRIBUTIONS WELCOME! πŸ”₯
21 stars 11 forks source link

Add definitions #6

Open sylwiavargas opened 4 years ago

sylwiavargas commented 4 years ago

Effective definitions are at the core of the dictionary. Our dictionary contains definitions that could easily be classified as "explain it like I'm 5". We are serious about this.

Before you contribute

  1. Choose a word or words from Words in need of definitions section below.
  2. In the comments below, express that you want to write a definition and specify which word/s.
  3. βœ… The easiest way to solicit different definitions is to ask someone who has learned these things recently. You can submit one PR per definition or a few definitions all at once β€” please contribute as much as as few as you wish!

πŸ”₯ MAKE SURE THAT YOUR DEFINITIONS:

✚ you can (but don't have to!) add a meme if there's one that connects to the term or your definition and a "read more" link if you know of any! If you are adding any, please read our guidelines for links and memes in this issue: #32

To Contribute

➑️ In order to contribute, please:

  1. git checkout dev and git checkout -b yourName
  2. open the seeds.rb file and add new definition in the last section in an alphabetical order, following the pattern:
your_name_as_a_variable = User.create!(first_name: "your name or username", password: "just write abc123")

name_of_the_variable_def = Definition.create!(
  user: your_name_as_a_variable, 
  approved: true, 
  content: "here goes your content", 
  word: check_the_words_variable_in_the_words_section, 
  technology: check_the_technology_variable_in_the_technology_section,
  read_more_url: "some url", 
  read_more_at: "here write the name of the page", 
  meme_url: "some url", 
  meme_alt_text: "the description of the meme"
)

, for instance:

eric = User.create!(first_name: "Eric", password: "abc123")

angry_squid_def = Definition.create!(
  user: foobar, 
  approved: true, 
  content: "'<%= %>': angry squid shoots ink or evaluates ruby code and prints", word: angry_squid, 
  read_more_url: "https://dev.to/sylwiavargas/which-erb-tag-should-i-use-53f1", 
  read_more_at: "Dev blog", 
  meme_url: "https://res.cloudinary.com/practicaldev/image/fetch/s--XEpd1g3r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/qi9kko95vgpn0iknjaq0.png", 
  meme_alt_text:"a graphic erb cheatsheet for when to use erb tags or html. If code needs to be visible or return something you want to use the angry squid <%=", 
  technology: rails
)
  1. Test your code by running rails db:seed
  2. If your code does not generate new bugs, run git add ., git commit -m "adds definition", git push
  3. Submit a PR to sylwiavargas:dev

Words in need of definitions

Each of the following words should have 2-4 different definitions:

RUBY:

General tech:

JS:

React:

wlcreate commented 4 years ago

Hi @sylwiavargas! May I add a definition for flash hash?

ChristyTropila commented 4 years ago

Hi @sylwiavargas. May I add definitions for CRUD, setter method, and getter method?

bigfishh commented 4 years ago

hey @ChristyTropila & @wlcreate! yes, go for it -- thank you!

Shreya-L commented 4 years ago

Hey @sylwiavargas, I added a definition for web scraping. Are we able to add multiple definitions in one pull request? Thanks!

ChenyunZhang commented 4 years ago

Hey @sylwiavargas, May I add a definition for props, jsx, and extend?

sylwiavargas commented 4 years ago

@ChenyunZhang -> of course, go ahead and thank you! (Please make sure to work off the dev branch and then submit a PR to dev, not main ✨)

nunnyr commented 4 years ago

Hi @sylwiavargas

May I add a definition for let, const, var ?

sylwiavargas commented 4 years ago

@nunnyr β€” yes, please! go ahead!