Programming

Online Accredited Courses.

Learn Programming - 21 min 15 sec ago

Hey there. My question is... are there any online courses you all know of related to programming and computing that are actually worth something if I take the time to complete them. I am teaching myself Python right now but I have time to take some classes that don't cost much. Any ideas?

submitted by /u/PythonGod123
[link] [comments]

The cost of games

Programming - 24 min 36 sec ago
Categories: Programming

Python tuple, new takes 2 positional arguments but 3 were given

Learn Programming - 30 min 55 sec ago

Tuple is defined like this

tweetAndTime = collections.namedtuple('tweet','dateTime')

Data for the tuple is handled like this

for dataPoint in data: Strtime = dataPoint["timestamp"] tweetTime = datetime.datetime.strptime(Strtime, "%Y-%m-%dT%H:%M:%S") tweetToBeStored = tweetAndTime(dataPoint,tweetTime) times.append(tweetToBeStored)

The error hits on tweetToBeStored assignment

"TypeError: __new__() takes 2 positional arguments but 3 were given"

I've seen this error pop up with object methods before, but not with tuple declaration. Any idea what's up? dataPoint is a tweet object with fields, tweetTime is a datetime object

submitted by /u/rektourRick
[link] [comments]

functional vs imperative vs object oriented vs declarative?

Learn Programming - 40 min 29 sec ago

so, just a quick opinion question, a little note on the flexibility of python. what do you prefer in the STYLE of coding. now i know python is inherently object oriented but it is, as far as i know, a very flexible language to work in.

i personally have been following free online tutorials and such, and have mainly stuck to OOP, but upon reading i have expounded my knowledge and discovered there are more than one way to skin a cat. which are you?

with that being said, my question is... what is your personal preference when coding in python? functional vs imperative vs object oriented vs declarative?

submitted by /u/pythonic-nonsense
[link] [comments]

Should I move to java or stick with python for now?

Learn Programming - 57 min ago

I'm a beginner, I learned python as a first language, I understand the while/ for loops, conditions, variable scope, classes/objects... ect but I don't really "feel" I learned how to actually program or took a strong grasp on the overall concept of programming, just construct some useful functions and small scripts. My main goal is to become an android app developer.

So, should I start learning java or go more in depth with python since I already started with it? The reason I'm asking is because I've read many advises to start off with python as a first language instead of Java cause it's a bit more confusing for a beginner, but when they say "start with python" do they mean to just learn the syntax? Sorry if this sound complicated and odd.

submitted by /u/SoakySocks
[link] [comments]

Good resources to learn shell script

Learn Programming - 59 min 22 sec ago

Hi everyone, I'm self studying to be a sysAdmin in the near future, and I want to improve my skills with shell script, I already know the basics but I am out of ideias how to go to the next level and start creating scripts to automate stuffs. I am already familiar programming languages with JavaScript functional programming and python.

*Sorry if something is wrong, not a native.

submitted by /u/linkbrbr
[link] [comments]

My char* gets corrupted after adding { } how can i fix this ?

Learn Programming - 1 hour 8 min ago

It should always input "Windows 7" however after i use{} it gets corrupted. How can i fix this ?

Main : https://justpaste.it/1fvw7

Aplikacja.h : https://justpaste.it/1fvw9

Aplikacja.cpp : https://justpaste.it/1fvwa

SS to bad result : https://imgur.com/a/kQMcN

submitted by /u/Foucz
[link] [comments]

Learning algorithms - by book or courses?

Learn Programming - 1 hour 8 min ago

Do you think it's best to learn primarily by books or by courses/lecture videos? thanks

submitted by /u/RegretlessStrike
[link] [comments]

Need to make my program user friendly for my workplace.

Learn Programming - 1 hour 9 min ago

I created a program in python for my company, it's a basic program that reads a text file that we copy and paste from an excel spread-sheet, and then adds up numbers from the file. I have little experience with coding professionally. To be more clear, I know how to build a program correctly, but I want other employees to use my program. Some of the people who would be using the program have no more than a high school degree. I honestly expect them to get overwhelmed with seeing a big 1,000 line block of code, having to save text-files in the correct locations, and having to press f5 to run it. It sounds trivially easy to teach someone how to do these things, and admittedly, it is easy. But I find that people in the real world are not interested in learning anything that looks remotely difficult.

Is there any way I can run my program in a more user-friendly environment?

submitted by /u/anooblol
[link] [comments]

What math is necessary for someone interested in pursuing a career in Artificial Intelligence?

Learn Programming - 1 hour 13 min ago

I have always been fascinated by math, but have never put in the work necessary to understand it. I am going back to school to pursue a CS degree next semester and I am trying to get a jump on things so I can test out of some classes.

My dream would be working to push the boundaries of what is possible and create AGI, but anything in the field really fascinates me.

Right now I am set up to start learning Trig on Khan Academy, but then I realized I should probably check in with some smart people before potentially wasting my time.

I know I'll need stat, calc and phsyics but what should I learn before those? I am good with basic algebra, and I've managed to create some basic pathfinding algorithms with my little knowledge.

I'm basically just looking for a starting point.

Thanks for your time.

submitted by /u/moonsout_goonsout
[link] [comments]

Question regarding Google Drive REST API and Powershell

Learn Programming - 1 hour 25 min ago

I'm writing a powershell script to upload csv files to my google drive. I tried two approached from Google's site.

  • Using the simple upload: The problem I'm having is the script uploads the file to my base drive folder. However it does so without any extensions and names it Untitled, and I cannot specify the folder I want to upload it in.

  • Using the multipart upload: I could not figure out how to give the file a directory path and the file it created got rid of the csv formatting and inserted all the values in a single line.

How do I do the multipart upload? Any help is appreciated. The code I used for the simple upload is:

$uploadrequest = Invoke-RestMethod -Method Post -Uri $GUploadUri -Headers $GUploadHeaders -InFile $File submitted by /u/nidschit
[link] [comments]

PS4 Homebrew ENabler

Programming - 1 hour 35 min ago
Categories: Programming

Swift Programming Chats?

Learn Programming - 1 hour 44 min ago

I've searched, failed somewhat. Anyone know of discord, Skype, etc group chats for Swift programmers? Beginner here learning with Apples Intro Course. Absolutely fascinated and loving it.

submitted by /u/Golfabrad
[link] [comments]

[Java] Simple palidrome method is returning false when one letter is capitalized, not entirely sure why?

Learn Programming - 1 hour 47 min ago
private static boolean isPalidrome(String word1) { String reversedWord = new StringBuilder(word1).reverse().toString().toLowerCase(); if(word1.equals(reversedWord)) { return true; } else { return false; } }

The above is code I wrote to check if a word is a palindrome. However it returns false, even after I convert it to lowercase. However it does work, but only if I convert the word to lowercase before passing it to the isPalidrome method, and removing the the lowercase conversion there.

I can only assume this has to do with how the string is stored in memory? But I don't fully understand why. If someone could explain why, I'd be very great full!

submitted by /u/AudioManiac
[link] [comments]

Pages