|
kedo posted:
That was the conclusion on HN a few days ago when it was posted.
|
# ? Jul 18, 2013 06:41 |
|
|
# ? Apr 18, 2024 21:42 |
|
hayden. posted:Another CodeIgniter question. It's a simple to-do list app, and I have pages for viewing tasks, editing a task, and creating a task. "It depends" A pattern I use frequently is a single edit/create view (since they are the same thing, really... one just happens to be editing something that's not in the DB yet) and a detail view. As with anything, there are exceptions based on use case (i.e lots of required info on create that you cannot later edit might lead you to separate 'create' and 'edit') but having two Views for that is how I would personally do that. What you described is: 1. getting a list of tasks 2. Presenting a list of tasks 3. getting data for one task 4. presenting single task data in an editable form 5. presenting an empty form for single task creation 6. handling user input for an existing task 7. handling user input for a new task 1, 3, 6, and 7 are "Controller Things" 2, 4, 5 are "View Things" 4 & 5 are so similar they probably are the same thing. 6 & 7 are so similar they probably are the same thing. The question then is are there three controller things, two, or one? Two Views seem "obvious" here (list presentation and create/ edit) so you're left with how to break up controllers. I'd probably go with two, one for the collection, one for handling individual Task stuff, but there are arguments for other solutions. Also, if you want to read up on object-oriented design and how to structure applications, the book Practical Object-Oriented Design in Ruby: An Agile Primer is astoundingly good. Don't let the 'Ruby' in the title worry you; it just happens to be the language the examples are in, but if you've never programmed in Ruby before (like me) the syntax is so simple and the explanation so good (and there's not really all that much *code* in the book) that it's not a concern. I really can't recommend that book enough no matter what you are coding in.
|
# ? Jul 18, 2013 17:00 |
|
Thanks a bunch Lumpy. I'll give that book a look. I will probably need clarification soon but I'm too burned out at the moment to keep thinking about it.
|
# ? Jul 19, 2013 03:28 |
|
What's a good way to write out a software spec for a webapp? I've written out the relevant parts out of IEEE830 but there's probably a better way to do it. I'm going to outsource some coding locally and would like something easily understandable to show potential contractors. Should I just write out url routes and describe what they are supposed to do?
|
# ? Jul 19, 2013 14:06 |
|
Wow what a beautiful op. I just got a job on a graduate scheme for a web development firm, total career change for me. Just out of interest, why no SQL mention? Is this more of a front end thread or may I ask whatever web development related here?
|
# ? Jul 19, 2013 20:49 |
|
jiggerypokery posted:Wow what a beautiful op. I just got a job on a graduate scheme for a web development firm, total career change for me. Just out of interest, why no SQL mention? Is this more of a front end thread or may I ask whatever web development related here? There's actually an entire thread dedicated to SQL, hence the reason why we're not talking about it much here. But you can of course try asking anyways!
|
# ? Jul 19, 2013 21:02 |
|
Looks like I get to work with a restaurant to replace their old site, and they want some kind of reservation system. I could make it myself, but I would prefer to use an existing service in order to save time and potential headaches on my end. Anyone have a suggestion? Ideally it would have some sort of API. If you know of an amazing restaurant website feel free to share, I have a lot of creative freedom on this project. If it helps, it's a traditional indian / tandoori restaurant. Oh My Science fucked around with this message at 20:20 on Jul 22, 2013 |
# ? Jul 22, 2013 20:12 |
|
Oh My Science posted:Looks like I get to work with a restaurant to replace their old site, and they want some kind of reservation system. I could make it myself, but I would prefer to use an existing service in order to save time and potential headaches on my end. Anyone have a suggestion? Ideally it would have some sort of API. OpenTable and CityEats are the two most popular/widely used reservation systems. Sadly, as far as I'm aware neither have APIs. You just have to embed their little widgets.
|
# ? Jul 22, 2013 20:52 |
|
kedo posted:OpenTable and CityEats are the two most popular/widely used reservation systems. Sadly, as far as I'm aware neither have APIs. You just have to embed their little widgets. I just found seatme.com, looks like a compelling option after reading about their services. Check it out, let me know what you think.
|
# ? Jul 22, 2013 21:02 |
|
I'm putting together a dead simple landing page for a friend to serve as placeholder while he gets me some additional content. This is the first time I've tried to adapt a site to a mobile layout, and I'm hitting a puzzling roadblock. My goal is to expand the #container div to 100% width and height of the window in both portrait and landscape view, with all content centered. I currently have the body color set to brown just to distinguish it from the container. I've tried various things and the only thing that will expand the container div is using a specific pixel width. But that defeats the purpose of a fluid layout. There also seems to be a horizontal line in the body beneath the #container div. I have no idea where it's coming from. I'm testing using the Chrome browser on a Galaxy S3. I ran an iPhone emulator and the results were even worse. This is what I see on the S3: What am I doing wrong? Site: http://trailstrim.com/ Relevant CSS: code:
|
# ? Jul 23, 2013 02:42 |
|
me your dad posted:What am I doing wrong? I'm pretty sure the offending element is the img, try setting its width to a percentage when viewing in portrait or landscape mode. I even made a thing, http://mobilelanding.herokuapp.com/, which I think does exactly what you want minus any fancy styling. It uses the portrait and landscape media queries to target mobile devices. Note that it doesn't do anything when using your desktop browser.
|
# ? Jul 23, 2013 05:39 |
|
kedo posted:OpenTable and CityEats are the two most popular/widely used reservation systems. Sadly, as far as I'm aware neither have APIs. You just have to embed their little widgets. OpenTable is pretty much the industry standard, at least everywhere I've ever been. The sad part isn't the APIs, it's the exorbitant loving fees. I wish I'd come up with that poo poo, because they're literally making something like a dollar per diner reserved (yes, per diner, not per table), in addition to insane monthly fees. I have no idea how they maintain market share at that price, but they're certainly doing something right.
|
# ? Jul 23, 2013 06:54 |
|
PT6A posted:OpenTable is pretty much the industry standard ... Yup, I spent my day researching reservation services and OpenTable's prices are indeed insane. I'll for sure bring them up as an option but after reviewing seatme.com I think they are the better choice. $99 flat fee, no charge per confirmed registration, and their website / product doesn't look like poo poo.
|
# ? Jul 23, 2013 06:59 |
|
PT6A posted:OpenTable is pretty much the industry standard, at least everywhere I've ever been. The sad part isn't the APIs, it's the exorbitant loving fees. I wish I'd come up with that poo poo, because they're literally making something like a dollar per diner reserved (yes, per diner, not per table), in addition to insane monthly fees. I have no idea how they maintain market share at that price, but they're certainly doing something right. This is second hand from books and blogs but OpenTable basically set themselves up as a racket. They got in first, and set things up so they'd own the customers, not the restaurant. They've established a re-donkey-kong market share from that, and now essentially hold a lot of restaurants over a barrel because they have control over the customer details and points of contact. OpenTable is a pretty ironic name considering.
|
# ? Jul 23, 2013 07:41 |
|
Oh My Science posted:I'm pretty sure the offending element is the img, try setting its width to a percentage when viewing in portrait or landscape mode. Thanks - I used your media queries for the screen size and now things are looking better. But for some reason the img inside the #logo div won't center in portrait or landscape. And a weird thing - when I go from landscape to portrait, the phone doesn't recognize the media query and uses the default styles. A page refresh sets it back to the mobile css.
|
# ? Jul 23, 2013 12:04 |
|
To use margin: 0 auto on an <img> tag, you have to make it a block-level element. You could also just apply text-align: center to the #logo div, or in your case, the entire body tag, not just the elements containing text. You should also add max-width: 100% to the #logo img style, so this doesn't happen:
|
# ? Jul 23, 2013 13:46 |
|
What is everyone's thoughts on CDNs? Is there one people prefer over others if its worth it?
|
# ? Jul 23, 2013 14:18 |
|
Flaggy posted:What is everyone's thoughts on CDNs? Is there one people prefer over others if its worth it? Amazon S3 unless you just don't like their pricing structure. It's hard to argue with their infrastructure, no one else really compares. After that, maybe Rackspace. Oh My Science posted:I just found seatme.com, looks like a compelling option after reading about their services. Check it out, let me know what you think. That's pretty nifty, hadn't heard of it before! Looks like the main downside is that it's tied to Apple products and not every restaurant will want to change their entire system over from Micros, which is what probably 90% of restaurants use. However if your client is open to it, I say go for it. The few restaurant clients we get these days I usually push towards CityEats and it's certainly not a hard sell (mostly due to price). They also just have much nicer widgets.
|
# ? Jul 23, 2013 14:37 |
|
Amazon's pricing structure seems pretty reasonable, unless I am missing something.
|
# ? Jul 23, 2013 15:23 |
|
Flaggy posted:Amazon's pricing structure seems pretty reasonable, unless I am missing something. Nah, it's very reasonable. Some people just don't want to pay per GB and would rather have a standard monthly fee. I run into that problem with clients who have strict budgets and an intense desire to control costs.
|
# ? Jul 23, 2013 15:25 |
|
Seems some developers are working on a new web design app that will function more as a designer tool than a coding tool. They just posted a sneak peek of the app in action, starting from a blank canvas to the actual HTML and CSS output. It's called Macaw and it's looking really promising.
|
# ? Jul 23, 2013 16:31 |
|
cbirdsong posted:To use margin: 0 auto on an <img> tag, you have to make it a block-level element. You could also just apply text-align: center to the #logo div, or in your case, the entire body tag, not just the elements containing text. Thanks - I can't believe I didn't think to use text-align on the body. Regarding this problem: I set #logo img to max-width:100% and it's still exhibiting that behavior when I go from landscape to portait. From portrait view, I go to the site and it looks fine. I rotate to landscape and it looks fine. I rotate back to portait and it seems to ignore the media query, producing what is pictured above. The mobile version doesn't have the wood background or the border, and the body background is set to the slate color. Sorry to have so many stupid/annoying questions. I'm still pretty new to all this.
|
# ? Jul 23, 2013 16:34 |
|
me your dad posted:Thanks - I can't believe I didn't think to use text-align on the body. #logo has a static width of 450px which is allowing that image to break outside the borders of the design at small sizes. Do this: CSS code:
|
# ? Jul 23, 2013 17:11 |
|
Anyone run into a bug with Sublime Text2 where it doesn't save your files? I had that happen to me on Friday with a site. Made me switch back to Coda. =/
|
# ? Jul 23, 2013 17:28 |
|
me your dad posted:Sorry to have so many stupid/annoying questions. I'm still pretty new to all this. I threw the source code for my example up on github here. You will notice that I used text-align:center; and removed those extra divs which are unnecessary for such a simple design. I didn't notice any problems with the layout upon first load on a mobile device but you could always wrap the desktop styles in a separate media query.
|
# ? Jul 23, 2013 17:41 |
|
I'm more looking for some ideas on how to organize some information and less looking for critiques, so maybe this should go here instead of the super (un)popular critique thread? This is just early stages of a toy site I made and on which I was really just concerned with writing the backend, but currently I'm kinda stumped with how to organize the info that appears when you click any of the movie titles. Right now I have it all just kinda dumped in a Bootstrap well, but I'm not married to that idea. I just don't really have any ideas about how else to display it, and it looks kinda blah as is. Any ideas or sources of inspiration that you think would match up with the type of info I'm trying to display? http://www.trailerthingy.com/ password: imagoon
|
# ? Jul 23, 2013 17:45 |
|
How come when I have 4 divs with:code:
e: Thanks MonkeyMaker fuf fucked around with this message at 20:25 on Jul 23, 2013 |
# ? Jul 23, 2013 20:08 |
|
fuf posted:How come when I have 4 divs with: IE doesn't like 100%. Give them 24.9999999%
|
# ? Jul 23, 2013 20:12 |
|
Internet Explorer doesn't deal in absolutes!!! What are you, some sort of number nazi who expects 25 and 25 and 25 and 25 to add up to 100? Next you'll be telling me you want some sort of reliable box model.
|
# ? Jul 23, 2013 21:15 |
|
cheese eats mouse posted:Anyone run into a bug with Sublime Text2 where it doesn't save your files? I had that happen to me on Friday with a site. Made me switch back to Coda. =/ I haven't, but give it another try with this package enabled: https://github.com/joelpt/sublimetext-automatic-backups
|
# ? Jul 23, 2013 23:38 |
|
I'm having an odd problem with Firefox where it's having trouble with the nyroModal floating window. What makes it more frustrating is that the client is experiencing this problem, and not me, and I haven't been able to duplicate it. The floating window is meant to be a shopping cart. This is what is should look like approximately: That is, a nice little window floating over the greyed out background. This is how it works for me and everyone else I can test. The nyro call is pretty straightforward (despite having custom in the name this is a minified version of the most recent nyroModal, same with jquery.min.js): code:
The shopping cart doesn't 'float' over the page at all, it takes up the entire page. The white background is the contents of the modal being stretched to fill the entire screen. It's almost like the browser is rendering "add-to-cart.aspx" in the main window and ignoring all of the nyroModal directives. I >have< made it look like this, but to do so I disabled Javascript entirely. The customer claims they have javascript enabled, but are still having this problem. They are running FireFox 22 on Windows 7 32x Home Basic. So my questions are: - Anyone ran into this? I scoured the nyroModal github and google code areas and can't find someone having an equivalent problem. - Am I barking up the wrong tree by thinking it's a nyro problem at all? The behavior just seems to be that it's not popping the nyro modal when clicked, instead loading it in the main frame. Is there a way for someone to have configured a Firefox browser to cause this other than Javascript disabled? EDIT-Editing to say that nothing strange shows up in the development console, which is why I didn't post this in the jQuery thread. Scaramouche fucked around with this message at 00:40 on Jul 24, 2013 |
# ? Jul 24, 2013 00:13 |
|
substitute posted:I haven't, but give it another try with this package enabled: I'll try it tomorrow. Thanks!
|
# ? Jul 24, 2013 01:01 |
|
Scaramouche posted:I'm having an odd problem with Firefox where it's having trouble with the nyroModal floating window. What makes it more frustrating is that the client is experiencing this problem, and not me, and I haven't been able to duplicate it. The floating window is meant to be a shopping cart. Son of a @#$$#@@#$!@#!@#!!@##!@#@!. Some bright spark added another jquery script (1.4) definition to the master page when I wasn't looking. Guess it was a jquery problem after all.
|
# ? Jul 24, 2013 02:13 |
|
http://macaw.co/peek/ So this is loving impressive.
|
# ? Jul 24, 2013 03:50 |
|
Thermopyle posted:I'm more looking for some ideas on how to organize some information and less looking for critiques, so maybe this should go here instead of the super (un)popular critique thread? If you're planning on making it public, then I would organize it semantically. Maybe with the Movie schema? Maybe have a main trailer (hero class?) and then some related ones underneath as an aside.
|
# ? Jul 24, 2013 04:12 |
|
Thermopyle posted:I'm more looking for some ideas on how to organize some information and less looking for critiques... I think there are two things that stand out most to me. 1. You cant click on the entire row to expand the content, I found myself being stupid on an iPad having to click the link. 2. The expanded content looks out of place inside the .well, having a different color background than the title looks awkward. You also need more white space. I played around with bootstrap on codepen and came up with http://cdpn.io/rfgdJ. It addresses both issues. Please note the mock up is incredibly rough and that you may want to refine how I nested the rows if you choose to do something similar. Oh My Science fucked around with this message at 05:28 on Jul 24, 2013 |
# ? Jul 24, 2013 04:59 |
|
Transmogrifier posted:Seems some developers are working on a new web design app that will function more as a designer tool than a coding tool. They just posted a sneak peek of the app in action, starting from a blank canvas to the actual HTML and CSS output. It's called Macaw and it's looking really promising.
|
# ? Jul 24, 2013 05:58 |
|
Winter is Cuming posted:http://macaw.co/peek/ PHP code:
|
# ? Jul 24, 2013 06:05 |
|
Why is that happening?
|
# ? Jul 24, 2013 06:55 |
|
|
# ? Apr 18, 2024 21:42 |
|
Well, they have PHP code in a .html page and it's not being handled. The form still works if javascript is enabled since that takes over, but it's obviously broken without javascript enabled. Someone screwed up.
|
# ? Jul 24, 2013 07:37 |