Archive for August, 2010
SPoE Roles Vs. Classes
One thing I knew going into creating SPoE was that there were two types of users, Reviewers and Authors. Authors are essentially Reviewers with an expanded view. Since I’ll be using Spring and MVC, it made sense to make Reviewer a model class and Author a child class. Then I could simply add the functionality to Author as needed.
I’m starting to rethink that; Spring Security has the concept of Roles, which I’d originally planned on reserving for regular users and admins, but now I’m thinking that it might be a superficial distinction. Perhaps I’d be better off with the following:
- Person Model: Everyone who visits the site belongs to this model. There are no roles by default
- Reviewer Role: Anyone logged in would receive this role. can view snippets and
- Author Role: Anyone who has submitted a snippet would receive this role in addition to Reviewer role
- Moderator Role: Given to a select few to make sure that people are behaving. can remove snippets and critiques.
- Administrator Role: assigns moderators, bans users, etc.
Knowing now how spring security works, this seems the better option. Any thoughts?
Beta Reading and the Quest for Critiques.
I’ve written three books- not my cheesy guitar tab book, but three actual manuscripts. The problem I have is editing; I can’t seem to make it good enough to show to others. This is fairly common with authors (I’m told), so I’m not really surprised by it. One coping mechanism is to have a beta reader review parts of your work and give you feedback.
Jackie has been harping on me pretty hard to find a beta reader to review some of my work, which will hopefully give me the confidence to press on and get past the nine-month-long editor’s block.I finally broke down and had Jackie ask around for a beta reader (since she runs LiteraryEscapism, she knows the right people). From there I was directed to a site dedicated to providing manuscript critiques.
I tried to give it a go, but the flaws with the site quickly showed themselves; user accounts were created manually, usernames were incrementally created (i.e foobar12332), and separate basic auth was required with every manuscript you wanted to critique. The critique process was ugly, and afterwards I didn’t even get credit for the review I did (you have to trade reviews for critiques, like an old warez FTP ratio). There were enough things within the first 2 hours of using that site to convince me not to use it.
What bothered me most was that it was a good idea, but the implementation was horrible. Within minutes of using the site, I knew I could design better. This is honestly a fortunate turn of events; I’ve been looking for a project to learn java web development since that’s what I support during my day job. On top of that, the new place is deeply entrenched in agile methodology, which I’m only partially familiar with.
So my books have been (yet again) left by the wayside as I begin a new development project.
How Does my Garden Grow?
Not too great, to be honest. Some things grew great only to not produce, while others were surprisingly abundant. Starting from left to right, these are notes for myself for next year.
Parsley: Survived the winter only to be transplanted to a planter and die. Next year will keep it in the ground.
Chives: Gangbusters. more than I’ll ever eat. Will keep them around.
Cillantro: Seeded out too quickly, but produced well. I need to figure out a staggered growth approach for next year.
Jalapeno: Several plants, most grew very well. I made the mistake of interleaving rows with Broccoli- the jalapenos in between didn’t get enough light and are small.
Broccoli: Jury is still out. It’s much bigger than I thought and barely starting to produce- the first one is turning brown, leading me to think it either didn’t get enough water, or they’re all gonna go bad. Lot of wasted real estate.
Basil: Plenty grew in, don’t have a food processor for making pesto. can probably plant less next year.
Sage: Only one survived, haven’t used it. Sorta sickly. May not replant.
Oregano: Slowly but surely growing. Should be crazy growth next year.
Roma Tomatoes: Damn squirrels are stealing them, a few had bugs. Nothing salvaged. Need to cage from squirrels next year, otherwise don’t plant.
Green Beans: The surprise of the year, they came in fairly well. Enough once a week for 2 people. Next year we’ll plant a few more so we can have enough for everyone. Note that garden green beans are not vines, so don’t bother putting in cages.
Leaf Lettuce: Grew great, would be better if I ate salads. May try Iceberg next year since this was surprisingly tall and blocked much of the garden.
Carrots: Jury still out- can’t tell how well they grew until we harvest. Lettuce hid them, so I’m not sure they’ll be very big.
Corn: A travesty. Over 6 feet tall until the squirrels descended. Completely ruined. Don’t plant again at this address.
Georgia Onions: Jury still out; the one I did dig up early was expectedly small, but fairly tasty. Requires a lot of real estate for something that can only be harvested once.
Green/Red Peppers: Only two so far, but they turned out nice. May plant more next year. Good for fajitas.
Patio Tomatoes: Got half a dozen before the squirrels found them- I liked them quite a bit. Small and meaty. Need to protect them
Cucumbers: Only one has grown so far, and squirrels chewed it up. Probably won’t try next year.
Raspberries: Produced a lot in the spring, just an ugly bush now. Will keep them going.
Blueberries: Barely anything produced, nothing edible. Will give them one more year.
Stawberries: Need more real-estate. May try flowerbed out front.
Rosemary, Pumpkins, Watermellons, and cantaloupe didn’t take.
So what’s the plan for next year? This is what I’ve decided so far.
Salsa makings: Cilantro, Jalapenos, Onions, Garlic, Tomatoes
Fruit: Stawberries, Raspberries
Veggies: Green beans
Spices: Oregano, Basil, Chives, Parsley