Programming thread

Im starting to learn C# so I downloaded Microsoft Visual Studio to be my text editor. In most of the C# tutorial videos they have a different starting template than I do. So I'm wondering which template is better?
OldVsNew.jpg
 
Im starting to learn C# so I downloaded Microsoft Visual Studio to be my text editor. In most of the C# tutorial videos they have a different starting template than I do. So I'm wondering which template is better?View attachment 3421738
for you, the older one. the new templates are starting to abstract parts of the code into other files to avoid boilerplate, but as a learner you want to understand those concepts first by practicing with them.
 
the new templates are starting to abstract parts of the code into other files to avoid boilerplate
I can't believe they finally decided to revisit this nonsense boilerplate inherited from the Java tradition, but went way too far and eliminated your control over the entry-point function altogether (if you choose to use this feature). I mean, I see what they're going for ("write C# like it's a script!") but it would have been nice to finally have a C-like main function at top level.
 
Is PHP a bad language to write a frontend to another website? The curl extension can kind of be slow in some cases but I decided to write in it because integrating it into a webserver and testing was easier
 
Is PHP a bad language to write a frontend to another website? The curl extension can kind of be slow in some cases but I decided to write in it because integrating it into a webserver and testing was easier
I make my living with PHP so I'm a bit biased, but yes, it's fine. Trendy languages and frameworks come and go while PHP keeps on powering a good chunk of the Internet despite its uncoolness.

PHP the Right Way is a good resource to consult for best practices, even if you already know PHP. Modern PHP Without a Framework will guide you along the bleeding edge.
 
  • Informative
Reactions: Ronnie McNutt
Is PHP a bad language to write a frontend to another website? The curl extension can kind of be slow in some cases but I decided to write in it because integrating it into a webserver and testing was easier
PHP is fine for small web apps. If you're not building anything crazy, the drawbacks of PHP likely won't affect you at all.
 
Im starting to learn C# so I downloaded Microsoft Visual Studio to be my text editor. In most of the C# tutorial videos they have a different starting template than I do. So I'm wondering which template is better?
Old for sure.

Newer versions of C# (10, 11) allow for you to write programs with the functional/progressive C/C++/Python methodology. So by doing the 'new' way, it just allows simple programs to be written like traditional scripts. It kind of makes things neat because it means that C# is also slowly becoming a scripting language, as well as a fully fledged language with frameworks and tons of libraries to boot. I wonder what this means for companies going back to C#, because all their Python scripts can just be replaced with their original tech stack.
 
One of the biggest problems ive seen as a computer forensics student is how outdated the course material is, like in my C class were expected to utilize out as fuck dated crap, like the graphics.h. From my self study there is really no reason to teach in C, when C++ is just as relevant and more useable. Java and python are just as easy, but from what ive found its mostly due to the book makers catering to indias students.
 
  • Agree
Reactions: Ronnie McNutt
From my self study there is really no reason to teach in C
C is still the best language for embedded programming and teaches the fundamentals that permeate to most modern programming languages.

Java and python are just as easy, but from what ive found its mostly due to the book makers catering to indias students.
God help your soul if you're using the same books tailored to Indians whose only fates in computer science is fighting to make a living on Fiverr while living in a 12-person shack in Mumbai then, later, use a connections at a US-basked companu (another Indian who climbed the managerial ladder) to beat you out of a job.
 
One of the biggest problems ive seen as a computer forensics student is how outdated the course material is, like in my C class were expected to utilize out as fuck dated crap, like the graphics.h. From my self study there is really no reason to teach in C, when C++ is just as relevant and more useable. Java and python are just as easy, but from what ive found its mostly due to the book makers catering to indias students.

Wait. wait. wait. Graphics.h? Like borland turbo C for dos graphics.h?
 
Dude, that's not computer forensics, that's computer archeology.

Seriously though - how did you get it running through VS code. The compiler is 16 bit real mode if I remember right.
Theres a few tutorials on YT, you have to set up a few things in C/C++ Ui configurations from the command palette and add in command arguments. Its a massive pain in the ass. I saved the properties and task jsons for future use, makes it easier
 
I'm looking to not be a waggie anymore and get a job programing someday any advice on where to start? Starting from pretty much zero dont really know where to start language wise or what to aim for to get a job without a degree.
 
  • Thunk-Provoking
Reactions: Ronnie McNutt
I'm looking to not be a waggie anymore and get a job programing someday any advice on where to start? Starting from pretty much zero dont really know where to start language wise or what to aim for to get a job without a degree.
What do you want to code?
  • Web sites: PHP, JS
  • Applications (Windows): C#
  • Applications (iOS, Mac): Swift
  • Applications (Linux/Unix): C, C++
  • Applications (Android): Kotlin, Java
  • Games: C++, Lua
  • Low-level hardware: C, Assembly
  • Boring, complicated shit for mega-corporations: Java
Also, lol at thinking programmers aren't wagies too.
 
I'm looking to not be a waggie anymore and get a job programing someday any advice on where to start? Starting from pretty much zero dont really know where to start language wise or what to aim for to get a job without a degree.
You need to set aside a year or more to build your background. Focus on learning basic programming, then learn CS fundamentals. Data structures (lists, trees, sets, maps, graphs, hash tables etc) and algorithms (sorts, searches, seminumerical algorithms, etc) are fundamental and you will be tested on them by most companies.

Language doesn't matter. You should be proficient enough to pick up languages quickly. I recommend attaining competency in at least one object-oriented language (Java, C#, C++ etc), one functional language (JS, Lisp, Haskell, etc) and one scripting language (Python, Ruby, Perl etc).

From there, look into freelancing on places like upwork. Alternatively, find programming work from friends or acquaintances. You need to build up a portfolio of work and get a feel for programming as your livelihood.

Plan:
1. Grab an introductory book on any language that interests you that is also supported on HackerRank. Work through it and learn the syntax as well as how to write programs.
2. Watch CS fundamentals lectures, take notes, and try to implement some of the concepts yourself (implementing a linked-list or hash table from scratch is a good exercise and then take it a step further by implementing searches and sorts for your hand-made data structures).
3. Sign up for hackerrank and do your fucking reps. Leetcode is the more mainstream code challenge site but Hackerrank has more 'real-world' style challenges and companies have been slowly moving away from LCtism towards more basic Hackerrank stuff.
4. Freelance and build experience.
5. Shotgun your resume anywhere you think you'll even be a semi-fit. Prereqs are just a suggestion in this field and with the labor market the way it is, companies are already going to be hiring you with the expectation that you'll need to be trained (most of the time anyway).
6. Don't ever stop learning. I do a coding problem every day even though I'm pushing 5 years of working experience at this point. When your job needs knowledge, learn that. When your job doesn't, learn something you find interesting. A weird toy language you learn today might be a 300k/year job in a couple of years.

This is going to be difficult. There's a reason why programmers are paid highly because the autism required to walk this path is intense.
 
Back