Giter Site home page Giter Site logo

arienshibani / blogg Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 327 KB

πŸͺ΅ Blog using GH as a CMS

Home Page: https://niceblogg.netlify.app/

License: MIT License

JavaScript 40.61% HTML 1.67% Svelte 54.05% CSS 3.67%
blog-engine cms-framework netlify-deployment sveltekit-tailwindcss

blogg's Introduction

Hello world πŸ‘‹

i think this is cool πŸ‘‡

CSS3

JavaScript

TypeScript

Python

Svelte

React

MongoDB

K8s

Docker

Git

Visual Studio Code

blogg's People

Contributors

arienshibani avatar

Watchers

 avatar

blogg's Issues

[POST]: #0 Hello World (testing github issues as a CMS)


title: Hello world! πŸ‘‹
subtitle: Welcome.
description: Testing out github as a CMS.
slug: hello-world
tags: [hello, world]
category: blog
image: https://www.com/blog/wp-content/uploads/2020/08/hello-world.png
date: 2023-11-01
canonical: https://niceblogg.netlify.app/

Hello world!

This blog post, is litteraly a github issue. How cool is that? The blog is using its own github repo issues as blog posts. Github itself is our CMS! Thats fun.

[POST]: #1 Naming Things


title: Naming things πŸ“
subtitle: The hardest problem in computer science.
description: A couple of tips when it comes to naming things.
slug: naming-things
tags: [conventions, computer science, naming, things]
category: blog
image: https://www.com/blog/wp-content/uploads/2020/08/hello-world.png
date: 2023-11-02
canonical: https://niceblogg.netlify.app/

"There are only two hard things in computer science: cache invalidation, and naming things." - Phil Karlton

Its just a name. You can always change it later right? Before you know it, that kubernetes namespace you spun up last week, that you named DookieStainz4Ever1337 is now being used by your client as a testing environment, and it can't be renamed either. Shit.

Files and Folders πŸ“‚

Based on the work of Anne Thompson of the University of Edinburgh, we can establish a couple of good rules to follow whenever we are naming folders, files, records and systems.

1. Keep file names short 🀏 (but meaningful!)

Some words add length to a file name but do not contribute towards the meaning, for example words like "the", "a", and "and". Remove them, always. Long file names lead to long file paths and long URLs that are hard to remember and are error prone.

Correct βœ… Incorrect ❌
2015GlobalMarketShare The_2015_Talent_Engagement_Global_market_ share_report

2. Always state dates β€œback to front” πŸ“…

  • When using dates in filenames, state the year first Like this: YYYY, YYYY.MM or YYYY.MM.DD
    • Naming the file's dates "back to front" means that the chronological order is maintained when the files are sorted by their names!
Correct βœ… Incorrect ❌
2015.02.Agenda Feb2015Agenda
2023.12.12journalEntry 12.12.2023journalEntry

3. Use two-digit numbers when numbering 0️⃣ 1️⃣

To maintain the numeric order when file names include numbers it is important to include the zero for numbers 0-9. This helps to retrieve the latest record number. i.e. 01, 02 ... 99, unless it is a year or another number with more than two digits.

Correct βœ… Incorrect ❌
HugeBeansV01 HugeBeans1
HugeBeansV05 HugeBeans5
HugeBeansV11 HugeBeans11
HugeBeansV10 HugeBeans10

4. Use meaningful folder names πŸ’‘

Avoid using team names as the basis for folder names as your organisational structure may change; and, vague names like Misc. Folder names should indicate the folder's contents and reflect the functions, activities and transactions that you carry out.

Correct βœ… Incorrect ❌
customers/ misc/
mortgageCalculatorApi/src/types teamScoobyApi/src/types

5. Avoid abbreviations πŸ’‘

Don't use initials, abbreviations and codes that are not commonly understood by your audience. If you are in doubt, just spell out the damn thing. Even though it might conflict with rule #1 mentioned above.

Correct βœ… Incorrect ❌
AntiMoneyLaundering AML
HugeBeansV05 HugeBeans5
HugeBeansV11 HugeBeans11
HugeBeansV10 HugeBeans10

Naming variables and functions πŸ”’

"Redundancy. Inefficient by defintion - Serves as the antidote to confusion" - James Gleick

This is strongly opinionated, however I'd rather be verbose, than concise when naming functions and variables that I know is going to be read and maintained by other developers. Always focusing on reducing those WTF's / per minute πŸ’―

  • In practice, I try to follow the rules below:
    • Name a function the exact same thing as what it does
      • I find that consistently doing so makes it apparent if I end up breaking my SRPs or not.
    • Name a variable the exact same thing as what it contains
      • Avoid using abbreviations as much as possible.

COVID-19 themed baby names πŸ‘Ά

When it comes to naming babies, try to avoid COVID-19 themed names.

{% twitter https://twitter.com/JennaPhile/status/1245129920923217921 %}

That is it for now. See you guys next week! 🌭

[POST]: #2 Playing FIDE rated chess, in real life


title: Online vs. OTB Chess β™ŸοΈ
subtitle: Transitioning from online chess to FIDE rated OTB tournaments
description: Tips, tricks, and things you should remember
slug: playing-fide-rated-chess
tags: [chess, featured]
category: blog
date: 2024-10-05
canonical: https://niceblogg.netlify.app/

I've been playing chess for as long as I can remember. Usually just casual games onlines against random people. However, In January, I discovered the thrill of playing FIDE rated chess over the board (OTB). The gap from online chess to playing "in real life" was much larger than I expected. In this post, I'll share some of the biggest differences I have experienced.

Online vs OTB β™ŸοΈ

1. No safeguards against illegal moves 🦺

Playing on Chess.com, the consequences of illegal moves don't exist. You literally cannot make them. Over the board, however, the absence of any safeguards will be devastating the first few times you play. The tournament organizer (The arbiter) will usually give the offending player's opponent extra minutes on their clock. In a blitz or bullet game, this is really devastating.

2. You will be playing a lot slower 🐌

Having to physically move pieces, manually calculating the legality of your moves, and the absence of pre-moves are all factors that will slow you down much more than you'd think. If you are used to playing 3+2, I'd suggest you practice 2+1 to get a feel of how fast "time" flies over the board. I would also suggest you use this to your advantage! By prepping and memorizing certain lines of your favorite openings, you will be able to blitz out moves with confidence early on, saving you precious time for the endgame.

3. Psychology 🧠

In OTB chess, players experience the pressure of their opponent's physical presence, adding a psychological dimension to the game. I found this to be verry interesting aspect of it. You can do stuff like make completely desparate random moves with extreme confidence. And your oponent will think twice about wether you are just bluffing or making bullshit moves.

4. Club Play and Social Dynamics 🀝

Participating in over-the-board chess clubs introduces a unique social aspect to the game. Playing regularly in a club environment exposes your opening repertoire to fellow club members, who may learn and adapt to your preferred lines over time. This creates an enriching learning experience as you engage in discussions, analysis, and friendly rivalry with clubmates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.