Welcome, Guest
Username: Password: Remember me

TOPIC: Minified project download

Minified project download 09 May 2018 12:04 #15567

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Hello Admin, is it possible to provide a minified version of COOK user projects for download?

At times a developer wants to provide a solution yet reserve a certain level of IP. A minified version would allow us to make a solution a bit more difficult to read and understand.

Thx V
The administrator has disabled public write access.

Minified project download 09 May 2018 22:17 #15569

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I never thought of making this...
Apparently generated code is not complex enough for you ? lol

You mean changing the variables name (a, b, c, d), putting in line, removing all possible spaces, encoding some parts eventualy.
Well, I am not sure it could one day be available because of lack of interrest. It is the first time I heard such request. I would probably never do that for my own projects.
You might use a specific third part application processing the generated code.
Because such code analyse the php and transform, it must be a multi language interpreter. Quite complex and not in the roadmap fo sure
Coding is now a piece of cake
The administrator has disabled public write access.

Minified project download 11 May 2018 00:42 #15571

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Sorry if I wasn't clear, but I was simply talking about removing all the file formatting [tabs, carriage-returns, comments, etc.] and dumping a string into the file name.
The administrator has disabled public write access.

Minified project download 11 May 2018 13:16 #15574

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Some of these thing can be usefull for optimization and for security.

Comments : I should create the application layer for managing comments, and giving the option. > That's good
Spaces and Tabs : Yes Also (simple parser that removes it all)
Variables renaming : impossible for me. It is not the direction I want to go. Way too complex for a single feature
File renaming:. Every file has a specific place and a conventional name (as you know). May be possible, but every class has to be registered into JLoader. Is that you meant ?
Dev comfort vs Optimization : Removing static string values such as viewName, layout name... these vars are used for developper. Theoricaly there are many such things... Optional ORM System...
Coding is now a piece of cake
The administrator has disabled public write access.

Minified project download 11 May 2018 14:14 #15575

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Yes, I understand the time constraints; that's why I am ONLY speaking about removing the white-space and comments from each generated file.
The administrator has disabled public write access.
Time to create page: 0.094 seconds

Get Started