Categories
Software development

“Kick the can down the road” driven development

Reading Time: 2 minutes

This is something I felt we were doing sometimes in the agile software development. It goes like this, we analyze a problem, and we come up with some sort of solution / architecture / design. But during implementation we realized we missed something, especially on the consideration of things like performance. We know we cannot work on the stories forever, so what do we do? We create a new “performance” story and put it in the backlog, meanwhile pushing the existing story forward. This is okay for one time but not every time, in my opinion.

Also, recall a code section in which sometimes people tend to overlook.

Those are scenarios are different

if(condition 1) { // do something 1

if(condition 2) { // do something 2

}

}

vs

if(if(condition 1) {) { // do something 1

}

if(if(condition 2) {) { // do something 2

}

PS: came across this tweet – “coding is 95% copying and pasting”. I think the author may said it in a joking tone. For me seriously I am guilty of this quite a bit in my career. Once I cloned (copied) the javascript code (framework) for a tree structure, and later I started to regret it. One reason I copied was I didn’t know how to properly use an Object Oriented approach there. Also during re-rewrite projects (hope you don’t have to work on those), sometimes there are quite a bit copy/paste as well. I understand sometimes there are valid reasons, e..g., if we just do a “life and shift” without intension to change any business logic. In practice though, there are usually room for improvement during rewrite.

Also, once a business analyst shot me an email shortly after I asked doing a DB update for a month end job. And that person quickly realized the reason for that update and retracted the email or the question. It still shows the sign of a not well organized place though. Believe me that’s not the most disorganized place I worked so far 🙂

Categories
gadgets Life Life Tips Software development

I decided to spend some money on office chair

Reading Time: 4 minutes

(11-06-2023) Design with Reach has some deals for the Herman Miller chairs. The website popup says 20% off (not sure if it can be stacked on the existing 25% off offer).

(09-25-2023) And now I realized I had an issue with the jeans. Googled it and it seems people were talking about it on Reddit. For now I am just going to use a seat cushion. Figured a seat cushion is probably cheaper than a pair of jeans (I have story for the jeans price too 🙂

(07-11-2023) Came across this one – again I am for #reuse #recycle and #reduce.

(06-19-2023) I changed 3 wheels out of 5, all out of necessity 🙂 || Separately, just came across this how Herman Miller tests its chair.

(06-11-2023) One of the wheels broke. I bought a replacement wheel set from Amazon and replaced it in one minute (btw, later on, I found the price is cheaper on eBay. Note this is not unusual, I mean the price difference). I saw a few choices for the wheels. and decided to go with the more expensive “Amazon’s Choice”. Here is a very short YouTube video explaining how to take out the old wheel and put in the new one. I also found there is a headrest for the Aeron chair (FB, used, $98 + $9 shipping); and it’s available on Amazon as well ($152). || Some day I will work a separate post on buying/owing the Herman Miller Aeron chair.

(Update 06-05-2023) I bought a used Herman Miller Aeron classic from an office that’s closed down, near where I live. I feel good about it so far. The other day I just realized this thing is heavy, about 48 pounds per Amazon. Btw, I found this PDF adjustment guide from the Herman Miller website too.

(Original 05-2023) The high-end office chair is not cheap, it costs more than $1,000. Let’s say a chair of $1,350 (note Haworth Fern is in that range), typical workers work 2,000 hours a year. Let’s say a typical worker sits 60% of the time, 1,200 hours sitting on a $1,350 chair. A dollar an-hour chair sitting cost. The chair lasts at least 10 years though. So it’s more like 10 cents an hour chair sitting cost.

Why is a chair important for office workers?

Weight problems, back problems, and other ergonomic chairs may help out. As explained by this YouTube video by Ahnestly (Dan Ahn) here. I don’t want to go much into detail here. I think for normal office workers (people who sit before the computer every day for a while), a good chair, a good posture, and even keyboarding, mouse/trackpad clicking/tapping are all important. Remember, your personal health is your responsibility. And I think standing desks could be a fad; see this Harvard Medical School article for reference. Wearing the Apple Watch (or other equivalent watches, that remind people to stand up and stretch a bit after sitting for a while), and standing up once in a while is the way to go.

Where to buy?

I see 2 (or 3) choices:

  1. Buy new (from the manufacturers or from retailers), usually via the website (e-commerce, such as Steelcase Leap at the manufacturer’s website, Steelcase Leap chair at Amazon, note the Amazon link here is my Amazon Associate link) nowadays. With today’s logistics, they could be shipped from the warehouse quickly, via UPS, FedEx or Amazon. The customer just needs to open the box and start to use it.
  2. Buy preowned. There are also “like new” such as this 3-month-old Haworth Fern asking for $900 (picture shown below), “refurbished” sometimes with warranty and buy used still in good condition. This is somewhat like buying a used car, we need to pay a bit more attention here. It seems nowadays CraigsList (sample search Steelcase chair on local CraigsList) and Facebook marketplace (sample search on FB for Herman Miller Aeron) are two popular places to look. || I think on coming Monday 05-22-2023 I am going to proceed with/check out this one on FB marketplace that’s very close to my home. Note like buying used cars, the prices for used office chairs vary, and again Ahnestly (Dan Ahn) explained it very well in one of his YT videos too: this one is specifically for Herman Miller Aeron (and I tried to follow his instructions when I checked out the chair). Btw, I also created a YouTube watchList for office chairs.

If one likes to have neck support (headrest)

From memory, it seems Steelcase Leap V2 (Amazon*; Steelcase) is a popular chair with headrest option.

The business of office furniture makers

It seems the manufacturers (mainly Haworth, Herman Miller, and Steelcase) do not have a business model like the iPhone. Typically people upgrade iPhones every 2, 3, or 4 years. Office chairs last more than 10 years.

Also, some knockoff products (e.g., this one on local Craigslist) may have an impact on the brand names (Haworth, Herman Miller, and Steelcase). What exactly is “equal to or better than Herman Miller Aeron Chair”, anyway? From the picture, the shape looks like Herman Miller Aeron Chair (picture shown below). It seems this person is doing it (selling used chairs) as a business.

It’s more a consumer win/manufacturer “did okay or lose a bit” kind of situation.

Danger zone

I have had some brief interactions with two manufacturers. In Spring Festival 2009, I visited Haworth for a business trip when I was working for Autodesk. Then recently I started looking into Steelcase stock ($SCS). I heard the Steelcase for 1st time probably back in 2009 when I asked Haworth folks who are the competitors. The two companies are close by, Haworth is in Holland MI, and Steelcase is HQ’ed at Grand Rapids, MI. When I visited Holland, the airplane is from STL to Grand Rapids (I recall it was an old MD DC airplane).

Investor Day presentation (webcast; PDF) for Steelcase 05-04-2023

Quick thoughts after doing office chair research

For Steelcase, a unique problem is its vast used inventory in the market, this is evident on the FB Marketplace and on CraigsList. It will take some time to digest those inventories that were a result of the pandemic (and work from home).

*Note the Amazon link is my Amazon Associates link. Your price will be the same, but I may earn a small commission if you click through the link and buy.

Categories
Software development

Production Incident

Reading Time: 2 minutes

(Update 01-07-2024) Was doing some hashtag#productionSupport this past week, for the most part. At one time, it reminded me once at the credit card company, we let the one (out of 6) node (server) running for 8+ hours during the maintenance window, before we brought the other 5 nodes back online. hashtag#theFun hashtag#withProduction hashtag#SRE

(Original 11-16-2022) Had a production incident recently after production deployment. I was not intimately familiar with the oracle index charge (drop) and impact on other apps (lack of visibility and lack of perf testing environment). It’s hard to prevent this sort of thing from happening but I think as developers we should learn from those mistakes and try to avoid similar mistakes in the future.

For production incidents, it’s best for the dev team (or production support team) to know before the customers call in: especially in the case of external customers. I recall at my immediate previous employer, during pandemic we had this “Screen and go” web app. One morning the app went down: it turns out to be the auto scaler issue. Another time the Twilio SMS were blocked by the carriers. We found out both via the customer service desk.

Technical Assessments

At the credit card company I worked at a while ago, we have this thing called technical assessments for Change. Change is usually a production deployment of code / infrastructure change. The author of the Change need to add the technical assessments of the impacted team, I recall in one change I had to include 16 external teams tech assessments. It took some time and effort for me to get their blessing. But the plus side of all this, if we did this for the mentioned incident above, the incident may not happen (if the impacted team did seriously evaluate potential impact to their apps).

Btw, I just realized I did not write a lot on production, other than this one.

Categories
Software development

Meet the Teachers

Reading Time: 2 minutes

Community night, open house, curriculum night,… the bottomline is, they are all “meet the teachers” night. It’s not as hard as “meet the parents” (I recall there was a movie with that name).

Because of pandemic, last few years, meet the teachers have mostly virtual or drive through, to avoid large crowd etc. And I certainly understand that. Now that it seems things are gradually back to normal, meet the teachers are in person again, which is cool or dare I say, better than the virtual or a few minutes “hey bye” at the parking lot etc.

I noticed Serenity 7th grade Spanish teacher’s new approach, she said instead of the kids memorizing the vocabulary: she removed as much constraints as possible and encourage kids to use the Spanish as much in the classroom as possible. In other words she allows the kids to make tense (past tense etc.) or grammar mistakes. I am familiar with the previous approach she mentioned, because that’s essentially how we learned English in our middle school when I was in China (1980s). In my middle school we wrote the English words everyday, as our counselor said that’s the only way we can remember the spelling. He said this is like a snowball, because on the 1st day we wrote the new words encountered during the 1st day, and then on the 2nd day we need to write both the 1st and 2nd day’s words, and so on. Pretty soon we will have a large sheet of paper. But sometimes we cheated, because we know the counselor wouldn’t examine each page carefully, and one crazy way I learned is one kid wrote via two pens at the same time, in other words, he wrote twice as much if we assume he could wrote as fast.

I think the social studies class is also fun. So instead of memorizing, she asked a lot questions, and encourage kids to research and discover knowledge. The most unusual class, at least I never had when I was in middle or high school, is the industrial technology class, it looks almost like a carpenter shop and it has lots of useful tools, for kids to make things like a wooden clock (I am guessing they buy the electrical quartz clock and battery and put it inside the frame). I also like the leniency policy in Math in which the kids got to retake tests to improve their scores.

The definition of core and elective sort of reminds me of similar categorization in my middle school. I like it here in general. In China during my days English was important course, in recent years, partially due to politics, English was downgraded in terms of importance. Time changes.

I noticed by walking back and forth the classrooms Serenity goes daily, I got half circle of my movement and exercise rings done 🙂

Last but not least, when we are done, I took bus again back to the high school parking lot. Our hard working bus drivers were still waiting and driving. Then I also realized it’s evening time and the teachers and administrators sacrificed their leisure and family time too.

Categories
Life Tips Software development Technology

App Store unauthorized charges

Reading Time: < 1 minute

In my old job at the credit card 💳 co. I did support for a while and once I spent about 2 hours giving cardholder about 1.3 cents worth of US dollar. Today the roles reversed. Btw, Serenity said she was proud of me (assuming she was complementing I was the cool 😎 guy).

What happened

I don’t check my email that’s associated with appleid frequently because I transitioned most emails out of that one. But on Monday August 15, I noticed something is wrong with my Apple Card as I saw the suspicious purchase: $7.97 for robux, in case you don’t play Roblox, robux is the virtual currency for Robox game. On Tuesday 8/16 I saw one more purchase: $12.98 total, $9.99 for weather – (this is quite scammy as I don’t recall I never bought its subscription), and $2.99 worth of robux.

How I handled it

I contacted Goldman Sachs customer service through the dispute button in the Apple card, and they gave me credit eventually. I also changed the password for the apple id and the email (enabled 2FA). I noticed some tips from Apple regarding kids apple store payment, requirement for password, etc. This is the Apple web page that explains a few ways we can tighten the in app purchase on the devices.

My thoughts

Overall I still prefer Apple music / fitness+ over Youtube Music. Compared to Youtube (owned by google), sound quality on Apple music is usually guaranteed, while some YT music has bad sound quality. Also Fitness+ with integrated music is better than Peloton outdoor.

I wrote a twitter thread on this, btw.

Categories
Software development

Oil, gas and cryptos

Reading Time: < 1 minute

First let me get the Cryptos out of the way.

https://twitter.com/TrungTPhan/status/1538270638179221505

Oil:

Categories
Software development

Brutal selling

Reading Time: < 1 minute

also

Btw, I sense the current market probably wiped out a lot of new retail investors (home gamers in Jim Cramer’s words), or many new Robinhood app users.

Last but not least, is this transitory?

https://twitter.com/WallStreetSilv/status/1536340362062700544
Categories
Software development

Topics in Mathematics With Applications in Finance

Reading Time: < 1 minute

Link to all videos; course overview page.

I saw the first video (Introduction, Financial Terms and Concepts) a while ago. Some background on instructor Dr. Jake Xia.

Portfolio Management (also by Jake Xia)

Categories
Software development

Weekend thoughts: what a market and apple fitness+

Reading Time: 2 minutes

The stock market continued its downward trend this past week, and on Friday, S&P 500 went down 20% from the beginning of the year, and it officially tested the bear market (20% down is a measurement of bear market). But, per other measures, such as Schiller PE, it’s 36 as of 04-01-2022 (may down a bit since then), and historically this PE is still quite high. Some people are expecting the giants such as Apple $APPL (I heard it’s 7% of S&P 500, and 13% of Nasdaq 100), and Microsoft $MSFT to fall, before the capitulation.

I don’t know. Predicting market is a fool’s game. Predicting individual stock’s near term performance is hard too. For Apple, in particular, it will experience some fall out from the manufacturing / logistics challenges in China (mainly around Shanghai zero covid extended lockdown), as well as weakened demand from Europe (war in Ukraine), China (again Covid policy and economy slowdown), and the US (rising gas price, and we saw the fallout from Target $TGT and Walmart $WMT earnings last week).

Apple Fitness+

I tried Apple Fitness+ the second time. As the old saying goes, second time is a charm. Plus this time I got Apple Music from the Apple One subscription as well. It works better for me when I tried “Time to Run”, and I picked the Charleston themed music and picture. I cancelled the Peloton sub recently, and I think I will likely stick to the Apple Fitness+: start with walk and run, and maybe expand to meditation and Yoga later on. Btw, talking about Yoga, I recall JCC (the J) will restart pool side Yoga on Saturday morning again: after 3 years due to pandemic in last 2 years.

Youtube Videos

I watched quite a bit of those last few weeks. Topic varies from Warren Buffett Berkshire Hathaway shareholder meetings over the years, to travel or city vlogs, and other business / investing related topics as well. I listened to some old pop songs I listened when I was in college too (陳淑樺 Sarah Chen; 梁靜茹 Fish Leong): sometimes YouTube will reminds me try YouTube music if the same playlist is available there, and potentially it could save me some data if I am on the cell phone data plan.

老范讲故事: I like this channel. Interestingly enough: first time I saw his video, he was talking about why Coca-Cola is more popular than Pepsi Cola during Shanghai lockdown. He is former developer (Borland), development relationship, investor relations (Cheetah Mobile), and VC. He is about my age.

Categories
Software development Technology

High profile high impact outages

Reading Time: < 1 minute

High profile or high impact outage or incidents are just a way of the life in modern internet, or public cloud. The key is to recover quickly from the incident, and learn from those incidents: post mortem analysis, or in some places they do root cause analysis or RCA, and in my personal opinion, RCA is usually useless exercise, both due to the political nature of scapegoating in large orgs, as well as there are usually some unique breakpoints in an incident.

FB

https://blog.cloudflare.com/october-2021-facebook-outage/ (written by Cloudflare, good)

https://www.theguardian.com/technology/2021/oct/05/facebook-outage-what-went-wrong-and-why-did-it-take-so-long-to-fix

Roblox

Below is written by Roblox, and it’s good.

https://blog.roblox.com/2022/01/roblox-return-to-service-10-28-10-31-2021/

AWS

https://www.thousandeyes.com/blog/aws-outage-analysis-december-15-2021

https://aws.amazon.com/message/12721/

Azure (Microsoft)

Slack

Salesforce

Zoom