• Breaking News

    Monday, August 20, 2018

    Learn algorithms and data structures (and prep for coding interviews) with interactive python coding challenges learn programming

    Learn algorithms and data structures (and prep for coding interviews) with interactive python coding challenges learn programming


    Learn algorithms and data structures (and prep for coding interviews) with interactive python coding challenges

    Posted: 20 Aug 2018 06:56 AM PDT

    Link:

    https://github.com/donnemartin/interactive-coding-challenges

    Included are unit tested reference implementations of various data structures and algorithms.

    Each challenge has one or more reference solutions that are:

    • Fully functional
    • Unit tested
    • Easy-to-understand

    Notebooks also detail:

    • Constraints
    • Test cases
    • Algorithms
    • Big-O time and space complexities

    Anki flashcards are also available. Great for use while on-the-go!

    Bonus: If you're looking to learn/practice system design or object oriented exercises, check out the sister repo, The System Design Primer:

    https://github.com/donnemartin/system-design-primer

    Hope this helps!

    -Donne

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

    I'm confused, any help?

    Posted: 20 Aug 2018 09:29 PM PDT

    So I want to start learning to code in C++, but I don't know if I need an IDE or a text editor. Can someone tell me what the difference is? And should I use an IDE or a text editor? Also, are there any recommendations on what IDE/ text Editor I should get? Preferably free. Thanks for the help!

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

    MIT 6.00.1x or Berkeley CS61A

    Posted: 20 Aug 2018 10:23 PM PDT

    Which one is better?

    I have taken a programming 1 with C++ course over the summer, but will not be able to take programming 2 until the spring. I want to keep my knowledge fresh in this fall semester and get a better understanding of topics like recursion, basic data structures, etc. And also learn python.

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

    I need help deciding which coding language to learn first c++ or java

    Posted: 20 Aug 2018 10:11 PM PDT

    To get my associates i could either learn c++ or java, which one pays more or which one is more difficult. I could still learn other languages but which one would be easier to get a first job with.

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

    Need help understanding double colons in C++

    Posted: 20 Aug 2018 08:28 PM PDT

    Hey guys, I am having trouble understanding why and what are double colons used for. The code I have says

    checked_array::checked_array(int s){ sz = s; data= new int[sz]();

    }

    Imo, i think that it has to do with the class that I have written before. I just need an explanation. Thanks.

    submitted by /u/369iLikeWineandDIne
    [link] [comments]

    Recent College CIS Graduate Looking for a Junior Web Developer Position. What 'level' or how qualified am I and do I have a good game plan?

    Posted: 20 Aug 2018 10:49 PM PDT

    I recently graduated in May (about 3 months ago)

    Here is my github. https://github.com/ddao4I have two projects completed.

    One project is from the top post of all time on this sub, Upskill's DevMatch.

    The other is my final capstone project from my major where I had to self-learn Mongo, Node, Express, and AJAX. The application is not live.

    Here is my resume: https://drive.google.com/file/d/1gS4Ik1kpoAcUeBbdO6H9XbrM6ol-hPFN/view?usp=sharing

    The technical side of my degree consisted of 2 courses in C# OOP (Arrays, Lists, GUI Forms, Events/Event Handlers, Delegates(still kinda confused on these)), 1 course in SQL Server, 1 course in Mobile App Development, and 1 course in Web Technologies (HTML, CSS, JavaScript). I learned way more in the Upskill course than I did in my Web Technologies/Development class. The highest math class I had to take in my major was Brief Calculus.

    In the past 4 months, I've applied to about 100 places and had 3 interviews but did not receive an offer from any of them. I do well in behavioral interviews but not technical. I've only had one logic question which was simple but I struggled due to nerves, and then in my most recent I could not do things like explain the advantages of JavaScript, or explain the difference between document.ready or window.onload. I've learned these things but I forget by the time the interview comes. I feel like there's so much to know and I am just feeling overwhelmed.

    I spent most of my time reviewing concepts I've used like OOP concepts (Encapsulation, abstraction, polymorphism, inheritance), MvC Framework, RESTful API's. I look at the big picture and don't really remember the small details that I googled/looked up when creating my capstone project. The Upskill course had so much information I felt like I learned a lot but it's impossible to remember every single detail and I had to learn so much to complete my project on time.

    My game plan now is to:

    - Work on FreeCodeCamp at least 30 minutes every day (I'm still on the first certificate, they moved around/added a lot more content)

    - Work on an actual project for at least an hour every day (I have 2 in mind)

    1. Personal Portfolio Project ( I will make this one and also the one on FCC when I get to it and see which is better ) I want to learn React for this before I get to the lessons for it on FCC.
    2. A site for one of my clubs from my college ( For free because I really like them )

    I don't really know what to do after that though

    - Do 1 JavaScript CodeWars coding challenge/problem a day (or is there a better site/resource for coding questions)

    I'm working about 10-15 hours/week doing WordPress web design (no coding besides css)/social media for an agency that doesn't pay very well, exercising every day, practicing guitar every day, and also training/walking my dog. I also want to continue learning foreign languages. Am I trying to do too much?

    I don't really know where I stand in terms of my level. Am I still a beginner just barely approaching intermediate?

    Do I have a good game plan or is there something else I should be doing? Is programming too much for me? I have a lot of things that I want to do outside of programming but it feels like if I don't give up everything else to just code it won't be enough.

    Any advice would be appreciated.

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

    [Monday 20th August] Discord Server doing a Python Udemy course together - would anybody like to join us?

    Posted: 20 Aug 2018 10:32 AM PDT

    Myself and a buddy have started a python Udemy course together and are wondering if anybody else would like to join us!

    After much research of both Udemy courses and other courses online, we have decides to do this course https://www.udemy.com/the-modern-python3-bootcamp/ - currently on sale for €9.99. The instructor is engaging and explains concepts very well, and the course if very comprehensive.

    Our goal is to attempt to simulate a bootcamp environment where students are learning the same course together and can interact with each other through voice chat, socializing, project debriefs, etc. without having to spend thousands of Euros/Pounds/Dollars on a bootcamp!

    We have set a target to get as far as section 9 (Rock, paper, scissors) by this Friday 24th August, after which we will have a debrief call and decide on a new target for next week. Students are encouraged to ask each other questions and seek help during the week also - a so-called "somebody is always online" policy.

    After we finish this course, the plan is to split the group and specialize in either data science or Django. We will discuss this further and decide on new courses for them at a later date.

    If anybody sees this post later on this week you are also welcome to join us! But please try and catch up. PM me if you have any questions! Otherwise, feel free to go ahead and join the server and introduce yourself in the dedicated channel! https://discord.gg/gjhmJAU

    Microphone required please.

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

    Standards for submitting code?

    Posted: 20 Aug 2018 08:25 PM PDT

    Does a normal workplace or open-source project have guidelines for pull requests to be accepted?

    • Must pass our test suite
    • No use of pointer indirection/reflection/ternary operator
    • Computational complexity under 15
    • Must use AsyncTask for all network requests

    Is this a way that companies create discipline and culture? It seems more structured than just randomly mentioning at some meeting "hey people, don't arrow code so much". Yet I can't find a search term that returns this kind of standards document.

    If not, how do you get people to do things the company's way and how do you decide what the important things will be?

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

    Which Languge to Use for personal Project

    Posted: 20 Aug 2018 11:40 PM PDT

    Hi guys, I am new to programming but i do have a ok amount of experience with HTML/CSS. I was wondering what would be the ideal language to use for a mac music playing application? Would I use a different language for windows?

    Thanks.

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

    Anyone use C++ with visual studio on mac?

    Posted: 20 Aug 2018 11:27 PM PDT

    Im taking a CS course and the professor has decided that the class use visual basic. He also teaches with windows and the problem is, i'm using a mac so the controls are different. Is there even C++ on visual studio for mac because I can't seem to find it.

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

    Taking CS50 Introduction to computer science after completing Introduction to computer science and programming in python (MIT 6.00.1)

    Posted: 20 Aug 2018 07:10 PM PDT

    I'm currently working through Introduction to computer science and programming using python (MIT 6.00.1) on edx and should be finished working through the course by the end of September. Would it be beneficial to work through the Introduction to computer science (CS50) afterward? Moreover, for my current programming goals*, is it worthwhile to learn C? Thanks.

    * statistics/data analysis, GIS programming (web GIS), scripting/automating (creating field forms, GIS scripting, editing excel docs) and database management (for environmental sites).

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

    Just got a phone call about an internship and they wanted to charge me $2000 to work for them.

    Posted: 20 Aug 2018 10:45 PM PDT

    I've been looking for my first dev role so I've been applying for a bunch of different things, unpaid work included.

    I got a phone call Today about of of my applications. They asked me what tech stacks I'd worked on and told me the company would require me for 3 days a week. She then said there's a fee involved for the company for training, services etc.

    Am I crazy? This is wrong, yeah? Tell me I'm not crazy.

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

    C - should I still use `#include XYZ.h` when linked against a libXYZ?

    Posted: 20 Aug 2018 10:40 PM PDT

    Hello

    I'd like to know what the point is of including a library's header if you already link against it. This is a basic code snippet to illustrate what I mean: https://paste.ubuntu.com/p/TqPDhQq7KP/

    If I don't include lib.h in main.c it compiles but gives the following error:

    warning: implicit declaration of function 'test' [-Wimplicit-function-declaration] test(); 

    Yet, it compiles and the code works properly. So why should I bother including lib.h?

    Thanks

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

    Which are some recommend lectures on how to be part of a large project?

    Posted: 20 Aug 2018 09:57 AM PDT

    I've recently taken a job as a programmer, although it's not my field (almost a grad degree in physics).

    Programming so far is not a problem, but in what I find trouble is adapting to doing it in a group. I've recently read about good practices, but i feel that's just the tip of the iceberg. Anyone can suggest me some good reading material?

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

    Other data structures?

    Posted: 20 Aug 2018 09:23 PM PDT

    In every CS course, textbook, and online guide in existence, there only seems to be 3 types of data structures: Trees, storage, and self made. While they are all incredibly useful, I've been trying to find other types of common structures that aren't normally discussed. Something that isn't normally taught or learned, but also isn't just a one-off homebrew. Can someone help me point me in the right direction?

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

    Does it matter which version SQL version you use for your database?

    Posted: 20 Aug 2018 03:17 PM PDT

    I've got experience with a couple different versions, SQLite, PostgreSQL, and MySQL, does it really matter which one I use for my databases, or are some good at some kinds of databases, and others good at other things? My preference is PostgreSQL, only because it's what I'm most familiar with, but I'm not an expert on databases.

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

    QR code question

    Posted: 20 Aug 2018 09:08 PM PDT

    Hello, I am trying to find a solution that my employees have but am not very experienced with QR codes. Hoping I can get some guidance. In order for my staff to clock in and out it requires a lot of steps and is fairly time consuming. That need to go to a website, type in their unique username and password, navigate several pages, then click one button, then sign out.

    My goal is to create a unique QR code, or something similar, that they can scan at a workstation and only need to click one button and sign out.

    Is that feasible? Does QR coding allow you to bypass sign in procedures if done correctly? If so, does anyone have a tutorial?

    Thank you in advance.

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

    Why doesn't C++ unordered_map have this method?

    Posted: 20 Aug 2018 04:52 PM PDT

    I'm only referring to unordered_map because I haven't used the other parts of STL much yet.

    Often, I just want to check whether a key is in my map. I have two ways of doing this, one is using count() != 0 but this is not constant time, the other is:

    auto it = map.find(key);

    if (it != map.end()) {... }

    It gets a bit tiresome doing this over and over, you would think checking whether something is in the map is a common thing to want to do, why isn't there a C++ equivalent of map.containsKey(k) from Java?

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

    Help me understand Javascript relationship with Angular and AngularJS

    Posted: 20 Aug 2018 08:32 PM PDT

    Hey guys. Not sure if this is the right place to ask this. I'm a junior Python developer and currently working as a back-end developer for a web-app project. I'm currently running my back-end server using Python's library called Tornado. I've created a simple HTML/CSS/Javascript/Jquery front-end page to display the back-end data. However, my front-end dev states that we should use Angular 6 to do the UI.
     
    So my question is, what is the benefit of using Angular over barebone Javascript? What are the things that Angular can do but Javascript can't? What is the different between Angular and AngularJS?
     
    FYI, the UI is basically displaying real-live data (using websocket) in a form of list/feed. The user can then click on the feed to display a pop-up window that shows a more detailed information.On the pop-up window, the user can click a button that will either:
    1) Update or add new data to DynamoDB
    2) Or called Python back-end program to do the operation

    From what I understand, barebone Javascript can't do (1) so I need to go with (2) route. However, Angular can do (1). Am I correct?

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

    .Net and SQL - Transactions with long running processes

    Posted: 20 Aug 2018 08:15 PM PDT

    I have a method in .Net (v4.6 using Dapper), named BulkUpdate, that will modify several tables and can include around 10,000 rows or more. This operation can take a few seconds to a couple of minutes depending on the number of data being inserted. Since I will be updating multiple related tables I have to enclose all operations in a TransactionScope.

    My question is what is the best way to avoid other read requests (outside the Transaction) from being "locked" or "wait" while my BulkUpdate method is in progress. Please, I do not want to add SET ISOLATION LEVEL READ_UNCOMMITTED to the beginning of every read, nor add NO LOCK hint...are there any other solutions?

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

    Brand New To Programming- Is it wise to go ahead and back out now?

    Posted: 20 Aug 2018 12:39 PM PDT

    Let me start off by saying, I am not at all looking for a pity party here, just honest answers. You don't need to coddle me, please just be honest. I am starting a coding boot camp in October and in order to prepare myself, I signed up for a Web Design class just so that I could learn a little extra before the boot camp. I need my hand held for just about everything we have learned so far and I honestly don't even feel like I am retaining anything. Just more or less of barely understanding what we learn in class and then googling everything when I do my homework. I am just wondering for those of you who do this for a living, if I am drowning with the "easy part" of programming and its just one class at that- is it time to cut my losses and admit that I got into something way over my head? Thank you in advance.

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

    Came back to a project after a year - should third-party DLLs be included in source control?

    Posted: 20 Aug 2018 08:09 PM PDT

    I fell off the programming wagon for a little bit but I'm back with a vengeance. I came back to an old project I was working on and cloned it from GitHub, but it was missing a few DLLs for third-party libraries (Tesseract and SQLite, specifically.) I had to redownload them from their original websites.

    I use the recommended .gitignore for Visual Studio/C#/.NET and noticed it includes the /x86 and /x64 folders, where these files are located, as "build results". However, the program doesn't build without them.

    Is it kosher to include them in the repository? Does it break some sort of protocol? What's the recommended procedure here? Should they be in a different folder?

    Thanks in advance for any assistance.

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

    Places to read other people's code?

    Posted: 20 Aug 2018 07:45 PM PDT

    Hi everyone!

    I having been plodding along learning CS basics and getting familiar with Python and C. Written some basic games and practice programs. I really learn a lot when I can see the work of others, figure out what they did, and emulate it.

    Is there any where I can go to see code written by others to just read it and figure out what they did?

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

    JavaScript K&R quicksort sometimes swapping final elements

    Posted: 20 Aug 2018 07:24 PM PDT

    I'm trying to implement the K&R quicksort in JavaScript, and I've run into a bug that I've stared at for too long. TL;DR, the algorithm occasionally swaps two elements to an unsorted order, usually the final two. The code:

    sort(array, left, right, cmp) { // cmp is just something like "function(a, b) { return a - b}" // nothing to do if (left >= right) { return; } let rand = this.randomIntIncl(left, right); this.swap(array, left, rand); // set pivot let last = left; for (let i = left + 1; i <= right; i++) { if (cmp(array[i], array[left]) < 0) { this.swap(array, ++last, i); } } this.swap(array, left, last); // reset pivot this.sort(array, left, last - 1, cmp); // sort left of pivot this.sort(array, last + 1, right, cmp); // sort right of pivot } randomIntIncl(min, max) { return min + Math.floor(Math.random() * (max - min + 1)); } 

    The expected output would of e.g. 4, 8, 3, 2, 8, 9, 5 is usually 2, 3, 4, 5, 8, 8, 9, however occasionally it will appear as 2, 3, 4, 5, 8, 9, 8.

    I believe the issue is with the "reset pivot" line - the algorithm does sort the array, but in the final passes, resetting the pivot sometimes swaps two correctly-sorted elements.

    I can't see any differences between my algorithm and the one provided by K&R and I haven't been able to find anything about a bug in the K&R implementation. If you can find my mistake or otherwise provide a workaround, thank you!

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

    No comments:

    Post a Comment