https://github.com/zakarialaoui10/only-for-psychopathic-programmers
https://github.com/zakarialaoui10/only-for-psychopathic-programmers
africa c go java javascript julia matlab morocco morocco-country python weird-language
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zakarialaoui10/only-for-psychopathic-programmers
- Owner: zakarialaoui10
- License: mit
- Created: 2022-09-11T09:28:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T22:58:29.000Z (7 months ago)
- Last Synced: 2025-03-20T23:31:48.155Z (7 months ago)
- Topics: africa, c, go, java, javascript, julia, matlab, morocco, morocco-country, python, weird-language
- Language: C
- Homepage:
- Size: 95.7 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# programming-for-psychopaths
- [1-Hello World in Matlab](#hello_world_in_matlab)
- [2-Oop in No Oop Languages](#oop_in_no_oop_languages)
- [3-Indexing](#indexing)
- [4-Loop](#loop)
### 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
```matlab
disp("Hello world")
```### oop_in_no_oop_languages
Oop it's just a paradigm ...
Object = Struct + Methodes
#### Oop_in_C_Lang
```c
#include
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
element1
2
3
4
Javascript
1
2Python
2Java
2C
2C++
2Matlab
1### loop
level 0
```javascript
for(i=0;i<10;i++)console.log(i)
```
level 1```javascript
i=0;
while(i<10){
console.log(i)
i++;
}
```
level 2```javascript
i=0;
for(;;){
if(i==10)break;
console.log(i)
i++
}
```