memesearch
When Refactoring Makes Code Worse

When Refactoring Makes Code Worse

Download Find similar pictures
Text on the meme
return LastOrderInfoBuilder() .withCreationDate(creationDate) .withRegion(region) .withPaymentType(paymentType) .withDeliveryType(deliveryType) .withAddress(address) .withOutletId(id) .build() return [[[[[[[[[lastOrderInfoBuilder new] withCreationDate:creationDate] withRegion:region] withPaymentType:paymentType] withDeliveryType:deliveryType] withDeliveryDate:deliveryDate] withTimeInterval:deliveryInterval] withAddress:address] withOutletId:outletId] withBuyerInfo:buyerInfo] build];
What it means

A clean, readable builder-style code snippet is shown on the left, while an absurdly nested and difficult-to-read version appears on the right. The joke is that an attempt to improve or transform the code has made it dramatically worse, like an unflattering FaceApp transformation. It is shared as a reaction to overengineering, bad refactoring, or ugly generated code.

Objects
Tags
Source
Type
image
Size
800×273 · 36.1 KiB
Mood
саркастичный, абсурдный
Language
en
Added