|
ChiralCondensate posted:i just shrug and say "rcs suits my needs"
|
# ? Nov 1, 2012 10:33 |
|
|
# ? May 18, 2024 08:32 |
|
ChiralCondensate posted:i just shrug and say "a shared folder with our code in it suits our team's needs"
|
# ? Nov 1, 2012 12:45 |
|
reminder that for years visual source safe was sold by microsoft as a legit source control system for use by developers while ms themselves used some custom version of perforce and are now migrating to tfs which is based on an internal custom source control system they also used
|
# ? Nov 1, 2012 13:01 |
|
Cold on a Cob posted:reminder that for years visual source safe was sold by microsoft as a legit source control system for use by developers while ms themselves used some custom version of perforce and are now migrating to tfs which is based on an internal custom source control system they also used perforce owns if you got money
|
# ? Nov 1, 2012 13:04 |
|
lol if you posted:perforce owns if you got money i've never used it but i like svn and tfs both have done me solid so far, what does perforce do better?
|
# ? Nov 1, 2012 13:15 |
|
dogfooding means "no, don't eat that! that's dog food, for christ's sake. gross!"
|
# ? Nov 1, 2012 13:20 |
|
if u think about it the source code to vss was stored in a perforce repo probably lol
|
# ? Nov 1, 2012 13:36 |
|
lol if you posted:perforce owns if you got money perforce is loving awful, tell you what, give me the money you would give perforce and use svn instead and save your self a ton of poo poo
|
# ? Nov 1, 2012 14:08 |
|
Cold on a Cob posted:if u think about it the source code to vss was stored in a perforce repo probably lol it must have been; had it been in a vss 'repository' it would have been lost almost instantaneously
|
# ? Nov 1, 2012 14:11 |
|
taking the time to setup proper svn + maven repos is one of the best things i ever did.
|
# ? Nov 1, 2012 14:27 |
|
Shaggar posted:taking the time to setup proper svn + maven repos is one of the best things i ever did.
|
# ? Nov 1, 2012 15:18 |
|
next on the list is a hudson but i dont have the time for it.
|
# ? Nov 1, 2012 15:19 |
|
takin time to setup a mercurial repo was one of the best things i ever did hg init
|
# ? Nov 1, 2012 15:58 |
|
I've got a serious shaggar java question: Shaggar, I've got a HashMap (i'm dumb) that is being accessed by a bunch of threads. generally they do something like: code:
code:
Also if I have a linked list and I code:
salted hash browns fucked around with this message at 16:47 on Nov 1, 2012 |
# ? Nov 1, 2012 16:35 |
|
git suits my needs. So does SVN, mostly, though I do have a few small issues wit it.
|
# ? Nov 1, 2012 16:36 |
|
salted hash browns posted:I've got a serious shaggar java question: http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29
|
# ? Nov 1, 2012 16:36 |
|
Sweeper posted:http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29 ty. what happens if you use syncronized(list) with a non-sync'd list? does it just use the object as a lock? what difference does it make?
|
# ? Nov 1, 2012 16:42 |
|
Cold on a Cob posted:i've never used it but i like svn and tfs both have done me solid so far, what does perforce do better? although for this to be effective you have to build a culture where people will tell p4 to copy file objects instead of adding new instances of them, and some people just will not loving do this and maybe tfs does object sharing now, i only used the first release and it was clunky as hell Gazpacho fucked around with this message at 16:52 on Nov 1, 2012 |
# ? Nov 1, 2012 16:43 |
|
salted hash browns posted:I've got a serious shaggar java question: I am dumb and confused my first variable type with second. First question is re: synched hashmaps. 2nd is linked lists.
|
# ? Nov 1, 2012 16:48 |
|
salted hash browns posted:ty. what happens if you use syncronized(list) with a non-sync'd list? does it just use the object as a lock? what difference does it make? yes i think and it makes a difference in which object you are blocking on. i think having a method as synchronized will use the parent (?) object as the lock
|
# ? Nov 1, 2012 16:52 |
|
salted hash browns posted:I am dumb and confused my first variable type with second. First question is re: synched hashmaps. 2nd is linked lists. use the synchronized versions of both and hopefully it won't be a problem but remember that in legacy languages like java and c multi-threaded programming is really difficult and if poo poo doesn't work right it'll be really hard to debug
|
# ? Nov 1, 2012 16:53 |
|
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Collections.html#synchronizedMap%28java.util.Map%29 this will also help
|
# ? Nov 1, 2012 16:53 |
|
Cocoa Crispies posted:use the synchronized versions of both and hopefully it won't be a problem but remember that in legacy languages like java and c multi-threaded programming is really difficult and if poo poo doesn't work right it'll be really hard to debug your mom is legacy
|
# ? Nov 1, 2012 16:54 |
|
one time working on p4 project i had a popup window steal the focus just as I hit enter and this deleted all 6000 files in the project toolchain (e: on the server, dummy) i was able to recover without uploading the files again by saying "those file versions i deleted, just map them back into the project ok"
Gazpacho fucked around with this message at 18:07 on Nov 1, 2012 |
# ? Nov 1, 2012 16:55 |
|
Sweeper posted:http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Collections.html#synchronizedMap%28java.util.Map%29 ty. what is the difference between using synchronized(object), synchronized(hashmap) and synchronized(synchronizedhashmap)?
|
# ? Nov 1, 2012 16:57 |
|
salted hash browns posted:I've got a serious shaggar java question: tbh i dont deal much w/ concurrency. from what little i know about the concurrent collections stuff they're use really really depends on what operations you're doing on the object. like mostly reads w/ few writes vs lots of writes w/ few reads. for you it may be a case where synchronized suits your needs the best, but its gonna take research if you want to find the best performance for your application. if you dont care about performace then just pick one. You probably had a reason to pick linkedlist over arraylist tho so i assume performance is a concern. in regards to memory leaks, removeFirst() should not cause a leak. my assumption is that the object you are removing when you do removeFirst() still has a valid reference somewhere in your code that is causing the leak. Thats a very common multithreading mistake too so its probably whats going on. If you want to know what still has it open, theres a memory leak detector for eclipse that i dont remember the name of but is pretty good. Alternatively, you can maybe rethink if you actually need a concurrent collection -OR- if you can simplify how the data is accessed in the collection to prevent those kind of leaks.
|
# ? Nov 1, 2012 17:00 |
|
if ur using a hashmap try a concurrenthashmap. Also, i assumed both questions were about concurrency on the linkedlist so if you arent sharing the linked list then the memory leak is probably not related to multithreading and probably just a plain old leak in ur code. should be easier to find with a leak detector.
|
# ? Nov 1, 2012 17:03 |
|
salted hash browns posted:ty. they are all the same, but using different objects for the lock, but 3 is unnecessary just guessing tbh i forget most of concurrency
|
# ? Nov 1, 2012 17:04 |
|
Gazpacho posted:one time working on p4 project i had a popup window steal the focus just as I hit enter and this deleted all 6000 files in the project toolchain, i was able to recover without uploading the files again by saying "those file versions i deleted, just map them back into the project ok" one time working on git project i didn't have popup windows steal the focus
|
# ? Nov 1, 2012 17:30 |
|
i'd say whack a class in called 'BobsSharedObject'. Put a private lock in it, and use explicit synchronization inside the methods. then, replace it with nicer concurrent structures/atomic types later.
|
# ? Nov 1, 2012 17:32 |
|
Gazpacho posted:one time working on p4 project i had a popup window steal the focus just as I hit enter and this deleted all 6000 files in the project toolchain, i was able to recover without uploading the files again by saying "those file versions i deleted, just map them back into the project ok" you used a version control for its exact purpose. congrats on not being a drooling retard i guess also agreed: lol about a version control system that 1) needs a gui to be usable 2) has a gui with focus stealing popups
|
# ? Nov 1, 2012 17:40 |
|
Wheany posted:takin time to setup a mercurial repo was one of the best things i ever did Same, it really was useful because our lovely internet connection would always fuckup the SVN commits.
|
# ? Nov 1, 2012 17:52 |
|
Lysidas posted:you used a version control for its exact purpose. congrats on not being a drooling retard i guess
|
# ? Nov 1, 2012 18:02 |
|
The progrAm that stole focus was a local tool I bet u could write a git program that steals the focus too, I bet u could Gazpacho fucked around with this message at 18:13 on Nov 1, 2012 |
# ? Nov 1, 2012 18:09 |
|
Gazpacho posted:Yeah I was just thinking someone might read that post and be as stupid as you, no i deleted those files on the server and any other system would have made me upload them again git reset to the commit before you killed everything, or git revert the commit that killed everything done
|
# ? Nov 1, 2012 18:14 |
|
or even if yo'ure using a vcs for idiots, svn remove whole directory; svn copy directory@{rev before you hosed up} directory
|
# ? Nov 1, 2012 18:18 |
|
Gazpacho posted:Yeah I was just thinking someone might read that post and be as stupid as you, no i deleted those files on the server and any other system would have made me upload them again lmao the whole point of version control is so you can delete files and get them back smdh if the trash one you use makes a distinction between "server" and not-server
|
# ? Nov 1, 2012 18:30 |
|
yeah why would version control need control?
|
# ? Nov 1, 2012 18:36 |
|
yaoi prophet posted:git reset to the commit before you killed everything, or git revert the commit that killed everything
|
# ? Nov 1, 2012 18:39 |
|
|
# ? May 18, 2024 08:32 |
|
the git plugin in the latest freshly unzipped eclipse pops up 2 dialog windows if it can't find git in those dialogs it kind of weakly apologizes that it can function just as well without using a real git, it's pretty
|
# ? Nov 1, 2012 18:46 |