Seiten

Posts mit dem Label Programmierung werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Programmierung werden angezeigt. Alle Posts anzeigen

13.07.2008

Xronica ist fast fertig

Endlich, endlich habe ich das wichtigste Feature eingebaut, welches Xronica von WordPress unterscheiden soll: Als Postingdatum ist ab sofort auch der Zeitraum vom 1. Januar 100 bis 31. Dezember 5.000.000.000 möglich (Begrenzung durch Rechenkapazitäten, theoretisch gibt es kein Oberlimit).
Erreicht wurde das relativ einfach durch Einbindung von adodb_time, welches die Unixzeit um eben diese Zeiträume ergänzt.
Das war eine der wichtigsten Änderungen, die ich für meinen Geschichtsblog brauchte und die ist jetzt implementiert. Damit ist Xronica jetzt genau das geworden, was ich haben wollte.

Was jetzt noch kommt ist Feintuning, um die Marke WordPress aus dem System komplett zu entfernen (bis auf Hinweise auf die Abstammung) und einige kleinere Änderungen durchzuführen.
So werde ich beispielsweise noch das (momentan übermäßige) Pingen optimieren, den Medienuploader wieder einbinden (der funktioniert momentan nicht) und ein paar Plugins von WordPress übertragen.

Hier nun der passende Song zum Beitrag:

12.07.2008

Ja, ich tu was

Okay, die Chronica Maiora mit dem CMS Xronica sollte ja eigentlich schon zum Juni online gehen. Jetzt ist es Mitte Juli und endlich hab ich Xronica halbwegs brauchbar. Die wichtigste neue Funktion, daten vor 1979 nutzen zu können, fehlt noch.
Aber immerhin hab ich die Wordpress-Funktion zum Erzeugen von Textauszügen etwas verbessert. Nofollow für Kommentarlinks wurde entfernt und der Bilderupload fügt jetzt keine wildgewordenen Klassendefinitionen mehr ein, wenn ein Bild oder Video in einen Beitrag integriert wird.
Daneben habe ich ein kleines Umbenennen des Programms begonnen, was aber wegen der zu ändernden Links aufwendiger ist, als ich gedacht hätte.

Heute abend geht das ganze dann auf chronica-maiora.de online und wird durchgetestet. Momentan findet sich dort nur eine leere und sinnlose Platzhalterseite.

Im Laufe der Woche werde ich weitere Funktionen verbessern oder anpassen.

Im folgenden mal kurz das Changelog bis heute. Zur Erinnerung, Xronica wird ein modifiziertes Wordpress, dass sich im Laufe der Zeit immer mehr zu einem eigenen CMS entwickeln soll. Da die Wordpress-Entwickler nicht sonderlich viel von Einbindung der Nutzer in ihre Entwicklung halten, mach ich halt ein eigenes System, das zudem besser dokumentiert sein soll (etwa durch diese detailierte Changelog - sorry für den 11. Juli):

CHANGELOG.TXT

++++++++++++++++++++
July, 12th 2008
Added HTML-Tags a, b, i, img, p, u to excerpts. File changed:
/wp-includes/formatting.php
Excluded Javascript from excerpts. File changed:
/wp-includes/formatting.php

++++++++++++++++++++
July, 11th 2008
Been lazy for some time, sorry
Changed all links to wp-config.php to xr-config.php. Files changed:
a goddamn lot
Changed all error messages accordingly. Files changed:
wp-blog-header.php
/wp-admin/install.php
/wp-admin/upgrade.php
Reduced class-assignment to image uploads, only align is part of image classes now. File changed:
/wp-includes/Media.php

++++++++++++++++++++
May, 3rd 2008
Removed all nofollow attributes on links*. Files changed:
wp-includes/comment-template.php
wp-includes/default-filters.php
wp-includes/formatting.php
Begun renaming of files: wp-config-sample.php to xr-config-sample.php. Files changed:
readme.html
xr-config-sample.php

*nofollow in meta "robots" for non-public blogs has been retained, of course.

++++++++++++++++++++
May, 1st 2008
Changed all WordPess logo graphics to Xronica
Changed all code to use the new logos (sorry, forget to list files involved)
Changed readme.html almost completely


Mir ist bewusst, dass die html-Tags in den Auszügen zu Problemen führen können, wenn ein Tag nicht innerhalb des Auszugs geschlossen wird. Dafür werde ich noch eine Lösung finden müssen.

Die Verbesserungen im Auszug habe ich nach diesem Artikel durchgeführt.

04.05.2008

Xronica

Pardon für meine Abwesenheit, aber ich habe Arbeit vor mir (und hinter mir).

