L8V2L Posted July 22, 2014 Share Posted July 22, 2014 (edited) With function, I'll get confuse when I see curly braces infront of the return statement: "use strict";function(baz){ If(baz === "?"){ //the curly braces return{foobar:function(baz){return{/*...*/}}; }}//Is that top function the same as:function(baz){ If(baz === "?"){//the parenthese warp/inclose the curly braces return({foobar:function(baz){ return({/*...*/})} ); }} Edited July 22, 2014 by L8V2L Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2014 Share Posted July 22, 2014 It's returning an object literal. Link to comment Share on other sites More sharing options...
L8V2L Posted July 22, 2014 Author Share Posted July 22, 2014 (edited) It's returning an object literal.So this: (function(){ return(Boolean(return({}) === return{}))}())();/*return true? ...if it could actually be compare like this.*/Is true?Also, can you give me an example of database tubular data? And what SQL database data look like? Edited July 22, 2014 by L8V2L Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2014 Share Posted July 22, 2014 That code will return an empty object. A return statement is not an expression.Tabular (not tubular) data is any data that would best be displayed inside a table. A database table can be envisioned as a spreadsheet, more or less. Link to comment Share on other sites More sharing options...
L8V2L Posted July 22, 2014 Author Share Posted July 22, 2014 That code will return an empty object. A return statement is not an expression.Tabular (not tubular) data is any data that would best be displayed inside a table. A database table can be envisioned as a spreadsheet, more or less.Is that what you prefer? You a php programmer... What database would you prefer to work with? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2014 Share Posted July 22, 2014 I've mostly worked with MySQL. If I didn't work with MySQL, then it would probably be MariaDB or PostgreSQL. I haven't looked into moving our servers off of MySQL. Link to comment Share on other sites More sharing options...
L8V2L Posted July 22, 2014 Author Share Posted July 22, 2014 I've mostly worked with MySQL. If I didn't work with MySQL, then it would probably be MariaDB or PostgreSQL. I haven't looked into moving our servers off of MySQL.What type of data format they hold their data in? Tubular right? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2014 Share Posted July 22, 2014 Tubular? You mean like a tube? No, the data is not held inside of a tube. Link to comment Share on other sites More sharing options...
L8V2L Posted July 22, 2014 Author Share Posted July 22, 2014 Tubular? You mean like a tube? No, the data is not held inside of a tube.Tabular* typo. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 23, 2014 Share Posted July 23, 2014 How data is actually stored on disk is left to the storage engine. MySQL can use multiple storage engines. How each of them work is a fairly large topic. Most of the time they use concepts of pages to store chunks of records, with associated indexes. One storage engine that MySQL uses is InnoDB.https://www.google.com/search?client=opera&q=how+innodb+stores+data&sourceid=opera&ie=UTF-8&oe=UTF-8 Link to comment Share on other sites More sharing options...
L8V2L Posted July 24, 2014 Author Share Posted July 24, 2014 Â var i, ftd, arr; i = 0; arr = [1,2,3,4,5,6,7,8,9] ftd = []; while(arr[i]){ftd[i] = (arr[i]>5)?(arr[i]):(null); if(ftd[i]===null){ftd.splice(i,1)}; i++;}ftd[2]; splice leaves undefined holes. Link to comment Share on other sites More sharing options...
L8V2L Posted July 25, 2014 Author Share Posted July 25, 2014 Is this a namespace infront of the colon? ecmascript:void setInterval(function() {scrollBy(0,10)}, 200); Link to comment Share on other sites More sharing options...
justsomeguy Posted July 25, 2014 Share Posted July 25, 2014 No, Javascript doesn't have formal namespaces. That syntax would match a label. If that is inside an event attribute then it's a scheme. Link to comment Share on other sites More sharing options...
L8V2L Posted July 25, 2014 Author Share Posted July 25, 2014 (edited) What are these: []? What are your markdown language call? These ([) (])?The... Code you use to style the text in the post, what is the name of the language? And if not a language what is it? Edited July 25, 2014 by L8V2L Link to comment Share on other sites More sharing options...
justsomeguy Posted July 25, 2014 Share Posted July 25, 2014 I call them square brackets. Link to comment Share on other sites More sharing options...
L8V2L Posted July 25, 2014 Author Share Posted July 25, 2014 (edited) I call them square brackets.I updated cause I knew it'll be some crud like that. Edited July 25, 2014 by L8V2L Link to comment Share on other sites More sharing options...
justsomeguy Posted July 25, 2014 Share Posted July 25, 2014 If you're talking about the text editor in the forum, they use BBcode. 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