-  [WT]  [PS]  [Home] [Manage]

[Return]
Posting mode: Reply
  1.   (reply to 5608)
  2. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: GIF, JPG, PNG, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 446 unique user posts. View catalog

  • Blotter updated: 2018-08-24 Show/Hide Show All

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.


Code Thread butter 23/04/05(Wed)23:43 No. 5608
5608

File 168073103377.png - (70.13KB , 694x669 , hmm.png )

Post funny/weird/cool codes, any code u saw that pick your attention and made u want to share:

def my_map(fuck, asses): sex = [] for ass in asses: sex.append(fuck(ass)) return sex


>>
butter 23/04/06(Thu)00:20 No. 5610
5610

File 168073324361.jpg - (124.97KB , 602x536 , jason.jpg )

In the RootTools app, the dev checks the license using the boolean meganFoxIsHot at com.jrummy.roottools.RootTools:

public static boolean meganFoxIsHot = false; //... public void finishCheck() { meganFoxIsHot = gnak? true : ihMsilibom; this.handler.sendEmptyMessage(27); }


>>
butter 23/04/06(Thu)00:39 No. 5611


>>5610
now I see, there's something wrong with the [ c o d e ] here, or I am not using it correctly


>>
Basement Dwelling Neckbeard 23/06/27(Tue)05:26 No. 5632

>>5611

ok but for real, (cond == true) is way more readable at a glance than (cond)


>>
Basement Dwelling Neckbeard 24/04/16(Tue)02:25 No. 5684

>>5632

Depends on how you name your variables.

I find this:

if (you.areGay()) { you.suck(it) }

nicer than:

if (you.areGay() == true) ...


>>
Basement Dwelling Neckbeard 24/06/27(Thu)22:00 No. 5706



>>
Basement Dwelling Neckbeard 25/04/15(Tue)22:23 No. 5724

>>5684
This. Just do stuff like
bool isFake = someBullshitCondition1;
bool isGay = someUnreadableCondition2;
if(isFake && isGay)
return "OP is a faggot";


>>
Basement Dwelling Neckbeard 25/04/20(Sun)10:57 No. 5727

>>5611
Unironically writing:
if(cond) {
return result;
}

Is retarded shit only semi-competent C programmers and JS developers do.

Most season people in programming that aren't boilerplate monkeys will even say that you should do:

for(int i = 0; i < len; i += 1) {

}
Instead of:
for(int i = 0; i < len; i++) {

}


>>
Basement Dwelling Neckbeard 25/04/25(Fri)05:19 No. 5741

>>5727
>if (cond) is bad for... reasons
are you retarded?

>for(int i = 0; i < len; i += 1) {
>Instead of:
>for(int i = 0; i < len; i++) {
yep, you are. "readability" tard detected.


>>
Basement Dwelling Neckbeard 25/04/25(Fri)05:20 No. 5742

>>5632
any programmer who doesn't know that
>if (cond)
is the same as
>if (cond == true)
is a retarded ape who deserves to never see gainful employment


>>
Basement Dwelling Neckbeard 25/04/25(Fri)13:21 No. 5744

>>5741

If you think that's for readability you're more retarded than them and should have your email blacklisted from all FOSS projects.

In fact take up a new profession, I heard the world is screaming after nurses.


>>
Basement Dwelling Neckbeard 25/04/26(Sat)00:30 No. 5745

>>5744
Sorry sweaty, the code I write is proprietary code for a fortune 5 company. No FOSS-slop for me. But go on, tell me how one way of incrementing is better than the other.

>b-b-but i++ is confusing!!!! you HAVE to do i += 1!!! because you just do, okay?!


>>
Basement Dwelling Neckbeard 25/04/29(Tue)23:06 No. 5746

>>5745
Very simple, optimization if using esoteric C/C++ compiler that doesn't have the modern pattern recognition modern compilers have.



[Return] [Entire Thread] [Last 50 posts]



Delete post []
Password  
Report post
Reason