Giter Club home page Giter Club logo

Hello!

A note on simplicity

I like to keep things as simple as possible. Simple things are easy to understand, easy to change/update, harder to make mistakes, quick to make and only focus on the important things. When you write code that is simple and short, you reduce technical debt.

KISS Keep It Simple Stupid. It is easy to make complex things and hard to make simple things.

You can see this mindset in code: -code is focussed on readability (clear names, structure)
-code is short (little/no boilerplate code)
-code does not use many libraries or compiler settings
-standard features are used

A note on performance

Performance only matters when it matters. Of course it is good practice to think of widely used efficient algorithms when beginning a new project, however, do not make code less readable and don't waste your time to make the code quicker. Choose the most intuitive option, not the fastest option. Here is what you should do instead if you have measured performance and have noticed that a piece of code is too slow: This is in the order from do first to do last. -buy a faster computer -> this might sound expensive, but optimizing code takes time and time is money
-think of a faster algorithm/data structure -> from linear search to binary search
-think of cutting corners in the code -> do not recalculate the same value 1000000x
-think of memory -> try to reduce memory allocations with a buffer, keep allocations small or as a multiple of the page size (4096 bytes), place related elements next to each other in an array
-finally you can try to make code less readable but faster, although the compiler already does a lot of optimization

Here are some stats about me:

I'm always interested in working together. Contact me

simon946's Projects

3h-projects icon 3h-projects

Projects made in about 3 hours. Mainly for educational purposes.

colorize icon colorize

Command-line tool to color text between brackets

encryptor icon encryptor

Simple tool to encrypt/decrypt using ceasar or vigenere encryption

testrepo icon testrepo

I don't know how any of this works so this is a repository to test

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.