There are lots of “rules” we must follow in object-oriented software development and the article The Genius of the Law of Demeter by Javadevguy summarizes how they are useful. From what I put together, it seems like the Law of Demeter took abstract concepts and basically put them into a universal set of rules for Object-Oriented code.
I thought that the law of demeter must be a big deal if someone decided to sit down and write a lengthy blog post about it. This content ended up being interesting as it tried to convince readers why they should obey this “law.” The Law of Demeter basically paves the way for what users can do to a given method. It is kind of like considering the restrictions or possibilities based on the method. One of the takeaways I got from this is how there is a lot of focus on communication between two objects.
The rules listed in the article are as follows–noting that it says “For all classes C, and for all methods M attached to C, all objects to which M sends a message must be”:
self (this in Java)
M’s argument objects
Instance variable objects of C
Objects created by M, or by functions or methods which M calls
Objects in global variables (static fields in Java)
Another useful takeaway I got from this article came from observing the code examples Javadevguy included; how Rule #1 covers that any method can be called on the current object. I also noted when there would be an instance where the law would prohibit something is not “sending a message” to any already existing object that is held in instance variables of other classes.
This will affect the way I continue to do work as an Object-Oriented developer. I mean, in life when you learn there is a more useful or structured way to help you achieve more effective results, you would want to try or follow it, right? For my future use, I will acknowledge (like other blogs and articles) that the Law of Demeter is less of a law and only a suggestion or a guideline.
Overall, I would say that the content has helped further solidified my understanding of some Object-Oriented coding concepts. I agree with the content as it is trying to help people become better developers or better understand the Law of Demeter in general.
After going out for so many Saturdays in a row, it feels weird to come home from a Saturday afternoon of working and shopping to a night in lounging in comfy clothes for once. There’s probably a special german word for this feeling, I just don’t know how to google it.
I was asked to attend an event recently and I was given flashbacks to how I always reacted when I found out there was an event for me to attend. I mean, I want to go, but at the same time I don’t know if I really do, you know? The chart I just discovered (above, from @introvertdoodles) will help me figure out whether I should go to things now! I’m always saying “yes!” to things excitedly and then it takes up my entire calendar and now I am going to try and focus spending my energy more carefully.
Every time I take a personality test or compared the sides, my results are definitely more extroverted than introverted because my energy comes from going out and about but I think I may have come to the point of getting burned out because of overloading this. It felt like so much was happening all at once like sensory overload combined with an inconsistent sleeping and eating schedule, I had almost no time for myself. I can’t wait to see what this year brings after being able to reflect on 2017 and trying to make changes.
Last week, I spent a few hours with friends in my kitchen baking and decorating cupcakes. I had expressed how much I missed making pretty cupcakes for school bake sales when I was in high school and we all wanted to bake again! Now that I’m in college, there are way less opportunities to host bake sales on campus…
Ask Red Robin if they sell their special seasoning
Looks like I totally missed something on my to do list once again! There was a Groupon deal for a Red Robin near us today and we decided to go for it and I was given the perfect opportunity to ask about their seasoning but nope, I forgot.
I actually vlogged about it today and will probably be compiling it with tomorrow’s vlog because we made plans to hang out again; tomorrow’s goal is to get some thrifted finds.
Stores we hit up: Sephora, Nordstrom Rack, Barnes & Noble (or as Nina would call it, Barney’s and Noble’s)
Do you see the pink backdrop in the feature photo? I spent $38 on it and I have no ragrets. (That was a reference to the movie We’re the Millers btw, it’s a hilarious movie that you should check out ft. Jennifer Anniston!)
Anyways, hey guys! It’s been a while since I last posted but now that my college winter break is approaching soon, I’ll have more time on my hands. I’m setting a goal of either vlogging or blogging (almost) daily.
I’ve OFFICIALLY bought my own domain name under my own name. I started thinking about how there are now more than a handful of Samantha Tran’s now who may or may not be considering a website and I had to get my hands on it for my future. (Sorry girls!)
This year I finally decided to buy a medium-sized Ban.do planner! Since I haven’t seen anyone else do a comparison between the Lilly Pulitzer and Ban.do ones, I thought this would be helpful to share prices, sizes, what’s inside, and which one is for you.
The medium Ban.do agenda is larger than the medium Lilly Pulitzer agenda.
They are the same thickness.
In terms of size, their thickness is about the same (see pic). Ban.do comes in a small non-spiral agenda and medium and large spiral agendas. Lilly Pulitzer agendas come in small, medium, large, and jumbo. Ban.do’s small non-spiral is equivalent to Lilly Pulitzer’s medium-size agenda.
INSIDES for each section of comparison pictures, I’m going to put the Ban.do (BD) picture before the Lilly Pulitzer (LP) one
opening the planner |right off the bat, you can see how LP tends to have a resort/vacation-related theme whereas BD is a bit more minimalistic and playful with the “secret code”
after the folder |BD has a place for you to put your name on your planner whereas LP doesn’t have a designated spot. The BD has 2 sheets of stickers and LP only has 1 in the one I have to show you but they now have 2 sheets this year. BD has a little letter and LP has a “wecome to PALM BEACH” part and a cute map of palm beach.
yearly/overview calendar |BD & LP both have two-year overview calendars and a “dates to remember” type of setup, the difference between the two is that LP has a year-long monthly spread twice in the planner, in the front where there are 12 pages back of back and then each month before the weekly spreads (this may have been removed from the 2016-17 edition though) and the BD only has one of each month.
special | LP has a section dedicated to travel planning and an address book, BD has neither one of these but their notes section(s) make up for it.
notes | If you use your planner to jot down notes and other random things a lot, the BD has about 5X the amount of pages dedicated to notes. BD has 2 pages of notes after every monthly overview (there are 17 months = 34 sheets/17 pages) and a section in the back with 18 more pages/9 sheets. LP has a section for notes in the front consisting of 10 pages/5 sheets.
monthly calendar |BD has literally color-blocked a few pages that correspond with their holidays list. They are both easy spreads to glance at.
weekly spread |BD is more bare-bones while LP has a patterned border and drawing that flows onto the page partially.
artwork |BD gets all-girl artists for each monthly spread while LP keeps their classic look each year, according to what I’ve heard so far. If you like things to stay the same, LP is for you, if you like “artsy” changes, BD is for you.
WHICH ONE IS BEST FOR YOU?
If you’re ready for something fancier than a free school-supplied agenda but don’t have enough time to commit to decorating, the Lilly Pulitzer agenda is for you. Each page comes with a nice designed border and sometimes there are little cartoon picture drawings.
If you like planners like the Erin Condren life planner where you can design and decorate your agenda as something more than just for assignments, then the ban.do agenda is definitely for you! It doesn’t have lines so you can keep the minimalist look or create your own.
Hey guys! This month I made my first book haul purchase 🙂 I usually just buy 1-2 books at a time from Amazon/Barnes & Noble/Target/etc. but BOOK OUTLET(.com) is my new go-to spot! If it weren’t for booktube, I would have never known this amazing site existed.
I went a little crazy and got eight books in total from both Book Outlet and Thriftbooks! Here is a YouTube Video where I do an unboxing and the second part is descriptions of the synopsises/books.