• Re: Eclipse (was Re: Visu

    From Khelair@DIGDIST/BATTLEST/FREEWAY to Mercyful Fate on Friday, May 08, 2015 14:57:00
    Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation/co)
    By: Mercyful Fate to Khelair on Thu May 07 2015 23:03:49

    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.

    Hrm I'd not even thought about checking for anything online. I've forgotten, 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.

    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

    Awesome. Thank you for the reference, I'll check it out as soon as my little one goes to bed tonight. :)

    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

    Some of it isn't such a bad thing. Like I mentioned (somewhere, maybe here?) 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 skimming 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 shell 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 earlier, 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*

    -D/K

    ---
    Borg Burgers: We do it our way; your way is irrelevant.
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net
  • From Mercyful Fate@DIGDIST/BATTLEST/FREEWAY to Khelair on Saturday, May 09, 2015 03:24:00
    Re: Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation
    By: Khelair to Mercyful Fate on Fri May 08 2015 14:57:35


    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.

    Cool, if you find something worth wide, post it about here and we'll check it out :)

    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. :)

    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.

    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 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

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Khelair@DIGDIST/BATTLEST/FREEWAY to Mercyful Fate on Sunday, May 10, 2015 07:50:00
    Re: Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation
    By: Mercyful Fate to Khelair on Sat May 09 2015 03:24:27

    Cool, if you find something worth wide, post it about here and we'll check it out :)

    Well right now I'm checking out Komodo. I've only just installed it, so I haven't gotten deep with it yet... Only problem that is really frustrating me right now is the fact that I can't run it natively on my BSD machine, which is where I've got the BBS and like to do development for my shell. Something tells me that unless it's _really_ good, I'm not going to be dealing with 'scp'ing those file contents over and over again every time to test out the changes that I've made... That's only my first attempt, though. I've got a few other alternatives in the queue. Hopefully something that will run on BSD or a good web app will pop up soon here. I figured I'd start looking at native environments, first, though, for the same reasons as mentioned before..

    Hope you like it, i learned alot from it with initial testing and good ways to go about writting tests.

    I haven't checked it out yet, but I'm going to very soon here. I _know_ that TDD or unit testing would make my life so much easier in coding; actually I'm having a rough time getting started this morning, I'll probably check it out after I send this message here. Maybe it'll help me bootstrap into some better productivity.

    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.

    Yep. I don't mind things going slower at the cost of maintainability and extendability, though. I can easily see those advantages weighing the favor at this point.

    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

    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 my 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 come 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 well.
    Anyhoo, I'm gonna go check out that video. :) Gotta kick myself in the butt on this again somehow, por dios.

    -D/K

    ---
    Borg Burgers: We do it our way; your way is irrelevant.
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net
  • From Khelair@DIGDIST/BATTLEST/FREEWAY to Nightfox on Sunday, May 10, 2015 15:48:00
    Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation/co)
    By: Nightfox to Khelair on Sat May 09 2015 09:34:46

    What do you mean by "map the OO layout"? Something like graphically showing the object relationships?

    Yeah that's basically something like what I was looking for. You know, like Visual Studio does for its various object hierarchies. It'd be so nice now that I'm losing track of what is where to have a list of their 'objects', 'methods', and 'properties' all laid out somewhere. That's basically my main goal to find in an IDE right now for JavaScript. Though what you've said below makes it sound like this might be pretty rare...

    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).

    Yeah I guess I hadn't thought about it in an academic way as such. That's got to make it a little bit more difficult, maybe. I dunno, I've got some different IDEs I'm trying out right now; Komodo IDE and JSEclipse are next up in line... Nothing is doing what I want it to just yet, though.

    -D/K

    ---
    Borg Burgers: We do it our way; your way is irrelevant.
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net
  • From Mercyful Fate@DIGDIST/BATTLEST/FREEWAY to Khelair on Sunday, May 10, 2015 22:06:00
    Re: Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation
    By: Khelair to Mercyful Fate on Sun May 10 2015 07:50:49


    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.. :)

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Khelair@DIGDIST/BATTLEST/FREEWAY to Mercyful Fate on Monday, May 11, 2015 07:34:00
    Re: Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation
    By: Mercyful Fate to Khelair on Sun May 10 2015 22:06:09

    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.. :)

    Yep yep. :) I'm glad I've made some pretty good progress in the last few days on some things, at least. God I was banging my head against a cinderblock wall for a few months straight there, it seemed like.
    So anyway, 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 maps 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 in 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! :)

    -D/K

    ---
    Borg Burgers: We do it our way; your way is irrelevant.
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net
  • From Mercyful Fate@DIGDIST/BATTLEST/FREEWAY to Khelair on Tuesday, May 12, 2015 21:51:00
    Re: Re: Eclipse (was Re: Visual Studio 2013 settings regarding indentation
    By: Khelair to Mercyful Fate on Mon May 11 2015 07:34:22

    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! :)

    very cool, i'll make sure to take a look at eclipse or netbeans next time i decide to give some java script a go. I've been in a coding slump the past couple weeks, lots going on ans no energy at night to think and work on
    stuff. And my ring ringer got chopped good with a 5000 rpm fan while i was working on my wifes computer.. hehe fun stuff.. :)

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com