Text
Did you know?
The operator === is commonly referred as Deep Equals in JavaScript. The only difference between double equals == and deep equals is that the former does not perform type comparison but in fact, converts the type of one of the operands to make their types same. Deep equals, on the other hand, returns false if both types are not the same.
4 notes
路
View notes
Photo

at Orem, Utah https://www.instagram.com/p/BpEq6pYl9pl/?utm_source=ig_tumblr_share&igshid=b9pmu1fbhwi8
2 notes
路
View notes
Photo

Spent yesterday with a very kind a dear friend installing this fixture that happens to switch on neutral. Which I learned for the the first time existed and that my house is wired that way and that is extremely dangerous. What a experience. This pic is expo facto and everything is labeled for the next poor shmuck that has to change this fixture. Thank you @darrellmcadams You are one of the finest friends I鈥檝e ever had! (at Orem, Utah) https://www.instagram.com/p/Bo7dFtelrur/?utm_source=ig_tumblr_share&igshid=93p4tucvxv7x
2 notes
路
View notes
Photo

#vegancat This Monsantos GMO Cat is the same exact thing as this: http://bit.ly/understandingWhatSomethingReallyIs People refuse to understand this completely. #holycow We are headed for a world of hurt! #goodluckeveryone (at Chili's Grill & Bar) https://www.instagram.com/p/Bo1drMfFWul/?utm_source=ig_tumblr_share&igshid=uzrrsb7plcnl
0 notes
Photo

There鈥檚 a dragon on my desk! https://www.instagram.com/p/Bn62u0dli6O/?utm_source=ig_tumblr_share&igshid=hd2npvh0zvgz
1 note
路
View note
Text
Installing Packages for Pycharm an impudence to the community!
Go to drop down menu that says PyCharm Community Edition
Click on Project:
In the list view you will see Project Interpreter
Click the version of Python you want to use.
You will see the module installed for PyCharm to use. Because it apparently doesn鈥檛 use the ones installed by Pip.
Click on the tiny plus sign on the lower left hand side of the list view with all the python modules.
User the search part to get the module you want.
Select it.
Click on the Install Package on the lower left had side of the of the form.
Wait for install.
Close the form by exiting out by clicking on the x on the upper left hand side of the form.
Your Pip module should now appear on your list view for Project Interpreter. This method of doing it sucks ass! They should leverage PIP and add the necessary config file (POM like) to the project. But this way the modules installed by PIP are not used. This is an impudence to the community!
This is the pathetic and stale link that I could get this information from and that I could make the necessary adjustments to actualized it because it was extremely stale. And hay if you have a more up to data one out there manage your content and remove the old one!
NOTE: I like using Pycharm this is why I鈥檓 so infuriated at their lack of falling back to the standards.聽 I should be able to say PIP Instal <thing_I_need> and done.聽
0 notes
Text
Back to Node now in earnest
I went from JS to Java to C# back to Java using Spring and with the advent Node.js I鈥檓 back to JS using Node for building a layer of my newest app services to which it seems to be particularly suited for. Having said that I have to take the training and see where it takes me. If I can wrap my head around non blocking. I mean to say I鈥檝e written call backs but still. I don鈥檛 have the confidence of the tacit experience that I will after the next few nights.
1 note
路
View note
Text
Ortho and Ridley Scott
My wife's orthopedic surgeon come to find out starts at 5 am and does 2 operations at a time. With ortho surgical PAs actually doing the work and they do this till about midnight on surgical days. It's seems this is the same way Ridley Scott directs films. These days scaling is more important than quality.
0 notes
Text
My heart and nodejs
At this point in my life I can鈥檛 give my heart to node.js. I can keep using JavaScript in the presentation layer but I don鈥檛 feel like I want write microservice with JavaScript. It鈥檚 just not the right tool for the things I鈥檓 trying to build. I can always change but python is my mistress to accomplish my systems goals. #nodejs #ML. #DataScience
0 notes
Text
Considering my approach to Deep Work
Men will not look at things as they really are, but as they wish them to be and are ruined. - Nicolo Machiavelli
0 notes
Text
Adventures in Re-examining unit tests.
Class and method names have been changed to protect the innocent and of course intellectual property:
We鈥檝e ported a project to a new version of the dev stack we use.
I鈥檝e been tasked re-examining the unit tests.
I came across this:
@Test public void onMessageExceptionTest() throws JMSException 聽{ // Arrange doThrow(new RuntimeException(<SOME_MESSAGE>)).when(someService).createServiceLog(eq(message), eq(""),eq("<SOME_TEXT"), eq(<BOOL>); // Act classUnderTest.methodCall(<SOME_PARAM>); // Assert // verify(logger).warning(eq(anyString()));
}
Notice the Assert is commented out.聽
I did a second take and figured out that this person was trying to make sure that a some message was sent through if a RunTimeException occurred. 聽Which felt strange and then I thought I wondering if this is was something about trying to game code coverage and at the same time I could not help but wonder how would I verify something like that. 聽What would the code look like?
This was what I came up with, note I鈥檓 still not sure of the value of the test but I wanted to see how I could test that the values was the expected value:
@Test public void onMessageExceptionTest() throws Exception 聽{ // Arrange doThrow(new RuntimeException(<SOME_MESSAGE>)).when(someService).createServiceLog(eq(message), eq(""),eq("<SOME_TEXT"), eq(<BOOL>); // Act 聽 聽 聽 聽try { 聽 聽 聽 聽 聽 聽classUnderTest.methodCall(<SOME_PARAM>); 聽 聽 聽 聽}catch (RuntimeException e){ 聽 聽 聽 聽// Assert 聽 聽 聽 聽 聽 聽Assert.assertEquals(<SOME_MESSAGE>, e.getMessage()); 聽 聽 聽 聽} }
1 note
路
View note
Text
I'm reading Orwell's 1984 for the first time. Just never got the chance. In the south of the United States of America specifically Pinellas and Hillsborough County where I obtain my preparatory education they just aren't that sophisticated and when I attended University I think they thought I had to have read it. So, I doing a little catch up with that for the diversion from my creative thought storms that the methylphenidate can only partly quiesce and only the myopic trans of the coding quiesce thusly allowing Orwell to masterfully hijack the remaining oscillation.
0 notes
Text
How I Feel Right Now
And I wriggle like a fish caught on dry land Struggle to avoid any help at hand I sink like a stone that's been thrown in the ocean My logic has drowned in a sea of emotion - Gordon Sumner
0 notes
Text
Nutella
I didn鈥檛 know how much I like toast with butter (real butter) and Nutella on top of the butter until this week. I guess it has to be a 36 hour day to try that out.
2 notes
路
View notes
Text
Nutella
I didn't know how much I like toast with butter (real butter) and Nutella on top of the butter until this week. I guess it has to be a 36 hour day to try that out.
2 notes
路
View notes