• Breaking News

    Sunday, August 16, 2020

    What have you been working on recently? [August 15, 2020] learn programming

    What have you been working on recently? [August 15, 2020] learn programming


    What have you been working on recently? [August 15, 2020]

    Posted: 15 Aug 2020 09:04 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Stop burning yourself out working on a project

    Posted: 15 Aug 2020 09:53 AM PDT

    I've taught CS and programming for many years and have seen students get burned out and quit when working on a programming project. Since school is starting, as a reminder, I wanted to share these 3 simple pointers on how to approach your projects to avoid being burned out:

    1- If you are on a due date, start early and budget your time wisely to allow break time. Do NOT Procrastinate! If you know you have a problem with procrastination, now it's a good time to practice TOP (Time management, Organization, Prioritization). There are many free online tools and apps you can use to help you out.

    2- If you are working on your own project with no due dates. Set boundaries for yourself, prioritize, and purposefully implement break time for yourself. It's easy to get lost in your own project and lose track of time! Avoid falling for programming addiction. It's a real thing and it will either burn you out or affect all the other aspects of your life.

    3- If there is a bug that you can NOT fix. It's ok! It's very normal in programming for debugging to take much longer than writing the actual code. Take a break from it and sleep on it. Go do something completely unrelated and then come back to it!

    Best of luck!

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

    Udemy - Python Bootcamp and 7 more Data Science courses (free for today)

    Posted: 15 Aug 2020 06:32 AM PDT

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

    learncpp and cplusplus as discouraged resources

    Posted: 15 Aug 2020 11:48 AM PDT

    Discouraged resources

    I think these need to be removed from the discouraged resources section, or the explanation needs to be a little more specific.

    Every argument I have ever heard against cplusplus having specific issues has been corrected. As a programmer who been doing c++ for a few years now, I find that cplusplus.com is a valuable resource, and I don't see the point in steering new programmers away from the site just because they got a few obscure details wrong at some point. I know cppreference is known for being more accurate, but cplusplus has the benefit of being more concise.

    For learncpp.com, I am even more confused. That is the clearest online guide that I have found for c++. Sure, books from the Definitive guide might be better, but not everyone has that option. I actually found that guide easier to follow than beginner books I tried to learn from (e.g. primer- great resource, but thick as hell!) I think it would be a shame to guide new learners away from that site as well. learncpp.com gets linked all the time on r/cpp_questions, so I think that speaks to it's efficacy.

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

    How important is it to learn binary numbers?

    Posted: 15 Aug 2020 05:51 PM PDT

    Hey there! Noob here.

    I'm going through the FreeCodeCamp Basic Javascript stuff and saw the optional "radix" parameter in the parseInt() method.

    Is this really important?

    Should I stop FCC and learn how to read/write binary numbers?

    Will I be scolded for asking a noob question?

    Thanks in advanced. <3

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

    Should I put this on my resume?

    Posted: 15 Aug 2020 08:02 PM PDT

    Few months back I wrote a python package for camera calibration, it was essentially a wrapper around OpenCV. It helped bring down 150-200 lines of code to just 2-3 function calls from my package.

    I did nothing much than wrap the package neatly in another interface, but I am not sure if I should include this on my resume, mostly because i feel like people may overlook it as "oh he basically just re-used the function". for context : i am looking for entry level roles

    Not to undersell my work, but I think it does a few good things - makes code more maintainable, cleaner, makes sure you don't waste time on pedantic things, it's an open source contribution etc. Ofcourse the maintainability part is a stretch, the wrapper has to be internally robust so it doesn't break easily, but that's a conversation for another day.

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

    I'm starting to hate the front-end, and especially CSS. Should I just give up on it and focus more on the back-end?

    Posted: 15 Aug 2020 11:47 PM PDT

    I have a bit of a problem, and I'm not sure what to do. Maybe somebody could help me with an idea.

    I graduated from a 3 month long bootcamp in late January and I have been looking for a job since then. I already know how to built fullstack web apps. The bootcamp was javascript fullstack ( we used React+Redux for the front end ). I am working on a e-bay type of website right now, but I keep getting stuck on the front-end. I have to mention, I completely suck at CSS and I also hate it from the bottom of my heart. The bootcamp didn't really focus much on CSS either.

    My question is, should I just give up on the frontend altogether and just focus on the backend? I've finished a web design course, to learn more about CSS, but it still seems impossible to me. My problem is that websites don't look very professional without CSS, and I guess if a recruiter were to look over my projects, they would look dumb and he would move on.

    I should mention, that I love working on the back-end and solving different problems that I encounter, it's always fun. On the other hand, CSS problems do nothing but annoy me. Before this bootcamp, I had no idea what CSS even was. I always imagined it was some sort of programming language. But CSS has nothing to do with programming, it's just a set of rules that you have to remember that kind of make sense, once you learn what they do.

    I really hate CSS and I don't think I will ever be able to learn it and I feel like I'm progressing so slowly because of it. What should I do?

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

    Gitutor: A command line app that makes Git easy.

    Posted: 15 Aug 2020 06:34 PM PDT

    We have found, both in college and in the workplace, that sometimes people find git intimidating to use because of all the commands you need to remember.

    Gitutor is a command line application that wraps git and provides beginner friendly versions of git's commands. It makes git easy.

    Some of Gitutor's features:

    • Create local repositories and link them to github in one command
    • You can easily undo changes
    • Interactive menus that make your life easier
    • Have a cheatsheet right on your terminal

    You can check out the tutorial and installation guide on our website: https://gitutor.io/guide/

    Right now the project is in beta , if you find any bugs or would like additional features please email us at [support@gitutor.io](mailto:support@gitutor.io)

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

    Purpose of import keyword in Java?

    Posted: 15 Aug 2020 09:54 PM PDT

    So far in my classes my experience of using the import keyword was import java.util.* to import all of the packages within java.util or using a specific package from standard library as needed. Now if I do not use the import statement, then I will have to reference the specific package every time when using the specific instance from that package. In that sense import does not really import anything from outside source right? What is the purpose of the import keyword then, are there other ways import is used in Java? Even if we import a specific package from standard library, that library is still part of the JRE, which is indirectly a component of Java language (I really do not see anything coming from an outside source).

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

    Do I need a front end for my API?

    Posted: 15 Aug 2020 08:37 PM PDT

    So I am planning on developing a REST API for a website idea I had. Obviously a website includes a front & back end. I'm doing this for the learning experience and to also add something to my resume. My question is would it look bad on my resume if I only developed the API and not the front end? I would test my API using postman so I know it works and all. I'm just a little short on time and would rather focus on developing the API. I'm mainly worried that employers would see that I only made the API and didn't apply it to a front end and look at that negatively.

    Thanks!

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

    Learning Best Practices

    Posted: 15 Aug 2020 08:35 PM PDT

    So I've been learning Python for a couple years now and am now switching to learn C#. I'm still fumbling around in both languages because I'm not sure how I design a program correctly. What I mean by this is What do I need to have in every program to be more professional?

    I do most of my programming at work in Python as a way to learn it. I started off really messy with my code, doing it procedurally, no comments, print statements to debug, etc. After having to debug my code I got confused and spent too much time trying to figure out what the idiot who wrote this code was thinking. So over the past few months I tried doing things differently . I use logging instead of print statements. I am learning and using unit tests but this is a new concept for me. I also make it a habit to add comments for each of my methods and break my code down to simple methods instead of 50 line functions. I use git and Gitlab to keep track of my changes.

    Now that I'm learning C# its a bit more difficult. I'm doing the same practices I use in Python but I still feel like I'm not doing something right. It seems that there is alot more in C# that goes into a program and I have to do more to have sustainable code. Its probably because Python does alot of work for me.

    What are some of the things you guys do in all the programs you write in C# or Python? What are some good best practices and why?

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

    What’s the main subreddit for C?

    Posted: 15 Aug 2020 04:49 PM PDT

    What's the main subreddit for C?

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

    Python course for total beginner in progamming

    Posted: 15 Aug 2020 08:30 PM PDT

    I really appreciate all the free content out there, I've been doing some tutorials from Youtube to understand "the basic".

    However I find it hard to follow along. It's probably just because I'm stupid tho.

    I don't know how to explain my concerns in details but I feel that much content out there only has 2 levels of teaching. First they teach you the basic, like data types, variables, loops etc. Second you finish of by doing a pretty easy loop.

    I want to learn much more about, example "loops" and use the previous knowledge I just got from variables, data types etc. and use everything to make a easy program.

    Same issues when you learn about methods. They show how to get all the methods by .(methods) or even some functions() but never teach you in what kind of scenarios you use some methods.

    Again, for me it's really hard to remember the information that I got and keep following and fully understand the next features that I learn.

    Perhaps I should just accept that I'm not able to learn :P

    Thanks for reading

    submitted by /u/Upper-Pear-9694
    [link] [comments]

    I made a React tutorial for beginners to really understand concepts and think in React. I build a project using Vanilla JavaScript and then the same thing using React to know why frameworks even exist in the first place.

    Posted: 15 Aug 2020 05:08 AM PDT

    I've been teaching for a while now. Most beginners using React don't understand why is it used in the first place. This makes it difficult to understand concepts like Virtual DOM, components etc.

    Once you really understand why a tool exists, using it makes more sense and you get an intuitive grasp of it. Unless you know where you're coming from it's hard to know what you're doing.

    This is a pretty long video but have been getting good feedback from students that it has improved their understanding of React.

    https://www.youtube.com/watch?v=LDKnz5gwdz4

    Please note this is for beginners. Intermediate and advanced folks will find it boring.

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

    zyBooks is terrible

    Posted: 15 Aug 2020 08:06 PM PDT

    Hi all! I just started my Software Dev degree at WGU in July. I was using Codecademy but I have some GI Bill left, so I figured I might as well use. So here I am. I am currently in the Scripting and Programming - Foundations class. I am enjoying the material except zyBooks is terrible. I am hoping that zybooks is not used in my upcoming classes. Anyone else experience this with zybooks? My biggest question is why the program switched from Udacity to zyBooks? It seems like Udacity would be a better option for this program.

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

    ValueError: could not broadcast input array from shape (256,2) into shape (256) in Python

    Posted: 15 Aug 2020 07:55 PM PDT

    I am working on creating a plot for my ARIMA model in Python and comparing it with my train and test set but I am unable to successfully get it plot. Everytime I check out a tutorial and try what others have done I get a different plotting error. I would really appreciate if anyone can help me with this issue.

    Data

     Date Crime 0 2019-10-31 147 1 2019-11-01 162 2 2019-11-02 130 3 2019-11-03 150 4 2019-11-04 130 ... ... ... 251 2020-07-08 63 252 2020-07-09 65 253 2020-07-10 49 254 2020-07-11 45 255 2020-07-12 31 

    Code

    import pandas as pd from statsmodels.tsa.arima_model import ARIMA import seaborn as sns import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter # Change Date format df_train['Date'] = pd.to_datetime(df_train.Date, format ='%Y-%m-%d',errors='coerce') df_train = df_train.resample('D', on = 'Date').mean() df_test['Date'] = pd.to_datetime(df_test.Date, format ='%Y-%m-%d', errors='coerce') df_test = df_test.resample('D', on = 'Date').mean() # Model & Forecast arima_mod = ARIMA(df_train, order=(1,1,1)).fit(disp=0) arima_mod.summary() arima_for = arima_mod.forecast(len(df_test)) # Plot fig,plt.figure() fig, ax = plt.subplots() plt.title('ARIMA Model', fontsize = 20, pad=70) plt.xlabel("Date",labelpad=30) ax.xaxis.set_major_formatter(DateFormatter('%b %Y')) plt.plot(df_train, label = 'Train') plt.plot(df_test, label = 'Test') plt.plot(arima_for,label = 'ARIMA') # Where I get the errors plt.legend() 

    Error Message

    --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) ~\anaconda3\lib\site-packages\matplotlib\cbook\__init__.py in index_of(y) 1626 try: -> 1627 return y.index.values, y.values 1628 except AttributeError: AttributeError: 'builtin_function_or_method' object has no attribute 'values' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) <ipython-input-39-f85e69646e74> in <module> 10 plt.plot(df_train, label = 'Train') 11 plt.plot(df_test, label = 'Test') ---> 12 plt.plot(arima_for,label = 'ARIMA') 13 14 ~\anaconda3\lib\site-packages\matplotlib\pyplot.py in plot(scalex, scaley, data, *args, **kwargs) 2761 return gca().plot( 2762 *args, scalex=scalex, scaley=scaley, **({"data": data} if data -> 2763 is not None else {}), **kwargs) 2764 2765 ~\anaconda3\lib\site-packages\matplotlib\axes\_axes.py in plot(self, scalex, scaley, data, *args, **kwargs) 1645 """ 1646 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D) -> 1647 lines = [*self._get_lines(*args, data=data, **kwargs)] 1648 for line in lines: 1649 self.add_line(line) ~\anaconda3\lib\site-packages\matplotlib\axes\_base.py in __call__(self, *args, **kwargs) 214 this += args[0], 215 args = args[1:] --> 216 yield from self._plot_args(this, kwargs) 217 218 def get_next_color(self): ~\anaconda3\lib\site-packages\matplotlib\axes\_base.py in _plot_args(self, tup, kwargs) 332 y = _check_1d(tup[-1]) 333 else: --> 334 x, y = index_of(tup[-1]) 335 336 if self.axes.xaxis is not None: ~\anaconda3\lib\site-packages\matplotlib\cbook\__init__.py in index_of(y) 1627 return y.index.values, y.values 1628 except AttributeError: -> 1629 y = _check_1d(y) 1630 return np.arange(y.shape[0], dtype=float), y 1631 ~\anaconda3\lib\site-packages\matplotlib\cbook\__init__.py in _check_1d(x) 1324 ''' 1325 if not hasattr(x, 'shape') or len(x.shape) < 1: -> 1326 return np.atleast_1d(x) 1327 else: 1328 try: <__array_function__ internals> in atleast_1d(*args, **kwargs) ~\anaconda3\lib\site-packages\numpy\core\shape_base.py in atleast_1d(*arys) 65 res = [] 66 for ary in arys: ---> 67 ary = asanyarray(ary) 68 if ary.ndim == 0: 69 result = ary.reshape(1) ~\anaconda3\lib\site-packages\numpy\core\_asarray.py in asanyarray(a, dtype, order) 136 137 """ --> 138 return array(a, dtype, copy=False, order=order, subok=True) 139 140 ValueError: could not broadcast input array from shape (256,2) into shape (256) 
    submitted by /u/kosar7
    [link] [comments]

    MySql big data question

    Posted: 15 Aug 2020 11:34 PM PDT

    i have my users and those users have their inventory. should I in mysql database create table with their UID in the name to access their inventory for each users or create only one table with all items and item has user uid?

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

    Trying to understand at-rules on CSS, need help.

    Posted: 15 Aug 2020 07:48 PM PDT

    I'm learning coding from scratch and it seems like the more I learn the more I don't know or understand. Slowly but surely I'm sure I will build my foundation and the next thing to mark off my ever expanding list is the at-rules, specifically when applied to buttons. So my dilemma is that I understand you have to give extensive detail to every component especially if it carries a function, but if I want a clickable button on my front page I think I have to link it if I want it to take you to a similarly designed page within the same app. But every example I come across for using buttons in an html document directs me to use the at-rule and create a separate CSS page that describes the button. SO is the link on a button just an href link to another html document? or are most apps just one html page and various CSS pages that just make alterations to the same html page based on what you clicked? I get that an App has html components, css components, and likely javascript components, but I haven't seen mention of several of either except for multiple CSS pages. Also what at-rule would you use when creating an app that takes you to a similar page with different content? Sorry if that's a lot of questions all rolled into one.

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

    Generate code since UML digram

    Posted: 15 Aug 2020 11:18 PM PDT

    How can I generate code since a UML diagram automatically for any language program ?

    I mean I want download any diagram in internet and use a tool to create code or scrip automatically, and if possible, integrate excel in the value

    ... similar to Visio diagrams since Excel tables

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

    First open-source contribution - i'm lost in all of that code

    Posted: 15 Aug 2020 11:12 AM PDT

    Hi.

    This is my first open-source project i want to contribute - Youtube DL - but i have a problem.

    I'm lost in all that code, there are few comments, no documentation, i don't know what happens in this code.

    I know python, i'm not confused by the syntax etc, but in the end i maybe understand 10% of code behaviour in this project.

    Any advices for open-source noob? :)

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

    My Android development book 'Android Development for Gifted Primates: A Beginner's Guide' will be free over the weekend 08/15/20-08/16/20!

    Posted: 15 Aug 2020 02:05 AM PDT

    I recently received a message on LinkedIn by someone that had read a sample of my book and wanted the rest of it but couldn't afford it. I have received a number of similar messages over the years and I always send them a PDF copy.

    However, this time I thought 'You know what? I haven't run a free giveaway for this book in ages' so I decided to make it free for everyone during this weekend!

    Grab your copy HERE and enjoy! It's not your run-of-the-mill programming book (it's kinda funny and, well, pretty foul-mouthed) so you've been warned.

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

    Is pygame good for learning python programming?

    Posted: 15 Aug 2020 06:57 PM PDT

    Hello, I have a question is pygame is actually good for learning python, I mean with pygame can I understand algorithms and stuff like that.

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

    When did you feel like you could sit and code on your own?

    Posted: 15 Aug 2020 10:35 PM PDT

    I keep doing tutorials and reading about programming in javascript. I can always get through it and I can usually find my bugs when something isn't working right. But at the end I never feel like I could write on my own. Without following a tutorial I wouldn't be able to write on my own. Am I missing something? I just don't feel like I could sit down and start to code an app, I don't know how to write it or how to start. I just feel like I'm copying but not really learning how to do it on my own. How did you get around/past this?

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

    Weird Linking Error Problem

    Posted: 15 Aug 2020 10:34 PM PDT

    This is probably really simple but I'm completely stumped.

    I added a new hpp file (entt) to my project and when I compile it gives me a 1104 linking error because the lib file wasn't being generated. From what I could understand from online this is has something to do with build order or dependencies, but here's the interesting part I have another version of the project that is different but the hpp file in question was linked the exact same way and has the same build order. Because I'm using premake to deal with all the properties of the project and the solution files, I have generated both solutions with the same premake file and one still fails and the other doesn't. Also I can see that the hpp file is being referenced under the external dependencies and it is being used the same way.

    Here's the output: 5>LINK : fatal error LNK1104: cannot open file 'C:\Dev\Maple\bin\Debug-windows-x86_64\Maple\Maple.lib'

    I have also narrowed it down to this line of code: auto group = _Registry.group<TransformComponent>(entt::get<SpriteRendererComponent>); *Note I know it's this line that causes the linking error because other parts of the hpp file are being used in other files.

    I'm just really confused how I have 2 solutions with something implemented and used the same way, yet one fails and the other doesn't, especially because other hpp files have cause no problems

    This is what I have tried so far:

    - regenerating the project and solution files using the same premake file

    - I have compared all files involving the hpp file in question they're the same *I used a tool to compare them

    - I compared both the premake files and properties of all projects and the solution files

    - deleted my bin and intermediaries

    - completely re-implementing the hpp file from a backup

    - and yes I restarted my computer...

    Any help on this would be greatly appreciated

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

    Wanting to get a job in back-end web app dev (ASP.NET), any course recommendation?

    Posted: 15 Aug 2020 10:34 PM PDT

    Does anyone have any good recommendations on any course to land an entry-level position as a backend developer? I'm more interested in ASP.NET and Pluralsight is doing the weekend of free premium services, but I don't mind suggestions from course outside of pluralsight

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

    No comments:

    Post a Comment