|
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. |
its good . well a bit crazy lol. i feel like a nutcase. maybe i am one.
i still dont know for sure if they arent just gonna outright fail me for zeroing those 2 units well i got (20/100)/2 and (37/100)/2 thats 10/100 and 19/100
up to Design section now this is gonna be tricky coz i didnt do any design and i need to 40+ this section or autofail the whole thing
i think i blag it by 1) putting technical spec/interpretation for each of my requirements from my req section into here 2) draw a stick man clicking a button LOL fml 3) draw a picture of MVC 4) oh yeah i can model the Ann class. 5) oh yeah and frontend gui but its a bit weird coz i didnt figure any of that out until half way thru implementation so how can i "design" it? anyway , i will
nice example use case here
|
On April 23 2015 16:05 Nesserev wrote:Show nested quote +On April 23 2015 07:53 TMG26 wrote: At my University we learn Functional Programming (in Haskell) in the very first semester, that and a bunch of math courses makes the first semester. On the second we get Imperative Programming (using C), some more advanced calculus, a course on computers architecture, with some assembly and stuff, and Language Theory (regex, grammars and stuff, Theory only tough, compilers and that theory practical use was on the second year).
I think it is a very good start. Starting with Functional Programming sounds rough; but maybe your brains aren't hotwired yet for Imperative/OO Programming if you start with it, and thus it's easier to learn. I remember that was the biggest hurdle when learning Functional Programming for me personally. Is that a good or a bad thing? I also suspect that people's brains won't yet be wired for how you have to think when using imperative programming languages. The functional stuff might even tie into what people already know about Math and Physics so might be easier.
I also had Haskell first and it was hard for me. I could program C and some x86 Assembler and some C++ at that time so that was my background. I couldn't appreciate the declarative approach to stuff at that time so the motivation to learn Haskell was not there and that might have been what made it rough. Today I think the kind of problems you get in a first year course would be pretty fun to do with a functional instead of a "normal" language.
In any case, starting with Java seems like a truly shitty idea.
|
is the Model in MVC = entity classes? and what is the ajax part of it called? i guess ajax is a view?
|
On April 23 2015 17:56 FFGenerations wrote: is the Model in MVC = entity classes? and what is the ajax part of it called? i guess ajax is a view?
AJAX and MVC are two completely unrelated concepts.
In MVC you have 3 layers (not distinct classes) that take care of managing, showing and changing data. I could write essays on it, but a lot of it depends on the language, framework and environment. There are also many variations and interpretations of the base concept.
AJAX (which is rarely used with actual XML these days) just represents dynamically loading data from some source after the page has already loaded. It usually goes through the whole MVC process by calling a controller and then having a view format the data of the model in the desired format. However, depending on where and how it's used, it can be as simple as accessing a static file without any PHP code involved. It is not connected to MVC in any way.
|
well its gone in the MVC diagram now
![[image loading]](http://i.imgur.com/wsBfHJH.png)
finally on to Implementation t_t
this is where i go open old files to screenshot and wonder wtf i done
|
You are mixing high level concepts of what your program does (Image Upload Method) with implementation details (Ajax, Unmarshalling XML).
Lets say tomorrow a fantastic new tech comes along. Lets call it Achilles. It does everything Ajax does, but does it simpler, faster and with less network access. You decide to adopt this technology. Will the design of your program change? No. Just the implementation is being adapted to use technology Achilles instead of technology Ajax.
Therefore, things like Ajax and XML have no place in your high-level design document.
|
ok thanks, i fixed it by adding white space underneath, worked well
i cant believe im just starting the "that day i tried to upload to a web server" bit and still have 33 unused screenshots to go
ehh i better check for random timestamps incase they see i done the whole thing in a week
|
Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way?
|
On April 24 2015 01:57 enigmaticcam wrote: Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way? Unless you overclocked your CPU super unsafely, no :D. CPU are meant to compute things.
|
On April 24 2015 01:57 enigmaticcam wrote: Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way? If the CPU and associated drivers are working properly, no. Modern CPUs have safety protocols built in that automatically slow things down if they get too hot.
Now, if the user has overclocked his CPU or messed with BIOS too much, anything can happen. But that's on them, they knew the risks.
|
On April 24 2015 01:57 enigmaticcam wrote: Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way?
CPUs have a protection. If they're close to 100 degrees, PC just shuts down.
FFGenerations, is it me or do you mix up controller and model's jobs? I think some of actions should be done by the model. To be specific, image API communication and image manipulation sound like model's job. I may be wrong, I've never perfected my understanding of MVC.
|
Thank you! I figured as much, but wanted to make sure.
|
i have no fucking clue i just assume model is data storage type class like u model ur data in it
i finished Implementation just now
now is testing (actually not many marks) eval vs requriements eviudence of project planning WHOOPS (work schedual stuff) clean up code (actually i cant fucking find my release version and google has FUCKING DELETED all my shit . i thought it would be safe in google drive . i literally cant find an uptodate version anywhere, will try again in a bit tho i didnt need it earlier so stopped looking) conclusiion edit the Project Init Doc fill in the Ethical doc revise missing bits format content page end
my head of course replied to my email and said if i submit the other half of my 37/100 and get 40/100 theyll round it up to 40/100 ie a pass, and also confirmed i have until 11pm Tuesday to do it. so maybe ill do it and just have to worry about having failed 1 unit
i do get the impression i was just whining about nothing working the last 10 pages of my Implementation
|
guys wtf has happened to my application files? last night i saved several copies in different places, i have 1 which is 1mb and has an uptodate UI except the images are sized too large to fit in the box properly (which ive NEVER seen before) 1 which is 8mb but is from like a week ago even though it says i saved it yesterday
is there some sort of bug where if the project versions all have the same name (theyre all saved as g5 and idk how to change that shit, i refactored the name in IDE) that they somehow overrwrite and bug each other even when im saving to dif directories and exporting to zip??
also google drive for my main account is saying Failed -Server Problem for all my application files (google email deletes code files i know but i didnt realise Drive would) but not only that but its doing it for my .txt file and .doc file in the same folder
|
On April 24 2015 02:16 darkness wrote:Show nested quote +On April 24 2015 01:57 enigmaticcam wrote: Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way? CPUs have a protection. If they're close to 100 degrees, PC just shuts down. FFGenerations, is it me or do you mix up controller and model's jobs? I think some of actions should be done by the model. To be specific, image API communication and image manipulation sound like model's job. I may be wrong, I've never perfected my understanding of MVC. Yeah, I'd tend to agree...sort of. MVC's always had these annoying blurred lines for me, but generally I'd say all the functionality for data management/storage/etc. is the Model, while the Controller is for the specific requests and responses.
Or as a really rough line, the Model includes the functions that talk to the data, the Controller is the function calls during operation.
|
i got my files at last from google drive by turning off all plugins and going incognito (not sure which of those worked then) and it got past the google drive server failed error....
idk if its netbeans fucking me around and overwriting all my shit in random ways but i def will be using eclipse next time i do a project
heres a link to my project artifact if anyone wants to save a copy on my behalf/laugh at it .... http://speedy.sh/Hu5EA/animelistcomplete1-Copy
|
On April 24 2015 03:09 WolfintheSheep wrote:Show nested quote +On April 24 2015 02:16 darkness wrote:On April 24 2015 01:57 enigmaticcam wrote: Question on multi-threading. I have a program I'm building that's highly CPU intensive and can be run for hours at a time. I implemented multi-threading to take advantage of any multi-core CPU's so it can run faster. Naturally, doing this increases the CPU usage to 100% while the programming is running. My own desktop seems to handle it fine, but I'm curious: is it possible to pro grammatically overheat the CPU by accident in this way? CPUs have a protection. If they're close to 100 degrees, PC just shuts down. FFGenerations, is it me or do you mix up controller and model's jobs? I think some of actions should be done by the model. To be specific, image API communication and image manipulation sound like model's job. I may be wrong, I've never perfected my understanding of MVC. Yeah, I'd tend to agree...sort of. MVC's always had these annoying blurred lines for me, but generally I'd say all the functionality for data management/storage/etc. is the Model, while the Controller is for the specific requests and responses. Or as a really rough line, the Model includes the functions that talk to the data, the Controller is the function calls during operation. I also tend to use MVC more as V-MC where I always muck up the distinction between Controller and Model (View tends to be easy to separate).
@FFGenerations: nobody has any idea where your saved files went. I expect you have space aliens hiding in your closet who sneak in while you are sleeping (and/or hallucinating; I am not sure you have slept at all in the last two weeks) and secretly modify everything you worked on. An alternative is that you need to get some sleep and stop messing up your stuff. I have done marathon coding sessions, and there comes a point where you are writing stuff that makes no sense to anybody anymore. Go get 6 hours of sleep and open up your files again. You will probably be shocked and horrified by the mess you have created.
|
On April 24 2015 03:41 Acrofales wrote: I have done marathon coding sessions, and there comes a point where you are writing stuff that makes no sense to anybody anymore I used to do that a ton, but force myself not to now. It would get to the point where I would stop being productive and start actually slowing my progress by adding buggy code that I would have to fight with later on once I had got some rest and was at least semi-awake again.
Energy is just as much of a resource for programmers as time is.
|
On April 24 2015 04:24 Ben... wrote:Show nested quote +On April 24 2015 03:41 Acrofales wrote: I have done marathon coding sessions, and there comes a point where you are writing stuff that makes no sense to anybody anymore I used to do that a ton, but force myself not to now. It would get to the point where I would stop being productive and start actually slowing my progress by adding buggy code that I would have to fight with later on once I had got some rest and was at least semi-awake again. Energy is just as much of a resource for programmers as time is. It's not just energy running out. There's something happening while you sleep. I'm imagining it as the the brain combining its old wiring with the new memories from when you were awake to get to a new wiring. After you've slept, when you ask it for an answer to something, that updated network will provide it instead of some sort of processing on current memories.
|
there is no time to sleep its 21:30 now im onto Evalution of Requirements then Code Cleanup then Conclusions then additing/editing the junk stuff then Oh Shit I Need To Add References Fuck
then tomorrow i have to go and find a print shop who is able to bind it by 3pm
then i have till Tuesday to do my maths/OO assignment in Perfect
|
|
|
|