Better HN
topnewbestaskshowjobs
Log inSign up

leftnode

3,925 karma · joined Nov 20, 2008 (18y ago) · 794 submissions

Submissions

comment 16y ago · link · parent

Ugh, I dislike this a lot. I'm one of the guys who actually likes PHP, so this may be a bit skewed, but what's wrong with PHP's existing alternate syntax? Most people don't know about it, but it's clean and easy to follow:

  <?php if ( true === $some_value ): ?>
    <div>display this div</div>
  <?php else: ?>
    <div>display this div instead</div>
  <?php endif; ?>
This way, you can keep basic logic in your templates (its inevitable and convenient), it's still PHP (there's endforeach, endfor, endwhile, etc.), and this method of templating is very clean.

You can now have a class that sets variables through __set(), loads up a .phtml file, starts output buffering, renders the file with those variables, and then returns it.

You can extend it further to automatically sanitize output variables for XSS and whatnot, cache output, etc. This way, you don't need some overly verbose system like smarty to do what PHP does already. XHP just looks like another smarty: solving a problem that I really don't think exists.

Edit: Ok, I probably shouldn't say I dislike this a lot, I do love seeing Facebook sticking with PHP and ultimately helping it out.

comment 16y ago · link · parent

Also for the YouTube deprived, but not the headphone deprived, I've uploaded the audio to my site so you can listen to it, at least.

http://tuneto.us/track/play/15

comment 16y ago · link · parent

Cool, I'll see if I can work with a designer friend to get some tips.

Yeah, I'm hoping if I can orient this towards people uploading their lectures, or something where bands can have a place to upload their music (I know, places like that exist), then I won't have to worry about DMCA stuff as much.

Thanks for the review.

comment 16y ago · link · parent

Thanks for the review.

Great idea, something like queuing songs shouldn't be too difficult.

comment 16y ago · link · parent

Thanks! I'm by no means a designer, and purchased the theme on ThemeForest.net so I could have something and just customized it from there.

Hopefully I can afford to hire a designer in the future.

I appreciate your feedback.

666.

Ask HN: Please Review My New Social Music Website(leftnode.com ↗)

12 points · by leftnode · 16y ago · 13 comments

comment 16y ago · link · parent

Or, maybe he just likes being a librarian. It's probably a lower stress job than engineering.

comment 16y ago · link · parent

Believe it or not, PHP has come quite a bit in the recent years, and with some good developers, it's perfectly possible to write good, decent code in it.

comment 16y ago · link · parent

Exactly. If you want that access, go over to Slicehost (also owned by Rackspace), get a 1024 slice, and you now have full root access to everything.

I've been running several WP blogs on it for a while with no problems.

I do agree that Wordpress isn't the best platform any more. It's too big, and with over 100k lines of code, it's tough to keep it as secure as it needs to be.

Also this guy doubts the WP-Supercache plugin as the vector, but wasn't that the vector for the Techcrunch hacks?

comment 16y ago · link · parent

Or a way to make users even more die-hard Firefox users. I don't understand how this is extremely idealistic. This is an excellent way to show how software patents are bad.

comment 16y ago · link · parent

Agreed. I remember listening to Letter From Home as a kid and just loving every note that came out of my speakers.

comment 16y ago · link · parent

As a small business owner who could find himself on Yelp, I can somewhat sympathize with some of the owners (although not the woman in the article, she just seemed nuts. A much more appropriate thing would be to contact the negative reviewers and try to learn how to make her store better).

The problem with Yelp is probably the search rankings. Chances are, Yelp has higher PageRank than some local company, and when someone search for "company name" on Google and Yelp reviews come up, it could harm their reputation.

While most people haven't heard of Yelp, they could easily find unfair negative reviews of your company easily.

comment 16y ago · link · parent

You probably shouldn't even have to ask a passionate person this; at some point in the interview, they probably would've told you what they enjoy doing outside of work.

Regardless, there's no perfect way to interview someone for a development job. It's equal parts experience, your feeling about them, how they fit into the existing organization, and a ton of other variables.

674.

Vulnerabilities in Shopping Cart Software CS-Cart(leftnode.com ↗)

