[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]

>he uses multiple single line comments to write multiple

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: 26
Thread images: 10

File: 1504050097674 (1).png (352KB, 731x720px) Image search: [Google]
1504050097674 (1).png
352KB, 731x720px
>he uses multiple single line comments to write multiple line comments
>>
File: mark-00.jpg (9KB, 362x354px) Image search: [Google]
mark-00.jpg
9KB, 362x354px
Yes, sometimes.
>>
>his language has multiple line comments
dumbWeebshit(1).png
>>
>>62179729
Yeah. // looks better than that /* shit
>>
I use /* */ for all comments including single-line ones
>>
File: 1503546321708.png (719KB, 728x720px) Image search: [Google]
1503546321708.png
719KB, 728x720px
>he writes in a low-readability language
>>
File: 1491300027569.png (85KB, 705x751px) Image search: [Google]
1491300027569.png
85KB, 705x751px
>>62179729
Like this?
That's the kind of thing my discod's bot uses.
>>
>>62181996
koder detected
>>
>>62179729
>he comments his code
>>
>>62182039
good post
>>
>>62181996
And I thought my custom hooking method that does exactly this for external scripts that can be reloaded multiple times at runtime and leaves a fuckton of dead functions behind was bad.
>>
>>62181996
t. Brainlet
Back to Discord fucking idiot.
>>
File: 1496931201864.png (59KB, 637x512px) Image search: [Google]
1496931201864.png
59KB, 637x512px
>>62181996
>>62182030
>>62182098
I also have this one but I hate it since we can't search for shit in there.

I really hate it, so I use my simpliest one that does the job and anyone can edit and find.
>>
File: 1488649985751.gif (404KB, 342x342px) Image search: [Google]
1488649985751.gif
404KB, 342x342px
>>62182156
lmao someone's edgy I made this code because of the brainlet that modify the codes for their own meme
>>
>>62182160
>>62182169
Don't enable brainlet behavior. Explain to them why the old code is shit and why/how they should use the new one.
>>
>>62182213
Now I'm the brainlet, which one you're talking about?

The simplest or the long one?
The long one is when they want to remove one of their memes they have hard time to search for it because it's "xxx,"yyy","ccc" for the keywords and "links,","links","links".

So when you have 50+ SHITS in there it's a tad hard to find, plus when we ask the bots the commands it doesn't go past 20.

So basically I was like hey, I have an idea for them I'll just use :

bot.on('message', message => {
if (message.content === 'text') {
message.channel.send('text');
}
});

They just need to copy paste it and voila.
Then when they want to remove the code they just need to search they fucking keyword and delete the whole line completely.

It's a discord bot, I personally don't give a shit about 10 billions of lines.
>>
File: vomit.png (187KB, 500x483px) Image search: [Google]
vomit.png
187KB, 500x483px
>multiple line comments
>>
>>62179729
I cant even remember the last time i used multiple line comments that werent doc comments.

If you cant explain what you are doing in one line, chances are big you are the brainlet.
>>
>>62182266
It's not about billions of lines, it's about billions of functions that do a thing which is easily put together into a single function. Just make an array like
var responses = [
["command", "response"],
["command2", "response2"],
["command3", "response3"],
]
Works just as well for searching keywords.
>>
>>62179729
That is literal autism my friend if that upsets you
>>
>>62182266
Your code fucking sucks. You can just tell them to delete/add/edit the if(message.content)=== [phrase] block. You don't have to make an abomination and claim that it's for other users. Just admit that you suck and improve.
>>
>>62182400
Realized that one is shit too,
var responses={
"text": "response",
}
>>
File: 1495590078065.gif (2MB, 537x537px) Image search: [Google]
1495590078065.gif
2MB, 537x537px
>>62182266
Still a brainlet
>>
File: 1499688895101.jpg (31KB, 364x275px) Image search: [Google]
1499688895101.jpg
31KB, 364x275px
>>62182400
Jesus christ instead of writing that long ass code that no one was able to find themselves with (even myself being lost with all their crap) that one is like a godsent and that'd be easier for them.

Thanks, gonna be cleaner.

>>62182409
I'm actually personally using my first long code, if that sucks good for you.
But my users can't since it's a mess for them and I made a simplest for them so they just have to copy paste.

But hey, lmao at least I made my code instead of loading a fucking bot on the web

>>62183256
lmao

I see a lot of butthurts in here
>>
>>62182409
Btw if you manage to read - they ARE EDITING the code by copy/pasting the code. >>62181996

I'm using that one>>62182160

Jesus
>>
File: 1504086414996.jpg (27KB, 680x456px) Image search: [Google]
1504086414996.jpg
27KB, 680x456px
>>62179879
Thread posts: 26
Thread images: 10


[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.