hisoka Posted February 20, 2015 Share Posted February 20, 2015 what is the definition of a "formatted code" or what is a "formatted code" ??? I cannot find the definition in google Link to comment Share on other sites More sharing options...
Ingolme Posted February 20, 2015 Share Posted February 20, 2015 I don't know. It depends on the context. Where did you see it written? Link to comment Share on other sites More sharing options...
hisoka Posted February 20, 2015 Author Share Posted February 20, 2015 In programming context Link to comment Share on other sites More sharing options...
Ingolme Posted February 20, 2015 Share Posted February 20, 2015 That's not context. What is the paragraph you read it in? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 20, 2015 Share Posted February 20, 2015 They are probably talking about the difference between this: { text: 'Create New Account', scope: this, handler: function() { conf_win.close(); reg_frm.getForm().submit({ method: "POST", waitTitle: "Connecting", waitMsg: "Sending Information...", url: "io.php", scope: this, params: {page_mode: "register", ignore_dup: "true"}, success: function(frm, act) { Ext.Msg.alert('Registration Succeeded', 'Thank you for registering. You may now log in.', function(btn, text) { show_login.call(this); }, this ); }, failure: this.submit_failure }); } }and this:{text: 'Create New Account',scope: this,handler: function() {conf_win.close();reg_frm.getForm().submit({method: "POST",waitTitle: "Connecting",waitMsg: "Sending Information...",url: "io.php",scope: this,params: {page_mode: "register", ignore_dup: "true"},success: function(frm, act){Ext.Msg.alert('Registration Succeeded', 'Thank you for registering. You may now log in.', function(btn, text){show_login.call(this);},this);},failure: this.submit_failure});}} Link to comment Share on other sites More sharing options...
hisoka Posted February 20, 2015 Author Share Posted February 20, 2015 I noticed that the position of the brackets and parenthesis changed . In the second script , they become vertically straight . Is this what you mean by a formatted code ??? or am I wrong ? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 20, 2015 Share Posted February 20, 2015 The first piece of code is formatted to be easy to read. The second piece is not formatted very well. Link to comment Share on other sites More sharing options...
davej Posted February 20, 2015 Share Posted February 20, 2015 Perhaps take a look at... http://en.wikipedia.org/wiki/Programming_style Link to comment Share on other sites More sharing options...
hisoka Posted February 21, 2015 Author Share Posted February 21, 2015 thank you for the link after I read it , what I understood is that a formatted code is a code writing in a specific stylistic , esthetic and visual form . Formatting comes from the form a text or a code or a script takes which differ from language to language and from an application to another for example a binary format is different from a text format. In text itself there are many format like the italic or bold and so on .. This what I understood . Please correct me if I am wrong Link to comment Share on other sites More sharing options...
davej Posted February 21, 2015 Share Posted February 21, 2015 It's a broad term that may mean many things but is generally related to the presentation and appearance of the text or data. 1 Link to comment Share on other sites More sharing options...
hisoka Posted February 21, 2015 Author Share Posted February 21, 2015 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now