18
Stalker
8y

Because fuck logic.

'This returns a lot of rows
myAdapter.SelectCommand.CommandText = "SELECT FROM tblNews order by DateAdd desc "
myAdapter.Fill(rs)

'He only wants the 4 latest articles
For index = 0 to 4
'Do something with the data
Next

How some people manage to still have a job is truly fucking amazing.

Comments
  • 1
    Lol wtf 😁!
  • 0
    Junior devs tend to do this a lot. Normally because of their limited SQL knowledge.
  • 0
    I have very little experience with sql, and I'm a senior dev. THAT BEING SAID, I know all well enough to know that there is a query built for SPECIFICALLY that purpose.
  • 2
    I shit you not. The worst part is this guy had at least two year's experience with web development when he did this.
Add Comment