[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Programming

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 3

File: IMG_5629.png (447KB, 1242x2208px) Image search: [Google]
IMG_5629.png
447KB, 1242x2208px
Any programmers here?

I just configured an smtp server and wrote an sms bombing python script. Have someone's number you hate? Lets blow em up lmao.
>>
>>8610902
Your program is buggy and gross.
And "an sms bombing script"? Really? Grow the fuck up.
>>
>>8610902
>>>/g/
>>
>>8610902
>"ETA 30 seconds"
>time.sleep(30)
>>
>Capital letters for function names
>>8611210
/g/ can't program
>>
>>8610902
>declaring globals in function body
>two returns in a function
>time.sleep(30)

KYS or grow up and learn to program properly.
>>
This is the worst thing I've ever seen
>>
>>8610902
Skiddie retard
>>
File: 1457293901394.jpg (103KB, 540x720px) Image search: [Google]
1457293901394.jpg
103KB, 540x720px
>>8611234
>>
>>8611210
>/g/ - smartphones and general consumer electronics
lyle
>>
>>8612121
>>two returns in a function

Not OP but is this bad? I usually have a normal return and a return that is meant to just end the function

Like for sample
doshit() {

if(some_error)
return error_code

return shitdone;
}

Is that bad? I think it is quicker than doing the equivalent code but with one return, in which I would initialize a variable and then fill it with the error code in the case of error, or fill it with the correct computation in case of no error and then return that. It is more expensive. Or not?
>>
>>8613019
Fucking read the code mate, it isn't based on a conditional. Of course it's fine to have multiple return statements when they're inside if statements. Here, the second return statement is just dead code.
>>
>>8611234
>>8612813
you guys are laughing, but the fucking retard is literally making his code slower on purpose.

if that isn't pure retardation then i don't know what is.
>>
>>8613067
Then don't say that two returns in a function is bad without specifying the context. You need to be explicit with your language!
>>
>>8613083
>not implying >>8612121 meant what >>8613067 said
>but still implying >>8612121 is me (>>8613067)
>>
>>8613092
idk man, ask the big jap in the sky to give /sci/ ids like all the good boards have.
>>
>>8610902
>AC_130 is in route.
Its 'en route' you troglodyte.
>>
>>8613118
No.
>>
File: shikataganai[1].jpg (188KB, 1920x1080px) Image search: [Google]
shikataganai[1].jpg
188KB, 1920x1080px
>>8610902
>Lines longer than 60 characters
Thread posts: 19
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.