"прошу прощения за эту функцию"
Sep. 19th, 2001 12:27 amЭта запись будет интересна, наверное, только программистам ;)
Вот описание одной функции, взятое прямо из исходников Живого Журнала:
# name: LJ::make_text_link
# des: The most pathetic function of them all. AOL's shitty mail
# reader interprets all incoming mail as HTML formatted, even if
# the content type says otherwise. And AOL users are all too often
# confused by a a URL that isn't clickable, so to make it easier on
# them (*sigh*) this function takes a URL and an email address, and
# if the address is @aol.com, then this function wraps the URL in
# an anchor tag to its own address. I'm sorry.
Ну что, господа программисты, знакомая ситуация? Кому не приходилось в то или иное время писать функции, за которые хотелось бы попросить прощения? ;)
Вот описание одной функции, взятое прямо из исходников Живого Журнала:
# name: LJ::make_text_link
# des: The most pathetic function of them all. AOL's shitty mail
# reader interprets all incoming mail as HTML formatted, even if
# the content type says otherwise. And AOL users are all too often
# confused by a a URL that isn't clickable, so to make it easier on
# them (*sigh*) this function takes a URL and an email address, and
# if the address is @aol.com, then this function wraps the URL in
# an anchor tag to its own address. I'm sorry.
Ну что, господа программисты, знакомая ситуация? Кому не приходилось в то или иное время писать функции, за которые хотелось бы попросить прощения? ;)