Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (1 / 5) |
Uptime: | 05:22:50 |
Calls: | 488 |
Calls today: | 3 |
Files: | 1,075 |
Messages: | 65,809 |
Posted today: | 3 |
so i have tinkered with it a little in Eclipse. But it seems like the plugins are lacking for anything other then Java which is a shame. I'be been getting more into Agile development as it's been sorta forced apon us at work. I do like alot of the Test Driven Development concepts of writting unit and integration tests espceially when reworking code.
I'm trying to apply these princials as i start to rewrite my Enthral BBS Software which needs a good over haul. Bascially at work i deal mianly with JSF and breaking down manager classes into unit and integration tests. Most of whch were not coded for testing so there is a lot of data mocking to try and test everything.
I've noticed that as well. I was going to try using eclipse for some JavaScript work that I'm doing on my own BBS, but I ended up calling that of due to lack of decent support. Hell, I'm still looking for a good editor fo JavaScript, being as my project is getting a little bit out of hand for just bouncing around with 5 different copies of 'vim' running right now. I mean like it, but I really need something that can map the OO layout for me, at t very least. As far as testing, that's something that I need to throw
into play, as wel I'm not familiar enough with testing to know how
to do it, but I know that i exactly what I need for how cumbersome
my shell is becoming. TDD is where I like to go with it, though
I know there are other styles that might be a lit easier or quicker
to implement. I really need to get my professional softwa engineer
roomie to sit down with me and show me the ins and outs of it. Sti
haven't been able to find a decent tutorial for things on my own yet.
Yeah I've got right around 100k of code right now that desperately needs t be rewritten that way. Well, that and I really need to go back and map my layout on a frigging posterboard or something, because it's getting too comp for me to remember off the top of my head. Sucks when I leave an area of th code for a few weeks, come back, and have to try to pick up where I left off I see some people that can fly in and out of sections of code they haven't touched for awhile like that; I, alas, am not one of them. Too much damage the memory back in the 90s, I guess. ;)
I haven't seen too much for stright java script with OO. It's a shame i wanted to dig more into node.js and trying to figure out alot of exotic function calling and parameters for the objects would take quite some time in a basic text editor so i kinda put playing with that on hold for the time being. Some of the web IDE look nice but i hate web IDE's.. they are so clunky like working over a network.
As you some TDD, this video was a great help, at least with basic concepts and even though it's specific for java and eclipse, it's an awesome reference that can carry over to other languages.. check it out if you get some time:
Testing and Refactoring Legacy Code https://www.youtube.com/watch?v=_NnElPO5BU0
Ya thats alot of code to go through, i have the same problem. I was bascially learning as i went and didn't know to much about good design concepts and did alot of copy/paste of classes and rewoking to get stuff to do what i wanted at the time i was writting it. Stepping away for months or more at a time then coming back and forgetting where i left off. In the end it's a working mess, but very hard to extend now which calls for a good reworking. it does suck alot! hehe
Hrm I'd not even thought about checking for anything online. I've forgott evidently, that now is the day and age of web apps. I'll have to check that out and see if I can't turn up something that'll help me parse the JS OO.
some time: Testing and Refactoring Legacy Code https://www.youtube.com/watch?v=_NnElPO5BU0
Awesome. Thank you for the reference, I'll check it out as soon as my lit one goes to bed tonight. :)
Some of it isn't such a bad thing. Like I mentioned (somewhere, maybe her
I get into a groove where I'm coding quick and I can remember a lot of the functionality of the code that I've written, but then I find that I'm skimmi it, instead of looking for what it's actually DOING. I miss a lot of small bugs that way. Actually, after taking a week off from development on my she I just realized that I've been doing that and, as a result, chopped through some bugs that've been bugging me for months. Nice to be able to come back with a fresh mind, sometimes. Regardless, it's a better working mess now. : Then again, I also see examples of the people you were talking about earli where they can fly in and out of different chunks of code that they haven't touched for months and remember everything. Something to aspire to, I guess *grin*
I've noticed that as well. I was going to try using eclipse for some JavaScript work that I'm doing on my own BBS, but I ended up calling that off due to lack of decent support. Hell, I'm still looking for a good editor for JavaScript, being as my project is getting a little bit out of hand for just bouncing around with 5 different copies of 'vim' running right now. I mean I like it, but I really need something that can map the OO layout for me, at the very least.
I haven't seen too much for stright java script with OO. It's a shame i wanted to dig more into node.js and trying to figure out alot of exotic function calling and parameters for the objects would take quite some time in a basic text editor so i kinda put playing with that on hold for the time being.
JavaScript's OO support is fairly simplistic compared to other languages. I seems to me that an object in JavaScript is really just a map of properties data items (where the data items can be of any data type). There's no priva or protected access level - Everything in a JavaScript object is public. There's some semblance of inheritance, but it seems a little clunky.
Cool, if you find something worth wide, post it about here and we'll check it out :)
Hope you like it, i learned alot from it with initial testing and good ways to go about writting tests.
I started using some of the pratices on my new code, and it helps to break to down and test every scenario that you throw at it, then you know it's solid, and if you have to change something lateron on, you just run the test and make sure you didn't break anything. The only down side is writting tests can be slower in the begining, but it saves alot of time lateron when you trying to hunt bugs down and it also documents hows each class is suppose to function. So walking away you can come back and easy see, of year this method only handles parameters or ranges in this way. Then you can either extend it if needed or write something new.
I look back and i see some really bug functions with lots of case statements and loops and i'm like shit i really need to break this down becasue when something isn't working, tracing through a big mess like that just isn't going to work. Then when it comes to trying to rewrite it. i just makes my head hurt.. haha
What do you mean by "map the OO layout"? Something like graphically showing the object relationships?
IMO JavaScript doesn't have good/true OO support anyway.. I've done object coding in JavaScript, but it seems to me that what JavaScript calls an object is really just a map of anything to anything (the data can be of any data type). It's similar to what other languages would call a dictionary or map. And everything is public (there is no private access level in JavaScript).
Yep. I've got quite a few stretches of horror-spaghetti code in my work right now. A few months back I went on an editing and refactoring binge in code and tried to break everything like that down into bits that I could maintain better. Unfortunately there are a few more monoliths that have com into being in my code again since then... Not to mention a ton of debugging cruft because I'm not handling things in a better (testing?) fashion, as wel Anyhoo, I'm gonna go check out that video. :) Gotta kick myself in the b on this again somehow, por dios.
I'm having htat same problem, i try to refactor some code and i end up just breaking it, so i really need to figure out a good strat on attaching some of my stuff, but then i waste of alot of time thinking and thinking and not getting much done. Thats my big kicker lately.. :)
regarding the IDE stuff (I didn't double check the previous
messages, sorry if this isn't to you directly), it looks like an IDE that ma the pseudo-objects of JavaScript the way that I wanted it to isn't quite so rare as I had thought. It's just that it's not turned on by default. I'm finding options for this in netbeans now, I'm guessing it's easier to get to eclipse than I'd thought, etc etc... Anyway, I posted in JavaScript about that, so that discussion can continue there... Good luck on the not
breaking things! :)