This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Levak
Pages: 1 ... 6 7 [8] 9 10 ... 68
106
« on: July 29, 2013, 01:33:58 am »
when you do foo = Foo(), that's similar to something like ball = Class() right? It clicked for me when you said that Foo() was the class, and foo became the object.
Yes. It is equivalent to ball = new Class() in other POO languages. About creating new instances with Foo():bar(42), does that have any other disadvantages, such as some sort of memory leak?
Only Memory Leaks (and maybe stupid beginner errors like "why my code doz not work" just because your creating a new object each time that has its own properties).
107
« on: July 28, 2013, 08:45:09 pm »
I am aware that Lua is case sensitive, but can Foo() just be used directly in conjunction with . and :
eg:
Foo():bar(42) Actually I'm not sure that looks valid...
It is valid, but keep in mind that it will create a new instance every time you use that. It can be useful in certain specific cases, but not in general.
108
« on: July 28, 2013, 01:48:03 am »
Humm, there are some misunderstandings of my posts, I would say. My opinion is that we shouldn't force people to resort to text-only sigs
Where have I said that ? The initial "complain" was about animated gifs that disturb reading and slow down the display (and "activates the fan of my laptop", not "overheat"). Plus spoilers in sigs that margin a lot more than a simple text and is abused to hide tons of useless content (in general, don't make me say what I did not). I was also reminding, that according to the usage and good-practices (also called netiquette for the net) sigs is neither a portfolio nor a junk but a place to identify the poster. Obviously, I am wrong since this does not apply to forum where there is a left describing part. Good point. However, it could be a really good idea not to think the contrary. I recognize that saying my opinion as such may display me as a pure troll in order to return to text-only sigs, but honestly, all started with some abuses in some people sigs : I only wanted to reopen the debates of what a sig really is. It appears, contrary to my thoughts, that people to not own a place to expose their projects and removing them from their sig would hurt them. My message is : "make it as homogeneous as possible and think of any readers that cares more about the topic than your sig". I'm just not annoyed about the sigs *as much* as you are and would personally not have made as much a huge thing about it nor tried to force others to think my way. Honestly, I have been reading omnimaga for a long time now (~2y) and saw the sig evolution going worse and worse. I did not had the time to express myself on the topic due to a lot of school projects going on. Now I have some time to discuss, I did it, but it's hard to maintain a constant flow acceptable for the readers. You may have thought my reaction was oversized maybe because of my long silence time. Besides, I find it ironic that you say that sigs are not for promotion, when you're actually using your site for it (links to 3 sites). IMHO it's fine to use part of your sig for that, since it's discrete.
I am just saying by these 3 links that I am the co-administrator of TI-Planet and Inspired-Lua. This helps peoples that do not know me but TI-Planet or Inspired-Lua to understand who I am, not what I've done. If I link my personal website, it is to remove every single gorgeous links to all my projects or my creations. Thus, I do not find this ironic at all.
Well it's still (unintentional?) promotion in some ways, so if you have these 3 links there, then other members should be allowed to link to sites too. Otherwise it's a double-standard. By the way I think the links are fine.
You're taking my words too literally ; Of course it's an advertisement for TI-Planet ! Anyway ... Next person : I am definitely in favor of people displaying their projects in their sig, and pictures (especially gifs) draw my attention to them a lot more than just a name and a link. Sigs should be all about promotion and representing the member. For sure, I just don't like the way peoples abuse of it making their sig 10x taller than the topic itself, thus, I was reminding what a sig was (for example in emails or back in 90' text-only forums). This helps to contrast between the abuses and this "picture". It also helps to describe new limitations face to those abuses. They also make the pages a lot more colorful, fun, and personal. [...] Not necessarily because of the unique sigs, but they do help to set the atmosphere. It creates an atmosphere and I'm not the one who will disagree, but as I said the main reason this discussion exists is because of abuses. At first I only examined the abuses and it appeared that a good part of the loss of space was to list all the made projects using a lot of animated gifs. Regarding the sig I do not mind, indeed, there are promotions of projects, but made cleverly, and with care of the reader. Next : I definitely think spoilers are beneficial for keeping signatures compact, too. For example, if I decided to link to the other 100+ projects I have worked on and completed, I would want them in a spoiler The spoiler acts like a link to a topic listing your projects. Having spoiler made certain person want to create that topic inside of their sig. Spoilers are indeed a good idea to collapse the sig (in order to silence people like me), but as said above, abuses of this concept broke the line of trust : at first it was a single spoiler, then spoilers of spoilers, then an entire page that would not fit in a 24" screen...). Since it is not only one sig affected, what would you do ? I also want to say in response to a previous post that my 1.6GHz computer that is three or four years old has never had trouble with heat issues loading pages. Maybe your ventilation is being blocked? Activating the fan is not only a source of heat, but also a source of throttle the CPU (or GPU) has to run in order to prevent the heat. Modern browsers optimize the areas to re-render, but it became insane facing animated GIF all over the page with different framerates and sizes. As I said in the post you're referring, I did not encounter this behavior on every pages, just pages where said people had posted consecutively. End : feel free to hate me after this long post.
109
« on: July 27, 2013, 10:14:47 pm »
Regarding some sig, it looks like it has become an area to prove you have the most beautiful projects or the most enormous sig. Sorry to say that but it is a stupid way of mind. First, just to make it clear, what you just said here is your opinion, not facts [...] you should have said something like "I think it's a stupid way of mind" rather than "It's a stupid way of mind". Don't try to force everyone here to switch from their mentality to yours.
So, if my english is not crap, what I understand is that you encourage people to prove they have the most beautiful projects using the most enormous sig ? What I wanted to underline is the contrary of the latter, and I did not thought there were any argument in favor of it, but, if there is, pardon me, of course you can think what you want, I just think it is a stupid way of mind. Besides, I find it ironic that you say that sigs are not for promotion, when you're actually using your site for it (links to 3 sites). IMHO it's fine to use part of your sig for that, since it's discrete.
I am just saying by these 3 links that I am the co-administrator of TI-Planet and Inspired-Lua. This helps peoples that do not know me but TI-Planet or Inspired-Lua to understand who I am, not what I've done. If I link my personal website, it is to remove every single gorgeous links to all my projects or my creations. Thus, I do not find this ironic at all. In case you didn't know, all the profits of my music sales are donated to Omnimaga so that they can afford the next hosting bill and contest prizes. If sigs were really not for promotion and I stopped advertising my music in all forum sigs, then maybe Omni wouldn't even be online anymore today. And on my Bandcamp traffic stats page, a lot of visitors came through Omnimaga topics.
Maybe you took the "your sig is not your portfolio" from my post to a personal attack, and it was not. I was speaking to people reading my post in a general way, that may have been a bad English written part, sorry. If I had to comment on your sig, I would only say that the "Reuben Quest Illusiat" is completly offset and may be removed. Of course I do not know what it is and what it represents and you may interpret what you want from this : Why not a reduce it or even make it a text-link ? On the other hand, the upper part of you sig is completely homogeneous and I have nothing to say on its content since it does not disturb my topic walk-through. Anyway, you absolutely do not own the worst sig, your sig even could be an example for some people...
110
« on: July 27, 2013, 07:46:25 pm »
Also @Eeems, do you think for animated GIFs there could be an exception for Z80 and monochrome Casio calc screenshots
My modern laptop (that has an i7) activates its fan when browsing on some omnimaga topics because of animated GIFs in sigs. On other pages where said signatures are not present it is fine. Why would we bother consume such power to browse on unrelated topics ? Obviously, if there is only one or two animated GIFs (which was the case in the said "back in 2003" forums), my CPU is fine, but what would prevent all other people to put animated GIFs if one has the right to ? Either limit their usage or simply forbid them. Just put a static image with a link to your project and fill your project topic with these animated GIFs. As I said in the other topic, your sig is not your portfolio, you can quickly describe your hobbies with a single sentence, you can put a link to a topic describing all your projects, you also can put other links related to yourself and on what your love doing, not on what you did, it should be static in time. Why not ? Regarding some sig, it looks like it has become an area to prove you have the most beautiful projects or the most enormous sig. Sorry to say that but it is a stupid way of mind. The sig is not for your promotion, it is for people wanting to know more about you, to identifying you easier, to understand if, without knowing you, your post can be trusted for sure. I hope this little more detail on what a sig is according to the netiquette (without talking about limitation) has opened your mind. On the other hand, Admins are talking of drastic limitations, most because a lot of people abused of the sig concept and its advantages to be present in every single post they make.
111
« on: July 26, 2013, 02:04:13 pm »
Maybe then it would be a restriction on the number of lines (+ 1000 chars limit) like on some forums. Or simply by giving the example like Eeems sig
112
« on: July 26, 2013, 01:48:15 pm »
Also, I removed now the spoilerseption and i'm at less than 500 chars.....
Thanks, but you could have kept the programming language section I guess (aren't we in a programming community ?)
113
« on: July 26, 2013, 01:44:43 pm »
What is the char limit in sigs anyway? I think it was 5000-10000, right? (Maybe 2000 would be better)
You really don't need more than 500 chars to put in your sig. I mean, you really don't need more than 200 displayed chars (excluding the bbcode ones). I know that it can fed up some people to delete their entire sig, but they should remember what is the real goal of a sig. You don't put 10 000 chars of sig in a mail, this is absurd.
114
« on: July 26, 2013, 10:29:02 am »
Hey, I'm not a mod obviously, but I think it has been enough of the ponies everywhere invading omnimaga in each post/topic. Here is an example of two consecutive posts : Notice : people's name has been blured out, it's not too late to change everything. Also, not only the ponies, the signatures are being invaded of useless and spamming content. - Spoilers are not a solution to hide what you don't want people to see. The computer see it and process it as for the other visible content. Look at the generated HTML if you don't trust me. - GIF are - attractive/distractive
- CPU greedy
- Bandwidth greedy
DO NOT ABUSE OF THEM - Signature is neither a portfolio, nor a Instagram section. It's a section where you put useful information about you Thanks,
115
« on: July 26, 2013, 03:47:02 am »
foo = Foo() Is this really needed?
If you're asking this question, you may not know that Lua is case sensitive. Here, Foo is the class (or the "template to copy") and foo is the new object (or an "instance of this class"). Foo() is equivalent to "new Foo()" in some other POO languages. Foo() calls Foo:init(). Q2: What does . refer to? From what I gather it would mean it would add it to a list/table so that if Coyote was called up, you'd get Coyote == {"x"==x, "y"==y, "tiles"=={} etc...}. Is this right?
Basic : classes in Lua are reprensented as tables. "." let you access to one element (defined of not) of a table. In Lua tables are associatives using all sort of hash key (you can use functions or tables as hash key). In general you access an element using its key with [ and ] such as :
t = {foo=bar1, ["foo with spaces"]=bar2} t["foo"] -- bar1 t["foo with spaces"] -- bar2 t.foo -- bar1 As you can see, since "foo" is a valid identifier, it can be used with the "." convention.
What do you mean by a valid identifier? Does that mean with no spaces? Or does it cover something else as well?
A valid identifier is basically a name you would give to a variable. "foo_bar" is valid, "foo-bar" is not", "foo bar" is not, "foo/bar" is not, etc ...
116
« on: July 23, 2013, 11:25:18 am »
making things flat really helps for saving space, because tiling wms like this look gross otherwise.
You could also use something different than gedit for developpment, like emacs or vim. You will earn a lot more space.
117
« on: July 22, 2013, 09:38:39 pm »
I Edited my post :
-- Foo:bar(42) -- calls Foo:bar(Foo, 42) ; prints 42 nil ++ Foo:bar(42) -- calls Foo.bar(Foo, 42) ; prints 42 nil
I thought I had fixed it before but in fact, it somehow returned to the old version :p
118
« on: July 22, 2013, 06:35:19 pm »
- To make a library with sourcecode entirely loadable the whole code has to be saved as a string and saved in a variable? And then use var.recall("file//var") to get the code as string?
Yep - What happenes if the string is too large to load?
IIRC the limit is something like 65535 (or another lower multiple of 2) characters. It just cannot store more chars and the rest is lost, involving a shorten script that may be invalid. You mays cut the source code then, or cut it cleverly by group of functions. Edit : oh, and btw, guess wat, mylib documents are extracted in RAM, thus, if we dump the RAM while you have a Lua script exporting its code throught strings, you may find its source code in it (the RAM). Same for TI-Basic functions (I was like "why the fuck is there Nspire-Basic source code in here ?")
119
« on: July 22, 2013, 05:20:47 pm »
Copying Adroid and Windows Phone like hell.
Pages: 1 ... 6 7 [8] 9 10 ... 68
|