Giter Site home page Giter Site logo

hyke's Introduction

How would you improve this code?

This is a real, in-use example from our codebase that regularly sees edits... or at least it was at one point in time. It contains some known flaws and less than optimal patterns. It could really use a good refactoring. How would you improve this code? What would you do differently? How would you test this sample? What else would you need to test?

Submit a ZIP file containing:

  • A source control repo of your preference containing incremental commits.
  • Starting with the sample code prior to your refactor.
  • Whatever tests make sense to support the original and your refactor, assuming there is no test coverage currently.
  • Explanations of why you made the refactors that you did and what you omitted and why.

Be prepared to present and discuss your decisions!

We'll conduct a mock code review to discuss your proposed refactor. Explain your reasoning, the strategies you employed, and the tradeoffs you considered. There are lots of opportunities for improvement, possibly more than anyone could tackle in the time allotted, and there are pieces of context missing from the example. Such is life.

Rather than grading you on your level of completion, this exercise is designed to:

  • Provide a real-world example of what kind of work you can accomplish, not a contrived algorithmic example or toy project from scratch.
  • Judge how you deal with ambiguity, missing context, and balancing tradeoffs and your experience with making incremental progress.
  • Provide you a glimpse of some of the real work inside the codebase.
  • Help us understand the technical value you can bring to the team.

Disclaimer: None of your code will be used for anything other than this discussion.

hyke's People

Contributors

texasrut avatar brutledge-eb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.