|
This is more of a general practice question instead of specific code stuff, but I assume this is an okay spot for it. I have some user input that needs to be validated. This input will be stored in member variables in some model class. Is it better to call a validation method that will return a bool based on whether the data is valid, or should I throw an exception from the member variable's setter method? Basically this: code:
code:
|
# ¿ Mar 27, 2008 18:25 |
|
|
# ¿ Apr 29, 2024 14:41 |
|
I want to make an RSVP website where people can log in with a username and password and indicate whether or not they will be attending an event as well as how many others they will be bringing with them. I've never really done web work before, so I don't know where to start on something like this. What language(s) should I use? I will also need some kind of database; what's easiest/most useful for something like this? If I could just get pointed to a few tutorials, that would be great. Thanks!
|
# ¿ Apr 19, 2008 17:22 |
|
tripwire posted:genetic algorithms stuff
|
# ¿ Jun 11, 2008 19:46 |
|
tripwire posted:Lets say I have reference_pop, and I do a bunch of ticks on 3 different cpus, ending up with result1, result2, result3. Do the "individuals" in result1, result2, and result3 still have a fitness value associated with them at the point you want to merge your stuff? If so, you could merge the three populations, remove non-unique members, sort the remainder by fitness, then trim from the bottom until you get down to your correct population size. The big issue I can see with this is that it won't guarantee that a loser removed on one CPU won't be re-added to the population. But the only way that would happen is if there were a significant number of worse members from the other CPUs. This terminology is getting a little confusing, so if you want me to try to clarify anything, just ask.
|
# ¿ Jun 12, 2008 14:22 |
|
DLCinferno posted:You could do it the same way any other application finds out the internet is down: try to access an internet resource.
|
# ¿ Jul 31, 2008 03:41 |
|
Look Around You posted:Hey guys, I was wondering where I could find some programming exercises for someone who's had a few college courses in programming but hasn't taken any courses in it since then and wants to get back up to speed and get better at various languages. I've had Intro, Discrete Math, and Data Structures, all passed with B+'s or higher, but I stopped because a medicine I was taking kinda put me in a fog and made it harder to work on math and logic. I'm thinking of possibly getting a minor in CS to get background in case I want to work as a programmer (I would try to get an MS in this case), or in case I just wanted to keep programming as a hobby. After that, maybe try some problems at https://www.projecteuler.net. It's a bunch of math problems that you solve by programming.
|
# ¿ Jul 20, 2010 23:23 |
|
thevoiceofdog posted:factorial stuff
|
# ¿ Sep 23, 2010 14:12 |
|
I'm looking at getting a Master's degree, but I'd like to do it part-time, and online if possible. I see that the University of Illinois offers an online "Master of Computer Science" (http://courses.illinois.edu/cis/2011/fall/programs/graduate/computer_science.html). This is a non-thesis program, which differentiates it from the standard "Master of Science, Computer Science." What disadvantages would such a program entail? If I wanted a PhD in the future, would this be problematic? Would employers view MCS differently than MSCS? Is this really not a big deal at all?
|
# ¿ May 6, 2011 19:59 |
|
Yeah, those were the types of answers I was looking for (although not really what I wanted to hear ). Thanks for the replies.
|
# ¿ May 7, 2011 17:08 |
|
|
# ¿ Apr 29, 2024 14:41 |
|
Rocko Bonaparte posted:I wondered if anybody here had opinions on any of those enterprising UML diagram/code generator tools, like Enterprise Architect. I wanted to dabble in something where I could doodle out general designs so people at work can see what crack I'm smoking, but then have it generate the code stubs so I could get right into it afterwards. I generally work with C#, Python, and C++--for example. Sequence diagrams are another beast entirely, and I hate the way EA handles them. You have to manually draw lines, drag/drop 'fragment' boxes (things like loops or if/elses), etc. It's all done via drawing on a canvas. It tries to be smart about what you want, making assumptions about how you want the diagram laid out. But it is often terribly wrong, meaning that adding or deleting an action has catastrophic effects on the layout of the rest of the diagram. I much prefer a tool like Quick Sequence Diagram Edit. The diagram is generated from an almost psuedocode-like language. It's got its own quirks, and it's certainly not perfect, but it kills EA for drawing/editing sequence diagrams.
|
# ¿ Mar 1, 2012 17:39 |