Share your repls and programming experiences

← Back to all posts
colorful double helix
procoder165 (129)

was bored again in class so I decided to make this.

Commentshotnewtop
[deleted]

Nice! I can watch this for like 5 min straight.

AdCharity (1287)

nice :D I would add the middle bars as well (like the nitrogenous bases stuff)

AdCharity (1287)

@procoder165 if you look at it the right way it looks like it's spinning

DJWang (1129)

Boi this is awesome

RayvelArjoon (68)
System.out.println('That\'s awesome!');
System.out.println('But JavaScript is waaaayyyyyyy cooler...');
[deleted]
System.out.println(‘All languages are cool!’);

@RayvelArjoon

RayvelArjoon (68)

@CodeABC123 No one should be using Java because of how poorly made it is. JavaScript has better frameworks and can be easily linked to HTML and CSS files without problems. It takes a lot more time and it's stupid to use Java. You need another language if you're going to make proper graphics. I rest my case.

MatthewDoan1 (336)

@RayvelArjoon What are you talking about? You're saying that JS can link to HTML and CSS. Oh WoW JaVaScRiPt Is A fRoNt-EnD cOdInG lAnGuAgE wHiLe jAvA iSn'T!!! Java is usually used for the back-end, so they are not comparable (in this case). Also, yes Java takes more time but that doesn't mean it's stupid. Python is quick-and-easy but I hate it because of its indentation policy. Also, this isn't even "proper graphics". This is just a fun little thing he made in the console. Tell me, what "proper" graphics can you do with JavaScript besides the web page? Java can be used with LWJGL, JavaFX, Slick2D, etc. for computer games. Also, you can make Android apps with Java. Meanwhile, here we are using JavaScript for what? Oh wow a text box can move omg so cool.

pyplacca (1)

Very cool @imnuex
Why don't you use a single print function and set the sep keyword to '\n'. Like this;

print(arg1, arg2, ..., sep='\n')
imnuex (4)

@pyplacca or defining a function then using it as a loop.

pyplacca (1)

@imnuex but then, print still appears more than once for the same purpose. You need to keep the Don't Repeat Yourself principle in mind.
So you could write something like this;

def h():
    print(
        '*'*6, 
        '*'*5,
        '*'*4,
        '*'*3,
        '*'*2,
        '*'*1,
        '*'*1,
        '*'*2,
        '*'*3,
        '*'*4,
        '*'*5,
        '*'*6,
        sep='\n'
    )
while True:
    h()
imnuex (4)

@pyplacca I do remember the DRY principle.

Evanlicious (80)

@imnuex Hey, I made a shortening of your code if you want to see it. I made it more loop based, and I made it so it was not a function. I reduced the number of lines a bit too, not sure if it goes faster though.

https://repl.it/@Evanlicious/Revision-of-a-cool-thing

https://repl.it/@Evanlicious/Revision-of-a-cool-thing

imnuex (4)

@Evanlicious i mean, you can't calculate how much a computer takes to do something

Evanlicious (80)

@imnuex Sometimes there are ways, but yeah, you're probably right.

king2010 (1)

this thing confuses my mind
it turns from 2d to 3d 2d to 3d 2d to 3d ITS TOO CONFUSING but I love it

ELCerdito11 (2)

wait. are the two waves bouncing off each other or are they switching sides?

AtriDey (88)

If you look closely, it's 3D and rotating.

procoder165 (129)

@KEOLAOTA i can help you out in java, i cant really do html that well

CosmoCat07 (1)

@KEOLAOTA I can help you with html

Tylerdclark (0)

Very cool! Do you have any suggested reading to learn about shell coloring?

abbydebell (0)

made this in Neon (boArD ToO LOL XD) check it out if u wanna :p
https://repl.it/join/qakcwdah-abbydebell

lellala (0)

this is hypnotising. ITS GREAT! XD