Developer Fails of the day

For all other chatting you want to do and that does not fit in another forum you can use this one.

Re: Developer Fails of the day

Postby AndiS » Sun Apr 20, 2014 11:42 pm

A friend made me use GIT for the first time. I must say that versioning tools like that can be great. A bit of an effort to set them up, and if you forget to regularly check in your changes, you are as shot as you are if you don't save. But if you manage to make that your second nature, you get nice stuff like coloured comparisons of file versions. That would have drawn your attention to the deleted name, or any entered 7.

It should also be fine for route building. You feed it with Tracks.bin and the Track Tiles folder all the time and it stores all these versions. Until now, I rename them to keep multiple copies which is important as you never know how long it will take until you find your mistake, so the good copy could get overwritten.
AndiS
Top Link Driver!
 
Posts: 810
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 270 times
Been thanked: 320 times

Re: Developer Fails of the day

Postby Nobkins » Mon Apr 21, 2014 12:10 am

I use SVN for TPR. Works a treat but have to be careful with the track files as only one person can edit at once without corruption.

Jim
TrainSimDev.com YouTube Channel
Video tutorials and other resources
User avatar
Nobkins
Site Admin
 
Posts: 547
Images: 3164
Joined: Wed Feb 05, 2014 12:24 am
Has thanked: 325 times
Been thanked: 185 times

Re: Developer Fails of the day

Postby JamesLit » Mon Apr 21, 2014 10:39 am

I've got a great fail to post here when I'm back at home later... hehehe. Complete with pics, of course. :D
The Forge Simulation | Like us on Facebook!
Owner & Director | Content built with care, not compromises.
User avatar
JamesLit
Driver
 
Posts: 388
Images: 26
Joined: Mon Apr 07, 2014 3:26 pm
Location: Kent
Has thanked: 435 times
Been thanked: 141 times

Re: Developer Fails of the day

Postby Smokebox » Mon Apr 21, 2014 1:05 pm

Nobkins wrote:I use SVN for TPR. Works a treat but have to be careful with the track files as only one person can edit at once without corruption.

Jim


At work, I used to use SVN, with the Tortoise client for Windows. I really ought to set it up on the computers at home. I've just been too lazy.
User avatar
Smokebox
Fit for Firing Duties
 
Posts: 29
Joined: Wed Apr 16, 2014 12:30 pm
Has thanked: 11 times
Been thanked: 23 times

Re: Developer Fails of the day

Postby AndiS » Mon Apr 21, 2014 1:41 pm

Smokebox wrote:I've just been too lazy.

Me too. But often I wonder if this was a mistake. But then again, learning all the GIT terminology was exactly what I did not want to do back then.

And just to be clear, any version control tool will do. I have no idea how many tribes of them there are out there, I just saw that as always there are different ones, threatening to multiply my learning effort - what a waste. So I stuck with the web interface of Bitbucket in that case, but that was just a handful of text files we worked on for just a little while.
AndiS
Top Link Driver!
 
Posts: 810
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 270 times
Been thanked: 320 times

Re: Developer Fails of the day

Postby Nobkins » Mon Apr 21, 2014 2:44 pm

Tortoise client for Windows and any SVN server on the T'internet works very well. If doing this just for one person route building (or anything else) then an excellent backup system.

For multi-people route building you just have to ensure that everyone works in their own area of the route (so that no one edits the same route tile at the same time and that only one person ever edits the track at once (because it uses a single track database file).
TrainSimDev.com YouTube Channel
Video tutorials and other resources
User avatar
Nobkins
Site Admin
 
Posts: 547
Images: 3164
Joined: Wed Feb 05, 2014 12:24 am
Has thanked: 325 times
Been thanked: 185 times

Re: Developer Fails of the day

Postby cjbarnes5294 » Mon Apr 21, 2014 5:32 pm

A regular fail for me is remembering to use the correct syntax for the correct language. Writing "if else" in lua just now obviously broke it, but I'm so used to writing that these days for C++. Likewise, forgetting to add parentheses in C++ because you don't need them in lua for if-else statements or loops, but at least Visual Studio will flag that up, whereas I can be completely oblivious to errors in lua in Notepad++. :) A nice lua IDE wouldn't go amiss.

Chris
The Red Queen Hypothesis, applicable to train sim development?

"Here, you see, it takes all of the running you can do, to keep the same place."
cjbarnes5294
Driver
 
Posts: 398
Images: 82
Joined: Mon Mar 31, 2014 12:40 pm
Location: Gloucestershire/North Yorkshire
Has thanked: 551 times
Been thanked: 187 times

Re: Developer Fails of the day

Postby Smokebox » Mon Apr 21, 2014 5:38 pm

cjbarnes5294 wrote:A regular fail for me is remembering to use the correct syntax for the correct language. Writing "if else" in lua just now obviously broke it, but I'm so used to writing that these days for C++. Likewise, forgetting to add parentheses in C++ because you don't need them in lua for if-else statements or loops, but at least Visual Studio will flag that up, whereas I can be completely oblivious to errors in lua in Notepad++. :) A nice lua IDE wouldn't go amiss.

Chris


I started using SciTE recently. Just seeing keywords and comments in different colours is an improvement.
User avatar
Smokebox
Fit for Firing Duties
 
Posts: 29
Joined: Wed Apr 16, 2014 12:30 pm
Has thanked: 11 times
Been thanked: 23 times

Re: Developer Fails of the day

Postby cjbarnes5294 » Mon Apr 21, 2014 5:57 pm

Smokebox wrote:
cjbarnes5294 wrote:A regular fail for me is remembering to use the correct syntax for the correct language. Writing "if else" in lua just now obviously broke it, but I'm so used to writing that these days for C++. Likewise, forgetting to add parentheses in C++ because you don't need them in lua for if-else statements or loops, but at least Visual Studio will flag that up, whereas I can be completely oblivious to errors in lua in Notepad++. :) A nice lua IDE wouldn't go amiss.

Chris


I started using SciTE recently. Just seeing keywords and comments in different colours is an improvement.


Ooooh, cheers, I'll have a look!

Chris
The Red Queen Hypothesis, applicable to train sim development?

"Here, you see, it takes all of the running you can do, to keep the same place."
cjbarnes5294
Driver
 
Posts: 398
Images: 82
Joined: Mon Mar 31, 2014 12:40 pm
Location: Gloucestershire/North Yorkshire
Has thanked: 551 times
Been thanked: 187 times

Re: Developer Fails of the day

Postby Kernow » Fri Apr 25, 2014 7:16 pm

I'm not a developer but wanted to confess my latest C--k up on the photography front.
Sir Nigel Gresley , resplendent in the South Devon sunshine, came to Kingswear last week (I live in Paignton) wow - fantastic! Off with my DSLR to capture the moment! Went to a fav vantage point with the sun in the right place, got stung to bits by nettles however the scene was set.
Train came.. fantastic - many pictures taken rushed home to see the results.. and...

My memory card was still sat in the card reader and so the event went unrecorded by me and my stinging nettle wounds began to throb..

David Bailey rtd.
Kernow
General Shed Duties
 
Posts: 18
Images: 1
Joined: Mon Apr 14, 2014 8:44 pm
Has thanked: 13 times
Been thanked: 10 times

PreviousNext

Return to General Chat

Who is online

Users browsing this forum: No registered users and 1 guest