ilu-chan wrote:It's reaaally easy.
- Spoiler for Summary of adding fanhymns >_>: [ Open ]
*Kinda gets it*
ilu-chan wrote:It's reaaally easy.
- Spoiler for Summary of adding fanhymns >_>: [ Open ]



ilutiern wrote:Hm, by the way, the fanhymn section is apparently already over 76 kb long... or big. >_< Should we just let it keep expanding? I think it might be a good idea to separate the sections either by each person having their own page for fanhymns (since many people have more than just a couple) or by dividing it between 'Standard Dialect', 'Pastalia Dialect' and 'Original Dialects'.

wizzardx wrote:Deciare wrote:To be fair, PHP is a far easier language to learn than most others I've used.
*Wonders if you are referring to Perl, the infamous write-only language ^^*
Deciare wrote:I'm referring to Python, too. XD Sorry, but I so like being able to do basically whatever without worrying much about includes, types, pointers/copies/references, or complications in how code is supposed to be structured.

wizzardx wrote:Rant:
wizzardx wrote:inconsistent naming schemes and argument orders (verb noun, noun verb, etc),
wizzardx wrote:no exceptions,
wizzardx wrote:no parameterized db queries
wizzardx wrote:different functions to call for each database
wizzardx wrote:no unicode
wizzardx wrote:too many global functions
wizzardx wrote:ability to use non-assigned variables (and, the security problems that can cause)
wizzardx wrote:encouraging coders to mix html, logic, and SQL together in an unholy mess
wizzardx wrote:I'm sure that it is very convenient (especially since it is installed on just about every web server), but it's a big mess. I prefer using elegant programming languages ^^.
wizzardx wrote:ilutiern wrote:Hm, by the way, the fanhymn section is apparently already over 76 kb long... or big. >_< Should we just let it keep expanding? I think it might be a good idea to separate the sections either by each person having their own page for fanhymns (since many people have more than just a couple) or by dividing it between 'Standard Dialect', 'Pastalia Dialect' and 'Original Dialects'.
If you want to divide it into separate pages, I think the most natural division (in terms of Wiki structure) would be be by person. "Aquagon's Fanhymns", "ilutiern's Fanhymns", etc. I can split them off into separate articles for you if you'd like.


ilutiern wrote:wizzardx wrote:ilutiern wrote:Hm, by the way, the fanhymn section is apparently already over 76 kb long... or big. >_< Should we just let it keep expanding? I think it might be a good idea to separate the sections either by each person having their own page for fanhymns (since many people have more than just a couple) or by dividing it between 'Standard Dialect', 'Pastalia Dialect' and 'Original Dialects'.
If you want to divide it into separate pages, I think the most natural division (in terms of Wiki structure) would be be by person. "Aquagon's Fanhymns", "ilutiern's Fanhymns", etc. I can split them off into separate articles for you if you'd like.
That'd be very helpful D: Could you also tell me how to do it?







Deciare wrote:Wow, that read like an introduction to an article about how not to write programs. XD
Deciare wrote:wizzardx wrote:inconsistent naming schemes and argument orders (verb noun, noun verb, etc),
That's what references are for. ^_^
Deciare wrote:wizzardx wrote:no exceptions,
*doesn't use them anyway unless a function has no other way of communicating that it failed*
Deciare wrote:wizzardx wrote:no parameterized db queries
I tried writing my own function for that with a project I was working on, but it turned out to be too unwieldly to use. Beyond some degree of complexity, it's just easier to sprintf() a plaintext query, with foreach loops to handle complex combinations of conditional statements.
# Some initial code:
a = "some string 'with quotes'"
b = 123456
# Non-parametized (pseudo-php):
mysql_exec("SELECT * FROM foo WHERE field_a = '" . mysql_escape(a) . "' AND field_b = $b")
# Parameterized (pseudo-python):
curs.execute("SELECT * FROM foo WHERE field_a = %s AND field_b = %s", [a, b])
Deciare wrote:wizzardx wrote:different functions to call for each database
Write a custom DB abstraction class? phpBB3 has one that's compatible with lots of them.
Deciare wrote:wizzardx wrote:no unicode
D: Thank goodness that isn't true any longer!
Deciare wrote:wizzardx wrote:too many global functions
That's exactly one of the reasons I like it. XD Not needing to worry about what comes from what object or namespace.
from pgsql import Connection as Con
a = Con('<db connection string 1>')
b = Con('<db connection string 2>')
Deciare wrote:wizzardx wrote:ability to use non-assigned variables (and, the security problems that can cause)
Nothing's stopping me from initialising them myself, and I do.
db_execute('DELETE FROM customers WHERE name LIKE '*$customr*');
Deciare wrote:wizzardx wrote:encouraging coders to mix html, logic, and SQL together in an unholy mess
I use PHP if conditions to decide whether bits of HTML or JavaScript should be presented on the final HTML output. XD Why go through the trouble of learning how to generate HTML or SQL through an abstraction layer when I already have perfectly usable knowledge of HTML and SQL by themselves?
Deciare wrote:It is very convenient, yes. ^_^ No single structural paradigm is universally applicable to every project, and I find that the fewer constraints a language puts on my ability to structure my code how I believe is most efficient for its particular purpose, the more likely that language is to remain applicable for me.
{% extends "base_generic.html" %}
{% block title %}{{ section.title }}{% endblock %}
{% block content %}
<h1>{{ section.title }}</h1>
{% for story in story_list %}
<h2>
<a href="{{ story.get_absolute_url }}">
{{ story.headline|upper }}
</a>
</h2>
<p>{{ story.tease|truncatewords:"100" }}</p>
{% endfor %}
{% endblock %}

ilutiern wrote:wizzardx wrote:ilutiern wrote:Hm, by the way, the fanhymn section is apparently already over 76 kb long... or big. >_< Should we just let it keep expanding? I think it might be a good idea to separate the sections either by each person having their own page for fanhymns (since many people have more than just a couple) or by dividing it between 'Standard Dialect', 'Pastalia Dialect' and 'Original Dialects'.
If you want to divide it into separate pages, I think the most natural division (in terms of Wiki structure) would be be by person. "Aquagon's Fanhymns", "ilutiern's Fanhymns", etc. I can split them off into separate articles for you if you'd like.
That'd be very helpful D: Could you also tell me how to do it?
ilutiern has written several Fanhymns. You can read them [[ilutiern's Fanhymns|here]].


Giulietta Simone Del Viscontie wrote:Umm, I was wondering, what are the font (beside Hymmnos), font size and color tags for the Wiki? And do those tags work within <pre> tags? I like to format my Hymns with different sizes and text colors, if I do, I mustn't use <pre> tags since it's similar to BBCode [ code ] tags right?
<b><hymmnos>Was yea ra chs hymmnos mea</hymmnos></b>
<i><font color="blue">(I will be glad to turn myself into a song)</font></i>



wizzardx wrote:I've added another example to the sandbox, which shows how to use the (more technically correct) "span" tag, for italics, fonts, colors, sizes, etc.

Giulietta Simone Del Viscontie wrote:...Looks amazingly complex and hard to remember ;_;
Oh well I'll try. Gambatte mea~
<span style="font-family: times">text in times new roman</span>
<font face="times">text in times new roman</font>


Giulietta Simone Del Viscontie wrote:After about 45 minutes, I've given up with Arabic text. There's absolutely no way I can do something simple as to add a space to the beginning of each Arabic line, no matter what...



Users browsing this forum: No registered users and 1 guest