linusostlund / kex Goto Github PK
View Code? Open in Web Editor NEWKexjobbet KTH 2022
Kexjobbet KTH 2022
๐ค : Hey! I'm SOBO your annoying but well intentioned bot-friend from INDA
๐ค : I notice that in line(s) [5,7,9,15] there is(are) a magic number!
๐ค : This has an easy fix but is important to know why is a bad idea to use it ๐ค
A magic number is a number that comes out of nowhere, and in a hurry no one cares about this (even I do it sometimes), BUT when you come back to your repo after one thousand days you probably will not remember why you use it or it could lead to really bad headaches when debugging. For this reason we suggest to define the variable and then use it . Here is an example:
Instead of doing this
public class Example{
public static void doSomething() {
for(int i = 0; i < 4; i++){
...
}
}
}
Do this :
public class Example{
public static final int NUMBER_OF_CYCLES = 4;
public static void doSomething() {
for(int i = 0; i < NUMBER_OF_CYCLES ; i++){
...
}
}
}
๐ค : Now you know what to do, should we give it a new try? ๐
๐ค : Can't wait to see your next commit ๐
Tim O'Reilly
We're so excited that you've decided to create a new project! Now that you're here, let's make sure you know how to get the most out of GitHub Projects.
Tim O'Reilly
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.