• Breaking News

    Wednesday, March 10, 2021

    My professor recommends us making a GitHub account as soon as possible. Why should I? learn programming

    My professor recommends us making a GitHub account as soon as possible. Why should I? learn programming


    My professor recommends us making a GitHub account as soon as possible. Why should I?

    Posted: 09 Mar 2021 04:27 PM PST

    It's an honest question. His reasoning was like "in a couple of years, when you graduate and look for a job, you'll be able to show them that you used github for the past couple of years" and I get that. But right now I'm making programs that are too simple and that are introductory. Like create an array, print only the odd numbers from an array, write Hello world in a .txt file. Scan a .txt and count the occurences of a given word, etc.

    I don't know about github but it seems that that's not "worthy" of uploading. Don't get me wrong I'm not embarrased but is it a good strategy that my employer 3 years from now sees that I struggled with / learned opening files only 3 years ago?

    Is there something I'm missing?

    Edit: Thanks for all the answers! I realized now that there is a private and public mode for github so I'm cool with that. See you on github!

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

    Is math required for programming?

    Posted: 09 Mar 2021 03:30 PM PST

    A friend of mine recently told me that being good at math helps with programming which I would agree with but I didn't think was necessary. So basically what I am asking is how many of you are good at math and do I absolutely need math for programming? I haven't really needed math for the type of coding I've been doing

    Also do I need college?

    I am currently doing java

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

    Tips for Women in Tech

    Posted: 09 Mar 2021 04:53 PM PST

    I have created another post today but creeps will be creeps & I had to delete it and post again with a throwaway account.

    In light of some previous posts & today being Women's day, I just want to give some tips to other women.

    If you're a guy and you're reading this post, you can also learn a thing or two. Gender bias exists and it's worsened by people who deny it. Women dont expect to be treated differently but dont make judge/conclude/decide based solely on their sex. If you still dont like this topic, just move on. I dont give a damn about you.

    I feel the need to address this issue mainly because I work in a tech team of 15 where I'm the only woman SDE. My partner takes interviews for a FANG company and the ratio of women is awfully low. The recruiters dont get many resumes either. Of the ones that get an offer, they are lowballed because they dont negotiate as much as guys do. The list goes on.

    Whether you're a student or looking for a first job or been in tech forever or a male, lets just help each other out.

    These tips that I'm adding are purely based on my opinions. And very specifically to software engineers. They might not apply in every situation so if you dont like anything, I'm more than happy to learn your experience.

    • Be confident. This is the most important of all. If you dont believe in yourself, no one will. You need to know your worth. Dont hesitate or doubt yourself. No matter what the task is, always be confident. Dress confident, speak confident and sleep confident. On an average, compared to a woman with same knowledge, a man is more confident. This is more relevant for women in tech because of the disproportional ratio. It can be intimidating but know that you're not alone.
    • Master the basics. Cant stress this enough. Data structures and algorithms. No matter how many new things come out, these will remain the same. Focus on having strong foundations.
    • Dont be afraid. Whether to ask questions, to ask for a promotion, to switch jobs or apply for that job that you're little overqualified (yes). "Great things never come from comfort zones". If you dont ask that thing that's running in your head and distracting you, only you are at loss.
    • Do your research. Spend some extra time in revising what you've learnt today and look up on resources about what's tomorrow. Analyse the meeting agenda and learn whatever you can about it. Ex. Agenda: Brainstorming a new app. You: Research similar apps & think about what you can improve. Read articles. If you have ever felt that someone is smarter than you or knows more, it's just because they have spend a lot of time in learning. No one is born with knowlege, it's only passed on. There's just so much of information online that even if you spend an hour everyday, you can do so much better.
    • Invest in yourself. Sign up for that paid course, get that ergo chair, set up your desk and monitors and that coffee machine. Because you are important.
    • Have a Role Model. There's a lot you can learn from successful people. They have already overcome all the hurdles you're going through. Follow their path until you can start creating your own.
    • Dont expect everyone to be nice to you and stand up for yourself. Unfortunately, that's how people in tech are. It's not because you're a woman. They're so lost in the rat race that they dont give a rats ass about your problems. I cant sugarcoat this but you're on your own. Take the issues to HR if its inappropriate.
    • Always look out for more opportunities. Career growth is such an important thing that I do not see many women focus on. Compare yourself with others with your level of experience and make sure you are always ahead of them. Cant stress this enough. Career stagnation is a thing I see a lot in women. Like I dont have time for interview, I dont understand that algorithm - how did that guy get it so easily. It's ALL learned knowledge.
    • Take risks. There are some things that are hit or miss. The if you take 10 risks, even if one risk goes in your favor, it will nullify the 9 failed ones. Invest in that stock you've been hearing about. Move to a new city or country for that new job. Take that unstable startup job. (dont forget to negotiate equity)
    • ALWAYS AIM HIGH. Remember that this is a competition. Create a high image of yourself and work towards it. Remember your short term and long term goals and always prepare yourself.

    If you have any suggestions, I will them to the post.

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

    Is it ok to add commonly done projects on my portfolio?

    Posted: 09 Mar 2021 11:14 PM PST

    i am trying to make a good CV for myself and good portfolio ( front end - react js). there are projects like netflix clone and stuff that almost everybody put them on their portfolio. should i do that too or i just add projects that i have done and the idea is mine?

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

    Overwhelmed with different technologies

    Posted: 09 Mar 2021 09:04 PM PST

    I'm coming from a Python, machine learning, computer science background into the web development field. I know HTML, CSS, and some basic vanilla Javascript. I'm trying to learn how the whole frontend+backend all with Javascript thing works. I've started to learn React but all these different things called Babel, Webpack, Nextjs, Parcel, Apollo, URQL, Prisma, Mongodb, ORM etc. are confusing me.

    Everyone says that these will all make sense once I gain more experience but I was wondering if there was any article or video that explains how all these different technologies come together and work with each other to make a complete website/app.

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

    I'm a Junior in High School, and I want to create a Coding Club of some sort at my High School in my Senior year when I am back in person, should I do it?

    Posted: 09 Mar 2021 01:33 PM PST

    Although I had an interest for coding and computers in general from a young age, I did not get to actual coding (besides learning the processing.JS language taught in Khan Academy in 5th grade) until around 6-7 months ago, and now I have some basic Python knowledge. I had taught that the AP Computer Science Principles class that I am taking this year would teach me a language or the basics of a language, but it mainly goes over how code works, and how certain things like loops work, but nothing besides that, and that leaves me inexperienced. With that said, should I even bother starting such a club, even as I am inexperienced?

    I plan to bring more experienced students to help me run the club, and the club will mainly be focused at finding and working on projects fit for people of all skill levels at coding, and working on them, and if the students in the club want to gear the club towards going towards competitions, that could be done as well.

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

    Experience with DS bootcamps?

    Posted: 09 Mar 2021 11:16 PM PST

    I've been taking free data science classes, but I want a little more interaction with a professor and peers.

    Any of you take a data science bootcamp that you recommend?

    thanks!

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

    Cant convert a char to int

    Posted: 09 Mar 2021 08:40 PM PST

    Im having trouble trying to convert a char to an int. atoi() needs a const char *. Its saying that the operand must be a pointer but *number is a pointer? I cant figure out why its not converting.

    int CharToInt( /* in */ char number) { const char newNumber = *number; int intNumber = atoi(number); cout << isdigit(CharToInt(number)); return intNumber; } 
    submitted by /u/HousePappas
    [link] [comments]

    Are there any useful tips for finding a missing/extra bracket in your code?

    Posted: 09 Mar 2021 10:18 PM PST

    Actually an 'end' since im lua but same thing. im using notepad++ which lets you collapse for/while/if blocks and i can tell that one of my statements isn't closed properly. is there a technique where i can use the collapse feature to pinpoint the missing end? ive noticed that its collapsing improperly since each statement is choosing the wrong closing end.

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

    Do really need test cases and saved them in a folder?

    Posted: 09 Mar 2021 12:52 PM PST

    I don't work with a team, I just work on my own and i have personal projects,

    so I still don't know what the purpose to use the test cases and saved them in specific folder /tests,

    Don't get me wrong, of course, I test my functions, but i test them once I created them I don't use libraries like Jest in Javascript

    I test my function by adding console.log() or print() inside the function

    edit: collapsing

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

    What's the difference between Front-end WEB developer & Front-end SOFTWARE developer

    Posted: 09 Mar 2021 12:34 PM PST

    I'm a front end web developer, i just created my portfolio design and sent it to my friend to review it. He told me i should replace Front-end web developer with Front-end Software developer.
    What'r ethe different between them?

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

    First software engineering job, nervous as balls. How do I prepare or at least calm my nerves?

    Posted: 09 Mar 2021 02:46 PM PST

    Hey all,

    I have been self teaching over the course of a year. I landed my first job working with Laravel and React. I had been working my ass off and this was all I could think/dream about for awhile. I am coming from a trade, I was tired of the inconsistency and working on my feet/outside. How can I set myself up to be successful. What should I expect? As the day is getting closer I'm wondering if I made the right call. I love solving problems with code but now I am having doubts. It is especially hard because i am leaving a family business but the trades was never "my thing", I was always fascinated by code & computers. Once I got the news that got the job I went from being ecstatic to nervous to being a bit bummed. I am having a serious bout of imposter syndrome since I'm coming from an entirely different field. Any advice?

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

    isinstance py3 help

    Posted: 09 Mar 2021 09:34 PM PST

    Is there a way to shorten the isinstance:

    num1 = input("1") num2 = input("2") x = input("x")

    If not isinstance(num1, int, float) and If not isinstance(num2, int, float) and If not isinstance x(x, float)

    Like can you put both variables into the first isinstance?

    If not isinstance(num1, num2, int, float) and If not isinstance(x, float)

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

    "Return true if this string is a palindrome" can be done in O(n). Why not O(n/2)?

    Posted: 09 Mar 2021 06:52 PM PST

    Learning more about DS and algo and stubled upon the palindrome question where you can solve it in linear time [O(n)] by using a pointer on the left and right side. If I use a left and right pointer and at each iteration I move both pointers. Would this not be O(n/2)? Or is this one of those cases where the 2 is a "least irrelevant figure" so I toss it out?

    Flairing as code review, even though I'm not showing my code, just trying to understand the time complexity. Read the rules also and this seemed acceptable. Let me know if there is a more specific data structures and algo subreddit for stuff like this. thanks

    Edit: feel like I'm getting answers in two categories. 1. It IS n/2 but it simplifies to n. 2. It's not n/2 because you still technically check every index.

    Which one is it?

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

    Daily Challenges?

    Posted: 09 Mar 2021 06:49 PM PST

    I'm still new to programming and I've been doing some courses, mainly working in Java and Python. I just wanted to know is there a good website to do daily coding challenges so I can keep my brain trained and thinking. Thanks in advance!

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

    What is the optimal sort algorithm for this array?

    Posted: 09 Mar 2021 11:56 PM PST

    If I have this array, ['C', 'A', 'B', 'D', 'E'], what would be the best sorting algorithm to use? I am confused as to the applications of each sort.

    Insertion sort, Merge sort, Quick sort (pivot always first element), Radix sort

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

    [Java] Why is this string container printing empty?

    Posted: 09 Mar 2021 08:00 PM PST

    Hi! I'm 100% a new learner, and I hardly know the language to use or how to ask this, but I have a basic debugging issue that I can't quite understand.

    I'm working in jGRASP and this is a quick assignment over arrays where we scan a basic, 4 column CSV file over Construction Spending (file called "chopped_construction_spending - construction_spending.csv") in my coding class... but my code is not returning the result I'm expecting.

    So sorry the beginning section is a bit long, but I honestly am not sure how to cut it down and still have it make sense!

    public class convertData { public static void main(String[] args) throws Exception { Scanner file = new Scanner( new File("chopped_construction_spending - construction_spending.csv") ); int counter = 0; while(file.hasNext()) { String s = file.nextLine(); counter++; } String[] rawData = new String[counter-1]; file = new Scanner( new File("chopped_construction_spending - construction_spending.csv") ); file.nextLine(); for(int i = 0; i < rawData.length; i++) { String constructData = file.nextLine(); rawData[i] = constructData; } int[] monthData = new int [ counter - 1 ]; String[] dateData = new String[ counter - 1 ]; int[] amuseData = new int [ counter - 1]; int[] commercialData = new int [ counter - 1]; int index = 0; for(String oneLine : rawData) { String[] dataParts = oneLine.split(","); System.out.println(Arrays.toString(dataParts)); String rawMonth = dataParts[0]; String rawDate = dataParts[1]; String rawAmuse = dataParts[2]; String rawCommercial = dataParts[3]; monthData[ index ] = Integer.parseInt( rawMonth ); dateData[ index ] = rawDate; amuseData[ index ] = Integer.parseInt( rawAmuse ); commercialData[ index ] = Integer.parseInt( rawCommercial ); index++; } //------------------------------------------------------------------------------- //PROBLEM SECTION: //Find the highest number of commercial spending int mostComm = Integer.MIN_VALUE; for(int i = 0; i < commercialData.length; i++) { if(commercialData[i] > mostComm) { mostComm = commercialData[i]; } } System.out.println("The highest amount ever spent on commercial expenses is $" + mostComm + ","); //Date of the highest number of commercial spending String name = ""; for(int i = 0; i < commercialData.length; i++) { if(commercialData[i] > mostComm) { mostComm = commercialData[i]; name = dateData[i]; } } System.out.println("And the date this money was spent was " + name); } } 

    So the main issue I'm having with the last part. It runs:

    The highest amount ever spent on commercial expenses is $93845, And the date this money was spent was 

    But I was expecting the output:

    The highest amount ever spent on commercial expenses is $93845, And the date this money was spent was Feb2008 

    So for some reason, the last section where I try to find the date the largest amount was spent, the String name = ""; isn't updating in the loop like I was expecting.

    Could someone tell me what exactly I'm doing wrong...? I feel like this is a really obvious answer but I've been trying different things some time now and I can't seem to figure it out.

    Thank you!

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

    Which database suits XML best?

    Posted: 09 Mar 2021 11:27 PM PST

    Hi everyone,

    which database would you recommend to use when working with XML?

    Which object-oriented database would you suggest?

    Thank you in advance!

    submitted by /u/Wild-Region9148
    [link] [comments]

    ASP.NET front end development

    Posted: 09 Mar 2021 05:05 PM PST

    Hey there,

    Software Dev here who is mostly focused on backend development. I used to use html and css back in high school, but I don't remember most of it. I am building a project in ASP.NET and I am trying to figure out the best way to create a front end.

    I am not above using an existing design platform if the integration is pretty seamless. Or are there new tools for front end that I can use to develop this?

    Thank you,

    Bryce

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

    Time Complexity and Big O Resources

    Posted: 09 Mar 2021 01:17 PM PST

    I am finding it difficult to understand the material of my fundamentals three course as it all ties in to analyzing the time complexity of algorithms. I struggle greatly with this and do not find that online classes are helping.

    I was wondering if there are any resources out there that any of you guys highly recommend for mastering these concepts? Such as books, documents, or youtube playlists. Any help is appreciated, thanks! :)

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

    Beginner learner

    Posted: 09 Mar 2021 10:46 PM PST

    What are the best website/apps to learning Programming? Where should I start when it comes to learning Programming. I want to get good and make this a career. Took a computer class in highschool where we got to program and it was fun.

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

    [Python] ImgKit taking too long to convert an html file to a jpg file (3 minutes)

    Posted: 09 Mar 2021 10:37 PM PST

    imgkit.from_file(html_filename, image_filename, options={"width": 660, "disable-smart-width": ""}) 

    is what I ran, and for some reason, at most times, this will take 3 minutes to run, and just yesterday, and only for yesterday, was it running at around 3 to 10 secs. The html, I am trying to render, is not important to mention, as the same problem happens with "www.google.com", about 3 minutes as well. I am running on Ubuntu 20.04.

    Extra Detail:

    for most of the time, there is no output in the console, and only in the last few seconds, the output appears

    Loading page (1/2) Rendering (2/2) Done 

    When i keyboard interrupt in the middle, the function appears to be stuck within what appears to be a timeout.

    Traceback (most recent call last): File "test.py", line 11, in <module> html_to_image("result.html", "result.jpg") File "test.py", line 6, in html_to_image imgkit.from_file(html_filename, image_filename, options={"width": 660, "disable-smart-width": ""}) File "/home/smi/.local/lib/python3.8/site-packages/imgkit/api.py", line 64, in from_file return rtn.to_img(output_path) File "/home/smi/.local/lib/python3.8/site-packages/imgkit/imgkit.py", line 225, in to_img stdout, stderr = result.communicate(input=string) File "/usr/local/lib/python3.8/subprocess.py", line 1024, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "/usr/local/lib/python3.8/subprocess.py", line 1866, in _communicate ready = selector.select(timeout) File "/usr/local/lib/python3.8/selectors.py", line 415, in select fd_event_list = self._selector.poll(timeout) 

    If anyone could lend a hand, it would be quite appreciated!

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

    For vs. While Loops

    Posted: 09 Mar 2021 10:34 PM PST

    Hey everyone! :)

    I've been learning C++, but I'm not sure what's the difference between a while loop and a for loop. I've been reading that you should use a for loop when you know how many times the loop should run, but I don't really understand what's meant by that? If anyone has some examples, that would be great!

    On the same topic, I have seen many people use a for loop for a question that states:

    Write a program that calculates the total grade for N classroom exercises as a percentage. The user should input the value for N followed by each of the N scores and totals. Calculate the overall percentage (sum of the total points earned divided by the total points possible) and output it as a percentage.

    I don't really understand why a for loop would be better than a while loop here?

    If someone could explain, that would be amazing :)

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

    Learn by building real world application using Angular

    Posted: 09 Mar 2021 04:35 PM PST

    Hey Guys

    I have created a series to build an almost real world application with real world scenarios using angular and .net core webapi as backend integration. It will start from scratch, you will go through with very basics and start to build a property dealing application.

    You not only will learn to build, I have added different ways as well to host it on Azure, IIS and Firebase. Also you will see how to host frontend on different server on Firebase and webAPI on different server on Azure and how both can communicate seamlessly.

    Providing below the link to all videos of this series

    Build Application Frontend

    1. What we will build
    2. Project setup and angular version history
    3. What is new in major release Angular 9
    4. Folder structure and flow of application
    5. Create your first component
    6. Understand component workflow and create property card component
    7. Understand Git and add your project to github
    8. Create property list
    9. Add CSS animation to property card
    10. Using HTTP service
    11. Modify HTTP response using pipe
    12. Understand routing - Part-1
    13. Understand routing - Part-2
    14. Understand routing - Part-3
    15. Template driven forms in angular
    16. Reactive forms in angular
    17. 5 reasons I love to use reactive forms
    18. Save data to local storage
    19. Add alertify notification as service
    20. Add login logout functionality
    21. Design add new property form
    22. Few enhancements in form
    23. Save new property and display on list page
    24. Save multiple properties in local storage
    25. Create property detail view
    26. Understand route resolver and add image gallery
    27. Add filtering and sorting using angular pipes
    28. Deploy angular app on Firebase for free

    Build Web API

    1. Introduction and milestones
    2. Create WebAPI project
    3. Consume WebAPI in angular
    4. Create DB and fetch data using entity framework Core
    5. Implement add and delete operations
    6. Using repository pattern
    7. Using Unit of Work Pattern
    8. Using DTO (Data transfer object)
    9. Using Automapper for faster mapping
    10. HTTP Put vs Patch for update
    11. Input validation and exception handling
    12. Handling errors globally in WebAPI using middleware
    13. Add more features to custom middleware
    14. Understand JWT (JSON web token)
    15. Add Authentication
    16. Create JWT and use it for Authorization
    17. Managing user secrets
    18. Protect password with hashing and salting

    Deploy Application and WebAPI

    1. Deploy API on Azure
    2. Deploy Angular App on Azure
    3. Deploy Angular + API in IIS
    4. Deploy angular app on Firebase for free

    Please share your feedback and don't forget to subscribe to the channel if you like it.

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

    No comments:

    Post a Comment