Dylan P
@Dylan-Pusilo
This account is just for user end testing for @hello1964. Sometimes I'll make Java repls on this account.
Imagine in python you are working with other people on a project, and you make a function. Then someone else uses that function and puts the wrong typ
Python
I had to use the ask feed because I made the project on another account. It's a game were you click bricks that engulf other bricks. Tell me what you
I made a team called "Terminal Reality." In this team we make terminal games. Well not "we" yet because I'm the only member. The only requirements are
So I'm working on a write function. I wanted to make it sound like it was being typed. So I made this project to test it out: https://repl.it/@hello46
Coder100 that's a connectivity issue. The audio has been super weird and not even working for some people. How about that :(
Here's what you can do:
Report to bugs
Recommend people get faster wifi
hint hint what does print('\a') do?2 years ago
RYANTADIPARTHI Check out this link:
https://stackoverflow.com/questions/43222452/play-wav-without-delay2 years ago
I'm making a clicker game with HTML, CSS, and JavaScript. To be honest I'm a noob at those languages. I made a button that adds money to your total. H
RYANTADIPARTHI It's because whenever you click the button, the text is updating, but the button is not. Once the button updates too, along with the text, it won't disappear anymore.2 years ago
I recently just learned how to use decorators in python (like 5 minutes ago). I decided to test them out. I wanted to make one that would repeat the c
Coder100 Sorry about that!
def parametrized(dec):
def layer(args, *kwargs):
def repl(f):
return dec(f, args, *kwargs)
return repl
return layer
def rep(f, times):
for i in range(times):
f()
repeat = parametrized(rep)
@repeat(5)
def test():
print("hi")
`2 years ago
Coder100 Replace this for line 42-44.
@repeat(times=5)
def printMoreStuff(text: str):
print("Hey There")
Easy, right?
read more2 years ago
I'm help @CoolGuy27 with their repl. No one who was invited to the repl could figure out why the click button won't call click() when it was pressed c
So you know most languages have 3 basic loops: While, repeat While, and for. I was thinking what if the user could create their own loops sort of like
fuzzyastrocat Ah, I actually implemented this in my programming language Sea. All control flow is implemented as a "query", so you could do things like this:
int::repeatUntil {
!$int
:while {
$();
}
}
You'd then use it like this:
x != y
:repeatUntil {
print("Wow cool!");
}
`2 years ago
techpixel @hello4691 Nevermind the last comment. This is possible in python via wrappers:
def loopwrap(func, args, *kwargs):
def inner(cond, args, *kwargs):
while not cond:
func(args, *kwargs)
return inner
@loopwrap
def test():
print('okay!')
test(True) #doesn't work
test(False) #does work
`2 years ago
I came up with a cool coding concept called simplified conditions statements (or scs for short). It's pretty simple really. In front of a conditional
OlauPla I think in the first ones you just reorder things that are possible in python or other languages, i think you don't simplify you just make it harder to read. It is what I think, just an opinion.2 years ago
Coder100 one feedback I have is to change the syntax a little bit. Right now it just looks like a silly mistake :)
Here's my revised syntax:
ifc var1 and var2 and var3 and var4 == my_var:
ifc is what it is called, do you like it?
And it also allows for:
ifc var1 and var2 == myvar or var3 and var4 == myvar:
I might even go so far to say you can suggest this to pep2 years ago
I got banned on my other account @hello1964. I didn't do anything that would have gotten me banned. So I contacted repl.it and it's been over a week a
Dylan-Pusilo You know what if no one really cares that I was banned then why should I care. I'm just ganna make really good repls and share them with my friends who do care.2 years ago