So I've spent a couple of evenings and I've again got my little app working locally it has been interesting re-visiting things and as ever getting code working I worked on a year or so ago.
lunch.ben.best is now running the latest version of the code (and I've checked everything into github). I'm at the point where in theory it would be possible to use the app to cook a lunch, though it wouldn't be a lot of fun. So now is the time for improving the app to make it really usable.
Then get it so that others can use it.
When I left this I had started playing computer games again, last night I decided to leave the conquering of Europe do some coding while the kids were asleep, I'm not sure if this is a good or bad thing, but while it's interesting I'll keep going. You never know I might end up with something interesting at the end.
I'm currently working on being able to change the time to serve the meal, this led me into the interesting place that is the input type datetime-local. It still surprises me how incomplete the specification and support for the HTML5 input types are. On mobile devices this box is lovely, however it's not supported on IE at all and the chrome support isn't exactly thrilling. I'll probably look at some plugins to see if I can't figure out a better solution, but I'm going to be continuing with the "get it working, then get it pretty" maxim.
I think the next steps are:
Allow date/time change working
Allow multiple meals
Allow multiple users to have meals
Sort out adding / editing steps so it's "nicer"
Pretty up everything (including making it "reactive")
I'm sure I'll find more steps and do some out of order, but it's nice to have a line in the sand, even if it then gets rubbed away.
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 github. Show all posts
Showing posts with label github. Show all posts
Wednesday, 2 December 2015
Tuesday, 16 December 2014
seconds, minutes and hours
I've managed to spend a couple of hours playing with my app to help me cook Christmas lunch...
I've now enabled editing, and instead of adding time as just seconds it is now input as seconds, minutes and hours.
I'm quite pleased with this evening's progress, and I've started to veer away from the book. It's been a bit of a struggle, but finally I feel as though I really am getting there.
As ever if you want to see and play the app is currently here:
lunch.ben.best
And the latest github commits here:
https://github.com/benjimouse/lunch/commit/c3474cd53bdfde23ec27db1ba5ac4d8a965b7d6e
Of course anything could happen when next I pick up the laptop...
I've now enabled editing, and instead of adding time as just seconds it is now input as seconds, minutes and hours.
I'm quite pleased with this evening's progress, and I've started to veer away from the book. It's been a bit of a struggle, but finally I feel as though I really am getting there.
As ever if you want to see and play the app is currently here:
lunch.ben.best
And the latest github commits here:
https://github.com/benjimouse/lunch/commit/c3474cd53bdfde23ec27db1ba5ac4d8a965b7d6e
Of course anything could happen when next I pick up the laptop...
My next few of steps are:
- Be able to mark steps as done or not
- Have steps belong to a "meal"
- Determine the start time based on a provided final time
- Have steps depend on other steps
After that we get into the real fun of making it pretty. I suspect that due to taking some nights off and spending time last night playing with adsense (which it appears is still waiting for a second verification). I'll not quite hit my target of tomorrow night for everything being "working but not pretty", but I'll be close (provided I get to play tomorrow night). Oh and I still haven't decided what "so you want to" topic I'll choose for tomorrow, I'll probably go with "so you want to build a website..."
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
Tuesday, 9 December 2014
was that really necessary...
I've continued down the path that I was taking and my latest bits are in github and on lunch.ben.best you can now create your own steps (you'll need to login first).
I have now done a load of bits with this and I'm hoping that what I've done so far will help me to get the app to a point where I can start turning it into the app that I'd like to be.
I've ended up with a few bits that aren't quite right and I'm looking forward to culling them. I'm going to ignore the previous statement of 'Later equals never' and go with a quote that I've heard before of 'make it work and then make it pretty'.
I'm pretty sure that what I'm going to do now is get to a stage where most things were working but the layout is wrong (probably end up with the add new step starting on a new 'page' for example).
If I can keep working at the rate I have been I hope to be at that stage by next Wednesday (but we'll see this is for fun, not work after all). If I do manage that then I can start looking at where I can get to by Christmas.
I'm really enjoying this, but think that I might have bitten off a bit more than I can chew, we'll see. The DNS for ben.best is still not working, I'm sure I'll get that fixed eventually, but it's not there yet.
I have now done a load of bits with this and I'm hoping that what I've done so far will help me to get the app to a point where I can start turning it into the app that I'd like to be.
I've ended up with a few bits that aren't quite right and I'm looking forward to culling them. I'm going to ignore the previous statement of 'Later equals never' and go with a quote that I've heard before of 'make it work and then make it pretty'.
I'm pretty sure that what I'm going to do now is get to a stage where most things were working but the layout is wrong (probably end up with the add new step starting on a new 'page' for example).
If I can keep working at the rate I have been I hope to be at that stage by next Wednesday (but we'll see this is for fun, not work after all). If I do manage that then I can start looking at where I can get to by Christmas.
I'm really enjoying this, but think that I might have bitten off a bit more than I can chew, we'll see. The DNS for ben.best is still not working, I'm sure I'll get that fixed eventually, but it's not there yet.
Sunday, 30 November 2014
playing with meteor some more...
Continuing with the playing with meteor.
I've now deployed where I am to http://benslunch.meteor.com/ I had a bit of a problem with this as when you deploy to meteor you need you username. When you login on the website you use your email address, however when deploying you need your "username" something I set up about a year ago and haven't used much since. I couldn't remember or find it on the meteor.com website.
Eventually as is often the case stack overflow showed me the way.
It's slow going in between cinema trips (go and see Paddington, it's very good) and work, but I'm getting there and I'm really enjoying it. I continued with the clean code book last night (there's that pay me money link again) it's interesting but I don't think I'm quite getting it yet. I've also kept the github repo up to date if anyone is interested.
I've ended up creating a helper function in javascript (in the step_item.js file) that I'm really not happy with. It works and so I'll keep it there for now with an eye to refactoring later. There's a couple of ways I am currently thinking of doing that: Putting it into a global client scope or putting the logic into the template. I'm not over the moon about either of those and I'm hoping as I continue with the tutorial book (discovermeteor.com) I'll find a better solution.
I know that meteor does allow me to run unit tests, but I've not got to that point in the book. If I'm still getting frustrated with the code clean book I'll start to skip ahead. At the moment I'm doing this project for fun so I'm doing the fun bits, I'm a little concerned that I'm going to spend a fair chunk of time writing unit tests for existing code, something that I have depressing experience of and am not really looking forward to.
I've now deployed where I am to http://benslunch.meteor.com/ I had a bit of a problem with this as when you deploy to meteor you need you username. When you login on the website you use your email address, however when deploying you need your "username" something I set up about a year ago and haven't used much since. I couldn't remember or find it on the meteor.com website.
Eventually as is often the case stack overflow showed me the way.
It's slow going in between cinema trips (go and see Paddington, it's very good) and work, but I'm getting there and I'm really enjoying it. I continued with the clean code book last night (there's that pay me money link again) it's interesting but I don't think I'm quite getting it yet. I've also kept the github repo up to date if anyone is interested.
I've ended up creating a helper function in javascript (in the step_item.js file) that I'm really not happy with. It works and so I'll keep it there for now with an eye to refactoring later. There's a couple of ways I am currently thinking of doing that: Putting it into a global client scope or putting the logic into the template. I'm not over the moon about either of those and I'm hoping as I continue with the tutorial book (discovermeteor.com) I'll find a better solution.
I know that meteor does allow me to run unit tests, but I've not got to that point in the book. If I'm still getting frustrated with the code clean book I'll start to skip ahead. At the moment I'm doing this project for fun so I'm doing the fun bits, I'm a little concerned that I'm going to spend a fair chunk of time writing unit tests for existing code, something that I have depressing experience of and am not really looking forward to.
Saturday, 29 November 2014
starting to build an app
I've started to go back through the meteor book it really is very good. I've previously found a few youtube videos and some other bits. The book is great and seems to have gone in a lot better. I'll have to re-visit the project I worked on previously as I feel I'm now a lot clearer with how this works.
If anyone is interested the github repo is here: https://github.com/benjimouse/lunch I'll sort out that a deploy location at meteor later.
I've also started playing with some user stories if you're interested they're here: https://docs.google.com/spreadsheets/d/1x3Gjh8icQMLOkkIdD7wr8Z9Jxk8G_Kv5V9cmlaiAacg/edit?usp=sharing I spent longer looking for the cards (that I'm sure are somewhere in the house) than I did writing the stories.
It's been a fun evening writing some code or at least copying it and getting it going.
If anyone is interested the github repo is here: https://github.com/benjimouse/lunch I'll sort out that a deploy location at meteor later.
I've also started playing with some user stories if you're interested they're here: https://docs.google.com/spreadsheets/d/1x3Gjh8icQMLOkkIdD7wr8Z9Jxk8G_Kv5V9cmlaiAacg/edit?usp=sharing I spent longer looking for the cards (that I'm sure are somewhere in the house) than I did writing the stories.
It's been a fun evening writing some code or at least copying it and getting it going.
Subscribe to:
Posts (Atom)