[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>putting a piece of code thats only used once in an extra
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 2
File: Screenshot_146.png (479 KB, 466x466) Image search: [Google]
Screenshot_146.png
479 KB, 466x466
>putting a piece of code thats only used once in an extra fuction instead of simply writing a comment

>complaining about functions that are "too long"

Protip if the function is too long your brain is to small
>>
>>53714277
>to small
too *
>>
>>53714277
I pity the guy who's going to have to work with the spaghetti shit you've written
>>
>>53714277
I agree, but I'm pretty sure there are rare exceptions, considering how many poo in the loo tier programmers there are out there.
>>
anything longer than a line or two needs its own function\class or whatever. a single function\class should never be too big to fit on the screen. functions and methods should be pure wherever possible.

i would hate to be OP's coworker, if he has a job, which it really sounds like he doesn't
>>
>>53714603
A single class on a single screen? Maybe with two columns, but give me a Pencil class with getters and setters for lead size, lead amount, pencil color, the amount of lead outside the pen and a method to click out more lead. I want to see that on a single 1080p monitor with size 11 font.
>>
>>53714906
Easily done in C#
Thread replies: 7
Thread images: 2

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.