CS students, when's the last time you wrote code without AI? Try a 20 min SWE challenge: realdev.dev
- Views
- 63.5K
- Likes
- 71
- Comments
- 2 comments
- Shares
- 5
- Saves
- 30
Show more details Subtitles, video quality and playlist
Transcript
So this is real dev this is one of the more simple challenges on our platform ping pong API I'm gonna see if I can solve this in under 2 minutes so we're I'm just gonna use fast API and Python for this so we need our requirements text file and so what we'll have in here yeah we'll have fast fast API and we will have unicorn okay save then we can do main pie and in here we'll do from fast API import fast API uh app equals fast API and then we'll do an app get we will do ping and here we need to uh return pong so we can do turn message pong alright and then down here we can do Pip install our requirements that text okay uh we should be good to go we don't even need to test it in the terminal uh we can just click submit and all of that's handled uh behind the scenes the way it works is there's actually these hidden scripts uh you can toggle whether you want to see them or not they get filled based on your workspace and it sets the port sets how to install and how to start so you don't really need to worry about those but that's what it does when you click submit and then it'll run the expected tests against it um so all tests passing you can get feedback on whether the challenge was useful see Your server output and you can also run a code review as well. So this is going to uh, send some agents to review your code against certain standards, identify what stack and language you're using, go research the best practices and then give you a structured report and grade on your code base and the quality. Um, so I got 3.5 star, no tests, inconsistent indentation, a return type annotation, pretty standard python feedback. And then I could ask a follow up like how do I add a return type annotation and it will go back, check the code, um, and give you a response. So yeah.