[Coding] Hello, World!를 찍어보자

in #kr5 years ago (edited)



illustration by @carrotcake


지난 글에 소개한 10개의 프로그래밍 언어들로 화면에 Hello, World!를 출력하는 방법을 알아보겠습니다. 프로그래밍 언어마다 어떤지 잠깐 살펴보시죠.

파이썬

1991년 귀도 반 로섬이 발표한 프로그래밍 언어.

print ("Hello, World!")

간단합니다.

C

1972년 켄 톰슨과 데니스 리치가 벨 연구소에 있을 때 새로 개발된 유닉스 운영 체제에서 사용하기 위해 개발한 프로그래밍 언어

#include <stdio. h>
int main(void){
printf("Hello, World!");
return 0;
}

C++

1983년 AT&T 벨 연구소의 비야네 스트롭스트룹이 발표한 프로그래밍 언어. C언어에서 객체지향형 언어로 발전하였습니다.

#include <iostream. h>
main()
{
cout<<"Hello, World!"<<endl;
return 0;
}

C#

2000년 마이크로소프트가 개발한 객체 지향 프로그래밍 언어.

class HelloWorld
{
static void Main()
    {
System. Console. WriteLine("Hello, World!");
    }
}

자바

1991년 시작해 1995년 발표. 썬 마이크로시스템즈의 제임스 고슬링(James Gosling)과 다른 연구원들이 개발한 언어.

class HelloWorld {
static public void main(String args[]) {
System. out. println("Hello, World!");
  }
}

PHP

1995년 라스무스 러도프와 젠드 테크놀로지스에 의해 개발된 프로그래밍 언어의 일종. 처음에는 동적 웹 페이지를 만들기 위해 설계되었는데, 텍스트와 HTML 처리에 큰 강점이 있습니다.

<?php
echo 'Hello, World!';
?>

R

1993년 발표된 통계 계산과 그래픽을 위한 프로그래밍 언어.

cat("Hello, World!\n")

자바스크립트

1995년 발표된 객체 기반의 스크립트 프로그래밍 언어.

<html>
<body>
<script language="JavaScript" type="text/javascript">
document. write('Hello, World!');
</script>
</body>
</html>

Go

2009년 구글이 개발한 프로그래밍 언어.

package main
import "fmt"
func main(){
fmt.Printf("Hello, World!\n")
}

어셈블리어

기계어와 일대일 대응이 되는 저급 언어. 저급 언어라는 건 그만큼 인간에게 불친절하고, 배우기 어렵다는 의미이기도 합니다.

adosseg
.model small
.stack 100h

.data
hello_message db 'Hello, World!',0dh,0ah,'$'

.code
main proc
      mov    ax, @data
      mov    ds, ax

      mov    ah, 9
      mov    dx, offset hello_message
      int    21h

      mov    ax, 4C00h
      int    21h
main endp
end main

루비

1995년 마츠모토 유키히로라는 일본인에 의해 만들어진 언어. 상위 10위 프로그램에 소개되지는 않았으나 추가해봅니다.

puts "Hello, World!"

수정할 사항이나 추가하고 싶은 언어가 있으면 댓글 남겨주세요.

참고

세상을 만드는 글자, 코딩
위키백과 - 어셈블리어

Sort:  

헬로월드 ㅎ C+프로그래밍 시작 첫면에서 질리도록 봤던 단어네요

Hi @yoon!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.639 which ranks you at #1611 across all Steem accounts.
Your rank has improved 8 places in the last three days (old rank 1619).

In our last Algorithmic Curation Round, consisting of 235 contributions, your post is ranked at #140.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers like your work!
  • Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!

Feel free to join our @steem-ua Discord server

헬로월드 공부하면서 가장 많이 듣는 단어들 중 하나죠 ㅎㅎ
https://github.com/Hacktoberfest-2018/Hello-world
비슷한 레포지토리 예전에 본 적 있어요 !ㅎㅎ 거의 모든 언어들의 hello world가 있답니다

오오 여기 대박이네요. ㅎㅎ 감사합니다.

헉 어셈블리어 덜덜.
대학다닐 때 괜히 수업들었다가 gg쳤던 기억이..ㅠㅠ

어셈블리어를 배우시다니요. 대단하십니다.

예전에 수업을 들어봤지만 배운 것 아닙니다,,ㅎㅎㅎ (기억 포맷..ㅠㅠ)

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 63123.52
ETH 3121.26
USDT 1.00
SBD 3.88