• 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

    • Samsung Galaxy Z Fold 8, Flip 8, Z Fold Wide: Everything you need to know The ONLY thing I need to know is the price, which I know will be way higher than I (and most people) are willing to pay for a phone... so basically nothing here I need to know. PS: Nice job getting that Apple reference to a non-existent and unrevealed product as "competition" in there. Cheque is in the mail.
    • Well I really think the repasting helped if your higher clocks have returned, maybe the next thing to look at is if there is a problem with your case airflow? I guess this because your 3080 has returned to optimal state, but is still staying too warm, which might suggest it was thermal throttling before you repasted, of which the only logical conclusion could be outside factors.
    • Samsung Galaxy Z Fold 8, Flip 8, Z Fold Wide: Everything you need to know by Hamid Ganji Galaxy Z Fold 7 - Image via Samsung The next generation of Samsung foldables is set to be unveiled next month at the second Unpacked event of the year. Samsung’s 2026 foldables are not expected to offer significant upgrades over their predecessors, with the Korean firm instead focusing on design refinements and conventional upgrades such as faster processors and better cameras. However, Samsung is reportedly planning to unveil an all-new passport-style foldable this year to rival Apple’s first foldable iPhone, which is expected to debut this September. Here’s a roundup of everything we know about Samsung’s upcoming foldable devices ahead of their official debut. When can we expect Samsung’s new foldables? The Galaxy Z Fold 7 and Z Flip 7 series were unveiled in July, and Samsung is expected to maintain this timeframe in 2026. Based on previous reports from Korean sources, Samsung will hold its Unpacked event on July 22 in London, UK, to pull back the curtain on the Galaxy Z Fold 8 series. The devices are also expected to hit the shelves a few weeks after launch. However, Samsung has yet to announce an official date. A new naming scheme? One of the most interesting changes we might see this year is a new naming scheme for Samsung’s latest foldables. SamMobile reported that since Samsung is expected to unveil three foldables this year, it has adopted a new naming strategy to simplify product identification for customers. Accordingly, the standard Galaxy Z Fold 8 will reportedly be called the Galaxy Z Fold 8 Ultra and will serve as the direct successor to last year’s Galaxy Z Fold 7. The “Ultra” suffix suggests the phone could feature higher-end specifications, such as additional rear camera modules. Samsung’s new passport-style foldable is expected to carry the Galaxy Z Fold 8 name without any suffix. This model is reportedly equipped with two rear cameras. No major changes are expected for the Flip model. Galaxy Z Fold 8 Ultra and Z Flip 8 anticipated specs Rumors over the past few months suggest Samsung is preparing several upgrades for its upcoming foldables, although the devices may continue to rely on larger batteries and faster charging speeds rather than dramatic design changes. The primary focus this year is expected to be the Galaxy Z Fold 8 and its wide-screen design. Galaxy Z Fold 8 Ultra official CAD renders - Image via AndroidHeadlines Here are the anticipated specifications for the Galaxy Z Fold 8 Ultra based on previous leaks: 6.5-inch outer display and 8-inch inner display, 120Hz refresh rate, and 2,600 nits peak brightness Snapdragon 8 Elite Gen 5 processor, paired with 12GB or 16GB of RAM and 256GB, 512GB, or 1TB of storage 4.1mm thickness when unfolded and a weight of 210g 200MP main camera, 50MP ultrawide camera, 10MP or 12MP telephoto camera, 10MP cover camera, and 10MP selfie camera 5,000mAh battery with 45W wired charging Android 17 and One UI 9 As for the Galaxy Z Flip 8, the device is not expected to be a major departure from its predecessor, although it could become slightly slimmer. Expected specifications include: Snapdragon 8 Elite Gen 5 or Exynos 2600 processor 12GB of RAM with 256GB and 512GB storage options 6.9-inch Dynamic AMOLED 2X inner dispaly and 4.1-inch Super AMOLED outer dispaly 50MP main camera, 12MP ultrawide camera, and 10MP selfie camera 4,300mAh battery with 25W wired charging Android 17 and One UI 9 Samsung’s foldables are also expected to launch with Gemini Intelligence, Google’s AI suite for automating tasks in Android ecosystem. Moreover, given current memory and component costs, some Galaxy Z Fold 8 Ultra and Z Flip 8 variants could see a price hike. Galaxy Z Fold 8 adopts a wide-screen design The centerpiece of the upcoming Unpacked event could be the Galaxy Z Fold 8, previously rumored as the Galaxy Z Fold Wide. This model adopts a passport-style form factor and is expected to compete directly with Apple’s iPhone Fold. Galaxy Z Fold 8 official CAD renders - Image via AndroidHeadlines Here’s what to expect: 7.6-inch primary OLED display and 5.4-inch cover display, 120Hz refresh rate, 2,600 nits peak brightness, and 4:3 aspect ratio Snapdragon 8 Elite Gen 5 processor, 12GB or 16GB of RAM, and 256GB, 512GB, or 1TB storage options 4,800mAh battery with 45W wired charging 50MP main camera, 50MP ultrawide camera, and 10MP selfie camera Android 17 and One UI 9 The three new foldable phones are unlikely to be the only devices unveiled at Samsung’s Unpacked event. The company is also expected to introduce the Galaxy Watch Ultra 2 and the Galaxy Watch 9 series.
    • Thanks
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • 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
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      141
    4. 4
      ATLien_0
      89
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!