Neben dem üblichen Kram (Uni, meine Webseiten mit Inhalten versorgen) ist ein weiteres Projekt in der mache: Xronica ist ein Blogsystem, das einige Neuerungen zu WordPress 2.5 mitbringen wird, auf dem es basiert.
Diese Neuerungen dienen vor allem dazu, ein Projekt zu stemmen, das ich seit etwa einer Woche plane. Etwas großes, was für die, für die es relevant ist eine große Sache werden kann.

Ich denke, ich kann jetzt anfangen zu teasern:

Als erstes hab ich heute mal das nofollow-Attriut für alle Links rausgenommen. Es schadet so, wie es in WordPress implementiert ist mehr als es nutzt und wer es nutzen will, kann es manuell eingeben. Zumal die meisten Suchmaschinen es eh ignorieren, selbst Google zu einem gewissen Grad.
Daneben habe ich ein Rebranding angefangen, also den Einbau des neuen namens und Logos im gesamten System, einschließlich Kürzel und Programmbefehle.

Weiter wird gleichzeitig mit oder spätestens kurz nach dem fertig geänderten System auch ein dazugehöriges Handbuch erscheinen - als kostenlose PDF oder, für die, die Papier lieber haben, als Buch.

Achja, vielleicht erinnern sich einige noch an mein Gemecker über Versionsnummern. Xronica wird keine Versionsnummern nutzen. Statt dessen findet sich eine Angabe zum letzten Bearbeitungsdatum, die aktuelle Variante trägt also die Bezeichnung Xronica Build 2008-05-03, nicht Xronica 0.1.2 oder ähnlichen undurchsichtigen Unfug.

17.03.2008

What's with those numbers, anyways?

This post will introduce a set of rules. Because the post is so goddamn long, I will post them here, so you don't have to jump and explain them in the following text. Most probably, I will replace this text with something better in getting to the point sometime in the next few days, we'll see.

THE 10 RULES OF EVOLUTIONARY SOFTWARE:

  1. The number is not thy god

  2. Thou shalt not make any great promiss for the future of your project other than 'It'll work'

  3. Relaxeth

  4. Thou shalt honour the old code and improve upon it with care

  5. Thou shalt not kill old features and capabilities unnecessarily

  6. Thou shalt know that for some reaon the other biblical commandments do not work and thus will not be included

  7. These 7 rules shall be known as the 10 rules of evolutionary software. Why? See rule number 1.


Disclaimer: This entry is written in English in order to get the message out as far as possible. I think, this is important to tell people. You don't change a mindset by simply saying so, you need to spread the message. Also, I apologize for not having any pictures, just boring text.
Lately, lots of software has been delayed or takes really long: Firefox 3 (added a lot of semi-cool features, btw) , WordPress 2.5 (pointlessly - more on that adjective later on - skipping 2.4 in the meantime), stepmania 4.0 (unusually for me, no complaints here) just to name those I care about myself and can recall within 10 seconds.

So, who's to blame?
My answer is: Version numbers. Or rather, the mindset they introduce.

Some weeks ago, I made some improvements to a Wordpress plugin named Sociable, a neat little plugin that creates icons which link to a social bookmark service under each post and page, enabling visitors to bookmark it with one click and also potentially a means of viral marketing (as in viral, not marketing called viral for no apparent reason or would like to become viral).
All I did was adding German bookmarking service Yigg to it, five lines of code. To signify the change, I named it version 2.5.3. However, the next day, I also added Oneview and decided not to change the number The change to me seemed to insignificant to reflect this way. Meanwhile, Joost de Valk, the main programmer of Sociable has released 2.5.4, btw.

But this insignificance I felt is a problem many coders and programmers seem to face: The numbers introduce the notion that, if you change something, you better change alot, because you need to justify the new number.
Thus, features become amassed in any new version of a software. Especially Wordpress 2.5 and Firefox 3.0 will diverge from the original software a large amount. Many users will have to completely relearn how to use these programs.

Thing is: There would be no need for this if software development was an evolutionary process, rather than revolutionary.

By revolutionary I mean: Add, change or delete one feature at a time, implement is, change the code so that it works fine. Changes should be subtle and come one at a time, increase the quality of a software without making it something vastly different from former iterations.
Also, abandon words such as "iteration", "version" (when related to time), "revision", "makeover". They all imply segmented time when in reality, time is flowing and thus not segmentable by numbers.

However, abandoning these words also means abandoning the concepts behind it.
"But", millions of programmer voices will shout in terror, "how do we distinguish all those versions of a software without version umbers?".

The answer is simple, really: Dates.
Not the kind you have with a nice woman (although that might help to forget about the problem for a while), but the ones in the calendar. Whenever you implemented a new feature and it is running smoothly, release and instead of a version number add a date, like this:

