Java
- Laharl
- Overlord of the Netherworld
- Posts: 2290
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Demon
- Class: Tennis Player 4/Geek 5/Software Simian 2
- Location: Between the keyboard and chair [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Java
I found an interesting blog article on Java's lack of support for functional programming and how that hurts the language:
Once upon a midnight dreary, while I pron surfed, weak and weary,
Over many a strange and spurious site of ' hot xxx galore',
While I clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour,
"'Tis not possible!", I muttered, "Give me back my free hardcore!
...quoth the server, 404.-Bash.org
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
well, this is why Java is extremely inefficient, cause there's no simply way of running things other than making/compiling/calling methods of each specific class... although you could just group everything you have together into one huge superclass and write the verbs there =P.
and he's right, the benefits are that things ( the architecture ) is extremely obvious =P
and he's right, the benefits are that things ( the architecture ) is extremely obvious =P
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
on another note:
frankly, I don't really see what the problem is. Why can you just make a singleton self-constructing Verbs class and do stuff like Verbs.run( objects... ) and Verbs.kill( objects... ) and Verb.takeOutTrash( person psn, trashContainer tsh ) ?
it sure works as well as a unattached function in my opinion.
frankly, I don't really see what the problem is. Why can you just make a singleton self-constructing Verbs class and do stuff like Verbs.run( objects... ) and Verbs.kill( objects... ) and Verb.takeOutTrash( person psn, trashContainer tsh ) ?
it sure works as well as a unattached function in my opinion.
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Laharl
- Overlord of the Netherworld
- Posts: 2290
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Demon
- Class: Tennis Player 4/Geek 5/Software Simian 2
- Location: Between the keyboard and chair [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Re: Java
Requiring every function to be explicitly associated with a class a) requires overhead (I think) and b) means that you can't do the sort of highly generic mapping functions that they mention in the article.
Once upon a midnight dreary, while I pron surfed, weak and weary,
Over many a strange and spurious site of ' hot xxx galore',
While I clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour,
"'Tis not possible!", I muttered, "Give me back my free hardcore!
...quoth the server, 404.-Bash.org
- Sajuuk
- Nerd King of the Frozen North
- Posts: 3911
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Shadow Creature/Progenitor/College Graduate/Nerd
- Class: Geek 4/CodeMonkey 2/HardwareWiz 4/BasketballManager 4/WindowsAdmin 4/Root 2/ChaosIncarnate 1
- Location: The depths of Baclora, where the Sajuuk lies...
- Contact:
Re: Java
on a completely unrelated note, why is this in General D&D?
[PCs Currently At - Sailing The High Seas]
TODAY: Arodus 28, 4711
PARTY BUFFS ACTIVE: None
"No matter how difficult or absurd you make a puzzle, your players will find an even more impossible and preposterous way of solving it." - http://www.shamusyoung.com/twentysidedtale/?p=680
Titles: He Whose Hand Shapes What Is, Epic Destroyer of Loot, Creator of the Elemental Plane of Bishoujos.
TODAY: Arodus 28, 4711
PARTY BUFFS ACTIVE: None
"No matter how difficult or absurd you make a puzzle, your players will find an even more impossible and preposterous way of solving it." - http://www.shamusyoung.com/twentysidedtale/?p=680
Titles: He Whose Hand Shapes What Is, Epic Destroyer of Loot, Creator of the Elemental Plane of Bishoujos.
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
cause D&D == programming_language, everyone knows that =P
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Laharl
- Overlord of the Netherworld
- Posts: 2290
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Demon
- Class: Tennis Player 4/Geek 5/Software Simian 2
- Location: Between the keyboard and chair [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Re: Java
General D&D, General Discussion, you know, is it really that big of a difference?
Once upon a midnight dreary, while I pron surfed, weak and weary,
Over many a strange and spurious site of ' hot xxx galore',
While I clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour,
"'Tis not possible!", I muttered, "Give me back my free hardcore!
...quoth the server, 404.-Bash.org
- Sajuuk
- Nerd King of the Frozen North
- Posts: 3911
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Shadow Creature/Progenitor/College Graduate/Nerd
- Class: Geek 4/CodeMonkey 2/HardwareWiz 4/BasketballManager 4/WindowsAdmin 4/Root 2/ChaosIncarnate 1
- Location: The depths of Baclora, where the Sajuuk lies...
- Contact:
Re: Java
topic moved to general discussions
[PCs Currently At - Sailing The High Seas]
TODAY: Arodus 28, 4711
PARTY BUFFS ACTIVE: None
"No matter how difficult or absurd you make a puzzle, your players will find an even more impossible and preposterous way of solving it." - http://www.shamusyoung.com/twentysidedtale/?p=680
Titles: He Whose Hand Shapes What Is, Epic Destroyer of Loot, Creator of the Elemental Plane of Bishoujos.
TODAY: Arodus 28, 4711
PARTY BUFFS ACTIVE: None
"No matter how difficult or absurd you make a puzzle, your players will find an even more impossible and preposterous way of solving it." - http://www.shamusyoung.com/twentysidedtale/?p=680
Titles: He Whose Hand Shapes What Is, Epic Destroyer of Loot, Creator of the Elemental Plane of Bishoujos.
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
on another note (DOUBLE POST!!!), this blog is excellent, I've only read thru 2 articles thus far but it's very insightful =) ( and not in a boring way like half the stuff out there ), and on far more things than just coding.
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Zanaikin
- Tsunshun
- Posts: 4433
- Joined: Fri Apr 28, 2006 2:37 am
- Race: Tofu
- Class: Strategist 5/Worldforger 3/SW Engineer 5
- Location: Lost in my virtual universe
- Contact:
Re: Java
mmm, after thinking a bit, the solution should have been obvious:
just make a that act as a dictionary of verbs. This even minimizes runtime overhead.
Java Reflections also allows a high degree of malleability on the use of the verbs in this approach, the functionality within the utility can figure out what classes and types are being used...
TRIPLE POST!!! =P
just make a that act as a dictionary of verbs. This even minimizes runtime overhead.
Java Reflections also allows a high degree of malleability on the use of the verbs in this approach, the functionality within the utility can figure out what classes and types are being used...
TRIPLE POST!!! =P
|
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
()
"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great
- Laharl
- Overlord of the Netherworld
- Posts: 2290
- Joined: Fri Apr 28, 2006 2:23 am
- Race: Demon
- Class: Tennis Player 4/Geek 5/Software Simian 2
- Location: Between the keyboard and chair [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Re: Java
C-C-C-C-C-COMBO BREAKER!
No quad post for you!
On topic, that Wikipedia article isn't very useful...
No quad post for you!
On topic, that Wikipedia article isn't very useful...
Once upon a midnight dreary, while I pron surfed, weak and weary,
Over many a strange and spurious site of ' hot xxx galore',
While I clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour,
"'Tis not possible!", I muttered, "Give me back my free hardcore!
...quoth the server, 404.-Bash.org
Return to “General Discussions”
Who is online
Users browsing this forum: No registered users and 0 guests