Here I am at Thursday in the square again. It was so hard to rip myself away from the computer as I am getting closer and closer to my master creation javascript user interface library.
Okay I am ready to forget about it for a bit.
Paul's Journal
My Podcast Link
06/08/2006 18:49 #32653
Buffalo WifiCategory: thursday
06/08/2006 14:55 #32652
Coding JavascriptCategory: programming
This week, I have recoded my years worth of javascript functions and objects into a beautiful, name spaced, inter-dependent, object oriented library that will make new stuff so much more exciting to program and extend. Unfortuantely, I now have to go through the process of retrofitting everything I previously created with the system.
Luckily, I moved all the javascript code out of my documents and into external js files years ago, so there is no having to go through lots of markup to deal with inline tags that are burried deep within. Most of the stuff shall convert nicely and now I never have to worry about namespace conflicts ever again and will never have to track down little code snippets.
Surebert is no longer surebert but the surebertCom library which has a communicate object to replace the old surebert 1.6.
None of this probably means anything to anyone, but I want to note this day for when I look back.
I will make the library publically available at some point in the near future.
The objects themselves can a sort of namespace. e.g.
myLib={
jump: function(){
alert('jump');
},
run: function(){
alert('run');
},
swim:function(){
alert('run');
}
}
now I can safely use even if I am using other javascripts that has a jump() function.
mylib.jump();
if you know you aren't going to have a conflict that you can use
jump = myLib.jump; to make a sort of global alias to the function
jump();
The nice thing is all these objects can interact and extend each other and javascript object literal notation is so easy to read and maintain.
I group all my objects in the surebertCom object and then it has further breakdowns into uses and types e.g. surebertCom.strings, subrertCom.sounds, etc
Luckily, I moved all the javascript code out of my documents and into external js files years ago, so there is no having to go through lots of markup to deal with inline tags that are burried deep within. Most of the stuff shall convert nicely and now I never have to worry about namespace conflicts ever again and will never have to track down little code snippets.
Surebert is no longer surebert but the surebertCom library which has a communicate object to replace the old surebert 1.6.
None of this probably means anything to anyone, but I want to note this day for when I look back.
I will make the library publically available at some point in the near future.
The objects themselves can a sort of namespace. e.g.
myLib={
jump: function(){
alert('jump');
},
run: function(){
alert('run');
},
swim:function(){
alert('run');
}
}
now I can safely use even if I am using other javascripts that has a jump() function.
mylib.jump();
if you know you aren't going to have a conflict that you can use
jump = myLib.jump; to make a sort of global alias to the function
jump();
The nice thing is all these objects can interact and extend each other and javascript object literal notation is so easy to read and maintain.
I group all my objects in the surebertCom object and then it has further breakdowns into uses and types e.g. surebertCom.strings, subrertCom.sounds, etc
carolinian - 06/09/06 00:13
Refactoring is wonderfully cathartic, isn't it?
Refactoring is wonderfully cathartic, isn't it?
kara - 06/08/06 21:28
Total geekdom. I love it.
Total geekdom. I love it.
paul - 06/08/06 16:07
I updated my journal to explain more what I meant.
I updated my journal to explain more what I meant.
zobar - 06/08/06 15:45
Javascript has namespaces?! Let's all hope that they're less awkward than XML namespaces.
- Z
Javascript has namespaces?! Let's all hope that they're less awkward than XML namespaces.
- Z
06/06/2006 19:14 #32651
Go To HellCategory: tenants
My stupid tenants leave their windows open all the time. I see it whenever I go by. Yesterday, they has their stuff stolen. Looks like someone came in through the door or a window with no evidence of breaking and entering. I feel bad for the girl who lost her laptop and the guy who lost his digital camera but who leaves the window or door open on a first floor apartment in the city.
Then to make matter worse the bank guy has to come evaluate the building for a home equity loan and the stupid tenant who I called and told he would be coming would not let him in. Even though I was on the phone explaining it. It is the guys fault for coming early, but there was no need for her to freak out. She pretended that she didn't know it was going to happen even though I clearly explained it to her yesterday. I was so angry I think I yelled at her and then hang up the phone. I hate it when people lie to me directly.
So here is the best part, we go ovet ot the house today after the fiasco with the bank inspector and the same girl who asked me to change the locks left the first floor window on the porch open again.
The only thing separating her from another robery was a thin window screen. Nobody even had to climb up, they could just go on the porch and go in. Who is so stupid to leave the window open the day after you get robbed? Maybe she had nothing left. Anways, I am so tired of supporting her charity case. My father even paid her rent when she couldn't afford to pay for a roomate that left. (e:paul,3934) He is a sucker for this jerk.
The only reason I keep this tenant around is because my father feels bad for her, but that is finally ending. Her rent is dirt cheap and she constantly has problems.
These are the same idiot who could not figure out how to put up the plastic I kindly bought them for their windows. It doesn't even require reading. The instructions are shown as pictographs for pete's sake.
The other day her and her roommate could not get the window open so I had to go over to open it. Turns out int he winter they had caulked and painted it shut. One gir caulked the other girl painted over it, so neither would claim responsibility to the entire problem.
I am debating if I should just kick them all out by not renewing their lease in August. She asked me the other day if I could find roomates for her because she didn't feel it was her responsibilty. I am tired of feeling sorry that she is a poor foreigner. Why the fuck did she chose to come to school in America. A private school nonetheless.
I didn't even go to private school and I am a citizen with instate costs.
Remembering 666
I found this old fish in the freezer at my house, yuck:
Then to make matter worse the bank guy has to come evaluate the building for a home equity loan and the stupid tenant who I called and told he would be coming would not let him in. Even though I was on the phone explaining it. It is the guys fault for coming early, but there was no need for her to freak out. She pretended that she didn't know it was going to happen even though I clearly explained it to her yesterday. I was so angry I think I yelled at her and then hang up the phone. I hate it when people lie to me directly.
So here is the best part, we go ovet ot the house today after the fiasco with the bank inspector and the same girl who asked me to change the locks left the first floor window on the porch open again.
The only thing separating her from another robery was a thin window screen. Nobody even had to climb up, they could just go on the porch and go in. Who is so stupid to leave the window open the day after you get robbed? Maybe she had nothing left. Anways, I am so tired of supporting her charity case. My father even paid her rent when she couldn't afford to pay for a roomate that left. (e:paul,3934) He is a sucker for this jerk.
The only reason I keep this tenant around is because my father feels bad for her, but that is finally ending. Her rent is dirt cheap and she constantly has problems.
These are the same idiot who could not figure out how to put up the plastic I kindly bought them for their windows. It doesn't even require reading. The instructions are shown as pictographs for pete's sake.
The other day her and her roommate could not get the window open so I had to go over to open it. Turns out int he winter they had caulked and painted it shut. One gir caulked the other girl painted over it, so neither would claim responsibility to the entire problem.
I am debating if I should just kick them all out by not renewing their lease in August. She asked me the other day if I could find roomates for her because she didn't feel it was her responsibilty. I am tired of feeling sorry that she is a poor foreigner. Why the fuck did she chose to come to school in America. A private school nonetheless.
I didn't even go to private school and I am a citizen with instate costs.
Remembering 666
I found this old fish in the freezer at my house, yuck:
ajay - 06/06/06 19:57
If she's a hottie, offer to install webcams in her house.
This way the eStrip guys can, ahem, keep an eye on her house, in case it gets broken into again... especially the bathroom: I hear that's a big security hole.
Just offerin' to help, that's all...
If she's a hottie, offer to install webcams in her house.
This way the eStrip guys can, ahem, keep an eye on her house, in case it gets broken into again... especially the bathroom: I hear that's a big security hole.
Just offerin' to help, that's all...
theecarey - 06/06/06 19:49
Dont renew the lease. If she has not been responsible in upholding her end of the lease, than give her the boot. Dont feel bad.. this is business, not a charity. At this point, from what you have written, it appears she is taking advantage of everyone.
If this was a case of someone who is responsible and makes every effort to be a good tenant, that would be something to consider..
but it isnt.
Boot her (dumb?) ass.
Dont renew the lease. If she has not been responsible in upholding her end of the lease, than give her the boot. Dont feel bad.. this is business, not a charity. At this point, from what you have written, it appears she is taking advantage of everyone.
If this was a case of someone who is responsible and makes every effort to be a good tenant, that would be something to consider..
but it isnt.
Boot her (dumb?) ass.
joshua - 06/06/06 19:39
It is never the landlords responsibility to find roommates for a tenant who would otherwise not be able to live there. How fucking stupid is this girl?
You don't need this, and if she is a risk to not be able to cover rent than that is her issue. This ain't a fucking soup kitchen. C'mon Paul - do the right thing.
It is never the landlords responsibility to find roommates for a tenant who would otherwise not be able to live there. How fucking stupid is this girl?
You don't need this, and if she is a risk to not be able to cover rent than that is her issue. This ain't a fucking soup kitchen. C'mon Paul - do the right thing.
boxerboi - 06/06/06 19:21
i vote you kick her the fuck out. who askes their landlord to find them roommates? thats just insane.
i vote you kick her the fuck out. who askes their landlord to find them roommates? thats just insane.
06/04/2006 13:40 #32649
Gay Pride ParadeCategory: pride
You need a cybernetic implant.