• 0

Which language would you chose between C# and PHP


Question

I'm interested in changing career paths from computer repair and troubleshooting to programming. The two languages I'm looking at are C# and PHP. I understand the two are apples and oranges in comparison because they are for two entirely different things. However, I would like to learn a language that is in high demand and could give me a good level of job security. So based on your knowledge and experience, which of these two would you think could provide that? I appreciate any feed back you can provide.

Thanks! :D

Recommended Posts

  • 0

Been coding websites in PHP for about a year and a half. For a new company I set up I decided to use ASP (C#), because the website will have to manage larges about of data crunching (game stats and the like). And I have to say, the entire development experience has been better. The debugging, the designing, the structuring.. I built a site in 2 days that would of taken be a week in PHP.

  • 0

PHP is an odd duck, but it's still (usually) the P part of LAMP, so there are plenty of jobs out there for it. If you're going to start with a project that is already written in a language, I'd learn Python + Django instead of PHP if web development strikes your fancy. Python is extremely easy to learn, and outside of it's sometimes annoying whitespacing, is usually the most logical for a learner.

  • 0

Aeikus, you shouldn't pigeonhole yourself into just one language. It's OK to concentrate on one language while learning to see examples of programming concepts and to do some hands on learning, but you want to learn the fundamentals that will be language agnostic. I've covered this on my blog.

  • 0

...

that guy who wrote the article knows nothing and he then gave loads of arguments which he tried to justify why PHP is not needed or is used and It was just a load of hog

The article raises a ton of good points and provides a bunch of examples, I don't see how you can just reject them out of hand.

	function foo(string $s) {}

	foo("hello world");

Why should that cause a fatal error for example? And such a nonsensical error at that.

Catchable fatal error: Argument 1 passed to foo() must be an instance of string, string given, called in ? on line 3 and defined in ? on line 2
  • 0

Neither, all of them or any of them.

You said you are coming from a computer repair background and want to learn a programming language.

Without further info I assume you are just beggining so just pick one and learn the fundamentals first.

So you better start hacking. Programming is more like an art and there are millions ways to solve a problem some solutions better/elegant/etc than others and the only way to get there is to program and keep progamming, make lots mistakes and learn from them.

I would start with procedural programing to get the basic stuff first and then move to object oriented programming. The core concepts are the same for all common programming languages.

Many programming languages do better in specific fields than others such as web, desktop, mobile, scripiting, etc. There is no jack for all trades in my opinion.

Don't get confused when comparing programming languages and frameworks, django, ruby on rails, .net, etc are all frameworks so these frameworks should be compared to Zend, Codeigniter and other PHP frameworks.

I wouldn't recommend to start learning a language using a framework since frameworks usually have a certain pattern to follow and need to follow a certain way to do things which imho should be avoided when first learning a programming language.

To give you an example at school on my first year we started learning the basic stuff on Pascal which you can consider now a dead language but the basic principles have remain over the years and will probably not change anytime soon.

Now my personal preferences:

For web development I choose PHP for many other things which are not related to the language itself, such as documentation, code examples, big community, it's free, works on every platform, lots of tested code out there (lots of bad code as well :-)

On Linux enviroments for quick scripting I prefer python over perl.

For other type of work C# and Java are really popular, Java more than C# specially on big projects that I've been involved to. Java also has the android as a platform which is a big plus for the language.

Don't forget Objective-C for Apple devices lots of opportunities there especially since the mobile/tablet market is growing expentionally every year.

Anyway I envy you nothing is so exciting like learning a new thing from the first time especially programming and remember start coding from day zero. Don't waste time reading entire books before starting, you will only get better and better by coding.

One last thing If you know friends that are also into programming try to do things togheter. It is the most fun thing to do and you will learn a lot that from each other. Plus usually when you do programming for a living it involves working with other people which takes progamming to a different level since it is not just you reading and working on your code.

Cheers.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Here is how I fixed Windows 11 not booting after clean installation by Taras Buria Story time. A couple of weeks ago, I experienced a very odd thing with my computers. I was trying to reinstall Windows 11 on my primary device, and everything was going smoothly until the installer performed the first restart. After that, my computer entered the boot disk selection screen instead of continuing the setup process. Huh, that's odd, said I, and selected Windows Boot Manager only to see it fall back into the same screen right away. Then I tried booting from the USB drive with the same result—the PC kept returning to the boot device selection screen, and removing the drive would send my PC to UEFI, again, with no way to launch Windows 11. I fired up my spare laptop, which has been sitting unused for quite a while, to see if I am dealing with a defective USB drive. Nope, Windows 11 installed and started without issues. After trying another drive and checking all the possible settings in UEFI, I decided to try disabling Secure Boot. Lo and behold, Windows 11 started as it should have been in the first place, continued the setup process, and reached the initial setup screen. Victory! After I finished the setup and applied all updates, I re-enabled Secure Boot, and Windows 11 started without issues. Some time later, I tried reinstalling Windows 11 on my laptop only to experience similar issues, with UEFI claiming a Secure Boot violation. I checked whether the drive works on my main PC, and yes, it installed Windows 11 without errors. I scratched my head, went to UEFI, turned off Secure Boot, and installed Windows 11 without issues. After that, I enabled Secure Boot. Note: I used the official Media Creation Tool app for my USB drive. Also, UEFI was properly configured for Windows 11, including no Legacy Mode, a GPT-partitioned drive, and TPM and Secure Boot enabled. From my experience, if you are dealing with similar symptoms, I recommend two things: If you use old Windows 11 install media, create a new one with the latest Windows 11 release, especially if you know your PC already has the latest Secure Boot certificates. If you cannot create a new one, turn off Secure Boot, complete the installation, download all available updates, and then re-enable Secure Boot in UEFI. Note that you need to turn off Secure Boot after installing Windows 11. Otherwise, the installer won't run, claiming a hardware requirements mismatch. I believe the problem hides in Secure Boot certificates that expire this month. Microsoft is currently rolling out new certificates, and maybe a mismatch was causing these issues for both of my systems. I am out of my depth to make a definitive statement; this article is flagged as "Opinion," as I only share my experience and some tips on how to fix the problem. If some of you possess deeper knowledge and understanding of the situation, please share it in the comments. As for everyone else struggling with computers not booting after a clean install, the two steps above should get you out of the pickle.
    • I gave the tool a chance the other day to make a USB. An hour later it was stuck at 0% downloaded. I downloaded the official ISO, downloaded Rufus, and made the USB myself in 15 min.
    • <Moved to software discussion and support> I've got fond memories of Winamp. Changing the skins, the different visualisations etc. But now I just need a simple music player. MSN messenger would be another one, MSN Messenger Plus (I think?) offered so many different plugins. But again, it probably wouldn't work for me these days. And then there is miRC. i think it's still going these days, but lord i had fun with that back in the day. Now it's mostly stuff like Discord, WhatsApp group chats, Signal, Telegram... /me is showing his age...
    • ive always been fascinated by old software this is an old video player for windows from apple
  • Recent Achievements

    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      agatameier earned a badge
      Week One Done
    • Week One Done
      ssd21345 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      518
    2. 2
      +Edouard
      198
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      94
    5. 5
      Steven P.
      77
  • Tell a friend

    Love Neowin? Tell a friend!