<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-2"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Éppen tegnap is láttam egy olyan kódot (ifjú emberek kódját kellett review-olnom), ahol nagy vehemenciával használták a generikusokat, kivéve egy helyet. &nbsp;Próbáltam kiegészíteni, de nem ment. Valahol nem stimmelt. Közben próbáltam megérteni is, hogy mit csinált, és egy idő után rájöttem, hogy nem véletlenül nem tették ki ott a generikus paramétert.<div><br></div><div>Nem lehetett. Mégpedig azért, mert rossz volt a kód.</div><div><br></div><div>Ahelyett, hogy erre rájöttek volna, és átírták volna, inkább kivették a generikust. Így most lefordul és a teszt eseteken is átmegy, de van olyan eset, amikor Class Cast Exception-nel elhalna, ha kipróbálnák.</div><div><br></div><div>Tehát nem érti a generikusok lényegét, azt találja, hogy az megköti a kezét, nem boldogul vele, és ahelyett, hogy rájönne, hogy compile time megtalált egy bug-ot, inkább "kikapcsolja" a lehetőséget, elnyomja egy direktívával a warning-ot, és átteszi run-time a hibát.</div><div><br></div><div>Öröm és bódottá.</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="color: rgb(136, 136, 136); ">--</span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "><br></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); ">Verhás Péter</span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "><br></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "><a href="mailto:peter@verhas.com">peter@verhas.com</a></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "><br></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); ">+36(30)9306805</span><span class="Apple-style-span" style="color: rgb(136, 136, 136); "><br></span><span class="Apple-style-span" style="color: rgb(136, 136, 136); ">skype: verhas</span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On 2012.12.07., at 14:24, István Székely &lt;<a href="mailto:istvan.szekely@i-logic.hu">istvan.szekely@i-logic.hu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-2" http-equiv="Content-Type">
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Elfelejtettem megkérdezni, hogy ezt
      hogy értetted? Wildcard meg rekurzív típusparaméter, meg ilyenek,
      vagy valami egyéb?<br>
      <br>
      Üdv,<br>
      Stivi<br>
      <br>
      <br>
      On 2012-12-05 13:41, Peter Verhas wrote:<br>
    </div>
    <blockquote cite="mid:C3862552-C512-4DC7-A062-C40992F7AE6D@verhas.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-2">
      Megtanulták a programozók a generikusak tisztességesen használni?
      Ez nekem új.
      <div><br>
        <div apple-content-edited="true">
          <span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); ">--</span><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); "><br>
                    </span><span class="Apple-style-span" style="color:
                      rgb(136, 136, 136); ">Verhás Péter</span><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); "><br>
                    </span><span class="Apple-style-span" style="color:
                      rgb(136, 136, 136); "></span><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); "><a moz-do-not-send="true" href="mailto:peter@verhas.com">peter@verhas.com</a></span><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); "><br>
                    </span><span class="Apple-style-span" style="color:
                      rgb(136, 136, 136); ">+36(30)9306805</span><span class="Apple-style-span" style="color: rgb(136,
                      136, 136); "><br>
                    </span><span class="Apple-style-span" style="color:
                      rgb(136, 136, 136); ">skype: verha</span></div>
                </span></div>
            </span><br class="Apple-interchange-newline">
        </div>
        <br>
        <div>
          <div>On 2012.12.05., at 13:38, Gábor Garami &lt;<a moz-do-not-send="true" href="mailto:gabor.garami@hron.me">gabor.garami@hron.me</a>&gt;
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite"><span style="font-family: Verdana;
              font-size: medium; font-style: normal; font-variant:
              normal; font-weight: normal; letter-spacing: normal;
              line-height: normal; orphans: 2; text-align: -webkit-auto;
              text-indent: 0px; text-transform: none; white-space:
              normal; widows: 2; word-spacing: 0px;
              -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
              0px; display: inline !important; float: none; ">mire az
              emberek megtanultak tisztessegesen hasznalni</span></blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>Javalist mailing list<br><a href="mailto:Javalist@lists.javaforum.hu">Javalist@lists.javaforum.hu</a><br>http://lists.javaforum.hu/mailman/listinfo/javalist<br></blockquote></div><br></div></body></html>