arienshibani / blogg Goto Github PK
View Code? Open in Web Editor NEWπͺ΅ Blog using GH as a CMS
Home Page: https://niceblogg.netlify.app/
License: MIT License
πͺ΅ Blog using GH as a CMS
Home Page: https://niceblogg.netlify.app/
License: MIT License
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.
"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.
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.
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 |
Correct β | Incorrect β |
---|---|
2015.02.Agenda | Feb2015Agenda |
2023.12.12journalEntry | 12.12.2023journalEntry |
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 |
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 |
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 |
"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 π―
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! π
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.
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.
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.