Problem Can I improve its typing? Is there any other improvement or pythonic change that you would do? F = […]
Tag: meta-programming
A shim to make make Node GRPC bindings more JavaScript-y
Problem This function allows me to write this code const audioOutConfig = new AudioOutConfig(); audioOutConfig.setSampleRateHertz(16000); audioOutConfig.setEncoding(AudioOutConfig.Encoding.LINEAR16); audioOutConfig.setVolumePercentage(100); as this code […]
Math Equation Solver
Problem I made this math script, where you enter an equation and it solves it for you. I was wondering […]
Field Can Be Made Readonly
Problem Here is my Field Can Be Made Readonly analyzer and quick fix. I would appreciate tips on how to […]
Climbing the Totem Pole – Local Variables Become Parameters
Problem Along with the Introduce Field refactoring, I wrote an Introduce Parameter refactoring. I actually wrote this refactoring first, but […]
Convert Procedure to Function
Problem My latest inspection for Rubberduck determines whether a procedure should be a function by checking whether it has a […]
Method to act on parameter or from iterable if not parameters are passed
Problem The scenario is as follows. The API of my program will allow the user to perform some method on […]
Mutable Named Tuple – or – Slotted Data Structure
Problem A question I answered on Stack Overflow asked for a mutable named tuple. The naive answer would probably tell […]
Simplifying Rails Validation [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]
Brainfuck Printer Generator
Problem Given a text, this program will output a Brainfuck program, that when executed will print the text back. Writing […]