-
Posts
3,655 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Events
Everything posted by a_bertrand
-
I assume it's for McCode, and therefore moved it to the right forum. Please don't post everywhere, first check if there isn't a more appropriate forum / section next time.
-
For which engine it is?
-
Why would a game owner join to such top list? It doesn't offer anything, no games on the list, no unique features and it's just one yet more top list... sorry but I really don't see the need for such.
-
Well just to say that he didn't had any real original ideas... As it was a college project. He has been lucky (at the right place at the right moment) that's how I see it. And I fear that facebook will be like a secondlife (a big buzz for a couple of years then it went to nothing)
-
Well 3DCrafter doesn't do any rendering in the free version as far as I see, nor it really shines for the modeling however I added it.
-
A good demo is: http://www.devart.com/linqconnect/demo.html
-
True but I didn't found this concept in their new library. Maybe I'm wrong but the new one is more MVC (Model View Controller) oriented and less components / events.
-
In PHP you are responsible of the look by generating the HTML / CSS / JS and whatever else directly and as well as the reactions from user inputs. For example if I have a login form, you will have somewhere a page which generate all the form for the login, then when the user press the Login button, you receive all that in the same or a new page and check what the user did within the $_POST or $_GET variables. Right? Well that works it's clear. Yet how could it be if instead you define a page by saying this page contains 2 fields and a button, and when the button is pressed you run that function? I'm sure most of you would agree it would be easier to maintain, right? Yet what if you could split completely the HTML and the logic? And what if each "components" (all the fields, buttons and whatever else) remember how they was from one page load to the other? That would be yet better right? Well, this feature is one of the feature which I always like in C# / ASP.NET and yet by doing a bit of research found you could use as well on PHP. http://www.pradosoft.com/ I must admit it's the first time I ever saw this framework, never saw somebody using it. Yet it seems quiet cool, and the examples they give are. For example a button reaction code could be done like that: Template: <com:TContent ID="body"> <h1>TButton Samples</h1> <table class="sampletable"> <tr><td class="samplenote"> Button with customized color, font and width: </td><td class="sampleaction"> <com:TButton Text="text" Width="200px" ForeColor="silver" BackColor="black" Font.Size="14pt" /> </td></tr> <tr><td class="samplenote"> A click button: </td><td class="sampleaction"> <com:TButton Text="click me" OnClick="buttonClicked" /> </td></tr> <tr><td class="samplenote"> A command button: </td><td class="sampleaction"> <com:TButton Text="click me" OnCommand="buttonClicked" CommandName="test" CommandParameter="value" /> </td></tr> <tr><td class="samplenote"> A button causing validation: </td><td class="sampleaction"> <com:TTextBox ID="TextBox" /> <com:TRequiredFieldValidator ControlToValidate="TextBox" Display="Dynamic" ErrorMessage="input required in the textbox" ValidationGroup="Group" /> <com:TButton Text="submit" ValidationGroup="Group" /> </td></tr> </table> Code: <?php class Home extends TPage { public function buttonClicked($sender,$param) { if($param instanceof TCommandEventParameter) $sender->Text="Name: {$param->CommandName}, Param: {$param->CommandParameter}"; else $sender->Text="I'm clicked"; } } ?> Which give this as result: http://www.pradosoft.com/demos/quickstart/?page=Controls.Samples.TButton.Home If I was still actively developing with PHP this would be certainly something I would try.
-
Since a couple of month I'm annoying everyone in the chat with LINQ. LINQ is a "language" or basically a library which allows to queries data from difference sources (memory, XML, DB) all the same way or nearly. LINQ is normally a .NET specific thing and, I must say one of the most incredible feature I ever saw in a language. Yet why do I dare to post such thing in a PHP section? Easy, I was wondering how cool / doable would it be to have the same kind of feature yet for PHP, and guess what? I'm not the only one out there to think that LINQ is so cool that it should exists inside PHP as well: http://blog.maartenballiauw.be/post/2009/01/29/PHPLinq-040-released-on-CodePlex!.aspx and http://www.phplinq.net Now what is it exactly? Well it's a library for PHP which allows you to query data from within array, XML files or database tables all the same way, and directly retrieve PHP objects which allow you to then modify the object / insert new data / delete them as it works with the Zend_Db_Table under for tables. Yet, let me clarify a few points: - I never tested the library myself. No clues how good it works. - It has certainly quiet an high impact on speed as PHP is not compiled and even on C# it has some impact even if it's very small then compared to the slow down due to the database itself. - It's cool, it's fun, yet I'm not 100% convinced I would use that for any real life project. I would however check it. To see how others C# / PHP developers react to it: http://www.mikeborozdin.com/post/Is-PHPLinq-As-Cool-As-Real-LINQ.aspx
-
Even if it seems a lot, it's actually not that many sadly. However check sites like: http://www.bashbosh.com/how-to-earn-money-from-youtube-videos/
-
I don't use js libraries as I do have really an issue with the syntax of jquery and the size of all those libraries. I don't find that those libraries improve the code readability (specially JQuery), and why load so much JS to do a few things? Sure my websites tend to contain a bit more than a couple of JS lines, but those I write I'm sure I can decrypt. For the pre-made elements JQuery offer (calendars or others), sorry but I do have all that by my own as well. So nope, overall I don't see much advantages.
-
Honestly I would go for a table design in such cases. People saying tables should really check out what they are saying. DIV cannot do all what tables can + it is not given it's easier to read or to code nor it produce smaller HTML. The only real advantage of a table less design is that you could change your CSS to change the placement of the things without changing your HTML, however this is voided as most of the time when you really want to change the look of your site you will have to change the HTML.
-
Blank page means you have an error and your php.ini is set to not display any PHP errors. So change that settings such that you can see what's wrong ;)
-
Well I would say it's time to switch to some real code editor... DW is fine for HTML / CSS but not really while working with code.
-
C# free ebooks / resources / tutorials
a_bertrand replied to a_bertrand's topic in Other Programming
Added quiet a few links which could help you started. -
Somebody asked me what is ASP, and what is ASP.NET and what is C# and how all those are related. I will try here to explain it briefly. ASP ASP was the answer from Microsoft to language like PHP which allowed to easily create dynamic web sites. Actually ASP is a lot similar to PHP just way not as good. It was so bad actually that I doubt there was some real usage, anyhow this was before ASP.NET and I must say wasn't a good product. I never used it and I will never use it either. There is still some people which didn't switch to the newer solution called ASP.NET but hey, some people simply can't see advantages even if you put them in front of the facts. So how ASP worked? Basically exactly like PHP, the main difference is the tag <% some code %> where PHP uses the well known <?PHP ?>. As PHP you was mixing the HTML and the code all in one file, and as PHP it was interpreted when called. The syntax was a special version of VisualBasic, and that's it. Nothing that fancy. ASP.NET ASP.NET is so different from ASP that it would have been wiser for Microsoft to change completely name, yet they kept the same name to try to help mentally the users of ASP to switch to the new solution even if in most case it is incompatible with the previous ASP pages. On the other side, keeping the same name confuse new users, and actually gives a bad opinion on it as some people do know how bad was the old ASP. I can't however decide for them the name, so let it be for the moment. ASP.NET works on the concept that is a framework for web development for the .NET framework. What? Wait! What is the .NET framework (framework / platform / library / virtual machine... .NET is all that) ? Simply put, the .NET framework is the official way to develop on Microsoft platform and could be considered the Java from Microsoft. (I will compare .NET to Java in an other thread if you don't mind) Let's say to simplify that .NET handle all the work you may expect from a base package like open files, have arrays, lists, sort, crypt, compress and even more advanced things like access web page, ftp sites, parse XML, connect to databases and whatever else you may have in mind. Really .NET is extremely complete. It is like having the full PEAR PHP + Zend framework all directly in one package. As said, ASP.NET is sitting on top of the .NET frameworkand let you create web pages. But not simply by echo or print HTML dynamically, no instead it takes the concept of components and events. Components can be anything visible or to user which compose a web page. A component can be something as simple as a <h1> tag or to tree, calendars, or even html editors. A component can include images, js, css, html and whatever else you may want. On the other side, you have the events, an event is a message a component send to your application. For example if I have a page with <INPUT TYPE=BUTTON> and the user press it, instead of reading the $_GET or $_POST variables to spot that, I get waked up in a function linked to the button itself. That means, this function will be called every time a user press that button. As components can be more complex, you may thing you may get waked up when a user want to save, or make a typo or whatever events the component offer. Finally, one of the big strength of ASP.NET is the fact that you can decouple (and should decouple) the HTML from the code itself. So normally web pages are composed of two pages, for example one myfile.aspx and a myfile.aspx.cs (for C#). The first one is the ASP.NET page, which will remain like it is on the server. The second one is the one which contains your code / logic and is called code behind. This file will then be compiled with all the code behind pages into a DLL and only that DLL will be sent / run on the server. That means, if you develop something you do not share your sources with the person running it. That's already a huge advantage, the second huge advantage is that the look & feel is decoupled from the code and therefore like with a template system, you can change the look without touching at all at the code. Finally, another appreciable advantage is that as the code is compiled it will run faster than an interpreted (ASP or PHP) code. C# So far we discussed little about C#, and it was on purpose. As .NET and ASP.NET have basically not much to do with C#. C# is a pure language and is not directly related to .NET and ASP.NET. It is so true that you can code .NET / ASP.NET in VisualBasic (VB.NET), F#, JScript, IronPython or any other of the .NET supported languages. So C# is just the syntax of the language with a few specific things like name spaces, where .NET is the real library and the one which offers you the opportunity to do something with the language. Windows / Linux / others I said it multiple times, but let's say it once more. ASP.NET / .NET is not directly linked to windows even if it is produced by Microsoft. Or let's say, code developed for .NET can be run on other platforms as well. I do personally develop on Windows (as I find it more comfortable) and then deploy / run some of my soft on Linux. This is possible thanks to the Mono project (an open source project) which do get some support from Microsoft and from Novell. Mono allows you to run most if not all .NET application on any Linux distributions as well as on Mac OSx. You may also develop for iPhone and Android phones with it. http://www.mono-project.com/Main_Page
-
tabs are indeed much better. Even if it is not the way I would do it, but here you are free to have the style you like, as long as you are consistent.
-
The hardware needed depends on how much server resources your service will be hungry. For example, if it is mainly static content, basically content which doesn't change between the calls (images, flash, and whatever), then it will be more a question of bandwidth than CPU and hard-drive speed. On the other side, if th content is generated and not cached on every request, then you may need a good CPU / HDD as well. For the bandwidth it all depends how big your content is, and how many times it will be transfered. For example you have 1 big page (tons of video, music or whatever) but you have only 1 request per day, then even a slow connection / small bandwidth will do the trick. On the other side if it is called mil. times per day, then you will need a bigger bandwidth. To resume it, you will need to guess how many users per month / day you will have. For the location, you have 2 things to think about. If you are an EU citizen and place your server in the US, you are under the US laws. So in case somebody sue you, it will be done in the US. Also US laws are quiet different that the EU one. The second thing is how good is the link between the chosen hosting location to the target audience. For the system administration, if you never have done it, you will have a real hard time to start with. There is no easy tutorials for installing, applying patches, keep your system up to date and make backups. This is really something which require a lot of knowledge and the only way to start is to install a Linux box somewhere (for example a virtual machine) and check the things. Yet be warned that Linux doesn't mean you are safe. Actually, if you don't apply the right patch at the right time or if you have all the port open you may risk to be hacked, which means somebody else will take control of your server and maybe do illegal activities with it. So if you never have done it before, I would strongly suggest to do not host your site by yourself, and instead pay somebody to host it.
-
I don't really see how a politic idea could have here some pertinence...
-
Every big company tend to go simply too far. At&t, Microsoft, IBM, Apple and... Google ;) But indeed when it actually reduce the freedom to us the customers, or when they impose their rules specially when they think they are big enough to impose them.
-
Right? Fruits are not smart normally, as only those eating them can be. But yet the super duper stupidity of one of those is simply incredible. After trying to sue everyone using the Apple name (for whatever market it is) they want also to trademark the App Store name... Yea sure "Application Store" is indeed something nobody beside apple could have think before... Odd but I still have a very hard time to accept such kind of politic which Microsoft tried some long time ago and lucky us stopped in the mean while (or at least they changed quiet a lot), yet the little boys with their fruits want to take the lead. If you want to read the reason of my rant: http://www.tomsguide.com/us/Apple-App-Store-Amazon-App-Store-Lawsuit-Trademark,news-10560.html
-
http://www.huffingtonpost.com/2011/03/17/japan-nuclear-crisis-cartoon_n_837190.html
-
How to get the sources and be involved
a_bertrand replied to a_bertrand's topic in Other Game Engines
Sorry but I do have all my pipeline with SVN, so I will certainly not change that. PHP4 is indeed not much needed anymore however 5.3 is for most too new to be really used I personally do like to have HTML and SQL in uppercase specially with MySQL where the table name is actually case sensitive under Linux. Finally, sorry but I will not invest much more time on this, specially due to the lack of interest of the community. Moreover I'm so busy lately that I don't even have time to work on all my own projects. -
Register: when you miss something it shows the issue and you have to use the back link or button to fix it. Why not show the error on the same page WITHOUT losing any of the value? Code: Way too much left tabs specially in login.php blocks like (found in index.php) if (isset($_SESSION['login_id'])) { header("Location:loggedin.php"); exit;} would be much better written like: if (isset($_SESSION['login_id'])) { header("Location:loggedin.php"); exit; } News should be taken from the DB or from an external file... not directly in the index in my opinion Style: why some times you mix the HTML with the <?php tags and why some others you have one big <php block with huge echo (on multiple lines) for a single variable there? Also you really do have some issues with the tabs in your script. You should clean that up. Finally I would not use uppercase variables myself but this is a question of taste.
-
True Karlos94, development speed and specially maintenance of the code is extremely important. Now based on that, I would again say C# gains over PHP and Ruby no discussion. Why? Because it is not only the MVC pattern (which is more or less forced by Rails) which count but the overall library under and the concept (way not new) of components which helps speed up the development as well as offer a good way to maintain old sources. An example? While developing you drag drop the components in the aspx file from the toolbox, and there you configure their properties and events. Once this is done, you basically will not deal with HTML anymore as you will work with the code behind which is pure C#. That offers the path for a change of look without even actually needing to recode (think about a template system on steroid). Now components are not just labels and textbox, but can be collapsible trees, lists, or even full database editors. You don't have the needed component? Either you download and / or purchase one (there is really tons on internet free or not), or you develop it yourself. That means fixing a component will fix all the pages which are using it. Same if you improve it. If you really want to work with MVC then you can do it as well as .net do have a MVC framework too. However I strongly suggest to not use it. Finally, what speed up a lot the development too is the environment, and VisualStudio offers a comfort that none of the other IDE have. Or at least those I tested (eclispe, komodo, zend, netbeans, etc...). Tools like a debugger (and a complete one), a database explorer, a diagram editor, and much more are all there available for you. All those end up really speeding up things. Now to come back to your 20 hours in PHP vs 8 hours in Ruby. Yes maybe it's the case, however which of the 2 version the person coded? And was the person an expert on both languages? Take for example I'm a good developer in C# and want to show how bad Python is, fine I code my thing in Python first taking me a week to complete as I have maybe no clues what I must do then redo it in C# in 1 hour. Does that make really a fair comparison? Nope. To summarize it a bit, I would say you should pick the right tool for the problem and the right tool can be defined by the company you work with or by the fact you know a tool better than another or by the fact you must integrate other things during the process. For example try to generate excel reports out of Ruby... and let me know how it goes. Or if everyone else in your team work with Java then you should / must use Java too.