CodesAway / CodesAway/DYCE

Have settings file with extension methods

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Allow user-defined extension method like templates so can saying things like `x is positive` where `x` is a BigDecimal and have it convert into code such `x.signum() > 0`

Essentially, create an additional method "isPositve" which inlines the logic. This way, can use existing speech to code functionality. For example `x is empty` will invoke `x.isEmpty()` for String and Collection since there's a method named isEmpty. Whereas, if `x` is a StringBuilder, there is no isEmpty method. However, an extension method could be defined so that the code becomes `x.length() == 0`

I could define some predefined extension methods and the user can add their own.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the existing template-based speech-to-code expansion and configuration handling, then determine how predefined and user-defined extension methods should be represented. Done means a settings mechanism supports examples such as `is positive` and `is empty`, including custom logic for types without the corresponding method.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.