?

Log in

No account? Create an account
heh - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

heh [Nov. 30th, 2000|06:50 pm]
Brad Fitzpatrick
i remember back in the day we'd write one line journal entries and post 30 times a day. i need a new scented glade plug-in.
LinkReply

Comments:
[User Picture]From: angelicdestiny
2000-11-30 06:59 pm (UTC)
meeeeeeeeeeee toooooooooooooo.

... i would give you a "thumbs up", but that little bugger isnt there any more.

(Reply) (Thread)
[User Picture]From: bradfitz
2000-11-30 07:06 pm (UTC)
stupid subject icons. that's too AOL for me. :-)
(Reply) (Parent) (Thread)
From: evan
2000-11-30 07:06 pm (UTC)

posts

My record is 23.

(Obligatory thread reference:) And I'm glad the icons are gone.
(Reply) (Parent) (Thread)
[User Picture]From: angelicdestiny
2000-11-30 07:10 pm (UTC)
oh, you know you LOVE aol ;o)

now go to sleep!
(Reply) (Parent) (Thread)
[User Picture]From: angelicdestiny
2000-11-30 07:12 pm (UTC)

yall know im stooopid

*anymore

awyea :o)
(Reply) (Parent) (Thread)
[User Picture]From: revjim
2000-11-30 07:48 pm (UTC)

Yay!

I am so glad you got rid of those damn things. I think it was during a comment to Blythe earlier today that I was thinking, "Brad should get rid of those," as I tried my hardest to select a suitable icon. Then I come back from coffee to see that they are gone. Yay.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-11-30 07:50 pm (UTC)

Re: Yay!

No, it's actually a per-user option now.

Go to editinfo.bml and turn them off ....
(Reply) (Parent) (Thread)
[User Picture]From: revjim
2000-11-30 07:58 pm (UTC)

Re: Yay!

Ahhh. Very cool. Mine are GONE!

BTW- You mentioned that you had a NEW idea for the Style system and that you would clean it up and send it out for comments. I have been putting some thought into it as well... to allow more flexibility (so that LiveJournal could be used for other things than a Journal.. etc) and would like to see what you've got and try to incorporate some of the ideas I've got into it.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-11-30 08:01 pm (UTC)

Re: Yay!

I'm defining a new language and writing a compiler for the new system. It totally rules.


(Reply) (Parent) (Thread)
[User Picture]From: revjim
2000-11-30 08:05 pm (UTC)

Re: Yay!

Compiler? Mmmm.

(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-11-30 08:08 pm (UTC)

Re: Yay!

yeah, it'll validate the format, then compile it to safe perl that'll actually run in the server... the language lets you get/set variables, do conditionals, do foreach through lists you can get from the server, but doesn't let you get into deadlocks... no while loops, no gotos, etc...

in the future the compiler could have a backend that generates servlets or python or whatever we might move to.
(Reply) (Parent) (Thread)
[User Picture]From: revjim
2000-11-30 08:23 pm (UTC)

Re: Yay!

Ahhh. My plan is very similar, yet doesn't get into compiling anything into anything.

Basically there are THREE pieces.

### 1
Let users define any number of "substitutions".
IE. I could define a substitution called "HEADER" that consisted of a opening HTML and BODY tag... and a substitution called "FOOTER" that consisted of a closing BODY and HTML tag. Then... in the "style" page... one could merely type {%%HEADER%%} or something like that, and viola... the HEADER substitution is filled in.

### 2
create substitution functions. One such function could be get_entries. get_entries would have several parameters... a list of users, a list of fields, a time specification etc. All the data inside the starting and ending tag of the "function" would have additional variables available based on the function called and that function would repeat itself as needed. For instance (and the lexical style needs some work, but you get the idea):

{%%(get_events)(self)(last 10)(eventtime,subject,event)%%}
At %%eventtime%% I wrote concerning %%subject%%:
%%event%%
{%%(get_events)%%}

This chunk of code would be repeated 10 times with the variables being equal to the data of the my last 10 posts, 1 post for each iteration.

### 3
Allow users to create pages. A user could create a page called lastn that might look like this:

{%%HEADER%%}
{%%(get_events)(self)(last 10)(eventtime,subject,event)%%}
At %%eventtime%% I wrote concerning %%subject%%:
%%event%%
{%%(get_events)%%}
{%%FOOTER%%}

Then... allow users to set a default page.

So... if I set my default page to lastn and some acceses /users/revjim, they get lastn. All the other pages are called by asking for /users/revjim/anotherpage

Again.. the lexical style of my style language needs A LOT of improvement... but... this would mean that LiveJournal only needs to create functions to allow users to do different things... and the users utilize those functions to create the pages they need. If someone needs LiveJournal to do something we never thought of before... it is a piece of cake... because we can write a function that can do ANYTHING.

Make sense?
(Reply) (Parent) (Thread)
[User Picture]From: whitaker
2000-11-30 08:41 pm (UTC)

Re: Yay!

Could (%%HEADER%%) and (%%FOOTER%%) be replaced with

(=BODY
(=other blocks in here=)
BODY=)

???

Pretty BML-ish. :-)
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-11-30 09:19 pm (UTC)

Re: Yay!

hrm, not sure I like it. sure the syntax is rough, but even beyond that, there are lots of holes.

i'll write up a document this weekend about how mine's gonna work.
(Reply) (Parent) (Thread)
[User Picture]From: revjim
2000-11-30 08:28 pm (UTC)

Re: XML

Actually. The style could be written in XML. That would make the lexical style of the whole thing easy to learn as XML is pretty easy to learn, and known by many people already.
(Reply) (Parent) (Thread)
[User Picture]From: whitaker
2000-11-30 08:43 pm (UTC)

Re: XML

Even better.
(Reply) (Parent) (Thread)
[User Picture]From: whitaker
2000-11-30 08:47 pm (UTC)

Re: Yay!

You know... along the lines of this, it would be really cool to have an SQL-ish type of language that users could type in a little console (not unlike the admin console). Except instead of real column names and shit, you could just make some up for the rows that people should be allowed to access... then you could convert people's SELECTs to be optimized. I'd love that.
(Reply) (Parent) (Thread)
[User Picture]From: eli
2000-11-30 07:19 pm (UTC)

Shit

You used to do my laundry? Damn...whatever happened to that :-)
(Reply) (Thread)
[User Picture]From: bradfitz
2000-11-30 07:20 pm (UTC)

Re: Shit

I got accepted into the CS department where there are no girls and nobody does their laundry, or even combs their hair for that matter....
(Reply) (Parent) (Thread)
[User Picture]From: eli
2000-11-30 07:22 pm (UTC)

Re: Shit

Damn...what a shame.

You even have the washer and dryer right next to your room now so it'd be super easy for you to be my bitch :-)
(Reply) (Parent) (Thread)
[User Picture]From: patrick
2000-12-01 02:15 am (UTC)
ahh. those were the days. 19 posts is my all time high. maybe i should turn on single line again, just for fun. :)
(Reply) (Thread)