LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   I want to start programming with Gödel language (https://www.linuxquestions.org/questions/programming-9/i-want-to-start-programming-with-g%F6del-language-4175624376/)

Kurt Gödel 02-24-2018 09:41 AM

I want to start programming with Gödel language
 
I don’t know anything about computer programming.
So here I need help please explain to me how computers work.

I found this language called gödel,
but is this the language i can create a game with?

And I do want to know where can I go to learn programming.

BW-userx 02-24-2018 09:51 AM

Quote:

Originally Posted by Kurt Gödel (Post 5823615)
I don’t know anything about computer programming.

gaming programming is not a good place to start.

Quote:

Originally Posted by Kurt Gödel (Post 5823615)
So here I need help please explain to me how computers work.

if you are still needing to learn/know that, then computer programming for games is not a good place to start.


Quote:

Originally Posted by Kurt Gödel (Post 5823615)
I found this language called gödel,
but is this the language i can create a game with?

And I do want to know where can I go to learn programming.

a programming language by your last user name? How queer is that? (queer means strange, then it was givine over to mean something about strange ... that fit the definition of queer, so yeah anyways....)

where did you find this programming language did it not state what it was used for?

oh it was actually, It is named after logician Kurt Gödel. someone by your same name, and you know nothing about it, that too is queer.
not to try and sound too snobbish but here is a write up on someone by your strangely enough same user name.


https://en.wikipedia.org/wiki/G%C3%B...mming_language)

and

https://mitpress.mit.edu/books/g%C3%...mming-language

a little reading up on your user name might provide you with some useful information.

pan64 02-24-2018 10:05 AM

based on this site: https://en.wikipedia.org/wiki/G%C3%B...mming_language) the language first appeared in 1992 and based on this: https://en.wikipedia.org/wiki/Kurt_G%C3%B6del you had already died, so there is no way to use that language....

Kurt Gödel 02-24-2018 10:11 AM

It says like this : Gödel is a declarative, general-purpose programming language that adheres to the logic programming paradigm. It is a strongly typed language, the type system being based on many-sorted logic with parametric polymorphism.

I mean,what is this? What can I learn from this? where do I even start?

Kurt Gödel 02-24-2018 10:21 AM

And iI go into the declarative link, i find this

In computer science, declarative programming is a programming paradigm—a style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow.[1]

Many languages that apply this style attempt to minimize or eliminate side effects by describing what the program must accomplish in terms of the problem domain, rather than describe how to accomplish it as a sequence of the programming language primitives[2] (the how being left up to the language's implementation). This is in contrast with imperative programming, which implements algorithms in explicit steps.

Declarative programming often considers programs as theories of a formal logic, and computations as deductions in that logic space. Declarative programming may greatly simplify writing parallel programs.[3]

Common declarative languages include those of database query languages (e.g., SQL, XQuery), regular expressions, logic programming, functional programming, and configuration management systems.

Kurt Gödel 02-24-2018 10:24 AM

And I don’t understand what you mean by “programming for games is not a good place to start”

BW-userx 02-24-2018 10:37 AM

Quote:

Originally Posted by Kurt Gödel (Post 5823627)
And I don’t understand what you mean by “programming for games is not a good place to start”

it is a VERY complex thing to do. If you know nothing about programming it becomes even more complex. There is more to it then meets the eye. sure you can follow along with the how to make a ball bounce on the screen, but then what and how would you do it?

make paddles to hit the ball, do the graphics to show little people holding the paddles and make them interact between the two? etc..

OOP's is what you'd need/may need to learn or you could use BASIC with the ... well ... goto peek and poke statements and such

show me how to write a proper main function in C and C# and Java and C++

being all programming languages one could write a game with.

Kurt Gödel 02-24-2018 10:48 AM

Quote:

Originally Posted by BW-userx (Post 5823630)
OOP's is what you'd need to learn or you could use BASIC with the ... well ... goto peek and poke statements and such

This is the part i don’t understand. What is OOP? Or peek and poke...

BW-userx 02-24-2018 10:49 AM

Quote:

Originally Posted by Kurt Gödel (Post 5823634)
This is the part i don’t understand. What is OOP? Or peek and poke...

exactly my point. :D

http://www.gladlylearn.com/BlastOff.htm

https://en.wikipedia.org/wiki/PEEK_and_POKE

michaelk 02-24-2018 11:40 AM

As stated you can probably write some type of game in almost any language but using gödel even if you could learn or actually use it would not be practical. You should start with one of the more common languages in use today.

This might give you some ideas on learning how to code.
https://blog.ted.com/10-places-where...learn-to-code/

Writing about how computers work in this thread/forum would take way to much time/space. You can find many sites that explain the basics but you could also go to your local library or bookstore and find many books to read.

Soadyheid 02-25-2018 11:47 AM

Why don't you try programming in Python which is included in most distros?

I'd recommend Python Programming (Third Edition) for absolute beginners which teaches you the language by coding simple games, one per chapter, from text games up to graphic stuff.

I'm basically a hardware guy but found this useful on the few occasions I've needed to write something.

Hope it helps! :)

Play Bonny!

:hattip:

BW-userx 02-25-2018 02:12 PM

exactly, at least pick a language that is still being used today. Of course you're going to need to change your user name. :D

JeremyBoden 02-25-2018 02:52 PM

Kurt Gödel might be a common Austrian name?

Have you considered learning Eiffel? <joke>
It's still a going concern, despite Gustave being long dead.

pholland 02-25-2018 08:58 PM

I don't know about the Gödel programming language, but you can write games with the Python programming language. The web page below includes names of some free, Creative Commons-licensed books on Python for complete beginners with no programming experience.

https://wiki.python.org/moin/GameProgramming

JJJCR 02-26-2018 04:02 AM

Quote:

Originally Posted by Kurt Gödel (Post 5823634)
This is the part i don’t understand. What is OOP? Or peek and poke...

Hmm..what is you aim actually?

If you want to start programming, you must have something in mind that you need to program or create. Hopefully something ethical, :).

