Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "ruby"


Understanding the basics of Ruby on Rails: SQL Databases and how they work

  • Now it’s time to learn about databases and how they connect with Ruby on Rails.
  • We usually use a condition to delete, like “I want to delete all people under 21 years old.” We will learn how later in this post!
  • Now we can use SQL language to query (select, delete, insert, update) data.
  • We now understand the meaning of databases, we’ve tried some basic queries, and have talked about the relationship between tables.
  • So we create a migration (Ruby code), run the rake db:migrate command in the terminal, and it generates a table Authors with first_name, last_name, email, birthday, created_at, and updated_at columns.
  • So when we create a Posts table, we need to store a reference to the post’s author (column author_id in the Posts table).
  • Behind the scenes, it is executing SELECT * FROM posts WHERE title = 'Database & Rails'query.

save | comments | report | share on


Building AWS Lambdas for Real World using Ruby and Serverless Framework

  • Currently, you can easily find several blog posts and tutorials explaining how to build your own Lambda functions in Ruby, most of them using the famous Hello World as example, which is good as a starting point, but, let's be honest, you won't need to build something as simple as a Hello World.
  • In this post, I'd like to share some ideas with those who, like me, started to reach a bit deeper in this matter, and discuss how to tackle these real-world issues using Ruby and Serverless Framework.
  • As I mentioned before, most of Hello World examples hold all files in a single root project folder, which makes very easy to the Serverless Framework settings file (serverless.yml) references the lambda function.

save | comments | report | share on


Understanding the basics of Ruby on Rails: HTTP, MVC, and Routes

  • Here we’ll understand the basics of how the web, the routes, and the MVC architecture work using the Ruby on Rails web framework.
  • The HTTP works like a request — response cycle in the client — server model.
  • Now that we understand how the Web works, we’ll study the MVC architecture and Rails Routes.
  • This model object gains capabilities (inherited from ActiveRecord — Rails class) to retrieve, save, edit, and delete data from database table.
  • In the controllerArticlesController we use the model Article to get all articles in the database and render the view index.html.erb as the server response (the UI).
  • The Rails request-response cycle is one of the first concepts you need to understand when you start learning web development.
  • The user does stuff (request to the server), the the Rails application has the router to map the URL path to the right controller.

save | comments | report | share on


Ruby has the kindest programming community and I have the data to prove it

  • GitHub just released this blog post about emoji use on the platform.
  • Rubyists just love to ❤️, myself included.
  • My first thought was that the color red is why Rubyists love the red heart.
  • But when I saw that Ruby was also #1 in 🎉, I was convinced.
  • I love the Ruby community.
  • Ruby community is absolutely amazing, I definitely agree with your post.
  • This brings me to the question Why is Python more popular than Ruby?
  • Our language can be used for basically everything.
  • It's native OOP (easy to learn for beginners).
  • Where is the Python main advance?
  • And I have done project in both (Python and Ruby) but I have still have a strong feeling that Ruby is the superior.
  • Python or Ruby ?
  • Anyway the 'educational' part should be learning algorithms and data-sets (not concrete language, this is only an implementation).

save | comments | report | share on


Repl.it Multiplayer

  • Introducing Multiplayer: code with friends in the same editor, execute programs in the same interpreter, interact with the same terminal, chat in the IDE, edit files and share the same system resources, and ship applications from the same interface!
  • As part of our interview process at Repl.it (work with us) we have a phone screen where we hop on a Multiplayer session with a candidate and work on some coding problems together.
  • The fact that it's shared repl allows the interviewer to write test cases for the candidate's program to verify its validity.
  • We spent a lot of time trying to make the underlying system resources work in multiplayer mode because we think this feature, in the future, might transcend our websites and work with other IDEs and on different platforms.

save | comments | report | share on


Monthly trending Ruby on Rails repositories. December, 5

  • Originally I shared this post on Syndicode blog.
  • Hurray!
  • New Rails digest arrived at the beginning of winter.
  • The worst thing about software development that you can't use all of the cool tools you know.
  • But more you know - the better solution you can find in future.
  • In this digest you will meet error monitoring for Rails, Vue on Rails gem, publishing framework, DB schema managing tool, carpooling platform, Vim config for Rails and many other awesome repositories!
  • The list starts with the most recent updates.
  • Find my previous issues of Rails digests here.
  • I see the future in software development.
  • Infoholic, researcher.
  • Curious about everything.
  • Especially about JS, Rails, FP and web design.
  • The heartbeat of the software industry.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on


Monthly trending Ruby on Rails repositories. December, 5

  • Originally I shared this post on Syndicode blog.
  • Hurray!
  • New Rails digest arrived at the beginning of winter.
  • The worst thing about software development that you can't use all of the cool tools you know.
  • But more you know - the better solution you can find in future.
  • In this digest you will meet error monitoring for Rails, Vue on Rails gem, publishing framework, DB schema managing tool, carpooling platform, Vim config for Rails and many other awesome repositories!
  • The list starts with the most recent updates.
  • Find my previous issues of Rails digests here.
  • I see the future in software development.
  • Infoholic, researcher.
  • Curious about everything.
  • Especially about JS, Rails, FP and web design.
  • The heartbeat of the software industry.
  • We’re a place where coders share, stay up-to-date and grow their careers.
  • We strive for transparency and don't collect excess data.

save | comments | report | share on