jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.52k stars 748 forks source link

Minor request to increase blockify list limit in lists.js from 500 to say 2000 #2723

Open cymplecy opened 4 years ago

cymplecy commented 4 years ago

When doing an Advent Of Code, I just wanted to split a 900 line text data source into a list by splitting and blockifying it. But then I found there was a limit of 500

Could you increase that please?

As an early Christmas present? :)

jmoenig commented 4 years ago

hmm... if you need more than 500 inputs it's probably a really good idea not to encode it as blocks but as ... lists?

cymplecy commented 4 years ago

Its basically just to make the project look nicer - I can get rid of the long split reporter and I'll be able to see last data item without scrolling 👍 image

jmoenig commented 4 years ago

but why don't you just use a variable to store the big string inside the project then?

cymplecy commented 4 years ago

I did not mean to interrupt you with a long discussion on my bad programming approach

It was just a minor request

I've already done it in my fork but I thought it might be useful for someone else in future

jmoenig commented 4 years ago

See, it's really extremely inefficient to store long lists as blocks inside a project. Much better to just store the data!

cymplecy commented 4 years ago

OK :)

jguille2 commented 4 years ago

Hi @cymplecy,

I agree with Jens that maybe it is not the best approach...

But, if you need this, you can use the "append" block and have the same behavior you are requesting. Just blockify "smaller" packs, and appending these lists you will get the same visual representation.

Joan

jmoenig commented 4 years ago

excellent idea and great hint, Joan!

cymplecy commented 4 years ago

This is not about how to do something #LOL

It is a simple, minor request to increase an arbitrary limit #smile

If the limit wasn't there or @jens had made it 1000, I would never even have found out about it - I would have just carried on doing things in my bad way #smile

Makes me wonder what other limits Snap! has #joke #smile