1 points · by leftnode · 16y ago · discuss

comment 16y ago · link · parent

I guess I didn't mean my entry as a way to do better in an interview, but just to become a better programmer by trying to solve small problems quickly.

Kind of like doing a http://projecteuler.net/ (Project Euler) problem in your head while taking a shower.

676.

Become a better programmer by taking a shower(leftnode.com ↗)

6 points · by leftnode · 16y ago · 7 comments

comment 16y ago · link · parent

Some great projects in here, I'd love to see a thread like this more often.

I'm working on a new eCommerce shopping cart - IONCart. Check everything out at GitHub - http://github.com/leftnode/ION-Cart or on my blog - http://leftnode.com/category/ioncart/

I want to release the minimum viable product as soon as possible, which will be open source, or you can pay for it and get all future commercial releases for free.

comment 16y ago · link · parent

I wasn't aware Netbooks were up for dying. I guess I'm behind the times, but I still thought they were a pretty hot thing.

I have an Asus EEE and its absolutely great. I use it as much as my desktop. Sure I don't develop or play games on it, but for sitting in front of the TV and browsing the web/answering emails, it's great.

comment 16y ago · link · parent

Working on my new shopping cart software. I've grown pretty disgusted with most shopping cart options out there, so its time to finally buckle down and finish mine.

IONCart

On Github: http://github.com/leftnode/ION-Cart

My blog: http://leftnode.com/progress-on-ioncart-basic-mockups-starte...

680.

What would you like to see in eCommerce software?(leftnode.com ↗)

2 points · by leftnode · 16y ago · discuss

681.

Tracking your Git Hooks with Phing(leftnode.com ↗)

1 points · by leftnode · 16y ago · discuss

comment 16y ago · link · parent

Most version control systems have hooks, I recently ported one of my subversion hooks to git and decided to blog about it.

I figured it'd probably help someone out there, which is why I submitted it to HN.

683.

Git Hooks - pre-commit(leftnode.com ↗)

14 points · by leftnode · 16y ago · 6 comments

comment 16y ago · link · parent

New PHP development may not be as popular now-a-days (according to that graph, just the other day someone posted a link saying there were gonna be 5.2 million PHP programmers in 2010), but there's certainly a ton of legacy software to support written in it.

comment 16y ago · link · parent

I'm not entirely sure I agree with this list. Here's some I would add:

PHP - even if you loathe its every existence, if you're a web developer, you're going to come across it, might as well know it.

Perl - text processing, data scraping, all around great language.

Javascript - Like others have mentioned, I think its a great language, used in front end web development, and now moving to back end.

Shell scripting - Of some sort, please don't be afraid of the command line. Its so insanely powerful, you should definitely take advantage of its power by learning some basic shell scripting.

comment 16y ago · link · parent

Thanks for using it!

I use it to backup all of my databases and entire vhosts directory every hour and night.

Let me know if you find any bugs!

comment 16y ago · link · parent

1. Register an Amazon AWS S3 account - https://aws-portal.amazon.com/gp/aws/developer/registration/...

2. Download my S3 backup script (or anyone's S3 Backup script) - http://github.com/leftnode/S3-Backup

3. Set up a cron to push hourly/daily/whatever tar's of your vhost's directory to S3.

Spend, like, $10 a month. Thats 30gb of storage, 30gb up and 30gb down. Now, I know that may not be a lot, but I doubt codinghorror.com had that much data.

comment 16y ago · link · parent

Deservedly so. I was a long time Subversion user and just recently switched to git on github.

Automatic downloads from the tags you push make it worth the price of admission alone.

I'm going through an interview process now, and its made it very easy to show off code and reduced the time on the phone asking questions mainly used to remove the cruft.

comment 16y ago · link · parent

Providing the user with a few options can be nice, but it doesn't work for all sites.

One of my companies sells gun supplies and accessories. There are tons of manufacturers and parts. Thus, for the redesign of our site, we went with a mega menu structure to help show all of the different departments and manufacturers.

People have responded very well to it.

The web site in the article is absolutely gorgeous though. I really like what they've done with the shopping cart.

1
222324
27