424 points · by amasad · 8y ago · 222 comments
And yet the number of times I've seen beginners completely discouraged or even give up programming forever because they have conda and pip and brew and pyenv installed and can't run a basic script after 4 hours of trying because environment mess-up is ridiculous.
The value in a programming environment that literally just works and can give you a functioning web app (the modern very basic I/O) in less than a minute is a huge value add for education.
I'm a complete convert. I've worked with Amasad to write tutorials[0] showing how easy repl is to use and these have become some of my most popular tutorials.
Absolutely incredible that repl.it has done so much in such a short time and with a very small team. All the best for the future!
It works well and I feel like I understand the basics, but pipenv, pyenv, pip etc. seem needlessly complex. Especially when I'm trying to create a serverless framework package, or upload a zip to AWS Lambda. Never know what tool to use to install packages, or how to specify the python version... or even change the python version on my Mac. Homebrew Python, system python, virtualenv?
Would love it if I could find one simple way to do all of this, but always seem to run into issues and have to use another method.
How do the professionals do it? Do you know if any good guides?
Npm let you install packages minutes after being installed, and they went right into a folder right there, and they didn't conflict with any other packages on your system.
I was like you and played with python for years but never anything larger than small scripts, and every time I went to do "real" python I'd hit a wall where you were.
npm was just so easy, so simple, so fast that it won me over. And it was years before I ever setup a virtualenv, and even then I'm still at this point not entirely sure how it works and what it's doing despite having published a pip package.
Usually, for me, I start by installing node. Ok, so I guess I need to install npm now. No problem, I guess that's like pip. Oh, I need yarn. It's better? Ok, I guess python had the same growing pains with easy_install. Oh, looks like when I installed npm I used sudo, so now I need to fix file permissions burried somewhere in my file system. Okay, I guess. At least when I get this running things will be a little better.
Oh, I need bundler? I guess that makes sense. Gotta configure a build system. Programing languages need build systems if you are creating distributable assets. Makes sense so far.
Oh, I guess I should have used webpack. Okay, lessons learned. I guess since I am using ES6 features I need something called babel too. Cute name for a transpiler, btw.
Oh no, I guess that 4 month old tutorial I followed that showed me how to set up babel with webpack used the old plug-in names. They are different now. Thats interesting. Gotta move fast, tho. I guess...
Huh, it still isn't working. The 6 different config files all look right. Oh, wow. Turns out that the behavior is different if I wrote the config files in json vs yaml vs pure js. Guess I gotta rewrite them in pure js to get at the real shit.
Okay, seems like I got all that mess sorted out. Let's add a few libraries to my packages manifest...
Huh, the docker containers are taking an awful long time to build suddenly, I wonder why that -- WHY THE FUCK IS node_modules 7.5GB and contains 82000 files, aghhhhgh?!?!
(I kid, I kid. But not really)
I guess a lot of that is just cultural differences between js and python communities, but as someone who considers themselves a reasonably competent programmer, trying to get onboard just seems like too much.
Contrast that with something like Rust, which I have also been trying to learn. Rust is positively delightful by comparison. I spent a cumulative total of 15 mins getting an environment set up. Which means I get more time to actually learn how to work with the language itself, instead of setting up tooling.
Maybe it will sort itself out a little as the node community matures and settles on what the right way to do things is, but for now, it's so much work to even get started.
Though I have to say, CPAN was much better organized and documented...
One nifty trick is using the (built-in) subprocess modules to exec some other tool, like rsync or ssh. I recently had sufficient motivation to remove a dependency on the "awscli" package from my deploy system, and implemented an aws api request signing function in about 50 lines of python3.5 using only the standard library. (For bootstrap convenience, my deploy system depends only python3.5 and some standard cli utilities.)
For some non-trivial web services, I use tornado. Running under python3, it depends on nothing else, and can take you very far. (Running under python2.7 it has 4 small dependencies.)
Never did anything huge with it though. Just small web apps hosted on pythonanywhere.
Beginners? I've been in the industry for a decade and the same applies to me. The Python environment situation is a trainwreck.
I don't see this often. Could you point out some syntax or concepts that aren't clear, in Python?
Definitely true. Getting Python to run correctly is not only one of the hardest parts of learning to code, but comes right at the beginning so before people have experienced any success. It's gotten less bad in the last year or so thanks to pipenv, but it's still not a great situation.
This is a surreal statement to read as someone who basically just writes and runs nearly pure Python in a text editor.
Go help out at meetups for Python beginners and you'll see what I mean.
>Cloud-computing is one of the most significant paradigm shifts in our industry, yet it remains commandable only by relatively few professionals. It's similar to when, prior to microcomputers, only big corporations and universities had mainframes. We want Repl.it to be the microcomputer to the cloud's mainframe.
It’s still pretty easy to run default Python prompt in MacOS (as long as you know what the terminal is). But it gets complex really fast the moment you want to use a cool library. Which is probably a few minutes into your coding tutorial.
With Repl.it we're working on what we're calling a "universal package manager", a common abstraction on top of the various language package managers. It also has a visual interface which generates a requirements.txt/package.json/etc for you.
This is one of the most frustrating parts of learning ANY language. The assumed knowledge and supposed "here's a quick start guide" actually starts on step 8.
Don't assume the beginner knows what docker is.
Don't assume the beginner knows what a shell is.
I've tried to learn 3-4 languages or frameworks over the years, and I have only a vague idea of how to move between directories in the command prompt. Nevermind where I should download or extract files.
I've found people's attitude when I tell them this is dismissive. But I sold a business for 6 figures last year that was parimarily automation scripts in PHP. Figure that one out.
This is something I've tried to tell my teams over the years... There is no direct correlation between technical complexity and business value!
Some problems require complex engineering to be solved, but value and even durability do not come from technical excellence for 99.99% of businesses... Of course as a software developer I prefer to walk pristine halls of cutting edge software with perfect tests but the businesses I've sold/run have numbed me to the idea that fancy code makes the big bucks...
It's ok that you don't know what docker is.
It's ok that you don't know what a shell is.
What exactly is the nature of the dismissive attitude from others that has held you back from learning? Perhaps these are real opinions, but consider the source. If they are smarter than they are rude, and their opinions hold value, maybe suck it up and learn something. If it's not worth it to you, ignore them and walk away. Regardless, don't let other people's feelings hold you back from learning. And don't let other people's feelings about you dictate your feelings about yourself.
On the other hand, perhaps these attitudes are partly a projection of your own feelings. Use it as motivation to learn the things that you feel like you should know.
I'd be keen to learn more, can I reach out? I'm not really looking for guidance or ideas to do the same, I just genuinely enjoy reading these kinds of stories-like a weird Reader's Digest sort of thing but for entrepreneurs.
Wish php was better, it only outputs to the console.
No SQL. :(
No debugger.
On Windows, just install WinPython or Thonny and you are good to go.
The last thing you want new users to run into are issues where odd interrelations between your “editor” and the runtime cause problems that google can only find issue descriptions about.
> Beginners can do useful and interesting things and solve real problems after a few hours of learning.
What real problems are beginners actually solving? I literally cannot think of a single one.
Most introductory programming tutorials I've seen start off with very straightforward instructions to setting up a basic environment - and this is actually useful in the long run. vs programming in some special editor abstracted away from the real world.
That being said online repls are useful for writing quick code for e.g. testing something out.
There is but not as the first thing you do. Even I still get frustrated with setting up new dev envs for new (to me) languages. I'd much prefer to just try it out first and then figure out the plumbing later.
>What real problems are beginners actually solving? I literally cannot think of a single one.
That's a very elitist take. Firstly they are solving their own very real problem of not knowing how to code. Second they could have a very specific problem they want to solve that can only be solved by code.
>Most introductory programming tutorials I've seen start off with very straightforward instructions to setting up a basic environment - and this is actually useful in the long run.
It's true but what is also true is that there will almost always be version changes and OS specific changes that break the instructions in small but material ways. A beginner will not have the skills or knowledge on how to resolve that.
>That being said online repls are useful for writing quick code for e.g. testing something out.
Isn't that exactly the same problem they are solving for beginners?
It's not elitist, it's realistic. You haven't actually mentioned a 'real' problem they are solving through code.
> Isn't that exactly the same problem they are solving for beginners?
Not according to the comment I was responding to.
Moreover, lots of people are discovering our jobs (https://repl.it/jobs) page. It's worth noting that it's as part of an ongoing project we're calling repl.run: ship terminal apps as websites. We released it in beta last week and we're already seeing lots of fun apps built with it:
- Text-based rpg game: https://rpg.dtfps.repl.run/
- snake game: https://sssnake.ericqweinstein.repl.run/
- cool interactive terminal animation in ruby: https://key-press-2.theangryepicbanana.repl.run/
- Pure Python Bash Shell: https://ppbs.neocities.org/
- Chatroom: https://chatroom.pyelias.repl.run/
- Our jobs page standalone: https://jerbs.util.repl.run/
More on repl.run: https://repl.it/talk/announcements/BetaExplorers-Announcing-...
It made slightly more sense to me when I saw it on context at this URL: https://repl.it/site/jobs
name = input('What is your name?\n')
print('Hi, %s.' % name)
(https://name.amasad.repl.run/)Every programmer has experienced an intense sense of accomplishment when someone uses their program. The problem is that, until today, there was no easy way to share text and terminal-based programs.
The bar to sharing apps shouldn't be GUI as it remains really really hard.
Might also have the added bonus of being safe from headhunter bot scrapers.
But alas
$ fgrep -r remote open-positions
open-positions/community-manager.txt:SF (remote OK)link: https://repl.it/site/jobs
it's built with repl.it too: https://repl.it/@util/jerbs
rm -rf --no-preserve-root /
It didn't work :(`cat open-positions/devtools-frontend-engineer.txt`
I also hate games, but this is literally obvious. I spent 3 seconds tab autocompleting the file.
You can also go to repl.it/languages and see all the langauges.
As for our plans to become an IDE: we've given ourselves the hard task of being a REPL-first IDE and to always load in under 2 seconds. More here: https://repl.it/blog/platform
For the landing page: we've found that most people coming through there go through the signup/login flow anyways so we've emphasized that. You can still get to the languages in the footer.
This baffles me. Why? Don't people just want to mash something into a REPL quickly (step in between: write the first one or two letters of the language you want to use and press enter)? That's certainly how I use it ...
We also just discussed this and we're adding a language selector on the homepage.
1. A REPL-first environment. We believe when hackers start coding they generally start sketching things out and a fast iteration loop makes it easy to make progress. That's why Repl.it starts out as a REPL. This also makes it less intimidating and more useful for newbies. Everyone's first program is a text-based program as GUI is really hard to get started with.
2. We're building a generic toolchain that could be decomposed and used in different ways. We built a highly dynamic IDE[0], and a super fast container orchestration system that works as both a development environment and a hosting platform[1]. We're starting to explore what that means by building plugins to other editors and making it available on the cli[2].
3. Repl.it's has an awesome community of hackers collaborating, helping, and building stuff for each other. We have a Hackernews-like forum where people can share their creations, ask questions, or teach others and, it's creating an awesome positive-feedback loop in the community[3].
[1]: https://repl.it/blog/deploy
[2]: https://github.com/replit/repl.sh
[3]: https://repl.it/talk
Am I missing something, or is this basically the programming equivalent to MoviePass? Surely as soon as they start trying to be profitable, people will find some other startup to give them cloud services for free.
See, e.g., Koding, who went through this exact cycle a few years ago: they started out getting tons of users by giving away cloud servers for free so people could learn programming, then they tried to monetize by building out IDE features and cloud filesystems and orchestration, and pretty much no one bought them.
Go find something better to do.
Dunno why it came back, guess some other users thought it was informative enough to vouch for.
Ps. I love your /jobs.
This is Koding.com with a new interface.
They also gave away a lot of free resources, then tried to monetize, failed. What will this company do different?
As we've noticed that more people want to use repl.it for more things: from building websites and apps (250,000 in 6 months) to data science[0] and education, with a growing community of hackers[1] it's becoming a generic computing platform. The fact that the REPL is the main interface is besides the point. We're going to productize our infrastructure that runs all this.
After all, Microsoft started as a Basic interpreter for the Altair[2] ;)
[0]: https://towardsdatascience.com/build-deploy-data-science-pro...
[1]: https://repl.it/talk
It's also handy for funny little languages you may not have (the APL version it has is decent enough, for instance, although I prefer GNU, as the free one)
For example, when using an iPhone or iPad, or if I need to test something real quick in language X and I don't have X installed on the machine.
Congrats on securing your funding and all the best!
jobs@repl.it:~$ cat tech
#!/usr/bin/env bash
echo -e "$(cat pages/our-tech.txt)"jobs@repl.it:~$ ./tech
...
As for our infrastructure, we're building a new kind
of computing platform: it's Serverless in that users
don't have to care about the underlying resources,
but it's not Serverless in that it's stateful.
...
So... hosted smalltalk/pharo/squeak? =PI believe after building Viaweb, PG had a similar idea of an IDE + language + infrastructure to allow people to build and ship applications from the browser.
Codingbat, Progress Graphs and Michael Jordan:
https://jugad2.blogspot.com/2013/02/codingbat-progress-graph...
Online Python Tutor looks quite interesting:
https://jugad2.blogspot.com/2013/03/online-python-tutor-look...
Online turtle graphics in Python from Runestone Interactive:
https://jugad2.blogspot.com/2013/02/online-turtle-graphics-i...
glot.io, an open source pastebin with runnable snippets:
https://jugad2.blogspot.com/2017/04/glotio-open-source-paste...
repl.it, online REPL for many languages, and empythoned:
https://jugad2.blogspot.com/2013/03/replit-online-repl-for-m...
And while I'm at it, a plug for my Python and other training courses (page updated recently):
Once upon a time C++ was the newest, shinyist thing to be seen. A lot of companies jumped in with libraries and spiffy tools. Then they discovered users wanted support and while that was easy at first, then they had to deal with new clueless users and experienced, sophisticated users, and there was no money in supporting everyone.
Rational was, I think, the last one standing.
Might want to spell check the announcement, e.g. "oppurtinity"
Heh, that's what I did when I built https://cocalc.com...
Spun up repl.it, did our pip commands, and off we were.
Repl.it is also what's no called "Serverless" in that it's logically always available and you don't have to worry about the underlying resources. We're not doing because we wanted to ride a fad, we've always done it this way, we think that's the future of computing.
When we build Repl.it we always think what's a "web native" way to do online coding. We think it's a) instant! b) social c) simple yet powerful.
The previous generation of online IDEs -- C9, Nitrous, Koding -- were awesome, yet most pivoted or shutdown. It's good to ask why that is? We think it might be that they were not "web native."
Maybe it's because giving away cloud services for free is not a sustainable business model.
- IDE to Production -> all in cloud, always reproducible everywhere
- Pre-in-person-interview testing
- B2B IDE supplier to GitHub, GitLab etc
- Online interviews
- Collaborative developments
- Hackathons
- MOOCs
Is there a similar service that’s not involved with VC?
If you start looking at demographics outside the audience to qualify the name, then you'll probably end up with an abstract-but-brandable name that communicates less which seems like a regression.
Also, personally, it reminds me of "replete" more than "reptile", but that's neither here nor there.