The Big Programming Thread - Page 304
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Shield
Bulgaria4824 Posts
| ||
ThatGuy
Canada695 Posts
On May 21 2013 08:04 darkness wrote: I need to know some svn stuff for the exam. E.g. svn revert/propset/checkout/branches/working copy/roll back of revision. Basic stuff like that. I know some theory, but I want to apply what I've learnt. Do you know any good svn provider? It'd be nice if I can use both svn command line & TortoiseSVN. I've tried https://www.assembla.com, but I don't find it so nice for some reason. Google Code is pretty useful for this: https://code.google.com/ | ||
misirlou
Portugal3237 Posts
On May 21 2013 08:04 darkness wrote: I need to know some svn stuff for the exam. E.g. svn revert/propset/checkout/branches/working copy/roll back of revision. Basic stuff like that. I know some theory, but I want to apply what I've learnt. Do you know any good svn provider? It'd be nice if I can use both svn command line & TortoiseSVN. I've tried https://www.assembla.com, but I don't find it so nice for some reason. Sorry cant help you, dont touch svn ever since I started using git, however I use Assembla for my private git repos and I have no problems with it | ||
Tobberoth
Sweden6375 Posts
On May 21 2013 08:04 darkness wrote: I need to know some svn stuff for the exam. E.g. svn revert/propset/checkout/branches/working copy/roll back of revision. Basic stuff like that. I know some theory, but I want to apply what I've learnt. Do you know any good svn provider? It'd be nice if I can use both svn command line & TortoiseSVN. I've tried https://www.assembla.com, but I don't find it so nice for some reason. You could just get VisualSVN Server up and running on your own computer and use that. It's free and easy to set up. | ||
enigmaticcam
United States280 Posts
As an example, suppose I have two tables: tblObject, and tblAttribute. Suppose any one object can have any set of attributes, and likewise any one attribute can apply to any set of objects. So I would create a join table called tblObjectToAttribute that would have both the objectId and the attributeId. Is it necessary to create an incremental unique id in the join table, something like objectToAttributeId, even though the combination of objectId and attributeId is already unique? In practice, I've never found that I've needed it, but habitually I've always created it. Even if I were to join that join table to some other table, you could still just use the combination of the object and attribute ids. | ||
waxypants
United States479 Posts
On May 22 2013 02:59 enigmaticcam wrote: Question on database design: What's the consensus on unique ids on many-to-many join tables? Do you think they're redundant or necessary? As an example, suppose I have two tables: tblObject, and tblAttribute. Suppose any one object can have any set of attributes, and likewise any one attribute can apply to any set of objects. So I would create a join table called tblObjectToAttribute that would have both the objectId and the attributeId. Is it necessary to create an incremental unique id in the join table, something like objectToAttributeId, even though the combination of objectId and attributeId is already unique? In practice, I've never found that I've needed it, but habitually I've always created it. Even if I were to join that join table to some other table, you could still just use the combination of the object and attribute ids. I would have just those two fields and have them form the primary key. It seems a lot cleaner. I don't really deal with this crap much though, so maybe there are some good reasons to to have a unique id. | ||
Toboe
United States276 Posts
On May 22 2013 02:59 enigmaticcam wrote: + Show Spoiler + Question on database design: What's the consensus on unique ids on many-to-many join tables? Do you think they're redundant or necessary? As an example, suppose I have two tables: tblObject, and tblAttribute. Suppose any one object can have any set of attributes, and likewise any one attribute can apply to any set of objects. So I would create a join table called tblObjectToAttribute that would have both the objectId and the attributeId. Is it necessary to create an incremental unique id in the join table, something like objectToAttributeId, even though the combination of objectId and attributeId is already unique? In practice, I've never found that I've needed it, but habitually I've always created it. Even if I were to join that join table to some other table, you could still just use the combination of the object and attribute ids. Some replication pipelines will work faster if you have a separate primary key column (not clustered) on the join table for each relation, which will quickly come into play when you scale up to replicating the data to dozens of servers and have real time replication going instead of scheduled. The only other reason I can think of off the top of my head is the naive conception of tracking information about each relation. Specifically tracking the history/origin of each relation when you are providing support to someone using your application and need to know how | ||
Shield
Bulgaria4824 Posts
All right, cheers. I think Assembla isn't too bad, it was just my lack of practice with svn's way. By the way, does an ant build need file always need to import junit? E.g.
| ||
3FFA
United States3931 Posts
On May 19 2013 22:40 3FFA wrote: I've learned quite a bit about Objective C. and have learned how to make some basic iOS apps. Any good online courses I could take to expand my knowledge of what I can actually do with the iOS? edit: For example, I have made a basic + - * / calculator, a small war-like card game, and a guessing game app in my High School's programming class. I am hoping to take a class to expand upon this knowledge in the Summer. ![]() No one? ![]() | ||
![]()
tofucake
Hyrule19029 Posts
| ||
vvSiegvv
United States364 Posts
I'd highly recommend CS:193p taught via ItunesU with Paul Hegarty. All of the lectures you can get for free I believe off of Itunes, and it was a really well taught lecture series that my university incorporated into our own iOS development class. Hope this helps! | ||
3FFA
United States3931 Posts
On May 22 2013 11:03 vvSiegvv wrote: I'd highly recommend CS:193p taught via ItunesU with Paul Hegarty. All of the lectures you can get for free I believe off of Itunes, and it was a really well taught lecture series that my university incorporated into our own iOS development class. Hope this helps! Ooooo I'll look into it! Thanks ![]() Of course, I would like other ideas too. @Tofu thanks for the thought at least ![]() | ||
dartoo
India2889 Posts
If you dont own an ios system, or have a virtual one, it will be very hard. If it's a game, you could do the whole game in c++ and use an objective-c layer just to communicate with the device, minimizing the time needed to use a mac. but the best way is to get an ios device and program on it. | ||
enigmaticcam
United States280 Posts
If you're wanting to do more advanced iOS stuff, I'd definitely look into Core Data. Not sure if there's any online classes though. I personally just ordered a book on Amazon. Edit: Thanks for the info on join tables, waxypants and Toboe. I'll keep doing it the way I usually do. | ||
CatNzHat
United States1599 Posts
On May 19 2013 22:40 3FFA wrote: I've learned quite a bit about Objective C. and have learned how to make some basic iOS apps. Any good online courses I could take to expand my knowledge of what I can actually do with the iOS? edit: For example, I have made a basic + - * / calculator, a small war-like card game, and a guessing game app in my High School's programming class. I am hoping to take a class to expand upon this knowledge in the Summer. ![]() Data structures and algorithms if it's offered by your local junior college. | ||
Tobberoth
Sweden6375 Posts
On May 22 2013 02:59 enigmaticcam wrote: Question on database design: What's the consensus on unique ids on many-to-many join tables? Do you think they're redundant or necessary? As an example, suppose I have two tables: tblObject, and tblAttribute. Suppose any one object can have any set of attributes, and likewise any one attribute can apply to any set of objects. So I would create a join table called tblObjectToAttribute that would have both the objectId and the attributeId. Is it necessary to create an incremental unique id in the join table, something like objectToAttributeId, even though the combination of objectId and attributeId is already unique? In practice, I've never found that I've needed it, but habitually I've always created it. Even if I were to join that join table to some other table, you could still just use the combination of the object and attribute ids. I would not include an ID column in a ManyToMany table, as least not if it's exlusively objectid and attributeid. If there are more columns to save data about the relations, it might be more relevant. However, I usually do include ID columns otherwise, simply because composite primary keys are more annoying to work with when writing longer queries and it's easier to fuck up joins without it. | ||
3FFA
United States3931 Posts
On May 22 2013 11:51 dartoo wrote: If you dont own an ios system, or have a virtual one, it will be very hard. If it's a game, you could do the whole game in c++ and use an objective-c layer just to communicate with the device, minimizing the time needed to use a mac. but the best way is to get an ios device and program on it. I have the XCode simulator which is what we've been using for the whole class. We touched a bit on apps and were able to make some basic working ones that I outlined above, but I want to expand on this knowledge.. However, why would I program on an iOS device instead of a Mac? o.O | ||
dartoo
India2889 Posts
On May 23 2013 10:02 3FFA wrote: I have the XCode simulator which is what we've been using for the whole class. We touched a bit on apps and were able to make some basic working ones that I outlined above, but I want to expand on this knowledge.. However, why would I program on an iOS device instead of a Mac? o.O Ah sorry,I meant a mac..was in a hurry when I typed that post (ladder match was found :p). | ||
mcc
Czech Republic4646 Posts
On May 22 2013 02:59 enigmaticcam wrote: Question on database design: What's the consensus on unique ids on many-to-many join tables? Do you think they're redundant or necessary? As an example, suppose I have two tables: tblObject, and tblAttribute. Suppose any one object can have any set of attributes, and likewise any one attribute can apply to any set of objects. So I would create a join table called tblObjectToAttribute that would have both the objectId and the attributeId. Is it necessary to create an incremental unique id in the join table, something like objectToAttributeId, even though the combination of objectId and attributeId is already unique? In practice, I've never found that I've needed it, but habitually I've always created it. Even if I were to join that join table to some other table, you could still just use the combination of the object and attribute ids. I would not add artificial Id column in this case unless some overriding reason was there. In general I do not use artificial Id's if there is logical primary key, of course there are exceptions, but it is a nice general rule for me. I dislike the tendency of some ORMs (NHibernate for example) to try to force you to use them. | ||
Shield
Bulgaria4824 Posts
Sudoku: http://en.wikipedia.org/wiki/Sudoku Futoshiki: en.wikipedia.org/wiki/Futoshiki Strimko: http://www.strimko.com GridWorks: http://www.puzzles.com/projects/GridWorksPrevious.htm I've been advised to read about Java GUI, datastractures and information about game playing "in a standard Artificial Intelligence text". Could any experience programmer advise me anything that may be useful? I'm not forced to use Java, but I think I'm more comfortable with OOP and Java. Edit: Sudoku may be easier, so I'm currently considering it as a choice. | ||
| ||