So this evening has been fun working on the app (lunch.ben.best)
I've got some things working, I've also decided the way I need to move forward so:
New features:
You can now by clicking on it modify the serving date / time of the meal.
I've started on, though it's not entirely there the work to add a new meal, there's lots more to be added there, but I have a plan.
It's still really interesting to return to things that I worked with a long time ago and some of the bits are really clever, getting the checking working so that it validates dates, some of the other bits that "just work". However I think I'm going to have to split out a lot of the Meteor functions so that they are separate to some of the helper methods for the steps or meals functionality. Returning to the "time" object that I'd worked on was a nice feeling of finding something I'd done nicely in the past.
I think when I next get some time it will be time to add to the wireframes.
I'm currently waiting at the hospital for a scan (nothing serious), and it's the run in to Christmas, so I'm guessing updates will be quite sporadic.
A blog about things, they might not actually be the best things but they will, I promise, be things. This is mostly going to be related to techy things that I'm playing with.
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
Tuesday, 8 December 2015
Wednesday, 10 December 2014
javascript really (really, really) isn't java
This evening I've been playing with the time object I sort of started to create before (and haven't been happy with). I'm still not sure I'm doing it right, but I'm pretty sure that it's better than it was.
A (very) long time ago when I was first introduced to javascript being told that it really had nothing to do with java. I went for years not really caring. Every now and then in my career I've been a java or javascript developer and now and then I've run into one of the differences where thinking in one of the languages is really a disadvantage when working with the other. Tonight was one of those nights.
Tonight I was (again) trying to get my head round javascript objects, so simple on the surface MyObj = function(){//functions and variables} and then you add the new keyword and soon your reading about prototypes and trying to figure out what the difference is between a java and a javascript constructor.
These two pages and the best part of a decent Rioja have got me to where I am with this.
http://zeekat.nl/articles/constructors-considered-mildly-confusing.html
http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript
I'm still not happy with it but I think it's "time" (and I've renamed that a lot and will no doubt do again) to put it to sleep and move on to the missing functionality.
Still think I'm on target for the functional level of this working by next Wednesday (and I do think that what I've done has helped), but I have been reminded of events that are occurring over the next few days. Tonight was an example of playing with code in a way that I wouldn't be able to do at work, it's possible that there's a good reason for that.
Here's the link to the github commit from this evening:
https://github.com/benjimouse/lunch/commit/55770bdfe8400a0d8203ae51581660cd58bbe275
A (very) long time ago when I was first introduced to javascript being told that it really had nothing to do with java. I went for years not really caring. Every now and then in my career I've been a java or javascript developer and now and then I've run into one of the differences where thinking in one of the languages is really a disadvantage when working with the other. Tonight was one of those nights.
Tonight I was (again) trying to get my head round javascript objects, so simple on the surface MyObj = function(){//functions and variables} and then you add the new keyword and soon your reading about prototypes and trying to figure out what the difference is between a java and a javascript constructor.
These two pages and the best part of a decent Rioja have got me to where I am with this.
http://zeekat.nl/articles/constructors-considered-mildly-confusing.html
http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript
I'm still not happy with it but I think it's "time" (and I've renamed that a lot and will no doubt do again) to put it to sleep and move on to the missing functionality.
Still think I'm on target for the functional level of this working by next Wednesday (and I do think that what I've done has helped), but I have been reminded of events that are occurring over the next few days. Tonight was an example of playing with code in a way that I wouldn't be able to do at work, it's possible that there's a good reason for that.
Here's the link to the github commit from this evening:
https://github.com/benjimouse/lunch/commit/55770bdfe8400a0d8203ae51581660cd58bbe275
Subscribe to:
Posts (Atom)