Jump to content

Developers make mistakes too!

Started by Crystal Bell , Jul 01 2015 09:27 PM

  • Please log in to reply
11 replies to this topic

#1

Crystal Bell
  • Crystal Bell
  • Plugin Developer
  • Crystal Mare
  • 258 posts
  • IGN:Crystal Bell

Nobody is perfect.

This thread is dedicated to prove that we (the developers) make mistakes.

 

 

Very embarrassing mistakes....


  • 0

#2

Pandette
  • Pandette
  • Special Advisor to the Wizengamot
  • Administrators
  • 2648 posts
  • IGN:iarepandemonium

Today I found this in Protego Totalum:

 

Written 5/12/2015

Discovered 7/1/2015 (4 Months in the code)

 

Yea, if you wonder why Protego Totalum wouldn't cast.

 

cibi9fd.png


  • 1

#3

Otto Von Chubbs
  • Otto Von Chubbs
  • Muggle
  • Student
  • 7 posts
  • IGN:Vonchubbs

One job


  • 0

#4

Nomsy
  • Nomsy
  • Developer
  • Administrators
  • 242 posts
  • IGN:Nomsy Savage

Found in my old background application that would stream stuff to my phone.

  1.             using (Stream stream = WebRequest.Create(url).GetResponse().GetResponseStream()) {
  2.                 byte[] buffer = new byte[32768];
  3.                 int read;
  4.                 while ((read = stream.Read(buffer,0,buffer.Length)) > 0) {
  5.                     ms.Write(buffer, 0, read);
  6.                 }
  7.             }
 
 
For a month straight I've been trying to figure out why it isn't working. Forgot to input a URL.
-facepalm-

  • 0

#5

orabrush
  • orabrush
  • O.W.L. Student
  • Student
  • 111 posts
  • IGN:OraBrush

 

Found in my old background application that would stream stuff to my phone.

  1.             using (Stream stream = WebRequest.Create(url).GetResponse().GetResponseStream()) {
  2.                 byte[] buffer = new byte[32768];
  3.                 int read;
  4.                 while ((read = stream.Read(buffer,0,buffer.Length)) > 0) {
  5.                     ms.Write(buffer, 0, read);
  6.                 }
  7.             }
 
 
For a month straight I've been trying to figure out why it isn't working. Forgot to input a URL.
-facepalm-

 

I see the url variable. Did you just forget to populate it?


  • 0

#6

Nomsy
  • Nomsy
  • Developer
  • Administrators
  • 242 posts
  • IGN:Nomsy Savage

I did, indeed. :(


  • 0

#7

LittlePandaCub
  • LittlePandaCub
  • Squib
  • Student
  • 23 posts
  • IGN:Luna James

:huh:


  • 0

#8

Pandette
  • Pandette
  • Special Advisor to the Wizengamot
  • Administrators
  • 2648 posts
  • IGN:iarepandemonium

*poke*


  • 0

#9

Nomsy
  • Nomsy
  • Developer
  • Administrators
  • 242 posts
  • IGN:Nomsy Savage

/necro


  • 0

#10

Fancepants
  • Fancepants
  • Chief of the Wizards Council
  • Administrators
  • 843 posts
  • IGN:Fance Garland

I would laugh if I knew what was going on


  • 0

#11

Pandette
  • Pandette
  • Special Advisor to the Wizengamot
  • Administrators
  • 2648 posts
  • IGN:iarepandemonium

package com.knockturnmc.quidditch;

import com.knockturnmc.quidditch.enums.PositionType;

public class Position {

private final PositionType position;

protected Position (PositionType position){
this.position = position;
}

public PositionType getPosition() {
return position;
}

}

 

 

 

 

WUT EVEN IS THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ~~~ Was in my code.  I cry.


  • 0

#12

Pandette
  • Pandette
  • Special Advisor to the Wizengamot
  • Administrators
  • 2648 posts
  • IGN:iarepandemonium

public class Knockturn implements CommandExecutor {

KnockturnEssentials essentials;
boolean isPlayer;

public Knockturn() {
this.essentials = KnockturnEssentials.getInstance();
}

@Override
public boolean onCommand(CommandSender sender, Command cmd, String label,
String[] args) {

if (args.length == 0) {
sender.sendMessage(Lang.INCORRECT_COMMAND);
return true;
}

if (!(sender instanceof Player)) {
sender.sendMessage("You need to be a player to run this command.");
return true;
}

Player player = ((Player) sender);

if (isPlayer && !player.hasPermission(Permission.ADMIN_PERM)) {
player.sendMessage(Lang.INSUFFICIENT_PERMISSION);
return true;
}

 

 


  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users