Skip to content

Instantly share code, notes, and snippets.

@cleverdumb
cleverdumb / index.md
Created April 26, 2023 19:10
Helpchannelphobia: The case study - JSM server

Umm nothing yet

@cleverdumb
cleverdumb / index.md
Last active January 1, 2023 13:44
Guide to writing bad code.

Introduction

Writing bad code is something every programming does in some point in time. This guide will teach you how to write worse code.

Table of content

  • Introduction
  • Why?
  • Bad naming
  • Chain stuff
@cleverdumb
cleverdumb / sync.md
Created November 27, 2022 19:30
Guide on syncing variables, getters and setters

Introduction

You might want to sync two variables, and when one changes, the other changes accordingly (eg: the polar coordinate and cartesian coordinate of a vector). But as programmers we are lazy and we don't want to change each at a time with multiple lines of code. This is how to make it easy and convenient.

Goals

  • Be able to change and access these properties easily like normal variables or object properties
  • Be able to link as many variables as we want
  • No constant updating that would cause lag
@cleverdumb
cleverdumb / index.md
Last active July 23, 2022 08:05
Ultimate guide of python to js

How to switch python to javascript?

Introduction

Python and js are both quite popular. Some python users want to start doing web-dev, which most people used js to do so.
Although many people want to switch to js, some people struggle to do so.

Table of contents

  1. Introduction
  2. variables
  3. Some different variables type