Jump to content

KevinM1

Moderators
  • Posts

    5,222
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by KevinM1

  1. Eh, it's pretty cheap if you're actually coding for a living. It costs maybe an hour or two of work.
  2. You do realize that you can customize PhpStorm's appearance? Just like with every other IDE? I use a modified version of the ubiquitous Son of Obsidian theme for both PhpStorm and Visual Studio. Looks great.
  3. What are you referring to when you mention 'code completion'? Intellisense? Actual code generation (say, dumb getters and setters)? I tend to like both, mainly because of my disabled hands. Less typing = good for me.
  4. Yeah, while the image is cute, it's not really suitable as the background of the entire site. It makes things difficult to read and navigate. Cute shouldn't trump usability.
  5. It was slow for me yesterday, too. Page loading took longer than the actual survey.
  6. First, snark like: only makes people not want to help. Now, people are telling you to use another IDE because, evidentally Adobe Muse isn't meant for PHP editing. Note that no one has suggwsted that your brother also switch IDEs. Since, apparently, Muse just outputs HTML (and likely CSS as well), there's no reason why your brother couldn't do his part in Muse and you do your part in something else. Right tool for the job and all that. Regarding PHP, I'm going to go out on a limb and guess that you learned what you know from a poor and/or dated resource (like w3schools, which NO ONE should go to). I'm also going to guess that the resource's examples highlighted PHP's ability to go between PHP code and HTML. I'm guessing this because you want to put PHP code in the body of your pages. That's exactly the wrong way to write PHP. The best way to write PHP is to do all your scripting upfront, store your results in variables, and then use as little PHP as possible in your HTML to echo those results. For you, this means all session and database work first. Now, to your actual problem - do you have session_start() on each page? Can you post your code?
  7. Object initializers are used to populate anonymous types. Anonymous types are types that don't have an actual class definition (thus no parameterized constructor). Instead, they're generated on the fly, usually as the result of some LINQ query. Example: var productInfo = from p in products select new { p.ProductName, p.UnitPrice }; productInfo contains a collection of objects of an anonymous type that are made up of the product's name and price. That info can then be iterated over by a foreach: foreach (var prod in productInfo) { Console.WriteLine("Name: {0} , price: {1}", prod.ProductName, prod.UnitPrice); }
  8. I think they're fairly common. Symfony has Doctrine out of the box. I think Propel, too. Kohana had its own Active Record style ORM when I played with it back in the version 2 days. Same with CodeIgniter. Ruby on Rails uses Active Record. ASP.NET MVC has Entity Framework and there are others, like NHibernate. ORMs tend to fall apart with complex queries, especially if you're dealing with many-to-many relationships. Sometimes you just need to roll up your sleeves and write SQL.
  9. I'm a fan of doing local business. Online freelance gigs always struck me as a bit sketchy as there's little to no face-to-face contact. Being able to actually sit down and talk to a client is invaluable. For one, it makes the consultation process go a lot smoother. But, it also reinforces that human connection. It's easy for one side to screw the other over if they're just an email or IM entity, especially if they're in another country. Interacting with a real person is grounding. Local businesses tend to fall into three categories: 1. They don't want a site 2. They don't currently have a site, but want one 3. They have a site, but it's shit There's not much you can do with category 1. Category 2 is nice, but it tends to be filled with clueless clients that drag their feet and are indecisive. Worthwhile, but also frustrating. Category 3 is the honey pot - you can sweep in and save the day, thereby getting yourself both a nice payment and future business as they usually spread the word and offer glowing reviews. They also tend to know what they want, and are willing to work with you to get it done. However, since they feel letdown/burned/betrayed by their last developer, trust is an issue. Earn that trust, and they'll be in your corner forever. How do you find local businesses to work for? Ask your friends and family if any of the places they frequent have a site. Go to your local hangout places and offer your services. Every town has at least a couple of small business owners that want more. And if you can satisfy them, more will appear. One word of advice: in the rush to get new clients, don't oversell your abilities too much. The worst kind of developer you can be is one that over sells and under delivers. Then again, people like me make money cleaning up those kinds of messes....
  10. Anyone have any experience with cloud based PaaS hosting? I've heard of PHP Fog, and apparently Heroku has PHP hosting capabilities (poorly documented and not advertised). I'm curious to see if anyone's tried PaaS hosting, and what their thoughts are.
  11. I recently bought a few names through hover.com. A bit expensive ($15 each), but a great control panel. and they were recommended by Leo Laporte, who generally knows his stuff. No complaints.
  12. ++PhpStorm. The new version even auto-detects if you have a popular MVC framework.
  13. No! If you abdicate the throne, the serfs will revolt!
  14. Yes. You'll need to research how their db access code works, and whether or not accessing a remote db is a better option than using a small db you can bundle with the app itself. There are lightweight mobile dbs available that are used in the cases when you don't need to share the data among multiple applications (like, say, a website and a standalone app).
  15. Do you actually need a standalone app, or just a mobile website? Apps require that you create an executable that can be run on the phone/tablet itself, which is written in one of three languages: Objective-C for iOS/Apple products (iPhone/iPad) Java for Android C# + .NET, and maybe Silverlight for Windows Phone 7 Now, a mobile friendly site can be written in any language(s) you want, but you'll be limited with an actual on the metal/in the CPU app.
  16. Go with what I bolded. There's no need to use JavaScript for this.
  17. You're confusing yourself because the class code is written in PHP 4 syntax (the var keyword). That leads to the $sTime member variable being public, and, since you also have an $sTime local variable in play, things are getting muddled. Use PHP 5 syntax instead: class Time { private $sTime; function GenerateCurrentTime() { $this->sTime = gmdate("d-m-Y H:i:s"); //assign the current date to the sTime variable } function ShowFutureDate($iAddDays=0) { $this->sTime = gmdate("d-m-Y H:i:s", strtotime("+" . $iAddDays . " days")); } } That might make things more clear. Also, get this book: http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X/ref=sr_1_1?s=books&ie=UTF8&qid=1333840120&sr=1-1 Finally, -> does not mean 'parent of'. I don't know where you got that idea, but it's wrong. -> is the 'to member' operator, meaning that with $oTime -> GenerateCurrentTime(), you're accessing the member function/method named GenerateCurrentTime of the Time object referenced by the variable $oTime.
  18. What are you currently doing for form sanitation? Are you using mysql_real_escape_string anywhere?
  19. Really... I can read it really clearly. It makes it look blurry to me. Then again, I'm not a fan of drop shadows anyway.
  20. I'm not a fan of the burgundy text w/ drop shadow. It's hard to read on a 1440x900 monitor. Ditch the PDF food menu and code up a new one yourself. The existing yellow PDF doesn't fit with the rest of the site at all. Make it look like the 'Specials' menu.
  21. I've been using the free trial of PhpStorm for the last week or so. I'm loving it. Does just about everything I'm looking for out of the box, and is simple to tweak. Even better, it's still reasonably quick in my VM setup. Definitely buying a licence when the evaluation period ends.
  22. KevinM1

    Cool!

    Please don't bump threads that have been dead for [b]~8 years[/b]. Locked.
  23. I'm looking at getting PhpStorm (and RubyMine, made by the same company). Thoughts? Impressions?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.