Wordpress
built (or build) 20-02-07 (or 03-20-07 for Americans)
change(s): implemented automatic feng shui sidebars (now that would be an awesome feature)
stable: yes
files changed: wp-admin/feng-shui-admin.php

That is: Name of the software
date this was last updated
list of changes

Only one point is new to most software and important to my concept:

date of last update
This replaces "version number". Operating with dates makes it harder to set them as a goal and also they do not imply anything about the hange itself so there is no psychological pressure to change just about everything in a software. Rather, it gives you freedom to just change something incredibly small, that only needs one line in one file changed.
The update never claimed to do something huge. If it does change something major, say so in the changelog.

afterwords
Granted, some changes are huge-scale and might require developers to change the whole package.
My sites usually go through an evolutionary change, I never changed one radically from one day to another.
There was one exception, though: When I decided to make one of my sites two-column instead of three-column, I had to relocate everything that used to be in the right-hand sidebar (that was deleted) to some other place on the pages. I ended up changing almost every file in my theme (custom WP theme).
Those things happen. But you should just not aim for them.

Do, what it takes to improve a software. But do not force news.
Or, as the seemingly forgotten saying goes: Never change a running system.

PS 2.4
Right, the part of skipping Wordpress 2.4 being pointless: Ask yourself just one question - what for?
What is the difference between publishing 2.4 later or naming it 2.5 that makes the latter preferable? is it that important to keep up with a roadmap that does nothing but list numbers, anyways? I mean, if it listed features to be implemented, alright. But numbers?

The German language has a beautiful explanation for this: Schwanzvergleich - dick compare.
It means, two people compare something and whoever has the bigger one (version number, number of sales, military rank, academic degree, dick) wins. I really dn't see any other point in aiming for a number.

Aim for a good software that runs. And stop thinking of it being imperfect the very day you release it. of course, it is imperfect. Nothing is perfect.
Just relax, see it running and if there is something to change, do so. If you got a good idea, implement it. With care and taking time.
It's not like anyone pays you to rush a sh*tload of features in, anyways.

BOILING IT DOWN: 10 RULES
To boil down my text, I'd like to introduce a set of 10 rules that I deem considerworthy, and also pathetically biblical in reference:

THE 10 RULES OF EVOLUTIONARY SOFTWARE:
  1. The number is not thy god

  2. Thou shalt not make any great promiss for the future of your project other than 'It'll work'

  3. Relaxeth

  4. Thou shalt honour the old code and improve upon it with care

  5. Thou shalt not kill old features and capabilities unnecessarily

  6. Thou shalt know that for some reaon the other biblical commandments do not work and thus will not be included

  7. These 7 rules shall be known as the 10 rules of evolutionary software. Why? See rule number 1.


I'd say number 1 and 7 are the most important.

05.02.2008

Selbst ist der Coder

Da lädt man ein Wordpress-Plugin runter und sieht, dass hier und da etwas fehlt, was man gerne noch hätte.

Bisher hab ich bei sowas einfach auf die nächste Version des Plugins gewartet.

Seit Samstag nicht mehr:
Mir fehlten in dem (ansonsten wirklich guten) Plugin Sociable, mit dem man automatisch Links zu verschiedenen Social Bookmark Diensten hinter jeden Beitrag setzen kann zwei in Deutschland recht große Dienste, YiGG und Oneview.
Also dachte ich mir, so schwer kann das doch nicht sein und nahm mir die Dateien dazu einfach mal vor.

Wie erwartet gab es einen Ordner mit den Logos der Dienste, in den ich die zwei neuen Logos einfach reinkopierte.
Dann sah ich mir das eigentliche Plugin an und fand schnell zwei Stellen, an denen ein Dienst definiert wird:

Einmal in der Liste zum Plugin gehörender Dateien. Diese um zwei Einträge zu erweitern war Killefitz.
Und dann noch die eigentliche Funktion für den Link. Bestehenden Eintrag kopieren, an der alphabetisch passenden Stelle einfügen und Name, Icon-URL und erzeugten Link ersetzen. Fertig.

Es war unglaublich einfach, das hätte ich mit meinen eher oberflächlichen php-Kenntnissen nicht gedacht.
Die veränderte Version habe ich dann dem Hauptentwickler des Plugins zugeschickt und gut war. Wer dieses inoffizielle Sociable 2.5.3 für seinen Blog haben möchte findet es denn auch hier.

Das mag einfacher Kinderkram gewesen sein, aber ich bin stolz auf mich.

Das Logo von Oneview sieht übrigens so aus:

Nur in wneiger eindrucksvoll:

oneview - das merk ich mir!