IE, spawn of Satan

From: Peter (BOUGHTONP)27 Aug 2013 19: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 19:15
To: Peter (BOUGHTONP) 21 of 58
 (heart)
From: af (CAER)27 Aug 2013 19:27
To: CHYRON (DSMITHHFX) 22 of 58
Um, and?
From: CHYRON (DSMITHHFX)27 Aug 2013 20:47
To: af (CAER) 23 of 58
It's a blessing.
From: af (CAER)27 Aug 2013 21:18
To: CHYRON (DSMITHHFX) 24 of 58
No doubt, but why bring it to my attention?
From: CHYRON (DSMITHHFX)27 Aug 2013 21: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 23: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 23: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 23:40 by DSMITHHFX
From: Peter (BOUGHTONP)27 Aug 2013 23: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)28 Aug 2013 00: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)28 Aug 2013 00:49
To: CHYRON (DSMITHHFX) 30 of 58
Unlike yourself?
From: CHYRON (DSMITHHFX)28 Aug 2013 00:57
To: Peter (BOUGHTONP) 31 of 58
Been there, done it. :O)
From: ANT_THOMAS28 Aug 2013 09: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 09: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 09: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 09:24 by ANT_THOMAS
From: af (CAER)28 Aug 2013 09: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 18:00 by CAER
From: ANT_THOMAS28 Aug 2013 09:57
To: af (CAER) 36 of 58
And a damn good intro it was!
From: CHYRON (DSMITHHFX)28 Aug 2013 11: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.
From: Kenny J (WINGNUTKJ)28 Aug 2013 17:02
To: CHYRON (DSMITHHFX) 38 of 58
That's nuts! It's good that you take backups and notes, but these days there are a lot of good ways to do source control with not much overhead.

We use Mercurial in my place, with TortoiseHg as a GUI for it. We used to use Microsoft Team Foundation Server and Visual SourceSafe, but for the way we develop and deploy, those weren't really suitable. I'm a big fan - using it has a low overhead, and you can either use it as a personal thing to track revisions only for your self, or create a repository allowing collaboration between the team.
From: Ken (SHIELDSIT)28 Aug 2013 17:16
To: ALL39 of 58
That's something I need to check into.  I don't do much coding but when I do I have shit scattered everywhere.  What would you recommend for someone like me who only codes a little?  Something very easy to use please!