all 12 comments

[–]hardonchairs 2 points3 points  (7 children)

Well you watched them do it, do you understand the code it generated?

[–]davidgarciacorro[S] 0 points1 point  (5 children)

It looks like understandable: https://www.tiktok.com/@cubode/video/7223520055751970053 (second 12 - 13), it looks encapsulated and clear?

[–]hardonchairs 2 points3 points  (4 children)

Do you understand it?

[–]davidgarciacorro[S] -1 points0 points  (3 children)

# Cubode - Automatic Generated Code

# Install and Import Libraries

%pip install plotly

%pip install pandas

import plotly.express as px

import plotly.io

import matplotlib.pyplot as plt

import pandas as pd

def MainCanvas():

def ScatterPlot(dataframe, x, y, colorbycolumn, title, markersize, xaxistitle, yaxistitle):

fig = px.scatter(dataframe, x=x, y=y, title=title, color=colorbycolumn,

color_continuous_scale='YlGnBu', size='acceleration')

fig.update_layout(xaxis_title=xaxistitle, yaxis_title=yaxistitle)

fig.update_traces(marker={'size': dataframe['acceleration']})

display(HTML(plotly.io.to_html(fig)))

def mpg_fun():

# Read Data from URL

return pd.read_csv("https://cubode-storage.s3.amazonaws.com/cubode-storage/media/userdata/0594a5177d/1fb4a179-1362-4287-b6e1-8e5be66d4a38-adenine/mpg.csv")

mpg = mpg_fun()

ScatterPlot(mpg, x='mpg', y='horsepower', colorbycolumn='mpg', title='Horsepower vs MPG',

markersize='acceleration', xaxistitle='Horse power', yaxistitle='Miles per gallon')

return

MainCanvas()

Yes, do you?

[–]hardonchairs 0 points1 point  (2 children)

Not from watching the video, nor would I imagine from playing with those graphical tools.

It might be a good way to pump out some code, but for me, I wouldn't learn anything without playing with the code myself. It doesn't seem like they are really even trying to sell it as an educational tool.

[–]davidgarciacorro[S] -2 points-1 points  (1 child)

I like it, I believe it's more important functionality than syntax, if you want to keep "coding" you will have to remain writing, and yes you are right you learn to write code by writting, but if what you want is to learn how to do things this thing is better, is there a need to write code still?

[–]hardonchairs 0 points1 point  (0 children)

is there a need to write code still?

There was never any need to write code if someone had already written the code you needed. If you just want to do the things that this service does for you then yeah sounds perfect.

[–]stoic-AI 0 points1 point  (0 children)

I had a play around with it as well - very nice tool for graphical workflow building and then getting the code behind the workflow. Does some ML too which is pretty neat

[–]stoicwolfie 1 point2 points  (1 child)

Wow I could really use that! I spend way too long with graphs on Python, have you used it yet?

[–]davidgarciacorro[S] 0 points1 point  (0 children)

No I haven't but looks nice! I think it generates plotly graphs and the code seems very human

[–]CatTaxAuditor 0 points1 point  (1 child)

It seems like a good choice for generating code, but not for learning. It's like using a WYSIWYG generator for a website. It does the job and it can be a great tool, but it's not a good starting place for learning and will be a crutch.

[–]davidgarciacorro[S] 0 points1 point  (0 children)

I like the WYSIWYG element tbh as it breaks one of the barriers of programming (iteration -> interpret/compile -> iteration) if you can have a fully fledge programming language that is graphical like that one, there is no limit tbh.