2020-5-25 05:56 /
我把 ED 里出现的代码贴了出来(注释部分即为歌词),抛砖引玉一下。
虽然每一小段都能看懂,但合在一起却不明所以。
虽然每一小段都能看懂,但合在一起却不明所以。
/**
* The goal of this program is to obtain a HEALTHY
* and SUSTAINABLE relationship, darling.
*
* @author Cassie Wei from Mili
*/
public class sustainPlusPlus {
public static void main(String[] args) {
World world = new World();
Life me = new Ghost();
Life you = new Ghost();
/**
* If abstraction is the definition of beauty
* Are those of us chasing after clarity
* A representation of ugly?
*/
world.getObjects().sortByAttribute("beauty");
if (world.getObjects().getFirst().getArtTags().indexOf("abstract") != -1) {
me.addPhysicalAttribute("ugly");
you.addPhysicalAttribute("ugly");
}
world.giveBestAward("ugly", me);
world.giveBestAward("ugly", you);
/**
* CALL ME MOMMY
* JUST LIKE YOUR FANTASY
* there is no crime in ideality
*/
if (you.getFetishes().searchByType("name calling", "mommy") != -1) {
you.addToMemory(me);
you.setNicknameFor(you.getMemory(me), "mommy");
}
Rule r = new Rule("Oedipus complex is okay", true);
world.addRule(r);
/**
* MUX>>>DEMUX
* Can't you understand me?
* I'm not mine NAND I'm not yours
* Ah
*/
try {
you.decodeMessage(me.codeMessage("I'm not mine NAND I'm not yours", "mux"), "mux");
} catch (InsufficientIntelligenceQuotientException e) {
world.sendMessage("Oh you dummy.", you);
me.announce("Ah");
}
/**
* This can end right here if you don't let it out
* Let it out
*/
if (you.getThoughts().size() != 0) {
try {
you.sayTo(you.getThoughts(), me);
you.clearThoughts();
} catch (TooMuchOfAPussyException e) {
world.getRelationship(you, me).end();
}
}
/**
* Give up or give me your all
* Tell me now
* Tell me now
*/
if (you.getMemories(me).getLove() < 0.5) {
world.getRelationship(me, you).setSustain(0);
} else {
you.transferThoughts(me);
you.transferAttributes(me);
//sustain++;
world.getRelationship(me, you).increaseSustain();
}
// TO BE CONTINUED
}
}
> 1. ... 如果对象这一属性不是抽象的,则添加物理属性“丑陋”
这里我一开始也是像这么理解的,但仔细一看 `.indexOf("abstract") != -1` 的时候才添加“丑陋”属性。问题是 != -1 一般都指某个元素存在,也就是“存在抽象属性”。我怀疑这里的代码可能写错了,毕竟和注释是矛盾的。
2 没什么歧义
3. 这个我试着理解了一下。如果把 I'm not mine, NAND(I'm not mine, I'm not yours), I'm not yours 看做 MUX 的三个输入。
比如,以 I'm not mine 作为 A(输入1),NAND(I'm not mine, I'm not yours) 作为 S(选择信号),I'm not yours 作为 B(输入2),画一下真值表可以看出,没有办法从输出反推出 I'm not mine 和 I'm not yours 的值,也就是说没办法确定性地解码。按这种理解的话,是否是在说人和人没办法实现相互理解?强行猜测的话,就有可能抛出 InsufficientIntelligenceQuotientException(智商不足异常)。个人想法,不一定对,但我觉得 MUX 肯定要用上才合理。
4. 我也是这么理解的。但我不太懂 “TooMuchOfAPussyException” 的含义。
5. 代码比较明确,就是这个意义太奇怪了,不知道怎么叫“同化”。
总体来说,代码基本可以理解,但是每个小段的含义很零散,缺乏一个整体的逻辑把它们串起来。此外,开头的注释里说
“The goal of this program is to obtain a HEALTHY and SUSTAINABLE relationship, darling.”
那么 me 和 you 代表的是情侣中的两方吗,还是说是另外的某种关系呢?这可能是我最好奇的一点。
也许真的就只是她的作词习惯吧
第1点,注释是个疑问句,说不定是反过来的意思,毕竟这个程序本身是反抽象的。我第3点那里没有注意到NAND本身就是一个MUX,你这个说的很好。