Click here to Skip to main content
15,887,485 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionImages in sourcecode Pin
D4rkTrick31-Dec-16 14:51
professionalD4rkTrick31-Dec-16 14:51 
AnswerRe: Images in sourcecode Pin
Dave Kreskowiak31-Dec-16 18:45
mveDave Kreskowiak31-Dec-16 18:45 
AnswerRe: Images in sourcecode Pin
Eddy Vluggen1-Jan-17 0:30
professionalEddy Vluggen1-Jan-17 0:30 
AnswerRe: Images in sourcecode Pin
Afzaal Ahmad Zeeshan1-Jan-17 1:13
professionalAfzaal Ahmad Zeeshan1-Jan-17 1:13 
AnswerRe: Images in sourcecode Pin
Gerry Schmitz1-Jan-17 21:44
mveGerry Schmitz1-Jan-17 21:44 
PraiseThank you for the feedback Pin
D4rkTrick2-Jan-17 2:17
professionalD4rkTrick2-Jan-17 2:17 
GeneralRe: Thank you for the feedback Pin
Nathan Minier4-Jan-17 1:50
professionalNathan Minier4-Jan-17 1:50 
QuestionPlurality - Modular Code Editor Pin
Gurigraphics19-Dec-16 21:43
Gurigraphics19-Dec-16 21:43 
Hello. I'm not sure if this is the appropriate topic, but the insights of this subject are valid. What do you think about an code editor like this:

Image 01

Image 02

Image 03


Premise: "typing the same code twice is work for robots. Each time you do that, humanity ceases to evolve - and you mainly".

The idea here is to abolish the organization of files and folders. Files e folders, It is like machine language, does not interest to current programmers. The project organization can be done only inside the Code Editor.

If the files are all exported within a single folder, or hundreds of folders, or the entire file is a single file, this does not matter to the programmer. After exporting the file, what matters is mainly performance. And the performance can not be compromised by our desorganization, habits and addictions when write code.

And to maintain the code, what matters is mainly an organized project and expandable.


Then, more useful is to have a "virtualized image" of the file, composed of the modules that make up this file and the entire program.

A example in HTML5:

Virtualized file inside Code Editor:

(index.html)
(init)
(head)
(body)
(end)


Spaghetti that does not matter:

folder/index.html
HTML
<!-- Init -->

<!DOCTYPE html>
<html lang="en">

<!-- head -->
  <head>
    <meta charset="utf-8">
    <title>title</title>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
  </head>

<!-- body -->
  <body>
    <!-- page content -->
  </body>

<!-- end -->
</html>


So you can create a "code block" for index.html, only once. And, if this is already part of the Code Editor library, you just search: index, and drag the block to the project.

You do not need of a dumbsense or keyboard shortcuts that you do not remember or even know exist, nor do you need to be consulted documentation at all times to do simple things. You do not even have to overload your memory with unnecessary information.

And the blocks can be organized into categories:

- Search word (index) in the category (canvas)
- Search word (index) in the category (web page)
- Search word (index) in the category (My project XYZ that I made for company XYZ)
- Search word (controls) in the category (My game XYZ)

"This is code reuse truly intelligent".

And all these blocks can be made up of blocks within blocks, like an array or complex module.

Another example:

You have changed the website address of your company. And you need to edit the comments for each code page in 50 projects. Total 500 files.

If your projects have the "block" (header-comments) on all pages, when you change the content of (header-comments), this will change in all projects.

You only open the projects: update, export and you're done.

And the same to correct errors, improve something, make implementations, include new modules, etc.



Some advantages:

Modular programming: a new conception of programming organization: using arrays and modules rather than separate folders and files. Files are generated only at the end.

Lightning maintenance: When correcting a error, or improve a snippet of code, all blocks of the program can be changed simultaneously.

Matrix Blocks: allows you to store 1,000 items in little space. And Matrix Blocks inside Matrix Blocks can store infinite information.

End of spaghetti code: The modules and blocks to organization is more intuitive.

Reuse and share code: Code blocks allows full reuse of code. And you can also share your blocks.

Code lib: The editor becomes a code library. You do not need to be always consulting the documentation and external files. Your notes and code samples are saved in blocks in the editor itself. This is also better than Intellisense and keyboard shortcuts.

Others:

The name Plurality is because the idea is to use the same logic of arrays and blocks to also write music (like music trackers) and texts (like script editors). (Also because I'm an Indie Game Developer)

This idea is inspired by Scratch - MIT Media Lab's, Google Blockly, Stencyl and other similar programs.

And the goal is to find a middle ground between written and visual programming.

P.s: These images are just to demonstrate the concept without having to write too much.

modified 20-Dec-16 22:12pm.

AnswerRe: Plurality - Modular Code Editor Pin
Richard MacCutchan19-Dec-16 22:50
mveRichard MacCutchan19-Dec-16 22:50 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics20-Dec-16 0:06
Gurigraphics20-Dec-16 0:06 
GeneralRe: Plurality - Modular Code Editor Pin
Richard MacCutchan20-Dec-16 0:48
mveRichard MacCutchan20-Dec-16 0:48 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics20-Dec-16 2:27
Gurigraphics20-Dec-16 2:27 
AnswerRe: Plurality - Modular Code Editor Pin
Pete O'Hanlon19-Dec-16 23:12
mvePete O'Hanlon19-Dec-16 23:12 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics20-Dec-16 0:25
Gurigraphics20-Dec-16 0:25 
GeneralRe: Plurality - Modular Code Editor Pin
Pete O'Hanlon20-Dec-16 0:27
mvePete O'Hanlon20-Dec-16 0:27 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics20-Dec-16 0:34
Gurigraphics20-Dec-16 0:34 
AnswerRe: Plurality - Modular Code Editor Pin
Gerry Schmitz21-Dec-16 7:59
mveGerry Schmitz21-Dec-16 7:59 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics21-Dec-16 11:52
Gurigraphics21-Dec-16 11:52 
GeneralRe: Plurality - Modular Code Editor Pin
Gerry Schmitz21-Dec-16 12:23
mveGerry Schmitz21-Dec-16 12:23 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics21-Dec-16 13:31
Gurigraphics21-Dec-16 13:31 
GeneralRe: Plurality - Modular Code Editor Pin
Gerry Schmitz21-Dec-16 13:58
mveGerry Schmitz21-Dec-16 13:58 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics21-Dec-16 17:12
Gurigraphics21-Dec-16 17:12 
GeneralRe: Plurality - Modular Code Editor Pin
Gerry Schmitz21-Dec-16 20:02
mveGerry Schmitz21-Dec-16 20:02 
AnswerRe: Plurality - Modular Code Editor Pin
jschell26-Dec-16 6:16
jschell26-Dec-16 6:16 
GeneralRe: Plurality - Modular Code Editor Pin
Gurigraphics26-Dec-16 19:21
Gurigraphics26-Dec-16 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.