generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Do you ever really check if an error will happen?

Previous Thread :: Next Thread 
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
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 is not online. Insoul
Joined: 04 May 2014
Total Posts: 66
15 Jun 2014 11:12 AM
such function names

herro Im syKo
Report Abuse
Oysi is not online. 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 is not online. 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
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
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 is not online. 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
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
15 Jun 2014 01:24 PM
Ah. I see Oysi removed 129K's error checking code from his stolen library.
Report Abuse
Oysi is not online. 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
EchoReaper is not online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
15 Jun 2014 02:17 PM
Oysi, we ALL know you didn't steal anything -- don't pay any attention to booing.
Report Abuse
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
15 Jun 2014 03:49 PM
Me? booing? Really?
Report Abuse
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
15 Jun 2014 04:31 PM
booing/129K/whatever, probably the same guy
Report Abuse
EchoReaper is not online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
15 Jun 2014 05:20 PM
If I remember correctly, 129K and booing share the account.
Report Abuse
morash is not online. 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
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
15 Jun 2014 06:22 PM
What the HECK? 129K is an LMaDer and booing is a dumb hacker.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
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
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
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 is not online. 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
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
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
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
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
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
15 Jun 2014 07:43 PM
Remember kids, don't feed the trolls.
Report Abuse
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
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
TigreBlood is not online. TigreBlood
Joined: 31 Jul 2011
Total Posts: 1107
15 Jun 2014 07:44 PM
Ah, so RenderSettings, when are you gonna play Dota to with us? Hmm?
Report Abuse
morash is not online. 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
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
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
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
15 Jun 2014 07:50 PM
little is trying so hard lol
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image