halyph / mind-flow

blog and/or personal knowledge base
https://halyph.github.io/blog/
Creative Commons Attribution Share Alike 4.0 International
25 stars 6 forks source link

Fun #155

Closed halyph closed 1 year ago

halyph commented 3 years ago
halyph commented 3 years ago

src:


My code back in 2000

private Collection employees;

My code back in 2004

private Collection<Employee> employees;

My code back in 2005

// Darn compiler won't stop bitching. Will fix this later.
@SuppressWarnings({"unchecked", "rawtypes"})
private Collection employees;

My code today

@SuppressWarnings({"unchecked", "rawtypes"})
@Deprecated
@OneToMany(@HowManyDBADoYouNeedToChangeALightBulb)
@OneToManyMore @AnyOne @AnyBody
@YouDoNotTalkAboutOneToMany // Fightclub, LOL
@TweakThisWithThat(
    tweak = {
        @TweakID(name = "id", preferredValue = 1839),
        @TweakID(name = "test", preferredValue = 839),
        @TweakID(name = "test.old", preferredValue = 34),
    },
    inCaseOf = {
        @ConditionalXMLFiltering(run = 5),
    }
)
@ManyToMany @Many @AnnotationsTotallyRock @DeclarativeProgrammingRules @NoMoreExplicitAlgorithms
@Fetch @FetchMany @FetchWithDiscriminator(name = "no_name")
@SeveralAndThenNothing @MaybeThisDoesSomething
@JoinTable(joinColumns = {
    @JoinColumn(name = "customer_id", referencedColumnName = "id")
})
@DoesThisEvenMeanAnything @DoesAnyoneEvenReadThis
@PrefetchJoinWithDiscriminator @JustTrollingYouKnow @LOL
@IfJoiningAvoidHashJoins @ButUseHashJoinsWhenMoreThan(records = 1000)
@XmlDataTransformable @SpringPrefechAdapter
private Collection employees;

My code tomorrow

var employees;
halyph commented 3 years ago

Screen Shot 2021-04-22 at 11 30 42 PM Screen Shot 2021-04-22 at 11 31 00 PM