Live data from Hacker News

Why must you laugh at my back end?

blog.pud.com

191–200 of 230 posts

Re: Why must you laugh at my back end?

#191
post #183
post #154

Earlier quoted context omitted.

You ever played Weiqi? (Otherwise known as Go). Unlike chess, stones don't move once played. They can only be captured. On a 19x19 board, you have to balance short-term gains with long-term gains. Since there are no left-right or top-bottom orientations, you often have to reimagine where you draw the lines of territory as you play. Sometimes, you can kill your shapes by playing too many stones. Better players can see…

Ah, but in Go there is the concept of good shape - you can play along similar strategic lines with both good and bad shape, but if you play your stones clumsily (write your code in PHP?), you will be vulnerable to many forcing plays and clever tesuji that may transform the position into an unwinnable one. It could happen during the middle game - bad shape may allow a group to be cut in half or have its eye shape poun…

See (4) about unconscious incompetence.

Re: Why must you laugh at my back end?

#192
post #9

This is great. Seriously. I cut my teeth in the early 2000s writing the type of PHP code that would make your eyes bleed. Global variables everywhere. HTML/PHP/MySQL in the same file. Career-wise I ended up going down a backend/database developer path, so if I do anything with consumer-facing web applications, it's on my free time. I'm working on such an app now, and right now the fastest way I can get anything done…

I was like you back in the day, then I tried using one of the new frameworks (it was Django) and I was like why didn't I do this earlier, it would have saved me a bunch of time from all the stuff it does for me and the less writing I have to do.

Re: Why must you laugh at my back end?

#193
post #9

This is great. Seriously. I cut my teeth in the early 2000s writing the type of PHP code that would make your eyes bleed. Global variables everywhere. HTML/PHP/MySQL in the same file. Career-wise I ended up going down a backend/database developer path, so if I do anything with consumer-facing web applications, it's on my free time. I'm working on such an app now, and right now the fastest way I can get anything done…

My web app mockuptiger is exactly what you say html/jquery/php/mysql look at wordpress, joomla, drupal

Um, what? For all practical purposes, those apps you mentioned are frameworks. Joomla actually has a pretty firm MVC structure inside, and IIRC Wordpress's codebase has a rep for being hard to work with. Drupal makes no bones about being a framework. These are not good examples to support a "just stick it together" philosophy, if that is indeed your philosophy.

You have to stick the layers together at some point, but you'll still probably be better off keeping the glue out of your "business logic".

Re: Why must you laugh at my back end?

#194
post #191
post #183

Earlier quoted context omitted.

Ah, but in Go there is the concept of good shape - you can play along similar strategic lines with both good and bad shape, but if you play your stones clumsily (write your code in PHP?), you will be vulnerable to many forcing plays and clever tesuji that may transform the position into an unwinnable one. It could happen during the middle game - bad shape may allow a group to be cut in half or have its eye shape poun…

See (4) about unconscious incompetence.

Don't take the fun out of this! But that was a nice write up about Go and I enjoyed the analogy

Re: Why must you laugh at my back end?

#195
post #194
post #191

Earlier quoted context omitted.

See (4) about unconscious incompetence.

Don't take the fun out of this! But that was a nice write up about Go and I enjoyed the analogy

:-D

I'm glad you said something about shape. It's something I'm stumbling through right now.

Re: Why must you laugh at my back end?

#197

I'm not laughing, I run several sites on a similar stack and it all runs very well. I do run Railo though just because it runs circles around the native CF server (and I don't use any of the "high level" stuff Railo doesn't include), and I use mySQL 5.5, but all under Win 2k8 Server. I have dabbled in several other frameworks as well but I simply keep coming back to CF to get things done. Be it personal familiarity o…

Do you blog about Coldfusion at all?

Not I. I have debated starting up a blog a few times but lack of time is one issue, and I'm also not sure anyone really cares to hear what I have to say :)

Re: Why must you laugh at my back end?

#198
post #123
post #98

Earlier quoted context omitted.

Can you please list out the applications you've created? I'd like to add them to my "never ever register on these sites" list. If you're only worrying about injection attacks "...after you gain some traction" or "...when it becomes an issue" you're already too late, and I don't ever want to trust any of my private data with you, ever. This is the 21st century. Scrubbing and validating user input is _trivial_ now, fra…

Oh please. I'm not building anything that requires a credit card, or anything sophisticated. When you have literally just a hundred users, YES I will skip paying lots of attention on injection attacks because the chances of that happening is very low. To you techies, it sounds like a huge deal, but the priority in any business to make profit first.

Credit cards are only part of the problem. If your site can be hacked, then the hackers can:

1) upload scripts to send unsolicited email, getting your IP address banned.

2) upload scripts to scan the internet for other targets (most common---an SSH scanner)

3) modify the HTML output to leak Google Page Rank to questionable sites, which risks your Google Page Rank.

4) passwords of users, who typically use the same password on other sites.

5) setup an illegal file trading section, hidden from most users (anything from music and films to kiddie porn (saw this first hand, and what once was seen can never be unseen---shudder))

6) IRC clients to control botnets.

I've seen all of these first hand working at several web hosting companies. It's more than just "credit cards."

Re: Why must you laugh at my back end?

#199
post #195
post #194

Earlier quoted context omitted.

Don't take the fun out of this! But that was a nice write up about Go and I enjoyed the analogy

:-D I'm glad you said something about shape. It's something I'm stumbling through right now.

You might find "Making Good Shape" helpful, as it is one of the few shape focused go books available in english:

http://www.gobooks.info/k73.html

The problems are very challenging, but that shouldn't stop you from thinking about them and then enjoying the enlightenment of the answers after a minute. Very helpful material! Best of luck in your pursuit of a better game

Re: Why must you laugh at my back end?

#200

The synchronizing with Dropbox is pretty clever. Had never thought of that. Probably some latency issues--it wouldn't suit all cases but definitely would be a simple fix to a few problems I've had in the past.

Do you (the plural you) really trust Dropbox Inc. enough to give them access to all your application files on your servers? Personally I don't use Dropbox for anything minimally sensitive (basically, anything that I haven't downloaded from the web) without putting it on a Truecrypt container. Maybe I'm just paranoid, though.

I'd use tarsnap.
Post reply on HN