OOP - Object Oriented Programming.

One thing you should consider when picking a PL (programming language).

Make sure it is widely supported, you can easily ask for help or find resources on the net.


Since you are in a Linux forum, you can go for Java, C, or C++. To be honest it depends on how determine you are to learn programming.

Programming sucks sometimes if not most of the time, a single semi-colon if omitted can ruin your day if not weeks. :)

Check out links below it might help:

http://www.programmingbasics.org/en/

https://skillcrush.com/2016/03/15/64...code-for-free/

rtmistler 02-26-2018 06:58 AM

Hi Kurt Gödel,

As others have said, a more common and current language is useful.

Meanwhile I started with the C language. OK, OK, I really started with assembly language ... don't do that! While it is good to know how microcode is constructed and how instructions are formed in an Arithmetic Logic Unit (ALU), it is one of those things which is additive to your overall knowledge.

With C, I've found that Java, Python, Tcl, C++, C#, Objective-C, and many variations are all within my reach. The structure of C lends towards what most of those other languages do.

Don't limit yourself to a single language or limitation. Don't rely totally on auto-IDE creation of projects. Let that start you, but learn how to write the code to do something. Let the IDE and graphical editors allow you to draw beautiful looking pages, buttons, widgets, screens, etc, however do not fail to learn what the code needs to do, to accomplish what the program goal is.

Meanwhile, ... OK fine, program video games. Bear in mind that all of life is competitive. JJJCR makes a point about what you want to do, and also seems to cover what you may need to do. I.e. Do you need a job and a career? Well, your career may not always turn out to be exactly as "cool" as you'd like it to be. Sometimes you have to start to crawl in order to walk and run. If you really, and truly wish to program games, then get a job at a gaming company as a programmer. They are no more or less special than people who program other stuff. I'm not trying to insult, just telling you to keep your perspective open about what you may do for jobs in life.

I used to work with a much older guy who was quiet, but when you got to know him, his career was very interesting to me and my peers. He used to live and work in Florida, back in the 50s and 60s. So he worked for NASA, which we felt was cool. He also worked for Disney or a company who served them, and he did the eye blink algorithms for the animatronics that they used. Sure, that's all very old stuff, but back in the day, it was as cutting edge as what we consider to be the cutting edges of today. You never know what opportunities are there unless keep your perspectives open.

BW-userx 02-26-2018 07:24 AM

Quote:

