I have a new friend on Linkedin, a Googler named Jon Youshaei. This is his latest post that appeared in my Linkedin feed and really got me thinking about creativity and imitation:
0 Comments
I'm super excited right now. It's Saturday morning of memorial day weekend right, and yesterday I had an interview with a rapid growing music-related tech company. They have a really awesome office in the Chelsea market area of New York City. Everyone has a huge iMac at their desk along with a Macbook Pro (well you can choose but it seems like 99% of people prefer mac there). Oh by they way, your desk is a standing desk with power controls to adjust it up or down. As an Angular developer you get to use WebStorm (I'm assuming I would, the interviewer used IntelliJ which is basically just a more features / languages version of WebStorm). Tons of free snack, drinks, and a pretty cool espresso machine that I got a chance to use, a cool outdoor terrace, and ping pong tables all made it this seem like a surreal workplace. I even saw a little nook that had a Nintendo 64 set up with Goldeneye in it! But this post isn't about how great it would be to work at this company; it's about how the front-end teams of today and tomorrow can use principles from the Java era to craft seemingly bulletproof code. One of my favorite bloggers, Seth Godin, is an author and entrepreneurship coach who emphasizes making quality products that people want over mindless "marketing" tactics to get customers. This is one of his favorite quotes:
The Page Object Model pattern was a thing long before Protractor and even Testacular were ever created. POM is a design pattern for Selenium WebDriver, and it is basically a way to structure your e2e test code so that it is more maintainable, readable, and reusable. In Protractor, we code in JavaScript, but what we are doing is very similar to the code of various WebDriver languages; selecting things from the DOM. This DOM selection code comes up quite a lot, and the POM allows you to define variables in another file so they would only need to be changed in at most one place. Let's take a look at an example of protractor tests without the POM:
This is an article I wrote for LinkedIn. You can find the original post here:
https://www.linkedin.com/pulse/unit-testing-user-whats-more-important-jim-lynch?trk=prof-post |
AuthorThe posts on this site are written and maintained by Jim Lynch. About Jim...
Categories
All
Archives
March 2023
|