Coding Challenge  #60 - Pastebin

Coding Challenge #60 - Pastebin

This challenge is to build your own version of a Pastebin. A pastebin is a text storage site that allows users to store plain text in order to share it with other people.

The most well known version is of course the eponymous pastebin.com .

Some News - I’ve Launched a Podcast for Software Engineers!

I’ve launched a podcast for software engineers! ???

It’s called Coding Chats and it focuses on software engineering for the 99% of software engineers who aren't working in big tech companies.

You can find it on YouTube , Spotify , Apple Podcasts and Google Podcasts .

The Challenge - Building Your Own Pastebin

A pastebin is a relatively simple concept, you’ve probably used one, for example GitHub Gists are one.

If you haven’t then have a quick play with the Mozilla Community Pastebin as an example of a nice user-friendly version.

Step Zero

Try something different this week! If you usually develop in an IDE, give Vim a go. If you use Vim, perhaps check out an IDE. You probably won’t want to change, but it’ll help if you have to pair with or work with other members of your team who work differently to you.

And of course every software engineer should know the basics of using Vim because it’s the editor that’s most likely to be on a server when you need to edit some config for an emergency prod fix. Just don’t forget to document what you did and apply the change to the source code once the immediate issue is resolved.

Step 1

In this step your goal is to create a site that lets a user paste some content into it and submit the content. When they do that, they should get back a unique URL for the content. So a simple GUI like this:

Then when they press submit, generate a unique id for it. One way to do that is to have some form of atomic counter, another is to generate a hash from the content. Either way return to the user a new unique URL, i.e. https://ccpastebin.fyi/fe45swq .

Continued...

The remaining steps for this Coding Challenge are available on the Coding Challenges website as build your own pastebin .



Jon Finstad

NOC Technician @ Connection | LAMP/LAPP Developer / GNU Linux Guru / Python Dev. AI/VI/ML Guerrilla Innovator. Malware and Artificial Life Researcher. Xenocomputing theory, design, and game theory.

6 个月

Pretty easy to do with Flask and python.. 43 lines.

Ryan K.

Computer Programmer, Business Owner/Operator

6 个月

Meanwhile, every talking head on these platforms constantly beats it into your head that individuals cannot accomplish anything themselves.

Elliot One

Entrepreneur | Founder at XANT | Full Stack Engineer at AITIS | Shaping the Future with Intelligent Software Solutions

6 个月

Wonderful challenge

We write for ourselves! Great! This self-confidence of programmers makes me sick, but I'm also tired of those who maintain this misplaced self-confidence. What if they first tried swapping two variables? Then a couple of linklists. No! We build our own Redis. ;)

CHESTER SWANSON SR.

Next Trend Realty LLC./wwwHar.com/Chester-Swanson/agent_cbswan

6 个月

Useful tips.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了