Error handling is a common practice among almost all programming languages. They handle errors. Typically - anticipation, detection, and resolution of programming, application, and communications errors. It produces something the user or developer wants more than an ungraceful error.
Hey there! Here are some notes I took after reading Kyle Simpson’s YDKJS and watching his “Advanced Front-end Masters” on Scope. Let me know if theres anything I can improve with this article via the links below. There’s always room to improve!
ActiveRecord is an ORM
Active record is a ORM(Object Relational Mapping) library. This means that even though you’re interacting with a database in your Rails app by writing
User.find_by you’re not really writing SQL but writing with a DSL(Domain Specific Language) called ActiveRecord to compile SQL code to interact with the SQL database. So in console I type
which uses the ActiveRecord Library to execute this hidden SQL code into the database:
This outputs an ActiveRecord hash containing a user found by the query in the database.
Today I want to share the wonders of Jekyll, the gem this website is built on.