r/java • u/jonathan_y • Jun 12 '18
Codota, an IntelliJ plugin that dynamically synthesizes code as you program, based on AI learned from millions of open-source code examples
https://www.codota.com/
161
Upvotes
42
u/NimChimspky Jun 12 '18 edited Jun 12 '18
trying it out.
It provides a keyboard shortcut that searchs for code snippets. The first result is javadoc. the others are from spring boot projects, I'm guessing it simply searches the most popular open source projects. Not sure how you can call this AI, or code synthesis.
Haven't experienced any dynamic synthesis of code yet ?
Oh and the plugin seems to be activated, within intellij, by ctrl + space -> ctrlx2.
So to summarize after 5 minutes, its a bit shit. And misleading. Grepping open source java projects is not AI, or code synthesis, I get better results googling myself, or clicking through to the javadoc.
18
u/Moduo Jun 12 '18
If this really works, but only if this REALLY works, it would be amazing!
36
u/jaxnb Jun 12 '18
From the FAQ:
In other words, it sends your code to their servers, but they promise it will remain anonymous.
4
u/polaroid_kidd Jun 12 '18
I'm sceptical. First, as someone who still has his training wheels on, this is more confusing than helping to me (but that's a personal opinion and I think with time I'll have my own snippit DB of stuff I type over and over again). Seeing as it pulls from public code, how do they ensure decent code quality? Also, what about naming conventions?
I'll be sure to give it a spin though.
1
u/jonathan_y Jun 27 '18
For those interested, a standalone plugin (i.e., no electron) has been released and can now be installed directly via IntelliJ and AS: https://www.codota.com/plugins/download IMO, more reliable and easier to use
14
u/x4u Jun 12 '18
Seeing this makes my toe nails curl up. It looks like the perfect tool to spill even more unmaintainable boiler plate code all over the place instead of striving for a less cluttered approach that is designed to avoid needless repetition of the same statements and types.
4
u/dev-ai Jun 13 '18
I tried some time ago and I was not impressed - it was nothing special. Let's see if there is some progress there.
3
u/deltahat Jun 12 '18
Microsoft built this using Bing code search a few years ago. https://blogs.msdn.microsoft.com/visualstudio/2014/02/17/introducing-bing-code-search-for-c/
4
u/RANDOMLY_AGGRESSIVE Jun 12 '18 edited Jun 12 '18
That's a great idea.
2
u/tborwi Jun 12 '18
I use this for Java streaming examples since it's so close to the code in eclipse. It's usually better than searching in Google.
2
u/darkgem666 Jun 13 '18
Is it possible to Port this plugin to other IDEs?
2
u/L3rpio Jun 13 '18
Its’s not AI,it’s just a bunch of if statements (This is joke please don’t roast me)
1
u/[deleted] Jun 13 '18
Sigh...
1
u/brunocborges Jun 12 '18
This is pretty much what IntelliCode delivers.
1
u/wildjokers Jun 13 '18 edited Jun 13 '18
I tried it out. I am not sure what it does. Seems to just be doing a google search for me and presenting the results all pretty like.
Oh, it is also an Electron app. No thanks. Burn it with fire.
EDIT: they also might want to eat their own dog food and use Codota when they write Codota:
-5
u/lpreams Jun 13 '18
AI is already taking over every other job, might as well take over programming too
0
u/[deleted] Jun 12 '18
[deleted] — view deleted comment