Skip to content

Instantly share code, notes, and snippets.

View dev-jhon-yo's full-sized avatar
⚙️
𝗖𝗹𝗶𝗺𝗯𝗶𝗻𝗴, 𝗪𝗶𝘁𝗵𝗼𝘂𝘁 𝗗𝗼𝗶𝗻𝗴 𝗔𝗻𝘆𝗼𝗻𝗲 𝗼𝗻 𝘁𝗵𝗲 𝗟𝗮𝗱𝗱𝗲𝗿

Yolo" dev-jhon-yo

⚙️
𝗖𝗹𝗶𝗺𝗯𝗶𝗻𝗴, 𝗪𝗶𝘁𝗵𝗼𝘂𝘁 𝗗𝗼𝗶𝗻𝗴 𝗔𝗻𝘆𝗼𝗻𝗲 𝗼𝗻 𝘁𝗵𝗲 𝗟𝗮𝗱𝗱𝗲𝗿
View GitHub Profile
@dev-jhon-yo
dev-jhon-yo / settings.json
Created September 15, 2023 13:27 — forked from ShaifArfan/settings.json
vscode settings for eslint & prettier extention
{
// START: Settings for Eslint and Prettier
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
@dev-jhon-yo
dev-jhon-yo / Clean Code.md
Created June 11, 2023 20:32 — forked from evaera/Clean Code.md
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.
@dev-jhon-yo
dev-jhon-yo / Clean Code.md
Created June 11, 2023 20:32 — forked from evaera/Clean Code.md
Best Practices for Clean Code
  1. Use descriptive and obvious names.
    • Don't use abbreviations, use full English words. player is better than plr.
    • Name things as directly as possible. wasCalled is better than hasBeenCalled. notify is better than doNotification.
    • Name booleans as if they are yes or no questions. isFirstRun is better than firstRun.
    • Name functions using verb forms: increment is better than plusOne. unzip is better than filesFromZip.
    • Name event handlers to express when they run. onClick is better than click.
    • Put statements and expressions in positive form.
      • isFlying instead of isNotFlying. late intead of notOnTime.
      • Lead with positive conditionals. Avoid if not something then ... else ... end.
  • If we only care about the inverse of a variable, turn it into a positive name. missingValue instead of not hasValue.
@dev-jhon-yo
dev-jhon-yo / default.project.json
Created June 5, 2023 15:30
ROJO TEMPLATE FILES
{
"name": "Rojo template file",
"servePlaceIds": [
0
],
"tree": {
"$className": "DataModel",
"ReplicatedFirst": {
"$className": "ReplicatedFirst",
"$ignoreUnknownInstances": true,
@dev-jhon-yo
dev-jhon-yo / eslint_prettier_airbnb.md
Last active February 14, 2023 18:40 — forked from geordyjames/eslint_prettier_airbnb.md
VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node
@dev-jhon-yo
dev-jhon-yo / settings.json
Last active February 19, 2024 12:52
These are the settings/extensions that I use in my visual studio code.
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],