Skip to content

Instantly share code, notes, and snippets.

View MaiAbuthraa's full-sized avatar
:octocat:
Work remotely

Mai Abuthraa MaiAbuthraa

:octocat:
Work remotely
View GitHub Profile
@MaiAbuthraa
MaiAbuthraa / fat_model_skinny_controller.rb
Last active November 24, 2020 11:26
Rails Best Practices
## The first exercise: Fat Model Skinny Controller
# Fat Model, Skinny Controller: refers to how the M and C parts of MVC ideally work together.
# Namely, any non-response-related logic should go in the model, ideally in a nice, testable method.
# Meanwhile, the “skinny” controller is simply a nice interface between the view and model.
# Chaeck this artical: https://dev.to/kputra/rails-skinny-controller-skinny-model-5f2k
#### Bad Code ####
# app/controllers/posts_controller.rb
class PostsController < ApplicationController
@MaiAbuthraa
MaiAbuthraa / skills.json
Last active April 7, 2021 20:32 — forked from LastZactionHero/technical_skills_list.txt
Technical Skills List | .txt | .yml | .json
{
"dot_net": ".NET",
"360-degree_video": "360 degree video",
"3d_animation": "3D Animation",
"3d_design": "3D Design",
"3d_model_maker": "3D Model Maker",
"3d_modelling": "3D Modelling",
"3d_printing": "3D Printing",
"3d_rendering": "3D Rendering",
"3ds_max": "3ds Max",
@MaiAbuthraa
MaiAbuthraa / Dashboard.js
Last active June 11, 2020 08:11
Import dynamic modules Using ( Webpacker 4 and Rails 6)
//app/javascript//components/pages/Dashboard.js
export default class Dashboard {
constructor(params){
this.params = params;
console.log('Hi, this is Dashboard class',params);
}
};