Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should "Hello world" be standardised? #1528

Open
sancarn opened this issue Nov 8, 2023 · 2 comments
Open

Should "Hello world" be standardised? #1528

sancarn opened this issue Nov 8, 2023 · 2 comments

Comments

@sancarn
Copy link

sancarn commented Nov 8, 2023

It strikes me that many different implementations of "Hello World" are implemented here, many with very different results...

Something like

#include <iostream>

int main()
{
   std::cout << "Hello World" << std::endl;
}

in c++ which prints to stdout, is very different from the result of

msgbox "Hello World"

in vba prints to a Win32 MessageBox (a dialog), which is very different from the result of Blender.py

import Blender
from Blender import Scene, Text3d

text = Text3d.New("Text")
text.setText("Hello World")
Scene.GetCurrent().objects.new(text)
Blender.Redraw()

which draws some 3d text in a scene.

In my opinion it doesn't really make a whole lot of sense to say all of these are the same "hello world". In reality Python's equivalent would be print("Hello world") and VBA's would be Debug.Print "Hello world".

Sure these other implementations are neat, and it's nice to be able to see different kinds of "hello world" mechanisms.

Related to #1527 it might be better to create subfolders for these implementations instead with a standardised naming convention?

root
|- c
|  |- stdout.c
|  |- dialog.c
|  |- lib-qt.c
|  |- ...
|- py
|  |- stdout.py
|  |- dialog.py
|  |- lib-qt.py
|  |- app-blender.py
|  |- ...
|- vba
|  |- stdout.bas
|  |- dialog.bas
|  |- lib-qt.bas
|  |- ...
|- ...
@sancarn sancarn changed the title Suggest that the problem should be standardised? Should "Hello world" be standardised? Nov 8, 2023
@Tonibrown20
Copy link

It strikes me that many different implementations of "Hello World" are implemented here, many with very different results...

Something like

#include <iostream>

int main()
{
   std::cout << "Hello World" << std::endl;
}

in c++ which prints to stdout, is very different from the result of

msgbox "Hello World"

in vba prints to a Win32 MessageBox (a dialog), which is very different from the result of Blender.py

import Blender
from Blender import Scene, Text3d

text = Text3d.New("Text")
text.setText("Hello World")
Scene.GetCurrent().objects.new(text)
Blender.Redraw()

which draws some 3d text in a scene.

In my opinion it doesn't really make a whole lot of sense to say all of these are the same "hello world". In reality Python's equivalent would be print("Hello world") and VBA's would be Debug.Print "Hello world".

Sure these other implementations are neat, and it's nice to be able to see different kinds of "hello world" mechanisms.

Related to #1527 it might be better to create subfolders for these implementations instead with a standardised naming convention?

root
|- c
|  |- stdout.c
|  |- dialog.c
|  |- lib-qt.c
|  |- ...
|- py
|  |- stdout.py
|  |- dialog.py
|  |- lib-qt.py
|  |- app-blender.py
|  |- ...
|- vba
|  |- stdout.bas
|  |- dialog.bas
|  |- lib-qt.bas
|  |- ...
|- ...

@includeRubiks
Copy link

I agree. There should be subfolders for different types of hello worlds (3D, text, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants