Git Product home page Git Product logo

only-for-psychopathic-programmers's Introduction

programming-for-psychopaths

hello_world_in_matlab

Millions of engineers and scientists use MATLAB in various fields, in industry and academia, including deep learning and machine learning, signal processing and communications, image and video processing, control systems, test and measurement, computational finance, and computational biology but no one of them can print hello world in this language .
Don't worry, Now you can print hello world using MATLAB

disp("Hello world")  

oop_in_no_oop_languages

Oop it's just a paradigm ...

Object = Struct + Methodes

Oop_in_C_Lang

#include <stdio.h>
struct point{
  int x;
  int y;
};
struct circle{
  float radius;
  struct point center;
} ; 
void pointConstructor(struct point *P,int x,int y)
{
    P->x=x;
    P->y=y;
}
void circleConstructor(struct circle *C,float r,struct point p)
{
    C->radius=r;
    C->center=p;
}
int main() {
    struct point p;
    pointConstructor(&p,11,12);   
    struct circle c;
    circleConstructor(&c,3,p);
    printf("Circle radius is %.2f, center is at (%d, %d)", c.radius, c.center.x, c.center.y);
    return 0;
}

Oop_in_Go_Lang

indexing

data Language index element
1
2
3
4
Javascript 1 2
Python 2
Java 2
C 2
C++ 2
Matlab 1

loop

level 0

for(i=0;i<10;i++)console.log(i)

level 1

i=0;
while(i<10){
console.log(i)
i++;
}

level 2

i=0;
for(;;){
if(i==10)break;
console.log(i)
i++
}

only-for-psychopathic-programmers's People

Contributors

zakarialaoui10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.