BleepingComputer.com: Guess how long this took?

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Guess how long this took?

#1 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 30 September 2010 - 01:07 PM

How often do you spend getting an error in something like this:
				try
		{
			$query = "SELECT Blah..blah..blah'";
					  
			return pdo_select($query);
		{
		catch (PDOException $e)
		{
			return writeError($e);
		}


Before you realize it is supposed to be this?
				try
		{
			$query = "SELECT Blah..blah..blah'";
					  
			return pdo_select($query);
		}
		catch (PDOException $e)
		{
			return writeError($e);
		}


:thumbsup:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#2 User is offline   Billy O'Neal 

  • Bleepin Engineer GRADUATE
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,407
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 30 September 2010 - 01:30 PM


#3 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 30 September 2010 - 01:37 PM

After you look at it as long as I did, you will....... I was even nice enough to remove the nasty query for you.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#4 User is offline   Billy O'Neal 

  • Bleepin Engineer GRADUATE
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,407
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 30 September 2010 - 03:06 PM


#5 User is offline   KingOfIdiocy 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 600
  • Joined: 15-April 08
  • Gender:Male
  • Location:Foostralia

Posted 30 September 2010 - 03:20 PM

Isn't the second bracket a different/wrong way around?

This post has been edited by KingOfIdiocy: 30 September 2010 - 03:23 PM


#6 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 30 September 2010 - 03:33 PM

Quote

Isn't the second bracket a different/wrong way around?

Yes it is.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#7 User is offline   chromebuster 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 815
  • Joined: 06-May 10
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England

Posted 05 October 2010 - 03:49 PM

Two questions. One, what was the query, and two, what language is that? It looks like C#, but I can't tell.
Raeder24. We're for community, accessibility for the blind, and technology support. Founded in 2008. join our community at raeder24.org

#8 User is offline   Billy O'Neal 

  • Bleepin Engineer GRADUATE
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,407
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 05 October 2010 - 04:13 PM


#9 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 05 October 2010 - 05:52 PM

The query contained proprietary information and was thus sanitized. I want to keep my job. :thumbsup:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#10 User is offline   chromebuster 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 815
  • Joined: 06-May 10
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England

Posted 07 October 2010 - 04:27 PM

Oopsies! My bad! I can't believe I missed the language thing though! Well, maybe I can since my current screen reader doesn't show me those little details. JAWS does, but not System Access which is the one I'm using till I get my own computer back from the Gordon support folks since they're going to reimage my system from a recent hard drive failure.
Raeder24. We're for community, accessibility for the blind, and technology support. Founded in 2008. join our community at raeder24.org

#11 User is offline   Joombaga 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 50
  • Joined: 17-February 09
  • Location:Big Rapids, Michigan, United States

Posted 07 October 2010 - 05:50 PM

Fuuuuuuuuuuuuuuuuuuuuuuu

I spent an hour once trying to find an error like that. We'll get time travel before we get intuitive compilers.

#12 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 08 October 2010 - 07:00 PM

View PostJoombaga, on Oct 7 2010, 03:50 PM, said:

we'll get time travel before we get intuitive compilers.

Honestly, how hard would it be for a compiler or interpreter to check for mismatched brackets? :thumbsup:

Groovicus, I find that an editor that highlights bracket/parenthesis pairs is a great help in catching these things earlier:
Posted Image
Or:
Posted Image

This post has been edited by Andrew: 08 October 2010 - 07:02 PM

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#13 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 08 October 2010 - 07:22 PM

Andrew you forgot to tell which editors you have shown us.

I can recognize the bottom one is Notepad++ which also highlights matching brackets :thumbsup:

#14 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 09 October 2010 - 11:27 AM

Andrew, I use Notepad++ which does do highlighting. However bracket matching breaks down when there is html, javascript, and php all interspersed on the same page. There is no way a compiler can tell what goes where.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#15 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 09 October 2010 - 11:56 AM

Yeah, those were Notepad++

Groovy, if it breaks down then the only option is for you to sit down and write a patch for NPP! :thumbsup:
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users