Comments on: PHP Like a Pro: Part 3 http://www.terminally-incoherent.com/blog/2012/12/26/php-like-a-pro-part-3/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Unit Testing Sinatra Apps | Terminally Incoherent http://www.terminally-incoherent.com/blog/2012/12/26/php-like-a-pro-part-3/#comment-227847 Tue, 24 Feb 2015 21:14:35 +0000 http://www.terminally-incoherent.com/blog/?p=13343#comment-227847

[…] to be a web browser is definitely non trivial. When I work with PHP I usually use the excellent Codeception tool-set to do acceptance testing. When I work in Node or just build front end stuff, I typically […]

]]>
By: Chris Wellons http://www.terminally-incoherent.com/blog/2012/12/26/php-like-a-pro-part-3/#comment-25150 Thu, 27 Dec 2012 01:47:14 +0000 http://www.terminally-incoherent.com/blog/?p=13343#comment-25150

I’ve still been running along in parallel with my own implementation in Elisp. It’s been a lot of fun! It’s got syntax highlighting, diffs, and supports three different backend databases. Again, here’s a demo hosted for the short-term, by same text editor instance I used to write it. For visitors from the future, here’s a screenshot (and those fuzzy timestamps update live!). Try clicking the “diff” link.

http://zeus.nullprogram.com/pastebin/vQ5Y

I kept the server side as simple as possible. Counting only one backend database, it’s about 150 lines of code and only serves one static page, a few scripts, and a single JSON form. All the heavy work is done client-side, including page generation, syntax highlighting, and unified diffs. The downside is that I bet it’s not very search-engine friendly. I do have some unit tests in place, since you’re using unit tests for your pastebin.

Thanks, this has been very educational.

Reply  |  Quote
]]>