|
ymgve posted:Personally, I'd use 4999-01-01 instead. So even if someone for some reason tries to add dates together, it still won't overflow. As opposed to the well-defined behavior you'd get otherwise?
|
# ? Feb 5, 2013 04:25 |
|
|
# ? Jun 5, 2024 05:21 |
|
Flobbster posted:I'm working on a Rails app right now where having well-defined infinity values instead of null would be great. Assignments in the database have three dates associated with them: opens_at, due_at, and closes_at. It would be great if opens_at could default to "the beginning of time" and due_at/closes_at could default to "the end of time" for assignments that should remain accessible for ever. My old university's self service system used to spit out pages with phrases like "Valid from 2006-05-12 to The End of Time." It was quite amusing and I assume a result of an underlying system with values like that defined.
|
# ? Feb 5, 2013 06:44 |
|
ohgodwhat posted:But what if they try to add three or more of them together???
|
# ? Feb 5, 2013 08:21 |
|
Flobbster posted:I'm working on a Rails app right now where having well-defined infinity values instead of null would be great. Assignments in the database have three dates associated with them: opens_at, due_at, and closes_at. It would be great if opens_at could default to "the beginning of time" and due_at/closes_at could default to "the end of time" for assignments that should remain accessible for ever. If you use Sequel you can deal with infinite dates pretty easy. Also sequel owns in general. https://github.com/jeremyevans/sequel/blob/master/spec/adapters/postgres_spec.rb#L466-L482
|
# ? Feb 5, 2013 08:33 |
|
Pardot posted:If you use Sequel you can deal with infinite dates pretty easy. Also sequel owns in general. https://github.com/jeremyevans/sequel/blob/master/spec/adapters/postgres_spec.rb#L466-L482 I was trying to avoid mentioning the shame that I'm using MySQL for this, not Postgres
|
# ? Feb 5, 2013 12:21 |
|
Has anybody else ran into people using Windows .INI file format for everything? I can't be the only one.
|
# ? Feb 5, 2013 20:25 |
|
Rocko Bonaparte posted:Has anybody else ran into people using Windows .INI file format for everything? I can't be the only one. I see a lot of Java .properties files used for everything which are pretty similar.
|
# ? Feb 5, 2013 20:30 |
|
Pardot posted:If you use Sequel you can deal with infinite dates pretty easy. Also sequel owns in general. https://github.com/jeremyevans/sequel/blob/master/spec/adapters/postgres_spec.rb#L466-L482 Sequel owns so much. It's one of the few things that makes me miss programming in Ruby. Rails used to be one of those things, but then... omakase.
|
# ? Feb 5, 2013 20:50 |
|
I'm going to be honest, I have a soft spot for key=value file formats for configuration that you actually expect people to change by hand. XML can go gently caress itself. It'd be pretty dumb to use it for anything that isn't configuration, though.
|
# ? Feb 5, 2013 22:06 |
INI files are great for simple configuration stuff. For more complex configuration things like JSON or Yaml are better. (Never use XML.)
|
|
# ? Feb 5, 2013 22:21 |
|
IMO, INI files are superior to JSON and YAML for end-user editable config files as it's harder for the user to create a syntax error. Really though, as long as your parser wasn't done by an ~omakase chef~ who serves pufferfish with the liver left in,
|
# ? Feb 5, 2013 22:52 |
|
WHOIS John Galt posted:Rails used to be one of those things, but then... omakase. What is it that makes people feel this way? When I started up I glanced at Ruby but ended up settling with Python. What on earth are they talking about when they say omakase, I read the article but what is it exactly that has made the community so repellent for some, too opinionated, too resistant to change?
|
# ? Feb 5, 2013 23:06 |
"Omakase" in the context of Japanese restaurants is letting the chef decide the menu, "the chef knows best". In other words, "the Rails way or the highway." (Not everything is suited to be transported by train! Except Rails is much less flexible than that comparison would let you think.)
|
|
# ? Feb 5, 2013 23:22 |
|
Maluco Marinero posted:What is it that makes people feel this way? When I started up I glanced at Ruby but ended up settling with Python. What on earth are they talking about when they say omakase, I read the article but what is it exactly that has made the community so repellent for some, too opinionated, too resistant to change? For me, it's the smug superiority and pretentious insistence from the top that they know what's best that puts me off. I quote from DHH's omakase post: quote:Rails is not that. Rails is omakase. A team of chefs picked out the ingredients, designed the APIs, and arranged the order of consumption on your behalf according to their idea of what would make for a tasty full-stack framework. The menu can be both personal and quirky. It isn't designed to appeal to the taste of everyone, everywhere. emphasis mine: quote:This rubs some people the wrong way. "But my opinion is as valid as yours!". No, really, it's not. Your opinion is valid for you, but most certainly not for the menu I've designed in this restaurant. The power you always have is to vote with your feet. If most things on the menu disgust you, what on earth are you still doing at the table? The door is right over there, try not to slam it on your way out. Basically "If you don't agree, . We don't care about you." Python is way more welcoming than that, and from my time on a bay area mailing list for Python (BayPiggies if anyone's familiar), far more accepting of new ideas and dumb questions instead of posturing for credibility in whatever thing they claim to be experts at. Yehuda Katz also spoke at my college and I had the opportunity to talk with him a bit and found his tendency towards arrogance unpleasant. Some would say that their arrogance is deserved, and certainly they don't encompass the Ruby community, but they sure as hell represent it.
|
# ? Feb 5, 2013 23:23 |
|
Maluco Marinero posted:What is it that makes people feel this way? When I started up I glanced at Ruby but ended up settling with Python. What on earth are they talking about when they say omakase, I read the article but what is it exactly that has made the community so repellent for some, too opinionated, too resistant to change? The community has a high level of ego and drama. People like Zed Shaw, David Hansson, even _why who draws cartoons and posts in riddles. It all seems so self-absorbed.
|
# ? Feb 5, 2013 23:37 |
|
Toady posted:The community has a high level of ego and drama. People like Zed Shaw, David Hansson, even _why who draws cartoons and posts in riddles. It all seems so self-absorbed. It is. There are people like this everywhere, and I can't stand them. Unfortunately, in this community, they're all the most important people, and it's impossible to avoid them. So gently caress it.
|
# ? Feb 6, 2013 01:19 |
|
The funniest thing about the omakase post is that it isn't even true. The "prime" stack is more popular with most experienced Rails devs these days, and very few projects stick with entirely the default stack.
|
# ? Feb 6, 2013 01:32 |
|
We are all customers at Dennys.
|
# ? Feb 6, 2013 02:01 |
|
Strong Sauce posted:We are all customers at Dennys. gently caress that, I'm a customer at that poorly run cafe which makes really tasty, healthy food, and they encourage you to pick your own ingredients, but half the time they're out of season. Also the menu is several years out of date. Sure, the service is lovely, half the time you can't even get a basic sandwich, and no-one is able to tell you how you're meant to order (you're meant to just know already), but I still love it. It's how the type of cafe I grew up with has always run.
|
# ? Feb 6, 2013 02:14 |
|
Personally I like to eat at mcdonalds except half the time there's no electricity, I can always hear a baby crying from somewhere even if the restaurant is completely empty, and one time I ordered fries and got half of a human head instead actually no gently caress mcdonalds
|
# ? Feb 6, 2013 02:52 |
|
bucketmouse posted:Personally I like to eat at mcdonalds C'mon now. McDonalds is pretty awful, but now you're just being mean.
|
# ? Feb 6, 2013 03:08 |
|
I used to work on a team where my coworkers would try to take us all to eat at a place where the menu is in hieroglyphics, but understanding it is moot because no matter what you order, the food is spoiled.
|
# ? Feb 6, 2013 04:24 |
|
Plorkyeran posted:The funniest thing about the omakase post is that it isn't even true. The "prime" stack is more popular with most experienced Rails devs these days, and very few projects stick with entirely the default stack. Thesoro fucked around with this message at 04:57 on Feb 6, 2013 |
# ? Feb 6, 2013 04:53 |
|
How do these Rails guys write something like the Omasake post and go "hm, yeah, that's a worthwhile article that I should post on the internet"
|
# ? Feb 6, 2013 05:41 |
|
Because it gets upvotes on Hacker News.
|
# ? Feb 6, 2013 05:49 |
|
pseudorandom name posted:Because it gets upvotes on Hacker News. But that's the only valid public forum! THE ONLY VALID ONE!
|
# ? Feb 6, 2013 06:56 |
|
Not for long, Jeff Atwood is poised to change the world with his revolutionary new forum software, Discourse!
|
# ? Feb 6, 2013 06:59 |
|
kitten smoothie posted:I used to work on a team where my coworkers would try to take us all to eat at a place where the menu is in hieroglyphics, but understanding it is moot because no matter what you order, the food is spoiled. I've heard of people who eat their own feces and enjoy it.
|
# ? Feb 6, 2013 07:32 |
|
pseudorandom name posted:Not for long, Jeff Atwood is poised to change the world with his revolutionary new forum software, Discourse! I can't wait to see the insightful, high level exploratory articles that come out of this effort like "A Little Known SQL Feature: The Outer Join" and "What ARE Css Selectors?"
|
# ? Feb 6, 2013 07:52 |
|
I take it you missed it when he showed up in SHSC and later YOSPOS to ask what makes a good forum, and then proceeded to ignore everything anyone had to say?
|
# ? Feb 6, 2013 08:00 |
|
b0lt posted:I've heard of people who eat their own feces and enjoy it.
|
# ? Feb 6, 2013 08:10 |
|
pseudorandom name posted:I take it you missed it when he showed up in SHSC and later YOSPOS to ask what makes a good forum, and then proceeded to ignore everything anyone had to say? Wait, YOSPOS? Seriously?
|
# ? Feb 6, 2013 08:54 |
|
het posted:Wow, uh, that's impressive. "Pipelines is our internal and proprietary web development platform -- written on top of Perl, of course. Call it a template language if you must, but basically it automates away 90% of typical web development -- connecting to the database, user logins, security, user preferences, et cetera. It also throws umbrella features over everything. It's really cool. Code repositories and version control are gone. We work on live sites (Pipelines protects us from stupidity), never document code (it's legible, that's the point), and focus on the client's business requirements. We sell them the flexibility upon which they depend." Holy poo poo. Hahaha.
|
# ? Feb 6, 2013 09:04 |
|
For two years I frequented a restaurant serving raw sewage
|
# ? Feb 6, 2013 09:44 |
|
shrughes posted:Wait, YOSPOS? Seriously? Yep. He got a little sad when people told him he should have died in a car accident.
|
# ? Feb 6, 2013 09:51 |
|
Maluco Marinero posted:"Pipelines is our internal and proprietary web development platform -- written on top of Perl, of course. Call it a template language if you must, but basically it automates away 90% of typical web development -- connecting to the database, user logins, security, user preferences, et cetera. It also throws umbrella features over everything. It's really cool. Code repositories and version control are gone. We work on live sites (Pipelines protects us from stupidity), never document code (it's legible, that's the point), and focus on the client's business requirements. We sell them the flexibility upon which they depend." hahaohwow.jpg
|
# ? Feb 6, 2013 09:52 |
|
http://holophrasticenterprises.com/ "hm, why did this take so long to load? it's just a logo"
|
# ? Feb 6, 2013 10:35 |
|
Suspicious Dish posted:http://holophrasticenterprises.com/ This must be some kind of reverse golfing.
|
# ? Feb 6, 2013 11:33 |
|
Suspicious Dish posted:http://holophrasticenterprises.com/ Holy poo poo when I was a literal child I actually applied for a job with this place.
|
# ? Feb 6, 2013 14:20 |
|
|
# ? Jun 5, 2024 05:21 |
|
The joys od modern web development. At least they put it all in one file to save requests.
|
# ? Feb 6, 2013 14:43 |