Is there a quick and practical (hands on) way to learn another programming language? [closed]

Due to rather strange circumstances, I only have until Monday to learn (at least) the basics of PHP and .NET programming. I’m already fairly competent (though there is a lot of room for improvement) in C++ so I feel I have some of the concepts nailed already, but I need to get into the two languages in a bit more depth in a very short time frame.

Unfortunately I won’t have time to get any books so will need to exclusively use online resources, I’m more of a ‘do-er’ so any way to test my skills in a practical way would be a huge bonus 🙂

6

Well, the good news is that you already know how to program. The vast majority of that knowledge transferrs between languages.

Read the wiki articles on both. It would tell you the basic things you might be missing. Like how .NET isn’t a language.

I won’t have time to get any books

Yes you do. You have a full weekend. Stop everything else. Swing by a store. Buy two. Read like you mean it.

And this is the most important part: CODE SOME PHP (with .NET). Hit the tutorials, make some small projects, hit some walls, log some bugs, solve those bugs, and overcome your ignorance. Port some of your C++ programs into PHP. You’ve ALREADY solved how to do the problem, this is just translating. If you want to learn how to program in PHP, the best advice I can give you is to go program in PHP.

Will you “know” PHP by Monday? No, of course not. Who are you kidding? And don’t lie to anyone by claiming otherwise. But you WILL have more knowledge then you had Friday. And you WILL have learned a lot.

4

Your only hope is downloading the SAMS Teach Yourself C# in 24 Hours and SAMS Teach Yourself PHP in 24 Hours e-books and reading about 1,200 pages in the next 60 or so hours. You’ll have about 3 minutes to skim and understand each page, assuming you don’t eat or sleep.

Seriously, this is an impossible task. You can learn language syntax that fast and even try out some simple examples, but PHP is complicated by the fact that nobody just writes bare PHP anymore, and .NET (typically in C#) is useless without understanding the gigantic library of standard classes. When I was a development manager, I usually figured a good-to-great Java programmer could pick up C# enough to be useful in about 4 weeks.

1

It’s hard to answer without knowing what the basics are.

In more of a C# guy, so this is oriented to C#, ok?

Not to rain on your parade, but there’s a lot of stuff to know.

Are you talking about only the language? Or are talking about how to code agaisnt a DB? How about threading? Or the differente UI approaches – WPF vs WinForm?

Assuming you also asked about PHP, I assume C# as a part of a web app. In this case, is WebForms or MVC? If MVC, which one?

Anyway:

C# Fundamentals – Part 1

C# Fundamentals – Part 2

There’s more on PluralSight and they have a free trial.

There’s also Tekpub with some free content (ASP.Net and MVC if I’m not mistaken). And also LearnVisualStudio.Net – but LVS.Net will probably too basic for you.

For C#, I suggest you at least knowing the syntax and what the VS snippets do.

If I were you, I’try focus on how much you’ve learned on the given timeframe instead on the actual knowledge.

To good news is that many languages share the same conceptual background. This is particularily true if you look at procedural or object oriented languages – luckily, PHP and many of the .NET languages (C#, VBA) are examples of these groups. However, you will want to distinguish language (e.g. C#) and platform (e.g. .NET) – those are not the same. The platform is a collection of libraries (functions) that can typically be used from many languages. Knowing a platform at heart generally takes more time than to do the same for a language.

Having said this, and considering your original question, let me propose the following quick and practical approach to learning a new programming language is this:

  • Learn/read about the static structures of the language (e.g. data types, functions, procedures, classes, interfaces etc.).

  • Look at the control constructs (if/then, case/switch, while/until etc.)

  • Familiarize yourself with the typical style of how the language is expressed (by browsing through tutorials or actual code).

  • Try to map each of the constructs to the language(s) you know already. This will give you a pretty good grasp on where you should focus, e.g. concepts that are particular to the new language you are trying to learn.

Most important, however, is the next step:

  • Try to solve a problem in the new language. This can be any problem of your choice that you know the solution to from a conceptual point of view – e.g. implement an algorithm, build a web application, write a web service etc. The imporant part here is to learn to actually use the language and its associated tools and run-time environments.

Keep in mind that all of this merely will get you started, and does not replace actual experience. It is through experience that you will learn how to best make use of a programming language’s feature, which of course takes more time…

1

I think reading computer books page by page is mostly a waste of time. Most specific technology books I have seen, if not all, are stuffed with fluff and unnecessary fat to make it sell at a higher price as there is a corellation between the price and number of pages (IMO, the relationship should be reverse to encourage brevity).

My advice to you is to find a nice online hands-on tutorial, which I am sure are plentiful for PHP, kick back and learn the basics while building a pilot app, not read theory. What I do find to currently be lacking online (or perhaps an opportunity from a different perspective) is an online tutorial boutique, where you can choose from many options and technologies. And where users could create and publish their own tutorials. I think that would be pretty cool but I don’t know of any existing ones.

But if you are good with other languages, I am sure the learning curve will be gentle for you. Best of luck.

4

I suggest the project learning method. Find a small project that you know you can do (Do create a simple blog system, don’t create an in-depth framework, etc):

  • Create the basics.
  • Add something new to the project scope that you don’t know how to do.
  • Learn and implement it.
  • Repeat.

2

Frankly, if you know C++ then you know C, and so you practically know PHP. You need to learn the very basics of the language that are different – like scoping and types, and you need to know the environment PHP runs in – like POST variables, and you need to know libraries – like regex and soap.

You should also need to know how to get it going, so install xampp and write some code to do hello world at the very least.

You don’t need books for all this – php.net has most of it ready for you as reference material. The rest can be learned from any site that google returns from “PHP tutorial”


Edit:
The OP’s question isn’t “how do I become proficient in PHP”, its “how do I learn just enough to blag my way to a job”… PHP syntax is a lot like C, no-one can deny that. He doesn’t need to know OO techniques or MVC frameworks or anything like that – just the absolute basics, and those are procedural, just like C (not that I meant that, I meant the syntax is like C)

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật