学习如何创建动态用户控制的网页/应用程序 [英] What to learn to create dynamic user controlled web page/app

查看:81
本文介绍了学习如何创建动态用户控制的网页/应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个网页,允许用户选择照片然后以幻灯片形式播放。因此,一个页面上有一个图像库,用户可以从中选择创建自己的幻灯片,观看它然后能够编辑它/更改图像并再次观看。

这个mootools购物购物车 [ ^ ]效果很好,但是我需要学习哪些代码才能创建幻灯片?我知道一点PHP,MySQL但不足以实现这一点。我是否需要Ruby或PHP,MySQL可以做到这一点,如果我学到的东西足够吗?



我知道这是一个广泛的项目。我不是要求玩游戏(虽然那会很棒)我希望能指出正确的方向。



任何帮助都会很多赞。



我的尝试:



HTML,CSS, Mootools,PHP。我想过设置zencart作为后端使用,但这似乎是一种解决方法。我已经开始学习Ruby但是我想确保我正在学习正确的东西才能实现这一目标。

I want to create a webpage that allows the user to choose photos to then play in a slideshow. So one page with a library of images that the user can choose from to create a slideshow of their own, watch it and then be able to edit it/ change the images and watch again.
This mootools shopping cart [^]works great, but what code do I need to learn to be able to create the slideshow? I know a little PHP, MySQL but not enough to make this happen. Do I need Ruby or can the PHP, MySQL do this if I learn enough?

I know that this is an extensive project. I am not asking for a play by play necessarily (although that would be awesome) I'd love to be pointed in the right direction.

Any help would be much appreciated.

What I have tried:

HTML, CSS, Mootools, PHP. I thought about setting up zencart to use as the backend, but that seems like an out of the way work around. I've started learning Ruby but want to be sure I'm learning the right things in order to make this happen.

推荐答案

所以你对编程知之甚少但是你想要构建复杂的应用程序。你有很多工作要做,它可以做,但它会花费你的时间,很多挫折,说实话......你可能会放弃。除非你真的想学习并擅长编程。



所以回答你的问题,如果你想做的是在那个链接中,那么你需要是一个javascript库(或者你可以自己滚动,如果你是勇敢的),如jQuery或Mootools。要实现该链接,您只需要javascript即可。为了使它保持不变并保存每个用户的选择,这就是你需要服务器端语言和数据层(PHP和MySQL)的地方。



PHP和Ruby服务于你的实例中的目的相同。两者都被认为是您想要做的服务器端。选择一个并继续使用它。 PHP通常具有较低的进入门槛,但实际上......找出你喜欢哪一个并运行它。我开始使用PHP ...并不意味着我喜欢它。



你需要解决的另一个问题是能够拿出一个巨大的应用程序并将其分解分成小块。如果你不能这样做,你会气馁并放弃你的项目,我保证。因为你是新手,所以不要将其视为实施购物车,将其分解成碎片。你不知道如何开始编码,所以你需要征服的第一件事是在网页上从mysql渲染一些东西。所以从那里开始,学习如何从PHP连接到mysql。然后学习如何执行SQL查询。然后学习如何在HTML中使用PHP显示sql查询结果。这需要一段时间,但接下来您知道根据您的示例链接,您将拥有所需功能的一半,并且您可能在此过程中学到了一些技巧。



你提到你曾考虑使用zencart,但你选择尝试创建自己的购物车。那就是典型的新开发者错误。你为什么重新发明轮子?你只是要创建一个有缺陷的软件。使用Zencart(或同等版本),您正在选择可能仍有问题的经过测试的经过测试的软件,但它不会像您从头开始编写时那样出现问题。对于构建vrs购买存在争议,但在您的情况下,如果要在生产环境中使用并且给出我对您的技能知之甚少,我建议购买而不是为您构建。 />


我要分享的最后一点是,如果你对这个项目的编程知之甚少,那么你将要创建一个类似于短期功能的购物车你为失败做好准备的时间。
So you know little about programming but you want to build complicated applications. You've got a lot of work to do, it can be done but it will take you time, a lot of frustration and to be honest...you'll probably give up. That is unless you truly want to learn and be good at programming.

So to answer your question, if what you want to do is in that link, then all you need is a javascript library (or you can roll your own if you are brave) such as jQuery or Mootools. To implement that link, all you need is javascript. To make it persist and save selections per user, that is where you need a server side language and a data layer (PHP and MySQL).

PHP and Ruby serve the same purpose in your instance. Both are considered server side in what you want to do. Pick one and go with it. PHP typically has a lower barrier to entry but really...figure out which one you like and run with it. I started with PHP...doesn't mean i liked it.

The other issue you need to address is being able to take a huge application and break it down into smaller pieces. If you can't do this, you will get discouraged and abandon your project, I guarantee it. Since you are new, don't look at this as implementing a shopping cart, break it down into pieces. You don't know how to code that well to begin with so the first thing you need to conquer is rendering something from mysql on a web page. So start there, learn how to connect to mysql from PHP. Then learn how to execute a sql query. Then learn how to display the sql query results using PHP in your HTML. It will take a while, but next thing you know you'll have half the functionality you need based on your sample link and you may have learned a few tricks along the way.

You mention that you thought about using zencart but you've chosen to try and create your own shopping cart. That right there is typical new developer mistake. Why are you reinventing the wheel? You are just going to create a buggy piece of software. Using Zencart (or an equivalent) you are selecting a battle tested piece of software that may still have issues, but it won't have issues like you would if you write it from scratch. There is an argument for build vrs "buy" but in your case, if this is going to be used in a production environment and given what little i know about your skills, I would recommend "buy" rather than build for you.

The last tidbit I'll share is that if you tackle this project with little knowledge of programming with the idea you are going to create a shopping cart like functionality in a short amount of time you are setting yourself up for failure.


这篇关于学习如何创建动态用户控制的网页/应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