|
| 15 Jun 2014 11:11 AM |
Didn't know how to word title properly, basically, do you do this:
function ImJustGonnaAsumeWhatever(part) print(part.Name) end
or this
function ProgrammerIsANoob(part) if type(part) == "userdata" and part.ClassName and part.ClassName == "Part" and part.Name and type(part.Name) == "string" then print(part.Name) else error("You need to supply a ROBLOX part!") end end
maybe not so overkill, but do you let stuff error or not? or does it depend on the circumstances?
I'm thinking whether or not it matters...going to release some stuff to the public. |
|
|
| Report Abuse |
|
|
Insoul
|
  |
| Joined: 04 May 2014 |
| Total Posts: 66 |
|
|
| 15 Jun 2014 11:12 AM |
such function names
herro Im syKo |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 15 Jun 2014 11:42 AM |
I don't make my stuff to be used for idiots (the code itself, that is). If I ever make a check like that, it's a part of the game. For example, if I check if the className is Part, then that means it also accepts other classnames but I only want to do that specific things to Part classnames.
Heck, in my Love2D 3D stuff, the libraries have no error handling at all. If you do something wrong, you better be damn sure you know what you're doing, because the error ain't gonna tell you what's wrong. =P
like:
local v = mat4.i() * vec3.new()
> mat4.lua:155: attempt to index a number value
|
|
|
| Report Abuse |
|
|
flump
|
  |
| Joined: 30 Jul 2008 |
| Total Posts: 1039 |
|
|
| 15 Jun 2014 11:42 AM |
| If there's a chance for it to error I will make sure and check. If not I'll assume it shouldn't break and then fix it when it eventually does -_- |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 11:49 AM |
| Sometimes I start doing error handling, then I'm like "wait, I'm the only one seeing and/or using this, why am I doing this" and stop. |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 15 Jun 2014 12:19 PM |
i do the first because i assume i will always pass the right arguments in the script.
if i don't, then i can easily fix it. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 01:24 PM |
| Ah. I see Oysi removed 129K's error checking code from his stolen library. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 15 Jun 2014 01:53 PM |
^ You know, it's people like you that make me not want to release my stuff. Being accused of stuff I haven't done. Being accused of stealing, when I am the one who has been stolen from.
You and I both know I didn't steal anything. And most likely you're doing this because of envy, so if you ever want to see my stuff, then you should stop accusing me of stealing it.
Otherwise, people of scripters, assist me and report this moron, would ya? |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 02:17 PM |
| Oysi, we ALL know you didn't steal anything -- don't pay any attention to booing. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jun 2014 04:31 PM |
| booing/129K/whatever, probably the same guy |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 05:20 PM |
| If I remember correctly, 129K and booing share the account. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 15 Jun 2014 05:28 PM |
| The only error handling needed is for user input, because the user is stupid and puts the wrong stuff in. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 06:22 PM |
| What the HECK? 129K is an LMaDer and booing is a dumb hacker. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:14 PM |
"booing is a dumb hacker."
Usually you don't want to give away who you are with such comments that make it very obvious.
None-the-less it's not really that cool to be hating on Oysi. He's done _nothing_ wrong.
More-so, why Oysi? He's the oyster master, I don't see a prime reason to start attacking him over anyone else on the Scripters forum. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:36 PM |
| Oh? Nothing wrong? If I recall, in fact, a paypal log was posted as proof. Still going to protect him? Have fun with your alts, Oysi. I see no reason for ANYBODY to defend this fool. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 15 Jun 2014 07:38 PM |
| ^You mean the one that you typed up on notepad that contained multiple spelling errors and lacked being saved?^ |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:40 PM |
| Oh, I see. If you know that then it was CLEARLY stated that Paypal made an error which accounts for all those faults. <_< |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:41 PM |
Yes, I am definitely Oysi, the oyster god, and so is every other alt on this thread, minus littleroc because he's not Oysi's.
Also, I missed this 'log' though I doubt Oysi is the type to scam, I don't see what he couldn't make that he would want so badly to scam someone. Though I will gladly take a look at this log if you would be so kind as to provide some form of a link to it. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:43 PM |
| Remember kids, don't feed the trolls. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:44 PM |
| Hah! Smell you later, pal. Have fun looking for it after the admins deleted the thread to cover up Oysi's thievery. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:44 PM |
| Ah, so RenderSettings, when are you gonna play Dota to with us? Hmm? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 15 Jun 2014 07:46 PM |
| Paypal made an error for not saving your receipt. If that we're true, you wouldn't have any evidence to provide, making your point invalid. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:47 PM |
| No, Paypal made an error when saving the receipt - I blame corrupt code sections for the misspelled words and some sort of Library error. It opened up a notepad window with that in it - I promise. |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 07:50 PM |
| little is trying so hard lol |
|
|
| Report Abuse |
|
|