Originally Posted by JJJCR (Post 5824342)
Hmm..what is you aim actually?

If you want to start programming, you must have something in mind that you need to program or create. Hopefully something ethical, :).

OOP - Object Oriented Programming.

One thing you should consider when picking a PL (programming language).

Make sure it is widely supported, you can easily ask for help or find resources on the net.


Since you are in a Linux forum, you can go for Java, C, or C++. To be honest it depends on how determine you are to learn programming.

Programming sucks sometimes if not most of the time, a single semi-colon if omitted can ruin your day if not weeks. :)

Check out links below it might help:

http://www.programmingbasics.org/en/

https://skillcrush.com/2016/03/15/64...code-for-free/

don't forget about that the 100 lines of code you just wrote then end up with one misplaced or forgotten bracket

ntubski 02-26-2018 07:28 AM

There's an earlier thread on LQ about this language:

https://www.linuxquestions.org/quest...ge-4175432487/

The conclusion is not especially promising:
Quote:

Originally Posted by markush (Post 4808425)
Quote:

Originally Posted by LoTeK (Post 4808418)
http://www.cs.cmu.edu/afs/cs/project.../goedel/0.html

"..Linux executables are included in the distribution..."

for kernel 0.99.
Please post if it works for you. I've only 64bit without multilib installed, so it will not run here.



JeremyBoden 02-26-2018 08:13 AM

Choose a "small" language - one where you can do a lot without having to learn the details of thousands of potential importable modules to achieve a sensible result.
If a language doesn't have a built-in basic "print" option, then it it isn't suitable as a first language.

Why not learn a script language such as BASH - it contains the basic programming constructs and will always be useful on Linux.

masterclassic 02-26-2018 11:43 AM

I'm afraid that a logic programming language like Goedel (or Prolog before) wouldn't be easy to use in application software. I am not computer professional my self, however I know that all my professional friends used C or C-like languages. I have friends that worked with Prolog in university environments (expert systems), not in production companies.
Furthermore, I think that this language has little to do with the mathematician Kurt Goedel. It is perhaps just named in honor of him.

I think our Moderator rtmistler and others is true. It is better to select a more common language well supported and documented. Simple games can be made in many languages, even BASIC. Big complicated games need teams of programmers to work into. The most important is to develop the game content, a content that will make your work to be distinguished from other games. This isn't easy at all. I mean, the technical aspect is just one of the aspects but not the only one.

astrogeek 02-26-2018 02:10 PM

As others have pointed out, the place to start is to define what you want to accomplish, then choose an appropriate language.

Other than the name itself, what are the reasons that you want to use Gödel language? If the name is the primary reason then you have set a difficult task for yourself as that is very little context within which to learn new concepts! ;)

You have said that you want to write game programs, but that is still a very broad category!

The basic problem of all programming is how to organize your code, both functionally (data structures, flow control) and within the development environment. OOP, Object Oriented Programming is one very useful set of methods, there are others. Different languages will have differing levels of built in support for OOP concepts from none to everything, but that is really only a help or hinderance if the programmer is thinking in OOP! Similarly for other programming paradigms.

But the very first thing that you must do is learn the basics common to all programming: Variables (data), functions (actions on variables) and I/O (what goes in and what comes out). And the very best way, the only way to do that is hands-on.

So set up a system to play with, pick a language, any language, and begin your initial work with a few "Hello World!" examples written for that language - you will always find them! As others have suggested, start with a current, well supported language which will mean many others ready to help! Python seems to be a popular choice these days and provides an interactive shell which is a great learning environment. Others good places to start and well supported on any Linux platform are C/C++, PHP, Perl... lots of choices! But pick one and stick with that one until you are able to write simple programs - switching languages daily will hurt more than help in the early days!

Good luck!

NevemTeve 02-27-2018 02:30 AM

@OP: Try this: https://scratch.mit.edu

JJJCR 03-01-2018 09:23 PM

Quote:

Originally Posted by BW-userx (Post 5824403)
don't forget about that the 100 lines of code you just wrote then end up with one misplaced or forgotten bracket

Yes it's quite tiring, trying to find a lost single bracket. I used Notepad++, it seems quite good in finding missing brackets.


All times are GMT -5. The time now is 12:20 PM.