|
master of the sea posted:I have my first real terrible programmer question, i have an array of hashes where i sort the hashes based on their "due date" key, however, I also want to apply another level of sorting where i want all entries with a certain "type" key to drop to the bottom of the array. change your sort comparison to first compare by type and if types are different return the comparison result. if types are the same, return the due date comparison
|
# ? Dec 18, 2014 16:01 |
|
|
# ? May 25, 2024 05:51 |
|
master of the sea posted:I have my first real terrible programmer question, i have an array of hashes where i sort the hashes based on their "due date" key, however, I also want to apply another level of sorting where i want all entries with a certain "type" key to drop to the bottom of the array. Perl's <=> operator returns -1, 0 or 1 based on the order of the things being compared. -1 is truthy, so you can use this result to short-circuit a boolean operation. So, something like Perl code:
|
# ? Dec 18, 2014 17:48 |
|
bobbilljim posted:lol @ all the olds in this thread not grokking git lol at all the youngs not grokking svn it may not have had local commits but it actually had a user interface there will never be an svn version of http://git-man-page-generator.lokaltog.net/
|
# ? Dec 19, 2014 00:56 |
|
svn is very well designed, the mental model is clean, straightforward and easy to comprehend, the commands are straightforward and unambiguous. git? well, git is very successful.
|
# ? Dec 19, 2014 01:10 |
|
how is visual studio online for an idiot spare time asp.net-on-azure project that i want to keep organized because it may someday become a non-idiot public money making project (it probably wont) e: also how lol-worthy is tfsvc vs. git? i know git well enough not to gently caress things up most of the time but id be down to use something better too
|
# ? Dec 19, 2014 01:17 |
|
it was pretty cool that you could explain svn to someone in 30 mins even if they hadn't used version control before, and be comfortable that they weren't going to gently caress your repository sideways
|
# ? Dec 19, 2014 01:24 |
|
hobbesmaster posted:c++, c#, c++/cli (can't wait to get rid of that project) and windows so it's all dlls and stuff NuGet, i guess? only saying because I saw it as an option in nexus today
|
# ? Dec 19, 2014 01:55 |
|
Subjunctive posted:it was pretty cool that you could explain svn to someone in 30 mins even if they hadn't used version control before, and be comfortable that they weren't going to gently caress your repository sideways It's also hard to fuckup mercurial and about as easy to explain to a total noob.
|
# ? Dec 19, 2014 03:57 |
|
Arcsech posted:how is visual studio online for an idiot spare time asp.net-on-azure project that i want to keep organized because it may someday become a non-idiot public money making project (it probably wont) idk download visual studio community edition and bask in the glory of visual studio?
|
# ? Dec 19, 2014 04:04 |
|
Janitor Prime posted:It's also hard to fuckup mercurial and about as easy to explain to a total noob. yeah, I'm a mercurial partisan these days. glad we're moving from git to hg (though my team is still on perforce until I pick that fight).
|
# ? Dec 19, 2014 04:08 |
|
Arcsech posted:how is visual studio online for an idiot spare time asp.net-on-azure project that i want to keep organized because it may someday become a non-idiot public money making project (it probably wont) the vs online team fortress server works well and is super easy 2 setup.
|
# ? Dec 19, 2014 04:08 |
|
Janitor Prime posted:It's also hard to fuckup mercurial and about as easy to explain to a total noob.
|
# ? Dec 19, 2014 04:18 |
|
Subjunctive posted:yeah, I'm a mercurial partisan these days. glad we're moving from git to hg (though my team is still on perforce until I pick that fight). are you guys still on a single git repo?
|
# ? Dec 19, 2014 04:22 |
|
Janitor Prime posted:It's also hard to fuckup mercurial and about as easy to explain to a total noob. can you delete a branch yet?
|
# ? Dec 19, 2014 04:23 |
|
i think we need a version control thread
|
# ? Dec 19, 2014 04:24 |
|
MALE SHOEGAZE posted:i think we need a version control thread gonna suck when we have to merge it back in tho
|
# ? Dec 19, 2014 04:26 |
|
Stringent posted:can you delete a branch yet? You can close them which is supposed to hide them which is good enough for my porpoises. FamDav posted:gonna suck when we have to merge it back in tho We won't use svn
|
# ? Dec 19, 2014 04:27 |
|
FamDav posted:gonna suck when we have to merge it back in tho http://forums.somethingawful.com/showthread.php?threadid=3688927
|
# ? Dec 19, 2014 04:30 |
|
Bloody posted:idk download visual studio community edition and bask in the glory of visual studio? no visual studio online is sort of like github + pivotal + build server + load testing + a bunch of other stuff, not like a cloud version of visual studio despite the confusing name. it is a thing you use alongside visual studio community edition or w/e Shaggar posted:the vs online team fortress server works well and is super easy 2 setup. how is team fortress version control vs git was more what i was going for with that part although itll just be me working on it at least for now so it probablyu doesnt matter at all
|
# ? Dec 19, 2014 04:56 |
|
tfs is just perforce isn't it? also hg sounds nice
|
# ? Dec 19, 2014 05:30 |
|
Team fortress version whatever the gently caress is like part of visual Studio and a Microsoft product so it's probably really loving good
|
# ? Dec 19, 2014 06:32 |
|
Bloody posted:Team fortress version whatever the gently caress is like part of visual Studio and a Microsoft product so it's probably really loving good I'm pretty sure it's just perforce
|
# ? Dec 19, 2014 07:01 |
|
FamDav posted:are you guys still on a single git repo? no (in how many threads shall we do this dance?)
|
# ? Dec 19, 2014 07:18 |
|
I used to like git before it went mainstream. now I prefer this great little source control system you've probably never heard of
|
# ? Dec 19, 2014 11:56 |
|
hobbesmaster posted:multiple repos are good? then how do you get jenkins to build an installer or w/e that has code from multiple other jenkins projects? in theory you would use your company's internal nuget server for this but nuget sucks unfortunately
|
# ? Dec 19, 2014 12:07 |
|
hobbesmaster posted:multiple repos are good? then how do you get jenkins to build an installer or w/e that has code from multiple other jenkins projects? svn:externals dude
|
# ? Dec 19, 2014 16:12 |
|
Arcsech posted:no visual studio online is sort of like github + pivotal + build server + load testing + a bunch of other stuff, not like a cloud version of visual studio despite the confusing name. it is a thing you use alongside visual studio community edition or w/e don't use git
|
# ? Dec 19, 2014 16:14 |
|
team fortress server just works and also has good project, task, and build integration into visual studio as well as the source control.
|
# ? Dec 19, 2014 16:15 |
|
Shaggar posted:team fortress server just works and also has good project, task, and build integration into visual studio as well as the source control. does it give you hats if you check in code and it builds
|
# ? Dec 19, 2014 16:19 |
|
no but u can get cheevos https://visualstudiogallery.msdn.microsoft.com/ed9e23e2-ff50-43e3-9aa6-c91f27bd6a6d/
|
# ? Dec 19, 2014 16:20 |
|
I bet u could make a hat add on tho
|
# ? Dec 19, 2014 16:21 |
|
Soricidus posted:I used to like git before it went mainstream. now I prefer this great little source control system you've probably never heard of is it hg i bet its hg
|
# ? Dec 19, 2014 22:14 |
|
lmao @ git users. "buuuuuh me write version control sfotware doo dee dah *drools on nappy*" - Linus
|
# ? Dec 19, 2014 22:19 |
|
Linux torvoldos invented Linux and git and both are not very good.
|
# ? Dec 19, 2014 22:19 |
|
rotor posted:lmao @ git users.
|
# ? Dec 19, 2014 23:38 |
|
Subjunctive posted:no oh did i ask this before? i'm just curious because i thought you guys were still running a monorepo, which i find interesting because of how it contrasts with our decidely not monorepo.
|
# ? Dec 20, 2014 02:02 |
|
Got a terrible source control question. So we were working on a class that has some reflection shenanigans going on, where if we add a column to a table that it looks at and we don't also add to the class (It's a DAC) a property that maps to that row, it bleats "PARAMETER NUMBER MISMATCH" or some poo poo. This is C# btw. So, since me and like 5 other people in two states were told to "GET R DUN" we would pass the file around as we checked in so we'd have a copy of our stuff, merging branches as we go. This went fine for the dev branch/server. Welp then it's time for our UAT. Then our QA. Every time we have a terrible loving merge because we each have different successive versions of the same stupid DAC, and for some reason duplicates are just really hard for git to merge. And some cheeky fucker decided to change linespacing in our properties and their getters/setters. What I'm asking, basically, is how this could be done better. We use git. We can't just, yanno, go from DEV -> UAT -> QA, we merge our branches (individually) all into dev, then uat, then qa, etc.
|
# ? Dec 20, 2014 02:16 |
|
Shaggar posted:don't use git
|
# ? Dec 20, 2014 02:17 |
|
Space Whale posted:Got a terrible source control question. 1) don't use an orm and double don't use your own custom orm. 2) separate duties and assign one group to work on your data layer and stick it in a separate project and maybe separate repo if it makes sense. This eliminates conflicts cause no one is working on the same thing, people just work on what they're supposed to and check it in. Then the data team builds their library and publishes it to a central location as a nuget package. the consumer that uses this lib just references the nuget package and never builds or looks at the source. when you go between environments you're only changing your config file that contains the database connections this way neither group is dependent on the other's source code and if the data team is that bad with their design that they constantly gently caress poo poo up like that, it doesn't affect the people writing the actual application code.
|
# ? Dec 20, 2014 02:30 |
|
|
# ? May 25, 2024 05:51 |
|
FamDav posted:oh did i ask this before? i'm just curious because i thought you guys were still running a monorepo, which i find interesting because of how it contrasts with our decidely not monorepo. we have a few repos, but most of them are deployed in parts. www is the famous monorepo, but I'm not sure it's even a majority of our code at this point.
|
# ? Dec 20, 2014 02:47 |