单单这样看我觉得没问题, 但是我回答他: 如果 left 还没set 的话, 可能会throw null exception 吧。
他什么也没说,我也不知道我的答案是对还是错
Web Developer Application > Step 2 - Test Instructions
Objective
1. This is meant to test your proficiency in designing and developing a Web application.
2. Once you're done, you can navigate to the Submit page to submit your résumé and your answers.
What You Need To Do
1. You are to design and implement a simple blog.
2. Try to limit your effort to 4 days - we do not wish to take up too much of your time.
3. Make sure you state all your assumptions in your code.
4. Pages that you need to produce
• Blog entries list (this is the home page)
• Post a Blog entry.
• View a Blog entry
The Functional Specifications
1. Overview
• The blog is publicly viewable.
• The blog is updated by a blog Owner.
• You do not need to implement a log-in for the Owner. Bonus if you do.
• Each blog entry can have multiple comments by other Users.
User Registration
• You do not need to implement any form of User registration or log-in.
• State your assumptions how multiple Users can post Comments.
Blog entries list (this is the home page)
• Show number of comments for each entry
• Show date of each entry
• Show the Title and part of the Body
View a Blog entry
• Display the entry Title and Body.
• Blog entries need not be editable or deletable. Bonus if you do.
• Associated Comments appears here.
• Post a Comment form appears here.
Blog Comments
• Each blog entry can have multiple comments by other Users.
• Comments do not have to be threaded. Bonus if you do.
Optional features
• Search, Archive, RSS feeds, Sorting options, User registration, Interactive User Interfaces
• Support for GUI editing or HTML codes in the Body.
What you need to submit
1. PHP for code, MySQL for database.
2. You are required to submit 1 zipped file, "answer.zip". Make sure that answer.zip contains
1. All the necessary files for us to run your application. If you're using a framework, please include the entire framework as well.
2. All the necessary SQL statements and any other information for us to re-create the database you're using.
3. We may contact you should we run into problems duplicating your environment.
What we are looking out for
1. Your design of the database tables
2. How you write and organize code that is easy to read.
3. How you comment your code
As a bonus, we would also like to see
1. Use of MVC
2. Use of CakePHP framework
3. Clever reuse of components
4. Efficient code, efficient database calls
回复 街头混混
errr ... 不一定要手动 throw 才会 throw erros 的, 有可能 invalid input, null ex ...
宅男-兜着走 发表于 2011-1-13 12:51 AM
回复 宅男-兜着走
考官是新加坡人吧?那你叫考官,how can you set a question without letting me kn ...
shippo 发表于 2011-1-13 01:03 AM
回复 宅男-兜着走
第二题要init person class 的话就要有个原始origin,方便起见,我把person class 留 ...
shippo 发表于 2011-1-13 12:57 AM
回复 Super-Tomato
你的答案第一题, 我觉得有理由。
但是第二题他的需求是, 在 Main Application 写一个 Find GrandChild(Person p)
好像没说到可以 写 method 在class -.-|||
宅男-兜着走 发表于 2011-1-13 01:45 PM
我的答案在这里, 用了 NO-IP host 了。 总共花了 3 天半的时间做,写程式 1天, 设计2天半
http://urjunior.3utilities.com/blogproject/posts/
宅男-兜着走 发表于 2011-1-12 08:37 PM
回复 Super-Tomato
OK, Remove script 我是大概知道怎么做了,
但是人家 key HTML tag 下去我无法 ...
宅男-兜着走 发表于 2011-1-18 10:19 PM
回复 Super-Tomato
其实如果我打 html tag 进去我的post
<html> wsiwyg editor 会翻译成 <html>
但是如果你要修改的话,
wsiwyg 又把 <html> 变成 <html> 了。
宅男-兜着走 发表于 2011-1-18 11:29 PM
回复 Super-Tomato
我不知道怎么说, 你试试看 写 <h1> some text </h1> post 出去, post 回来后放回 ...
宅男-兜着走 发表于 2011-1-21 05:39 PM
不是很明白你们在讨论什么 ==
如果在 source 里面是 text,output 就是 text。
如果在 source 里面是 & ...
~Zero 发表于 2011-1-22 01:27 AM
欢迎光临 JBTALKS.CC (https://www.jbtalks.cc/) | Powered by Discuz! X2.5 |