Josie

 Coding Times You Borked Up Your Coding

Recommended Posts

Josie    595

I'm not going to lie, I bork up my coding all the time. It happens typically when I'm coding late at night, which is basically always.

 

I get really frustrated and start talking to my code: "Why the heck you actin' like that? Huh? Who authorized you to do that? It certainly wasn't me! Where do you think you're going? Get back here!"

 

And then after we fight for a while I realize that nothing is showing up how it is supposed to because I made the thing an id but wrote it in the HTML as a class.

 

Amazing.

 

So! What are some times when you've borked up your code?

  • LOL 2

Share this post


Link to post
Share on other sites
Awards

Lirschen    12

By putting in a pic behind the categories and having no clue how to change the text colour so I can see it through the pic *headwall*

  • Like 1
  • Have a Cookie! 1

Share this post


Link to post
Share on other sites
Awards

Morrigan    6,274

What are you talking about? I never mess up my code.....

 

Okay, maybe sometimes but don't tell anyone.

 

I always save backups of my code so I can hide my mistakes as quickly as possible. However I've borked things a lot. Doesn't matter if I'm wide awake, sober, tired or not sober. I fuck things up all of the time! It's why I love things that tell me when I've borked things as it saves me a lot of time.

 

I can't remember a specific time that I've done it but I am like @Gothams Reckoning and I will talk and swer at my code when it isn't cooperating. I get near table flip all the time.

  • Like 1
  • LOL 1

Share this post


Link to post
Share on other sites

Josie    595
On 2/23/2017 at 10:01 AM, Gothams Reckoning said:

And then after we fight for a while I realize that nothing is showing up how it is supposed to because I made the thing an id but wrote it in the HTML as a class.

Guess who did this all weekend?

  • LOL 1

Share this post


Link to post
Share on other sites
Awards

VirusZero    861

Little context... in MyBB when working on a plugin you have to follow a specific naming scheme for 5 functions or else things won't work. The scheme is pretty simple... if your plugin is named file.php then you have to include file_ in front of those functions. If not named this way it will prevent your plugin from showing in MyBB for testing. So most people just put the name on every function for uniform consistency. 

 

There are also set calls you use to add parts into MyBB so you don't have to make core edits. 

 

Last time I was working on a plugin, for whatever reason I had named my function "list_admin_forum_modules" because I was adding a link to the sidebar on the left in the forum settings... Except I added an extra "s" and it was throwing errors in all kinds of places. Once I figured it out it stopped throwing errors there.

 

But that just means I now can find the other errors.

 

Yay.

  • Like 1
  • Awesome 1

Share this post


Link to post
Share on other sites

I do pretty much exactly what you do, except with more colorful language. 2am in the morning, I'm tired, I just want to finish up [insert whatever] before I go to bed and it's "What the ****? Why the **** are you doing that? M*****f****r! Son of a *****!!!" growl.

 

Well, you get the picture. Typically when most of my language is profanity I end up calling it quits because I'm too tired. Then, I come back to it the next day and realize that I forgot to close a div. Yeeeep fun times.

 

I find that making little mistakes like typos in the class or id name in the HTML is a pretty common mistake for me, but surprisingly, it's forgetting to close the div that is it more often than not!

  • Like 1
  • LOL 1
  • Preach it! 1

Share this post


Link to post
Share on other sites

Bishop    170

Once upon a time I deleted my skin while trying on another one. If it hadn't been for John being able to pull it from my backup I wouldn't have been able to recover it. At the time I was just starting really and used Bonbon's templates sure, but damn that was hard!!!

  • Like 1
  • Cheers 1
  • Have a Cookie! 1

Share this post


Link to post
Share on other sites
Awards

Dusty    182

Using a premade skin and putting a lot of time into it so it's looks and feels exactly what you want for your site genre, only to find out it's seriously flawed and much of the expected essentials had been removed and had to be put back in.

It's going to take too much time to start over since you wanted the site up and running by the end of your vacation (and you are not confident enough to code from scratch) but now you are limited to what you can add to it because of these underlying flaws in the code. 

Oh, let's do this! ...board breaks

How bout this? ...board breaks

That's a great idea, I'll test it out ...board breaks.

 

Runs away from the computer screaming!

 

  • Like 1
  • Love 1
  • Awesome 1

Share this post


Link to post
Share on other sites

Kit the Human    165

There's a property in the default MyBB theme, white-space: nowrap.

 

I learnt what it does after I frowned at a div that just didn't want to end.

 

Leaving off the border style is a favourite of mine too.

  • Like 1

Share this post


Link to post
Share on other sites
Awards

Josie    595

Lately I've had a habit of not transferring names from CSS classes and ids over to HTML properly. For example:

.forums-holder

becomes div class="forums-holders" and you know what happens then?

THINGS DON'T WORK

Share this post


Link to post
Share on other sites
Awards

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.