Skip to content

Instantly share code, notes, and snippets.

View Silverbullet069's full-sized avatar

VH Silverbullet069

View GitHub Profile
@Silverbullet069
Silverbullet069 / bp-vscode-ext.md
Last active January 30, 2024 16:53
[BP - VSCode Extension] an episode in my BP - Best Practices series #best-practice
  • Ext activation events are command-based, in the past you must specify "activationEvents": ["onCommand:helloword.helloWorld"] in package.json, but now that options is built-in.
  • Use "activationEvents": ["onStartupFinished"], which fires right after VSCode has started.
  • The more specific Act Events, the better. Less ext to start at once makes VSC faster.
  • Some items are Disposables, if you think about it they do get disappeared right instance or after an amount of time.
  • LSP decouples dev tooling (servers) and text editors (clients) over a tech-neutral base layer. Don't have to write glue code when targeting editor that supports LSP. Server can be written in any languages.
  • LSP runs over RPC, using JSON-RPCv2 protocol. 1 client and 1 server exchange msg (req, res, notification).
@Silverbullet069
Silverbullet069 / bp-software-arch-design.md
Last active January 29, 2024 17:27
[BP - Software Architecture Design] an episode in my BP - Best Practices series #best-practice
@Silverbullet069
Silverbullet069 / best-practices.md
Last active January 29, 2024 17:27
[BP - Documentation] an episode in my BP - Best Practices series #best-practice

NOTE: Remember to add timestamp to your materials to track progression

List of question/checklist that needs to be answered before making documentations (30/01/24)

https://www.reddit.com/r/ExperiencedDevs/comments/rm3ad2/comment/hpkedo0/?utm_source=share&utm_medium=web2x&context=3

List of documentation for DevOps Engineer (30/01/24)

https://www.reddit.com/r/ExperiencedDevs/comments/rm3ad2/comment/hpkozmy/?utm_source=share&utm_medium=web2x&context=3

Github Wikis are good for small team, encourage devs to update them (30/01/24)

https://www.reddit.com/r/ExperiencedDevs/comments/rm3ad2/comment/hpkte9k/?utm_source=share&utm_medium=web2x&context=3

@Silverbullet069
Silverbullet069 / python.md
Last active January 29, 2024 09:49
[Python] My Python learning, including roadmap progress, tutorials, projects, blogs, conference videos, ... #python
@Silverbullet069
Silverbullet069 / rules.md
Last active March 7, 2024 07:29
[The Absolute Rules] This is my ultimate rule to ensure everything go along well from now on #personal-rule
  1. These are rules, not To-do List. These methodologies apply to everything you do.
  2. Always makes plan to fulfill your deadlines first. Any spur-of-the-moment ideas must be delayed and put into wish list / to-do list for long-time planning.
  3. Estimate the learning curve of project ideas mentioned in Rule #1. Some take days, some take months, maybe years to accomplish, knows your current limit is very essential.
  4. Don't do everything by yourself. I learned this the hard way. Beside thoroughly asking and eventually you still do it yourself, ask/hire somebody else to do it. The latter might be dirty, might be shameless, might be disgraced to your ideals, but if it works and finished on time, it's well worth it.
  5. Try your hardest not to use the phone while working. Yes I know you want to watch cat videos, yes I know you want to admire your fav cosplayer, ... but now is not the time. Every minute passed is a wasted minute for sb to be better than you.
  6. **Remember to do digital tid
@Silverbullet069
Silverbullet069 / learning-materials.md
Last active January 29, 2024 09:43
[All the learning materials and my personal insights about them] Youtube videos, blogs which are written by senior devs are generally good, they are real live dictionaries #blog
@Silverbullet069
Silverbullet069 / pycon-2018.md
Last active January 27, 2024 08:30
[PyCon 2018] This is a very interesting topics to be one step closer to a Python-guru #python

solve your problem with sloppy python

who's it for?

  • you, you, and only you
  • not professional
  • not checked in

the rules

  • fail early and noisily
@Silverbullet069
Silverbullet069 / cloud-service-provider-free-tier-comparison.md
Last active January 12, 2024 17:11
[Cloud Free Tier Comparison v2] this is a more updated version of an existing GItHub repo that compares the free tier of different cloud solutions #cloud #free
@Silverbullet069
Silverbullet069 / cms.md
Last active January 14, 2024 12:00
[Some insights about headless CMS that I'm currently studying] #cms #web

Some problems with the CMSes

  • It has too many solutions out there, each have their own pros and cons, a skillful devs must weight all of them in order to choose the most viable option:
  • Similarity: small quota limits, storage limits on the free tier.

Wordpress:

Free to download and self-host, but you need a PHP server.

Publii?

  • Prebuilt templates (free + premium)
  • auto gen seo tags (follow json-ld schema format that GG wants) (e.g. upload 1 img, resize to 3 diff specs (GG rcm) and gen meta tag desc, title, ...
@Silverbullet069
Silverbullet069 / web-best-practices.md
Last active December 31, 2023 12:27
[Web best practices] Some cool things I note when I'm learning on Internet

Best practice for RESTful API design

Parameters

  • Path Params: identify a specific resource of resources
  • Query Params: soft/filter resources

Example: RESTful API endpoints for an entity called Car

Path params

  • GET /cars
  • GET /cars/:id