Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ask me questions about my websight

Name: Anonymous 2010-09-11 12:52

On Monday, I'm putting online a small website (around 2K LoC) I built mostly just for fun and for the sake of playing around with some interesting technologies. I'm using C# on Mono, JavaScript with Ext JS, Cassandra through Thrift API, client-side XSLT, OAuth, Twitter API, Sass, FastCGI on lighttpd. Ask me anything!

Name: Anonymous 2010-09-11 12:53

What does this websight do?

Name: Anonymous 2010-09-11 13:00

>>2
You can put your shit on it and "share it with the world", and there's Twitter integration. It's really not important to this discussing, just your average, useless, "Web 2.0" websight. Maybe I'll post a link to it, when it's online.

Name: OP 2010-09-11 13:11

I forgot to mention, I also use Memcached. As you can guess, this site is meant to be really fast and scalable. I really like the idea of client-side XSLT, because browser can locally cache everything (including HTML), except for small XML files that represent each page. And those XML files, I can cache them on the server(s) with Memcached. So, for pretty much every request, just one small and cached XML file get sent.

Name: Anonymous 2010-09-11 13:12

ask me questions aboot mah anus!

Name: Anonymous 2010-09-11 17:06

What does this anus do?

Name: Anonymous 2010-09-11 20:44

Does do shit!

Name: OP 2010-09-12 0:35

Client-side XSLT is major PITA, though. I doubt I will be using it anywhere else, not in a near future.
It forces browsers in some serious XHTML mode, that I can't get otherwise, even with correct MIME type and XML declaration. Effect of that is crippled JavaScript - jQuery, reCAPTCHA, @Anywhere, Firebug doesn't work, cookies don't work and a lot more [0]. It's not so hard to write correct JavaScript, but apparently no one does that. Newer versions of Google Analytics work and Ext JS too.
Another downside is that you will need to do server-side transformations anyway, for old browsers and Google. That complicates things, not because it's hard to implement the functionality and not even so much because XSLT implementations differ, but because of crazy browser tantrums, you would think that XSLT is XSLT, no matter where you do it, but no, I had a page that works when sent to browser, but don't work on browser when transformed on server.
Oh, and great fun when you need to inject HTML into XSL template, thanks to Firefox not supporting disable-output-escaping="yes".
Anyway, even after all the pain and general complexity, I still like XSLT and will probably be using it more, but just on server-side.

[0] http://developer.mozilla.org/en/Writing_JavaScript_for_XHTML

Name: Anonymous 2010-09-12 17:01

2KLoC is small now? Jeeeeeeeeeeeeeez.

Name: OP 2010-09-12 18:33

>>9
2K is nothing.. especially in a verbose language like C# and when dealing with XML and Cassandra w/ Thrift. For example, just putting in and pulling out date from Cassandra takes 853 from the total 2252 lines. Then there's a small Twitter library, that I wrote, with 215 lines. What remains is just 1184 lines, if you consider that there's a small web-framework of my own, then that's really not much.

Just for fun, JavaScript: 194 lines; XSL: 292; CSS: 389. I'm actually surprised, that there's so much CSS, although it's very manageable, thanks to Sass.

Name: Anonymous 2010-09-12 18:44

I will pay $20 to whomever can shut this guy up

Name: OP 2010-09-12 18:52

>>11
Oh, sorry, am I interfering your intense discussion about anuses?

Name: Anonymous 2010-09-12 18:55

*anii

Name: Anonymous 2010-09-12 18:55

>>12
That sounds about right.  >>11 is offering to pay someone $20 to hax your anus.

Name: >>11 2010-09-12 19:00

>>12
In an ideal /prog/ neither you, nor the anus talk, would exist. I am willing to settle for the first.

Name: Anonymous 2010-09-13 1:18

>>15
SETTLE FOR MY ANUS

Name: Anonymous 2010-09-13 14:23

>>16
I can do better.

Name: Anonymous 2010-09-14 16:10

So that's what happens on /prog/ when an interesting thread is made! Get out, anusposters.

Your websight sure sounds interesting, OP. Since you're using C#, that's ASP.NET, right?
And I wanted to do something using client-side XSLT too; it's a shame that it doesn't work that well.

Name: Anonymous 2010-09-14 16:20

>>18
An interesting thread was made?  Link please.

Name: Anonymous 2010-09-14 16:32

>>18
Hi OP

Name: Anonymous 2010-09-14 16:43

>>20
stop liking things I don't like!

Name: Anonymous 2010-09-15 0:26

>>21
You're an idiot.

Name: OP 2010-09-15 14:44

>>18
Technically, yes, it is ASP.NET. It's powerful, but I really dislike all of the high-level features - controls, MVC, AJAX, view state, template engine, it's all horrible crap, IMO. No need to abstract simple things.
I usually just implement a simple RouteHandler, that maps URLs to objects and from there write code pretty much like in any other language.

Name: Anonymous 2010-09-15 14:45

>>23
lrn2perl

Name: Anonymous 2010-09-15 16:45

so OP did you write VB programs in the past?

Name: Anonymous 2010-12-09 23:39

Name: Anonymous 2013-08-31 22:41


Zermelo began to axiomatize set theory in 1905; in 1908, he published his results despite his failure to prove the consistency of his axiomatic system.

Name: Anonymous 2013-08-31 23:26


κμ + ν = κμ·κν.

Name: Anonymous 2013-09-01 0:11


Infinite-dimensional spaces are widely used in geometry and topology, particularly as classifying spaces, notably Eilenberg−MacLane spaces. Common examples are the infinite-dimensional complex projective space K(Z,2) and the infinite-dimensional real projective space K(Z/2Z,1).

Name: Anonymous 2013-09-01 0:57


Power set of a set A is the set whose members are all possible subsets of A. For example, the power set of {1, 2} is { {}, {1}, {2}, {1,2} } .

Name: Anonymous 2013-09-01 1:43


Principles such as the axiom of choice and the law of the excluded middle appear in a spectrum of different forms, some of which can be proven, others which correspond to the classical notions; this allows for a detailed discussion of the effect of these axioms on mathematics.

Name: Anonymous 2013-09-01 2:27


 This method cannot, however, be used to show that every countable family of nonempty sets has a choice function, as is asserted by the axiom of countable choice. If the method is applied to an infinite sequence (Xi : i∈ω) of nonempty sets, a function is obtained at each finite stage, but there is no stage at which a choice function for the entire family is constructed, and no "limiting" choice function can be constructed, in general, in ZF without the axiom of choice.

Name: Anonymous 2013-09-01 3:13


Every unital ring other than the trivial ring contains a maximal ideal.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List