@DaggNabbit your answer reminds me of the idea of SQL stored function (in principle) though in practice it looks like a more complicated version. But I think good answer :D
Compile the code once, then just pass shit arguments/parameters to it and it does most of the work for you
This could be a tremendously easy way for modders to create the cards for their mods
@Phrancis the great thing is you don't even need to require them to write it like that, the script can just return a plain old table and you can do the createClass thing later
It seems the PL makes thing easy for data storage/retrieval... imagine... Lua: Here is `class "'Warrior'"` table SQL: Cool, I like tables! *later...* Lua: Hey SQL, I need `class "'Warrior'"` SQL: Cool, here's a table!
So much for formatting, you get the idea though
C is over my head right now though... take this from the stack, put that back on the stack I understand very little of it
I can stack Poker chips and understand, take this from my stack
@Phrancis that's probably the C Lua API you're thinking of... it is very much stack-based and is probably tricky to get the hang of, even for seasoned programmers
normally the barriers with C are memory management, no classes, no OOP, no namespaces, etc
like there are probably dozens of different types of collections, where for example in Lua you just have tables (and you never really need anything else)
lol no, but that article is a good example of the thought process required for someone new to Java just to choose which type of collection to use, and the stuff a seasoned Java guy has to remember
@DaggNabbit can/should Lua be used for storing game/player/card data while a game is not going on? I know we talked about storing some data in SQL for easy storage/retrieval but I don't really know the scope...
So I guess anything that's persistent between games should be in SQL DB?
I'm thinking of mostly keeping I/O / packets to a minimum, I think get a packet before game starts and send one after game ends, and refresh occasionally from SQL during idle time may be best...?
except maybe weird corner cases like if the game server crashes and the database server doesn't, and something happened during the game that would need to persist... idk what that would be though, something like a card got permanently destroyed or someone got a new card somehow
Hhey guys, I've been trying to pick Ruby recently and apparently Aptana is one of the better IDEs for use (I am spoiled by .NET and Java's IDEs).
So, I picked it up (having not want to splash out for RubyMine - RubyMine's IDE is based off of NetBeans which I never liked anyway) - and I'm having ...
This means that the constructor of your UserSignUp class (somehow) throws an UnsupportedOperationException, either by itself or via a method call.
If you want more help than this, then post more code.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
We've got to figure out a system at some point to allow easy distribution of mods, but we do really want all clients to run the same code and not have an OP client that has modded damage values ;)
in other wrods, you can modify the interface and the look of some card backgrounds sure
but you can't modify damage values of cards
unless you mean to say you want the client and server to be distributable, and players to potentially mod their own servers to have their own card sets
HTTP referer (originally a misspelling of referrer) is an HTTP header field that identifies the address of the webpage (i.e. the URI or IRI) that linked to the resource being requested. By checking the referer, the new webpage can see where the request originated.
In the most common situation this means that when a user clicks a hyperlink in a web browser, the browser sends a request to the server holding the destination webpage. The request includes the referer field, which indicates the last page the user was on (the one where they clicked the link).
Referer logging is used to allow websites...
if it's nto there, then I don't know
Fuck me I'm being throttled cus I'm talking so much
Hey @DanPantry. I have tried to convince @DaggNabbit of using Entity-Component-System, I haven't really succeeded in that though. Do you know of the ECS pattern?
@DanPantry Artemis is an ECS Library, yes. I did not use that one though but instead made my own. Making the systems and components for ECS can be a bit of work, but I do find that it's pretty much Single Responsibility Principle at it's fullest.
@skiwi Just saying, Spring does have an excellent way of doing Dependency Injection... Store.INSTANCE, ugh. As for whether or not it works, don't know, it's been a while since I used Spring
@DaggNabbit thanks for your answer to my question. I will mess with your code snippet and see if I can get it to produce the same results. Definitely it is a lot cleaner. I do like the idea that @Phrancis was talking about though where a user might be able to create a card script by a simple command to Lua, that could be something awesome to explore
@DaggNabbit one thing I was wondering, is it possible to read specific lines from a script and save them as strings? So that I could grab a specific function from one script and literally write it into another script, possibly altering it or changing the order of operations etc
@DanPantry On your own branch I think you can do pretty much anything you want. I can't promise anything about whether or not we'll end up using it though.
well that might be a potential solution, it doesn't matter if it is difficult as long as it can be done :) and I will be writing the scripts that have the functions I want to grab
really what I want to do is take a function and convert it to a string, I do know that functions can be passed as arguments in Lua
I think many Bukkit plugin developers are entirely new to Java, perhaps new to programming in general. And even if they don't, they just don't know how to... debug problems.
Only reason i DID use a singleton was because the system I was working with at the time had so many singletons it was practically the only way to add to the object graph