Open in app

Sign in

Write

Sign in

Harry Gogonis
Harry Gogonis

108 Followers

Home

About

Feb 23, 2018

Testing Go: Mocking Third Party Dependencies

In this article, we will explore how to write testable Go code. Often, we use external dependencies in our code and want to isolate those side effects during testing. In our example code, we will connect to a database: We want to test the Bar function but not have…

Programming

3 min read

Testing Go: Mocking Third Party Dependencies
Testing Go: Mocking Third Party Dependencies
Programming

3 min read


Published in

Frontend Weekly

·Dec 13, 2017

Why You Need to Normalize Redux Data

In my first Redux project, I made a huge mistake. I had data from an API that had deeply nested data. I simply added this data to a Redux store without normalizing the data. This lead to a lot of code bloat and performance issues. …

JavaScript

2 min read

Why You Need to Normalize Redux Data
Why You Need to Normalize Redux Data
JavaScript

2 min read


Aug 21, 2017

Symmetric Encryption in PHP

PHP has multiple implementations of symmetric encryption. If you are using mcrypt this library is deprecated in PHP 5.5.0 and removed in PHP 7.0.0. As of August 2017, the proper way of encrypting in PHP is to use openssl with AES-256-CBC mode. CTR mode is not currently implemented. Encryption Chose an encryption method and key As of…

Security

2 min read

Symmetric Encryption in PHP
Symmetric Encryption in PHP
Security

2 min read


Jul 11, 2017

Deploy a Node App To Firebase with Travis CI

Enable Travis CI for your repository Create a .travis.yml file in the root of your project 3. Install the firebase-cli tools yarn global add firebase-tools 4. Generate a Firebase login token firebase login:ci 5. Encrypt and add your firebase token to .travis.yml travis encrypt "YOUR_TOKEN_HERE" --add deploy.token 6. Commit and push.travis.yml to your repo

Continuous Integration

1 min read

Deploy a Node App To Firebase with Travis CI
Deploy a Node App To Firebase with Travis CI
Continuous Integration

1 min read


Jun 25, 2017

Convert an Immutable List of Maps into a Map of Maps

Sometimes we have data in a List that we want to key by some id const x = fromJS([ { id: '12345', n: 5 }, { id: '56789', n: 6 } ]); All we have to do is use the Map constructor const y = Immutable.Map(x.map(v => [v.get(‘id’), v])); And here is the output of y.toJS(): { '12345': { id: '12345', n: 5 }, '56789': { id: '56789', n: 6 } }

JavaScript

1 min read

JavaScript

1 min read


Dec 22, 2015

What happened to Apple’s hardware design in 2015?

Apple has seen incredible success by branding themselves as innovators in their product design. In general, I think Apple is still making relatively smart software design decisions and beautiful user interfaces. However, over the this year, Apple has made hardware design decisions that make absolutely no sense to me. …

Apple

4 min read

What happened to Apple’s hardware design in 2015?
What happened to Apple’s hardware design in 2015?
Apple

4 min read


Dec 16, 2015

My Top 10 Albums of 2015

Here’s is a quick list of what are my personal top 10 albums of 2015. Honorable Mentions Theres are some albums that I haven’t got the chance to fully listen to and digest, but I think would probably deserve a spot in the top 10. …

Music

4 min read

Music

4 min read

Harry Gogonis

Harry Gogonis

108 Followers

Full-stack Software Engineer http://hgogonis.me

Following
  • O'Reilly Media

    O'Reilly Media

  • UF Innovate

    UF Innovate

  • Raphael Mansuy

    Raphael Mansuy

  • Laurie Voss

    Laurie Voss

  • Kai Stinchcombe

    Kai Stinchcombe

See all (254)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams