Java

Anything is allowed, don't overdo the spam.
[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
User avatar
Laharl
Overlord of the Netherworld
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

Postby Laharl » Wed Jun 25, 2008 4:58 pm

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

User avatar
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

Postby Zanaikin » Wed Jun 25, 2008 6:26 pm

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
|

()

"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great

User avatar
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

Postby Zanaikin » Wed Jun 25, 2008 6:36 pm

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.
|

()

"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great

User avatar
Laharl
Overlord of the Netherworld
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

Postby Laharl » Wed Jun 25, 2008 6:41 pm

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

User avatar
Sajuuk
Nerd King of the Frozen North
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

Postby Sajuuk » Wed Jun 25, 2008 6:42 pm

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.

User avatar
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

Postby Zanaikin » Wed Jun 25, 2008 6:45 pm

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

User avatar
Laharl
Overlord of the Netherworld
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

Postby Laharl » Wed Jun 25, 2008 6:48 pm

General D&D, General Discussion, you know, is it really that big of a difference? :lol:


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

User avatar
Sajuuk
Nerd King of the Frozen North
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

Postby Sajuuk » Wed Jun 25, 2008 6:52 pm

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.

User avatar
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

Postby Zanaikin » Wed Jun 25, 2008 6:56 pm

|

()

"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great

User avatar
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

Postby Zanaikin » Wed Jun 25, 2008 7:37 pm

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

User avatar
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

Postby Zanaikin » Tue Jul 01, 2008 2:12 pm

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
|

()

"Hurrah, Warsaw's ours!" / "Hurrah, Field Marshal!" - Battle report & promotion notice between Alexander Suvorov & Catherine the Great

User avatar
Laharl
Overlord of the Netherworld
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

Postby Laharl » Tue Jul 01, 2008 2:38 pm

C-C-C-C-C-COMBO BREAKER!

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


[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
[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

Return to “General Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests