|
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. |
Northern Ireland26177 Posts
Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).
Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.
I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.
What would be a good entry point for the layman into getting more into programming, comp architecture and the like?
|
On November 09 2013 03:35 Wombat_NI wrote: Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).
Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.
I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.
What would be a good entry point for the layman into getting more into programming, comp architecture and the like?
The best entry point would be to not do it for the money.
Being a programmer is not just about learning some computer stuff, it requires passion for the subject since you constantly have to learn new stuff in your spare time, even 20 years later. As i like to say: Programmers are born, not made. Either you already know your stuff from learning it on your own or you aren't fit for the constant learning. A friend of my family who was an interim manager for an IT company was very suprised when he experienced that programmers actually prefer free training to enhance their skills to earning more money, but that is just how you have to be if you want to be a programmer.
Also, tons of people think the same way you do, which means the job market is overcrowded with hundreds of bad programmers applying for the same jobs, meaning it's not a safe way to get a job. There are lots of other routes you can take that can offer you better job options.
|
On November 09 2013 05:21 Morfildur wrote:Show nested quote +On November 09 2013 03:35 Wombat_NI wrote: Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).
Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.
I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.
What would be a good entry point for the layman into getting more into programming, comp architecture and the like? . A friend of my family who was an interim manager for an IT company was very suprised when he experienced that programmers actually prefer free training to enhance their skills to earning more money, they wanted to enhance their skills because they know how short the life of a programmer can be, so the short cash infusion + possibility of being outdated and losing your job seems a much worse deal than being in line with modern standards. no surprise there, and nothing to do with some kind of innate 'iam born to program', just a rational understanding of how computer programmers can be devastated by businesses that view them as -- for the most part -- interchangeable parts.
|
Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.
My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know.
|
On November 09 2013 08:29 Rotodyne wrote: Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.
My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know.
If you want to learn OO, pick a language that is based around objects, rather than "objects-as-a-feature". Otherwise, you're get shit done technique will make object oriented programming feel useless. Java comes to mind, and should be pretty easy to conquer in a few days since it really does hold your hand.
|
On November 09 2013 03:35 Wombat_NI wrote: Been on the unemployment scrap heap for a while, not sure if I'm up for going back into tertiary education again (disliked it the last time).
Literally all the friends I know who did Comp Sci, even the self-confessed mediocre programmers have gone straight into employment, so that is tempting me somewhat.
I'd need to get cracking up my knowledge base in the interim before applying IMO, both for getting into courses but also just because it's be a useful skill to have in life.
What would be a good entry point for the layman into getting more into programming, comp architecture and the like? I've seen a bunch of people who try to study programming but don't really care about it other than doing it for the money, they're usually worse programmers and sometimes can't complete the courses. Having said that, I do think that if you work hard at it you'll be fine, even if you're not "passionate" about it. But don't do it half-heartedly.
|
On November 09 2013 08:29 Rotodyne wrote: Hey guys, over the last year I have been teaching myself a bunch of web programming stuff (php, javascript, html, css), but I still really just use a programming technique called "get shit done", in the short term this has been useful, but I usually just begin coding projects and figure it out as I go along. Specifically I know I need to learn OO programming.
My question is if I should use PHP to learn OO, or should I use something else? I have heard that PHP isn't a good way to learn because objects were added as sort of an afterthought. But what do I know. Although not the best OOP language, PHP has the main features of OOP so you can start learning with what it's available there. If you do plan in "getting shit done" with PHP and other web languages, there's no real reason to go learn another language to learn OOP. AFAIK PHP has dynamic dispatching, abstraction, polymorphism and inheritance, so you're good to go.
|
For learning OOP, i'd go with Java, as it's generally pretty simple to learn, very useful, and highly object-oriented.
|
I would recommend Java or C# if you want to learn OO, possibly Ruby if you're more into that. It's nice to go with a language which more or less forces you to think in terms of classes and objects if you want to use the standard library.
|
Northern Ireland26177 Posts
Cheers for the responses all, useful food for thought
|
Really hoping someone can help me out, I'm growing very desperate. Been up all night working on an assignment. The most frustrating thing is that it's not a problem with coding, it's just a general lack of knowledge of the toolkit I'm supposed to be using.
I'm trying to get a data import from a .csv running in GWT. Now, I realise in a proper GWT application that would mean I would have to host the file since GWT doesn't have client-side IO access, but it was specifically stated that for this assignment, actually hosting the application (and the .csv file) wasn't necessary yet. The way I understood it all we have to do for the moment is getting it to run in development mode (which afaik is still Java code?) and that we could basically treat the import the same way you would do it in a basic Java application. Is this possible? Ie. is it possible to use java.util.IO functionality (or libraries like OpenCSV) in GWT as long as it just needs to run in development mode? If so, how would I get these libraries to work? Atm, while the import works perfectly fine in Java terms, but I get errors like 'No source code is available for type.java.io.FileReader; did you forget to inherit a required module?' every time I try to run the whole thing in development mode.
I've been googling for hours without the slightest success. Please help, I'm turning more insane by the minute.
|
When you say "csv import," do you mean that you want to build a web page that uploads csv input from the user and does something with it?
If you're talking about the other way around, using dev mode (or even super dev mode) sounds like a complete hack to me. java.io is mostly not emulated in GWT:
http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_io
It would be easier to help if we had a very clear idea of what you're trying to accomplish. What do you mean by "csv import."? Where is the csv file, where does it have to go?
|
lol, I have this tendency to keep trying and trying to get something running even when it's obvious I should just have gone to bed 10 hours ago. Yesterday was definitely one of these times. I went to sleep 2 hours after posting the message and fell into some sort of coma sleep for 17 hours. :p
Anyway, yeah I realise that wasn't a very clear explanation of what I'm trying to do. I'm not trying to read csv input from the user. All I want to do is read the csv file that holds my data for the program when the program loads (onModuleLoad should call the import method I suppose). It then gets read into a data structure.
|
Thanks for the responses guys, I appreciate it.
|
@Orome:
Are you not overthinking this very much? I mean... Just put up the file together with your project and request it using a RequestBuilder - then you get it back as a string and then do your parsing on it.
|
I'm sure I'm overthinking it, the problem's really that I have absolutely no knowledge on GWT and the few tutorials I've found online haven't helped.
Ok, so if I can just do it with RequestBuilder, a few dumb questions: Where should the .csv file be stored? In the war folder? What package should my code for the import go? server or client?
|
Read up on how you request JSON in GWT. I don't see why you can't do the same with a CSV file - it should be on the client side. You just put the file where you have all your compiled GWT files.
Right, so you're in development mode. Well, I suppose you still have somewhere you put the html files - put the CSV there then.
|
Hi!
I'm writing a simple raytracer in Scala right now and I'm in the process of making it multi-threaded and parallelized. I have the code here if anyone wants to take a look. My approach is to use Akka actors (basically threads with no shared mutable state and communicating using messages) to distribute the work out to multiple cores. Right now, I have 4 actors (because my PC has 4 cores) and I want to do the following when the render() method of the ParallelRayTracer is called: 1. Create 4 actors 2. Send each actor a RenderJob message that consists of the scene that he should render and which part of the output image he should write to. When I do this, I get a list of 4 Futures that consist of a RenderResult which has the rendered data (as an Array[Color]) and which part of the image that is. 3. Accumulate the partial results into one big Array[Color] and then return it, all asynchronously. (meaning wrapped in a Future, so the return value of the function is actually Future[Array[Color]])
The third part is where I'm having trouble. From sending the RenderJob messages, I get back a Seq[Future[RenderResult]]], so that's a list of results each wrapped in a Future. Right now, I just wait for each Future to finish by looping over the Seq and blocking until the result is done, which works, but it's ugly and makes the UI unresponsive during rendering. What I want to do, is transform the list of futures in some way that yields me a Future[Array[Color]] in the end (the big array consisting of the whole image). I've played around with Future.map, flatMap and for-comprehensions but I always get some weird type mismatch errors from the compiler. If anyone has experience with this sort of thing, help would be really appreciated.
edit: Alright, I figured it out. The Future object has a bunch of very useful methods for processing lists of Futures. In my case, it turned out to be Future.traverse and my solution turned out to be a one-liner:
Future.traverse(futures)(_.map(_.data)).map(_.flatten.toArray) "futures" being the Seq[Future[RenderResult]] and "data" being the image data from the RenderResult
|
If a class extends (inherits) one from Java API, do I need to represent that on a class diagram? E.g. if a class extends Thread.
|
On November 10 2013 20:43 bangsholt wrote: Read up on how you request JSON in GWT. I don't see why you can't do the same with a CSV file - it should be on the client side. You just put the file where you have all your compiled GWT files.
Right, so you're in development mode. Well, I suppose you still have somewhere you put the html files - put the CSV there then.
Thanks for the tips. I'm not really much closer, I really just don't know enough about any of this (first time I'm doing anything that's not just a simple console output program), I'll just leave it be for the moment.
|
|
|
|
|
|