• 我到底要不要重构? at February 01, 2013

    #23 楼 @046569 说得中肯,谢谢

    我也开始也是一个网页 php+html 混搭,后来加入 mysql,还是一个文件, 后来加点 jquery, 改改 CSS

    折腾了好久以后,看 oscommerce 代码,加入一些常用库。

    再后来才用的框架,所以我觉得 Rails 也是一样,要明白 Rails 帮我做了什么,这样对我才有帮助。

  • 我到底要不要重构? at February 01, 2013

    #19 楼 @blacktulip Thank you for your encouragement

  • 我到底要不要重构? at February 01, 2013

    #17 楼 @046569 谢谢

    我搞不明白为什么本地开发环境和服务器环境要不一样。比如本地用 rails s,服务器用 nginx 等等。

    我现在用 php,本地的 apache,mysql 和服务器上一模一样,因为 apache,mysql 配置文件是一样的。我的代码中根据浏览器中不一样的域名自动加载网站的开发配置文件或服务器配置文件。

    关于 TDD,本来争议就很大,那一片绿下隐藏的 bug 不知道有多少。就我经验来说,RESTful 的东西还好测试,但很麻烦的功能就很棘手,远不如人肉。

    自动部署对于我来说存在的必要性不大,因为我又不是天天在部署。Rails 需要自动部署是因为从本地搬到服务器真的要做很多事,但 php 或者 go 真不需要那么多。这也是我难受的地方,rails 涉及的方面很多,学了好久总觉得还缺少点什么,学了不一定常用,但不学就不踏实。less sass haml 这些东西,看看简介就不少时间,想想项目中用不用又是不小时间,我研究了一圈,最后决定不用,但时间找不回来了。类似的 gems 还有很多,都是一看 feature list 让人激动得睡不着,一用就全是坑的那种,改都不好改。

    总的来说,RoR 适合那些天天开发网站,而且还不是开发一个网站的开发者,不然就是大炮打蚊子。

    我觉得就跟 Windows 下用 API 还是 MFC 一样,一群用 Rails 的,连 Ruby, sql 语句&优化,html, css, javascript(+jquery+plugin),... 都没搞明白,就被 20 分钟开发 blog 忽悠了,这就是问题。我觉得高手可以用 Rails, 新手还是打基础吧。

  • 桌面跨平台开发 at January 28, 2013

    看来还是 qt 呼声最高啊

  • 桌面跨平台开发 at January 27, 2013

    大家都是很有经验啊,谢谢!

    个人能力有限,看了一下 TideSDK,好像看起来不错的样了,还可以用 php 开发,其实就是把网页包进去,@saiga 不知道 php 源代码会不会被反编译出来呢?

  • 很棒,但没有 undo, 我多 mark 的部分,只能再 mark 一下,用 z 来 cancel

  • @QLeelulu 的点评找不回来了,可惜啊

  • huacnlee 1 楼,7 天前 @sunfmin 可是自己写框架的哦

    ywjno 2 楼,7 天前 不用担心 bate 版的框架,我知道一个 java 写的框架,3 年了到现在还是 bate 版

    问题是它现在基本每月都还是向外发布新版本

    kgen 3 楼,7 天前 #2 楼 @ywjno 嘿,同学,你键盘上的 a 键和 e 键装反了

    lvjian700 4 楼,7 天前 #2 楼 @ywjno 难道你在说 nutz

    ywjno 5 楼,7 天前 #4 楼 @lvjian700 还真是 nutz。。。 #3 楼 @kgen 英文不好见笑了。。。

    kgen 6 楼,6 天前 #5 楼 @ywjno 开个玩笑,别在意 :-D

    zhangjinzhu 7 楼,6 天前 框架不够靠谱。。。需要自己去 hack

  • 原数据不见了,google baidu yahoo 快照都不给力,还要 bing 下面有,如果大家有重要的帖子可以去 bing 试试看

  • deny 有读 deni 的,应该是 dɪ'naɪ

  • 终于支持删贴了 at November 16, 2012

    留着帖子是为了不重建索引?

  • #3 楼 @daqing 看上去挺不错的,谢谢

  • #1 楼 @daqing 谢谢,

    OAuth 我也是一知半解,用 OmiAuth 的 Gem 实现了 Facebook 等登录,我自己怎么做验证提供方还完全没思路

  • 沉重的产品 at October 25, 2012

    #6 楼 @help5305fff UNIX 哲学,要不现在开始讨论一下,怎么实现?如何互通?当然不是用户帐号互通这么简单。

  • 工作台展示 at October 18, 2012

    #13 楼 @knwang 我有一个,几年前的版本,USB 接口,键盘前端一头一个 USB 扩展口, 感觉一般,不知道现在的有没有大变化。

  • 不管数据多少,我都是直接用 root 用户把 /var/lib/mysql 里面的数据库文件夹 scp 到新服务器中,再改权限和属主,好像没出过什么问题。

    注意我用的是 MyISAM 数据引擎,另外,别覆盖新服务器的文件及文件夹。

  • 悲催一下午的验证码噩梦 at September 03, 2012

    一下午时间可以把问题解决了也不错,经验和淡定就是这么增长的。

  • #3 楼 @help5305fff 这个方法不错

  • 小霸王,还送超级玛丽的,亲

  • @kevinhua 楼主既然都要重新开始了,建议把源码放出来,教教我这类初学者,怎么做界面。

  • appfog 真给力呀 at August 14, 2012

    @firsthym 如果我只改动一小段代码却要将整个网站重新上传一下,这实在是很笨的方法。

    没有实现永久存储是官方说的,所以永久存储的定义也是他们做的。可能是参考了 openshift 的定义吧,openshift 有个目录是有永久存储功能的,直接 ln -s 到网站目录下就可以存 attachments 之类的东西了。

    phpfog 就可以用 git, 不知道他们怎么想的。

  • appfog 真给力呀 at August 13, 2012

    不支持 git, 不支持永久存储

  • 这个不错,编码一直是个问题。

  • @Jijin 哇,这么帅的 Markdown!赞!

  • @Jijin 哇,这么帅的 Markdown!赞!

  • @Jijin 哇,这么帅的 Markdown!赞!

  • @Jijin 哇,这么帅的 Markdown!赞!

  • @Jijin 表格的 Markdown 怎么写的,很漂亮。

  • TextMate 开源了 at August 10, 2012

    30 Day Trial -> TextMate 1.5.11 (r1635) TextMate 2 at GitHub

    也就是说老的不变,新版本 2 开源,自己用随便,商用请联系作者

    blog贴过来吧:

    Today I am happy to announce that you can find the source for TextMate 2 on GitHub.

    I’ve always wanted to allow end-users to tinker with their environment, my ability to do this is what got me excited about programming in the first place, and it is why I created the bundles concept, but there are limits to how much a bundle can do, and with the still growing user base, I think the best move forward is to open source the program.

    The choice of license is GPL 3. This is partly to avoid a closed source fork and partly because the hacker in me wants all software to be free (as in speech), so in a time where our platform vendor is taking steps to limit our freedom, this is my small attempt of countering such trend.

    I am also a pragmatist and realize that parts of the TextMate code base is useful for other (non-free) applications, so I may later move to a less restrictive license, as is currently the case with the bundles. For now, please get in touch with us if there are subsets of the code base you wish to use for non-free software, and we might be able to work something out.

    Anything related to the code base, including contributions, can be discussed at the textmate-dev list or ##textmate on freenode.net. Pull requests can be sent via GitHub but if you plan to make larger changes, it might be good to discuss them first if you want to ensure that we are interested in accepting a pull request for such change or simply want advice on how to go about it.