Eagle Time
syntaxwise, what is the best programming language? - Printable Version

+- Eagle Time (https://eagle-time.org)
+-- Forum: BAWK BAWK (https://eagle-time.org/forumdisplay.php?fid=17)
+--- Forum: Hawkspace (https://eagle-time.org/forumdisplay.php?fid=18)
+--- Thread: syntaxwise, what is the best programming language? (/showthread.php?tid=1804)

Pages: 1 2


RE: syntaxwise, what is the best programming language? - Loather - 08-17-2016

[Image: supergood.png]

this is what the maps look like


RE: syntaxwise, what is the best programming language? - Loather - 08-17-2016

i first made one that made tiny islands from noise but ehhhhhH

[Image: another.png]

it looked kinda crap


RE: syntaxwise, what is the best programming language? - Loather - 08-17-2016

goodnight


RE: syntaxwise, what is the best programming language? - Reyweld - 08-17-2016

I really like that first one!

Such a good programm.


RE: syntaxwise, what is the best programming language? - Reyweld - 08-17-2016

Sleep tite


RE: syntaxwise, what is the best programming language? - Loather - 08-17-2016

thank youu

it works by scribbling a bunch basically (but never drawing over the same spot)


RE: syntaxwise, what is the best programming language? - a52 - 08-17-2016

I (a lot (like lisp))


RE: syntaxwise, what is the best programming language? - Kíeros - 08-17-2016

Here is a complete list of things you can't do in Python with enough effort (which is usually very little):



RE: syntaxwise, what is the best programming language? - a52 - 08-17-2016

(08-17-2016, 01:23 PM)Loather Wrote: »heres a map generator i made in python, please judge softly

Code:
from Tkinter import *
from random import randint

def buildIsland(xStart, yStart, landCounter, blobbiness):
    global mapArray
    
    mapArray[xStart][yStart] = "green"
    while landCounter >= 0:
        xCoord = xStart
        yCoord = yStart
        
        while(mapArray[xCoord][yCoord] == "green"):
            if xCoord >= 1 and xCoord <= 299:
                xCoord += randint(0,2) - 1
            elif xCoord >= 1:
                xCoord -= 1
            elif xCoord <= 299:
                xCoord += 1
            if yCoord >= 1 and yCoord <= 299:
                yCoord += randint(0,2) - 1
            elif yCoord >= 1:
                yCoord -= 1
            elif yCoord <= 299:
                yCoord += 1
            
        mapArray[xCoord][yCoord] = "green"    
        landCounter -= 1

        if randint(0,blobbiness) == 1:
            xStart = xCoord
            yStart = yCoord

master = Tk()

xCoord = 150
yCoord = 150

canvasWidth = 300
canvasHeight = 300

xCounter = 0
yCounter = 0

zoomLevel = 1

mapArray = [["blue" for x in range(canvasWidth + 1)] for y in range(canvasHeight + 1)]

#Build islands
for x in range(0,50):
    buildIsland(randint(0,300),randint(0,300),randint(150,2000),1)

#Set up canvas
drawMap = Canvas(master, width = canvasWidth * zoomLevel, height = canvasHeight * zoomLevel)
drawMap.pack()

#Draw map
while(yCounter <= canvasHeight):
    while(xCounter <= canvasWidth):
        drawMap.create_rectangle(xCounter * zoomLevel, yCounter * zoomLevel, (xCounter * zoomLevel)+ zoomLevel,
                                (yCounter * zoomLevel) + zoomLevel, fill=mapArray[xCounter][yCounter],
                                 outline=mapArray[xCounter][yCounter])
        xCounter += 1
        
    xCounter = 0
    yCounter += 1

mainloop()
Wait, in Python function decs have colons instead of curly brackets? Weeeeeiiiirrrrd....


RE: syntaxwise, what is the best programming language? - qwerx3 - 08-17-2016

(08-17-2016, 06:40 PM)Kíeros Wrote: »Here is a complete list of things you can't do in Python with enough effort (which is usually very little):

Challenge: construct a Python program that determines whether a program will run into an infinite loop or not.


RE: syntaxwise, what is the best programming language? - Kíeros - 08-17-2016

Okay, a complete list of things you can't do in Python with enough effort (which is usually very little) that you can actually write a program to do.


RE: syntaxwise, what is the best programming language? - ☆ C.H.W.O.K.A ☆ - 08-17-2016

binary


RE: syntaxwise, what is the best programming language? - Gatr - 08-17-2016

i voted python because reptiles

but for real assembly is the best B) B)


RE: syntaxwise, what is the best programming language? - Kíeros - 08-17-2016

(08-17-2016, 06:52 PM)qwerx3 Wrote: »Challenge: construct a Python program that determines whether a program will run into an infinite loop or not.
Actually, I just realised this is doable, because you forgot one key part of the halting problem. You never said this program couldn't run infinitely either. So I'm pretty sure something like this would work:
Code:
check=exec([other program])
if check==None:
   return True
else:
   return False



RE: syntaxwise, what is the best programming language? - Loather - 08-17-2016

python doesn't have pointers, so there are legitimately things you can't do at all

and while you can do a lot, large programs written in python can run pretty slow compared to large programs written in other languages. like you could write a full 3d game engine in python, but it'd run like a slideshow (though some games use it, just not for the engine)


RE: syntaxwise, what is the best programming language? - qwerx3 - 08-17-2016

Well, I mean, you can simulate pointers if you REALLY wanted to

but then you really should just use C++


RE: syntaxwise, what is the best programming language? - SeaWyrm - 08-19-2016

I am trying to learn Haskell.

So there.


RE: syntaxwise, what is the best programming language? - Kaynato - 08-19-2016

I programmed in ANSI C using MinGW on Windows for a while.

Then I experienced firsthand why this wasn't the best idea.


Bingogogo - Reyweld - 05-04-2018

Programming is fun. I programmed a really simple Gashapon machine for my brother's story in html/javascript vaguely recently, but I really need to get back to it.

I took a course that taught me java (java) last year, which I won the award for. I programmed a Binding of Isaac-esqe game for my final that was pretty fun to make. It was very simple.


RE: syntaxwise, what is the best programming language? - a52 - 05-08-2018

i should probably mention that i haven't really coded in anything but python (+ game dev engines) for the last two years, so, you win this time, loather.