forums.evilmana.com
Welcome, Guest. Please login or register.

Login with username, password and session length
September 08, 2010, 08:22:24 AM
.
News: 08/07/2009 - Welcome to the revived and revamped evilmana forums. Take a look around  for new features such as:New Theme, New Reputation System, and Arcade!
Coming Soon: An all new evilmana.com main site!
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read April 19, 2007, 04:11:38 PM #0
yaustar

Lua Code Challenge 4: Basic HTML viewer

Challenge 4:
Below is section of markup code in plain HTML from the Wiki. This will be in a file called readme.html. The challenge is to create a viewer that can at least support < p >, < h1 >, < h2 >, < h3 >, < h4 >, < b >, < i > and < u > tags. Any other HTML tag can be ignored.

Feel free to extend the feature set further.

Duration:
1 month

End Date
20th May 2007

Prize:
10 Karma Points for everyone that completes the challenge.
10 Karma Points for the visually best looking one.
10 Karma Points for the biggest/most impressive feature set.
10 Karma Points for 'clean' code( eg proper indentation, good variable names etc)

Code:
<h2>Philosophy</h2>
<p>Lua is commonly described as a "<a href="/wiki/Multi-paradigm_programming_language" title="Multi-paradigm programming language">multi-paradigm</a>" language, providing a small set of general features that can be extended to fit different problem types, rather than providing a more complex and rigid specification to match a single paradigm. Lua, for instance, does not contain explicit support for <a href="/wiki/Inheritance_%28computer_science%29" title="Inheritance (computer science)">inheritance</a>, but allows it to be implemented relatively easily with metatables. Similarly, Lua allows programmers to implement <a href="/wiki/Namespace_%28programming%29" title="Namespace (programming)">namespaces</a>, <a href="/wiki/Classes_%28computer_science%29" title="Classes (computer science)">classes</a>, and other related features using its single table implementation; <a href="/wiki/First_class_function" title="First class function">first class functions</a> allow the employment of many powerful techniques from <a href="/wiki/Functional_programming" title="Functional programming">functional programming</a>; and full lexical <a href="/wiki/Scope_%28programming%29" title="Scope (programming)">scoping</a> allows fine-grained <a href="/wiki/Information_hiding" title="Information hiding">information hiding</a> to enforce the <a href="/wiki/Principle_of_least_privilege" title="Principle of least privilege">principle of least privilege</a>.</p>

<p>In general, Lua strives to provide flexible meta-features that can be extended as needed, rather than supply a feature-set specific to one programming paradigm. As a result, the base language is <a href="/wiki/Lightweight_languages" title="Lightweight languages">light</a>?in fact, the full reference <a href="/wiki/Interpreter_%28computing%29" title="Interpreter (computing)">interpreter</a> is only about 150KB compiled?and easily adaptable to a broad range of applications.</p>
« Last Edit: April 20, 2007, 03:14:27 AM by yaustar »

Offline  
Read April 19, 2007, 07:29:54 PM #1
Soulkiller

Re: Lua Code Challenge 4: Basic HTML viewer

Just as a little tip, the last challanges code will come in handy on this one Wink (also nice idea, maybe I'll find some time to do this one to make up for the last one)


MQ:BTG Programmer
Previous work: FRAG an overhead shooter
Offline  
Read July 12, 2007, 04:16:58 AM #2
spike_132000

Re: Lua Code Challenge 4: Basic HTML viewer

is this still open? i would like to do it... but the due date is way gone... lmao!


OBSoft Team Leader - Lead Programmer
http://www.obsoft.co.uk
Offline  
Read July 12, 2007, 07:18:49 PM #3
Soulkiller

Re: Lua Code Challenge 4: Basic HTML viewer

Any late entires are fine since no one entered.....


MQ:BTG Programmer
Previous work: FRAG an overhead shooter
Offline  
Read July 17, 2007, 06:10:37 AM #4
BunnyRabbit2

Re: Lua Code Challenge 4: Basic HTML viewer

I am going to give it a go. I was working on a text editor and still have that code kicking around somewhere. Could be fun for me


(\_/)
(O.o)
(> <)
The mysteries of the universe are revealed when you break stuff
Offline  
Pages: [1]   Go Up
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re