Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm working on a project, having taught myself programming over the years, in PHP and Javascript/HTML5. I'm finding my biggest problem isn't the actual coding, but program architecture. How do I build something that isn't just functional for my own needs, but that others can use and understand.

I've started fresh 5 or 6 times now, and I'm definitely getting closer to "right" but it's still a battle. I think part of my struggle lies in trying to get used to the asynchronous aspect of AJAX. It definitely requires a different approach to handling data and presenting it to the user.

I'm thinking I may need to find someone else to take my prototype code and turn it into something more structured and friendly, while I focus on the business side of it. Any suggestions from you or others about basic application structures would be much obliged.



Could you be a bit more specific about your idea? I could recommend a few resources that i've used to help me.


A pretty basic mobile messaging application. Data is stored on a server, options are displayed, content is loaded and sent, etc, etc. Nothing really special.

Some of my biggest hurdles faced so far: - After days of banging my head against a wall, I learned HTML5's sessionStorage doesn't actually store objects - just single key/value pairs. - Minor jQuery typos that didn't register an error, but never did what it was supposed to. - (ongoing) Dealing with jQuery Mobile weirdness when loading dynamic content when an AJAX call has yet to complete.

I'm also looking at incorporating the PhoneGap framework so I can access some of the mobile hardware. We'll take that when we get to it.


Ajax stuff can definatly make you pull your hair out.

I don't know too much about HTML5. I haven't had time to play with it but i think that you should take a look at node.js.

It could be what you're looking for.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: