Un poco de orientacion y ayudas

Learn Programming - Thu, 01/17/2019 - 18:12

Hola programadore/as vengo a aclarar algunas dudas, hace 1 año y medio empeze con todo el tema de la programacion, gracias a la facultad, siempre fui alguien que le gustaba arreglar celulares y computadoras pero no conocia la programacion en si, arranque con chapin y c++ y luego empezamos con html css javascript y al segundo año con y visual basic ademas de usar transac sql y consultas, me quedan algunas materias para rendir pero estoy en el dilema de buscar trabajo, tuve algunas entrevistas pero resulto que no coincidia con el perfil o cosas por el estilo, asi que decidi aprender mas por mi cuenta porque estaba muy "verde" y compre por unos pesos un curso de javascript (angular node mongo), queria mas o menos una orientacion de si es conveniente que le meta de lleno a eso o que haga un poco de todo y seguir usando los lenguajes que usaba en la facultad, ademas saber un poco mas sus experiencias y recomendaciones para trabajos y/o anecdotas

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

How do I learn to come up with solutions quickly?

Learn Programming - Thu, 01/17/2019 - 18:01

I just failed my second online coding assessment. They expect me to be able to look at a problem and immediately have some idea of how to solve it, which I typically don't. I'm a CS junior looking for an internship, but that will never happen if I can't pass an assessment.

I know how to program, given enough time and space. I'm fully confident that if I have time to research and design a solution, I can solve almost any problem they could throw at me. However, on the assessment I just failed, I only had 30 minutes to solve what I saw as a complicated problem. The first test (which is probable one of the hardest) gave me 20 minutes to solve seven complicated problems.

Every project I've done in school has given me at least one week to complete it, so I'm used to being able to spend a lot of time thinking about it and doing a little at a time, but these tests expect me to do all that simultaneously.

So does anyone have any tips?

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

This Can't be post in SOF so i'm putting it here in Reddit because this issue has turned Kind of specific. (Please Help me)

Learn Programming - Thu, 01/17/2019 - 17:52

I made 2 files, one that is the connection of the MySQLi and i'm using XAMPP, one of the files is the MySQLi connection and the other one is the one that i'm trying to connected to, it doesn't gives me an error that i have included an error incorrectly, But there seem's to be other errors besides those one's saying that i have technically NOT connected one of the parameters giving me back a NULL result from those parameters, I'll Copy and Paste the ERRORs and files, Because i am Very confused what my Error or what i did wrong (For your information i'm very new to this. i really appreciate any help.)

here are all of the ERRORS that i get which it seems that it comes from the Connection file giving me the same ERRORS


Notice: Undefined variable: connection in C:\xampp\htdocs\phpfolder\phpfiles\webpage_connect.php on line 8

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\phpfolder\phpfiles\webpage_con

nect.php on line 8

Warning: mysqli_fetch_all() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\phpfolder\phpfiles\webpage_connect.php on line 11

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\phpfolder\phpfiles\webpage_connect.php on line 14

Notice: Undefined variable: connection in C:\xampp\htdocs\phpfolder\phpfiles\webpage_connect.php on line 17

Warning: mysqli_close() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\phpfolder\phpfiles\webpage_connect.php on line 17

(Server account login file) File:webpagemxs_database.php


// Create Connection

$connection = mysqli\_connect('localhost', '', '', '');

(i deleted my Sever account login information)

// Check Connection if (mysqli\_connect\_errno()) { echo 'Failed to Connect to MySQL' . mysqli\_connect\_errno(); }


(This file is the one which is going to connect to the MySQLi Server) File:webpage_connect.php



// Create Query

$query = 'SELECT * FROM posts';

// Fetch Data

$result = mysqli_query($connection, $query);

// Fetch Data

$posts = mysqli_fetch_all($result, MYSQLI_ASSOC);

// Free Result


// Close Connection


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

Student looking to learn Python and Java

Learn Programming - Thu, 01/17/2019 - 17:51

Hi guys, I am a 15 year old student that is looking to learn programming. I wasen’t sure where to start and how to start. Are there any good online free lesson services to learn any of the softwares that are good? Also which one should I start with? Also If you have any tips for anyone starting to learn programming? Thank you have a good day👌!

submitted by /u/-Ehh_
[link] [comments]

where to look

Learn Programming - Thu, 01/17/2019 - 17:36

Does anyone know a good resource to learn how to navigate and give commands on the Mac terminal complete with glossary of commands

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

Hello! I need help.

Learn Programming - Thu, 01/17/2019 - 17:34

What is a good YouTube tutorial series to learn the programming language C?

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

I just completed #100DaysOfCode and I have a few tips for anyone trying it themself

Learn Programming - Thu, 01/17/2019 - 17:33
  1. Get a whiteboard Yes, a plain old whiteboard. Words can’t really express how much this simple purchase has helped me on my journey to become a software developer. My initial justification for buying one was hearing that “white boarding” was a common interview technique. So part of the reason of buying one was to make sure that I knew my way around a dry-erase marker should I ever need to use one. However, after the blank canvas was hung up on my wall for a week or so, it took on an entirely different role that was not anticipated. Every day, I began writing my progress. Every night, I worked out problems and ideas. Then, the next morning, waking up and looking at the board put me right back into the mindset I had the night prior. Checklists, goals, priorities, and issues all went up there, and I was tackling each with increasing focus and vigor.

  2. Code with someone Getting stuck in programming sucks. Finding someone who you can bounce things off of is critical. For some, this comes in the form of a small rubber ducky. For me, this came in the form of pair programming with my best friend. Fran and I decided study Android programming together, and join forces to build an app together from the ground up. This was one of the smartest decisions I could have made. Fran is doing 100 days as well, and is close to finishing. Closely working with someone going through the same battles and jumping the same hurdles as yourself helps put in perspective any one individual problem. If you don't know anyone personally that codes, I urge you exit your comfort zone and seek someone out. Use meetup and find a local group.

  3. Participate fully in the community The official site,, lists steps that you can take to increase your chances of success. One of those steps is to encourage others also participating. This is something you may not feel like doing every day, but I urge you to try. After dropping a compliment, or cheering someone on, you begin to become more and more invested. The more you put support out there, the more it will come back to you.

  4. The Pomodoro Technique I came across an interview with freeCodeCamp founder Quincy Larson on the subject of teaching yourself to code. The entire interview is great, and I highly recommend watching it in full. The relevant bit starts at 4:20. In the interview, Quincy explains the Pomodoro Technique. This technique is the practice of breaking your work down into 25 minute segments, followed by 5 minute breaks. As they mention in the interview, what happens is you commit to that first 25 mintues, and by the end of it, you want to keep going. This technique ended up be enourmously helpful, especially after long days at work and class.

  5. Constantly seek out inspiration Some days you just can’t do it. Work was tough, school was long, you stayed up too late the night before. I’ve been there. I took about 20 days off during my 100 days. While I think some of those days off were key to remaining fresh, the truth is I was probably being lazy for some of them. Something I did to combat that was to seek out inspirational content. If I told myself I didn’t want to code, I’d find a podcast, an article, or youtube video on interesting programming topic. I’d listen to a CodeNewbie or freeCodeCamp podcast about someone who overcame enormous odds and found a way into the tech industry. I’d listen to a Fragmented Podcast on an Android topic and be inspired to try and implement it myself. I’d listen to an Andreessen Horowitz podcast about the direction of the tech industry in general, and remind myself why I so desperately want to be a part of it. Every once in a while, you should pick your head up and remind yourself why you want this, who has done it or doing it, and that you can do it too.

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

I need help on codehs 5.5.4: Is It Even?

Learn Programming - Thu, 01/17/2019 - 17:24

Write a function called isEven
that returns a boolean of whether or not a value is even or odd. The isEven
function should not print anything out or return a number. It should only take in a number and return a boolean.

Note: Be sure to include comments for all functions that you use or create.

For example, if you made a call like

var isEvenNumber = isEven(4);

isEvenNumber should have the value true.

Once you’ve written this function, write a program that asks the user for integers and prints whether the number they entered is even or odd using your isEven function. You should let the user keep entering numbers until they enter the SENTINEL.

Here is a sample run of the program:

Enter a number: 5 Odd Enter a number 42 Even Enter a number: -6 Even Enter a number: 0 Done! submitted by /u/ineedausername81
[link] [comments]

How to change tab on click in HTML??

Learn Programming - Thu, 01/17/2019 - 16:57

I've tried all the major stack overflow articles on this but none are working. It could be because we use a rc-tabset and rc-tab at work.

<rc-tabset active="active"> <rc-tab active="dataPortal.tabs.summary" index="0" heading="Data Portal - Summary" deselect=""> </rc-tab> <rc-tab active="dataPortal.tabs.details" index="1" heading="Data Portal - Details"> </rc-tab> </rc-tabset> submitted by /u/DoctorQuinlan
[link] [comments]

Anyone else feel like Uni. hits you with far too many subjects at same time?

Learn Programming - Thu, 01/17/2019 - 16:57

I am a comp sci. major and taking a few CS classes, one in C++ and one in assembly, and it just feels like there's so much information coming that 90% of students are unable to keep up with what they are learning. I spent copious amounts of time studying and writing code last semester, but hardly any of it stuck. I even pulled a 4.0 in all of my classes. I took the time to re-read all the material in my C++ book that we covered last semester and some of it felt new still. Idk could just be me, but I feel like the U.S. school system isn't a very solid educational system.

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

Help with determining methods and classes

Learn Programming - Thu, 01/17/2019 - 16:49

I've looked but haven't found a post addressing this problem. I'm teaching myself java at the moment and while I feel like I have the basics down for the most part, I struggle a bit with determining how many methods and classes to use when starting a project. When I look at open source projects they all have methods laid out over multiple classes that all link together very well for the end result. So I have a few questions, how do you know which methods to make, how do you determine which class to place them in, and what exactly is the point of making multiple classes for small projects versus one class? I always put everything into one class and just run it but I feel like that's sloppy code and bad practice based off of other code I've seen. Any help is appreciated.

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

[Python, Numpy] Matrix values

Learn Programming - Thu, 01/17/2019 - 16:38

Hello everyone, hope you all are having a nice day.

So, i'm having a problem in python (using numpy), that's the follow:

I have an numpy array 'y' of dimensions 5000x1 (or just an array of 5000 elements) that every element is an integer between 0 and 9

I also have a matrix 'A' of dimensions 5000x10, and I want to set every value in A so that the follow rule applies:

y[0] = 5 --> A[0,5] = 1 while the rest of the line is 0, that is A[0,:] = [0,0,0,0,1,0,0,0,0,0]

y[1] = 0 --> A[1,0] = 1 and A[0,:] = [1,0,0,0,0,0,0,0,0,0]


So, the only way i have been able to do this is the following:

A = np.zeros(5000,10)

for i in range(5000):

A[i,y[i]] = 1 # can't indent the code, sorry

Does anyone know of a more elegant/concise way to do this that doesn't involve a for loop, or is that impossible to do?

Thanks in advance and sorry for any English errors (not my native language)

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

Good examples of relational database documentation?

Learn Programming - Thu, 01/17/2019 - 16:22

I'm having a difficult time finding documentation or examples of how to document relational database(s) well. Having the entity relationship diagram is key, but what else do/should I document?

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