this post was submitted on 27 Feb 2025
36 points (97.4% liked)

Programming

18656 readers
55 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

Hi, I made FuncSug to make GUI programming in the browser easier. It's a new language that aims to enable a clearer and easier code structure.

Can you tell me what you think about it?

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 6 days ago (1 children)

I love the idea! I would suggest adding a native representation of HTML tags so that the programmer doesn't have to construct them through strings.

The example of choices also looks a bit tough to me, but that's just personal preference. What inspired you to use something like ...---?

[–] cli345 1 points 5 days ago

Thank you for your very useful feedback :)

A native representation of HTML tags is a good idea: I'll have to do that.

For ...---, I wanted a big split symbol between branches (||========) and a small split symbol between the two steps inside a branch (...---). ... because the branch continues and --- to mark a smaller split than ==========.

I intend to add a syntaxic sugar for:

parallel(select N) ||
||==============
	myFunction(arg1,...,argM)
...--------
	restOfBranch1
||=============
	myFunction(arg1b,...,argMb)
...-------
	restOfBranch2

that would be:

choose N by myFunction
	* arg1,...,argM
		restOfBranch1
	* arg1b,...,argMb
		restOfBranch2
[–] [email protected] 3 points 1 week ago (1 children)

Looks good, I'll have a deeper look at it later today.

[–] cli345 2 points 1 week ago (1 children)

Thank you! I look forward to hearing your opinion.

[–] [email protected] 3 points 1 week ago (1 children)

Okay, first of all I must admit it's been years since I last wrote anything web-related. My JavaScript is a bit rusty, but I definitely see the problem that funcSug seeks to solve. I'm really impressed too with all the resources the authors have put together, especially the playground! I'm sorry I can't say anything more useful given my little web programming experience. I'm bookmarking this though :)

[–] cli345 2 points 1 week ago

Thank you for your feedback, which lets me know that you enjoyed the playground. :)