Author

Josh Engroff Avatar

Josh Engroff

Latest articles

by

  • Python generators provide an elegant mechanism for handling iteration, particularly for large datasets where traditional approaches may be memory-intensive. Unlike standard functions that compute and return all values at once, generators produce values on demand through the yield statement, enabling efficient memory usage and creating new possibilities for data processing workflows. Generator Function Mechanics At their core, generator functions appear similar to regular functions but behave quite differently. The defining characteristic is the yield statement, which fundamentally alters the function’s execution model: When you call this function, it doesn’t execute immediately. Instead, it returns a generator object: This generator object…


  • , , ,

    Python Coding Interview Learning Path

    ·

    ·

    3 min read

    Introduction Most companies, when recruiting new software engineers, include at least one coding interview as part of their selection process. And why not? We’re software engineers, after all; writing (and reading) code is what we do.  Yet, even for the seasoned Pythonista, there is one coding interview that often feels disproportionately — and unnecessarily — stressful: the data structures and algorithms (DSA) interview.  Most of this stress arises from unfamiliarity and nothing else. When was the last time your boss, or the CEO, or anyone, asked you to calculate the nth number in a Fibonacci sequence or traverse a binary tree orimplement a hash table from scratch?…