IE, spawn of Satan

From: af (CAER)27 Aug 2013 16:18
To: CHYRON (DSMITHHFX) 18 of 58
Well sure, if it's an isolated case then no point losing sleep over it. Like you said earlier, the user isn't going to be looking at the source anyway, so if it works, no big deal.
From: CHYRON (DSMITHHFX)27 Aug 2013 17:26
To: af (CAER) 19 of 58
You are not PB.
From: Peter (BOUGHTONP)27 Aug 2013 18:03
To: CHYRON (DSMITHHFX) 20 of 58
It's quite simple:

    •  If all you want to do is whine about how useless you are at debugging trivial JS issues, use Ranter's Corner.

    •  If you want to receive advice on how you can stop being useless, post in Coding. It's not like these folder things are new technology or anything...

From: CHYRON (DSMITHHFX)27 Aug 2013 18:15
To: Peter (BOUGHTONP) 21 of 58
 (heart)
From: af (CAER)27 Aug 2013 18:27
To: CHYRON (DSMITHHFX) 22 of 58
Um, and?
From: CHYRON (DSMITHHFX)27 Aug 2013 19:47
To: af (CAER) 23 of 58
It's a blessing.
From: af (CAER)27 Aug 2013 20:18
To: CHYRON (DSMITHHFX) 24 of 58
No doubt, but why bring it to my attention?
From: CHYRON (DSMITHHFX)27 Aug 2013 20:50
To: af (CAER) 25 of 58
Peter could never bring himself to post what you said, unless he dropped acid a thousand times.

I don't expect he will, though.
From: Peter (BOUGHTONP)27 Aug 2013 22:17
To: CHYRON (DSMITHHFX) 26 of 58
Except I have at no point told you to lose sleep, and specifically identified it as a trivial issue.

Whether or not a random person decides to view source is irrelevant. More relevant, however, is whether a developer will come along in six months to make a change and wonder who did the ugly hack and why - they will of course be able to check the source control commit history for that line and see the explanation for making that particular change, right?

From: CHYRON (DSMITHHFX)27 Aug 2013 22:34
To: Peter (BOUGHTONP) 27 of 58
The web site is a whole ugly dog's breakfast. I chose the least intrusive route. Which paid off when I discovered my additions are compatible with ie7+ with a couple of minor CSS hacks (apologies; I know how repugnant you find this, you loon). The website is overripe for a complete rebuild, but ... not my call (or yours).

"the source control commit history"

You're joking, right? Please tell me you're joking.
EDITED: 27 Aug 2013 22:40 by DSMITHHFX
From: Peter (BOUGHTONP)27 Aug 2013 22:50
To: CHYRON (DSMITHHFX) 28 of 58
Seriously? The web site is a whole ugly dog's breakfast, so you're modifying it without using source control, because that makes so much sense.

Jeepers! Next you'll be saying you were working directly on the live server for those three hours.

From: CHYRON (DSMITHHFX)27 Aug 2013 23:44
To: Peter (BOUGHTONP) 29 of 58
The live site hasn't been touched.

For you, I recommend the acid therapy. Begin today.
From: Peter (BOUGHTONP)27 Aug 2013 23:49
To: CHYRON (DSMITHHFX) 30 of 58
Unlike yourself?
From: CHYRON (DSMITHHFX)27 Aug 2013 23:57
To: Peter (BOUGHTONP) 31 of 58
Been there, done it. :O)
From: ANT_THOMAS28 Aug 2013 08:01
To: ALL32 of 58
:'D (fail)



Since I've recently started a job which could be classed as slightly corporate I've noticed a reliance on IE. I was sent a link to sign up to something by one of the MDs and when opened in Firefox it said I should probably use IE. When I opened it in IE I got that up there.

Our SAP CRM system only seems to function properly in IE too. It's usually a slow pile of shit though.
From: af (CAER)28 Aug 2013 08:22
To: CHYRON (DSMITHHFX) 33 of 58
No source control? At all? Good grief.

You could at least stick the whole thing in a local Git repo, if only to keep track of what you've done yourself.
From: ANT_THOMAS28 Aug 2013 08:23
To: af (CAER) 34 of 58
That is something I need to do for many of my little projects. I always end up with multiple different revisions all over the show :$
EDITED: 28 Aug 2013 08:24 by ANT_THOMAS
From: af (CAER)28 Aug 2013 08:56
To: ANT_THOMAS 35 of 58
Hah :D It's not even difficult or slow
Code:
git init .

Then create/edit the .gitignore file and add the names of any files you don't want included in the repo (passwords, compiled stuff etc.), then

Code:
git add .
git commit -am "Yay, my first commit!"

That sets everything up. Then when you make changes:

Code:
git add lib/some_new_library.rb
git commit -am "Add SomeNewLib to repo. Fix a broken thing."

The '-am' parameters mean, respectively: automatically add modified files to this commit; use the last part of the command (the bit in "quotes") as the commit message.

You can make a new branch based on the current one:

Code:
git checkout -b fancy_feature

The -b means 'create a new branch'. Leave it out to switch to an existing branch. You can merge changes from another branch to the current one:

Code:
git checkout master
git merge fancy_feature

This switches to the branch 'master', then merges 'fancy_feature' into it. If you edit the same part of a file in two different branches, then try to merge them, you'll get merge conflicts, which are a pain in the arse to fix, so don't do that.

To see which branch you're on, and what files have changed since last commit:

Code:
git status

To see what specific changes you've made since last commit:

Code:
git diff

You can include a filename after that to only diff that specific file.

Thus concludes my 5-minute intro to Git.

EDITED: 28 Aug 2013 17:00 by CAER
From: ANT_THOMAS28 Aug 2013 08:57
To: af (CAER) 36 of 58
And a damn good intro it was!
From: CHYRON (DSMITHHFX)28 Aug 2013 10:02
To: af (CAER) 37 of 58
Depends what you mean by "source control". I do daily code backups and sometimes more frequently for extensive modifications. I also add comments in situ which I find more helpful than sifting through a separate document. For large and complex projects where I'm breaking new ground (to me) I will keep dev notes too, mainly for my own use. The way the business works here is that nobody does formal source control for web sites (that I've ever seen, but who knows what crazy new fad might catch on), these aren't team coding efforts, you can very quickly find all the documentation you want on google, and if you need to work on someone else's code, you just wade in and figure out how to get the job done with the least amount of work, knowing full well nobody in their right mind is ever going to look at the code unless something breaks, and it's all going to be junked (your code, and quite possibly even the markup/scripting languages/versions themselves) in a few short years anyway.