• Breaking News

    Wednesday, April 28, 2021

    What would be a good short activity that would impress people and get them excited about programming? Ask Programming

    What would be a good short activity that would impress people and get them excited about programming? Ask Programming


    What would be a good short activity that would impress people and get them excited about programming?

    Posted: 28 Apr 2021 07:31 AM PDT

    I'm trying to put together a short (couple of hours) activity for a group of novices that would impress them and get them excited about the idea of programming.

    Right now I'm thinking about scaffolding out something like, "Build your own Reddit" where all the snippets are provided and the CSS is set up for them ahead of time so they get to go through the instructions, add in snippets and then boom, they've built Reddit.

    I'm sure there's better ideas out there though.

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

    When to use rxJava vs Observable pipe?

    Posted: 28 Apr 2021 10:08 PM PDT

    Today, i come across how react is also available in Java but i am wondering will be be better to use react in javascript than in Rx Java?

    And is RxJava available in SpringBoot?

    Hope someone can enlighten me.

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

    Needed A Database for My form data

    Posted: 28 Apr 2021 09:53 PM PDT

    Hey So i wanted to collect some form data and i want to also some implement some sort of search that filters thru the data and returns some results.It is a React App. What should i do?

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

    hey y'all, advice on tech stack for building a basic social media app?

    Posted: 28 Apr 2021 06:02 PM PDT

    not sure what the standard is these days, but thought I'd shoot my shot, thanks!

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

    Creating a form that counts the amount of checkmarks entered

    Posted: 28 Apr 2021 05:57 PM PDT

    I am a designer with a basic understanding of html/css.

    My client is looking to have a 7 column, 4 row, yes and no answer form where at the bottom it displays how many yesses and noes where chosen per column.

    Image here

    You would click/add a check on yes or no for the question in each row and the total number of checked should be displayed att the bottom.

    Is there a free form builder or something that could be used to make something like this in a short amount of time?

    The form would be used on a shopify page so it needs to be embeddable.

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

    Where to get intraday min-by-min crypto / stock data?

    Posted: 28 Apr 2021 07:44 PM PDT

    I want to make some projects based around intraday live data for crypto coins / stock data. I don't want to use a premium or freemium api. Any solutions besides scraping a webpage every min?

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

    How would you call class that modifies data? (python, dataframe)

    Posted: 28 Apr 2021 06:55 PM PDT

    I am lacking a vocabulary to name things.

    After getting data in form of dataframe I need to add some columns data, remove some columns.

    How would you call class responsible for that? Is Modifier ok or is there some better name in your opinion?

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

    Why does calling other methods before the do block work in ruby

    Posted: 28 Apr 2021 05:57 PM PDT

    in ruby the below two are equivalent n_array.select { |num| is_prime?(num) }.count

    n_array.select.count { |num| is_prime?(num) }

    count relies on the collection returned from the select

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

    What is the name of this algorithm.

    Posted: 28 Apr 2021 12:54 AM PDT

    I was wondering about the algorithm which gives the number of times a bit has been flipped in a bit string.

    For example:

    In string 0110010111 The count is 5 because the bit has changed 5 times i.e., 0->1, 1->0, 0->1, 1->0, 0->1

    I m sure this is a common algorithm taught in college. What is its name?

    Edit: corrected number of flips

    submitted by /u/cold-cold-world
    [link] [comments]

    Why is my else statement causing a syntax error? (Line 16) PYTHON

    Posted: 28 Apr 2021 04:17 PM PDT

    def decode(inputfile,outputfile):

    inputfile = open("superdupertopsecretstudyguide.txt","rU").read()

    outputfile = open("translate.txt","w")

    count = 0

    aList = []

    for words in inputfile:

    aList.append(words)

    charCount = len(aList)

    outputfile.write(''.join(aList))

    while count<charCount:

    print (aList[count]),

    if (aList[count].isalpha()):

    if (ord(aList[count])>90):

    count = count + ord(aList[count])-95

    else:

    count = count + ord(aList[count]-63

    -----> else:

    if (aList[count].isdigit()):

    count = count + ord (aList[count])-46

    else:

    count = count + 6

    outputfile.close()

    decode("superdupertopsecretstudyguide.txt","translate.txt")

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

    Big O Space Complexity Question

    Posted: 28 Apr 2021 03:48 PM PDT

    Hi all, I have a quick question on space complexity. Let's say I created a stack using an array of size n and I popped off every value in the end so the stack size becomes 0. Would the space complexity of the stack be considered O(1) for the end or would it be O(n) since that was the max size at one point?

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

    Recommended Starting Point for Skill Set in Software or Full Stack Web Development

    Posted: 28 Apr 2021 11:41 AM PDT

    Being an intermediately experienced programmer with a passion, I have been wanting to acquire as many technical skills as I can for software development. Some research has lead me to topics I have 0 clue about: databases & concurrency, Node.js, Angular, React.js, SQL, etc. (forgive any misuse of any terms). Further research into these terms has gotten me even more lost, like watching countless tutorials on Node.js on Youtube labelled 'for beginners', which use jargon that they make seem obvious to any beginner but which I have never heard before (e.g. 'Node,js uses a single-thread event loop').

    My goals are to develop a workable set of technical skills in software or full stack web development given that I am familiar with the JavaScript, Python, HTML, and CSS fundamentals. I am currently leaning toward learning/understanding Node.js, React.js, Angular, and creating a portfolio website with projects I've completed. However, I am getting lost with all the information online that seems to have no starting point, and so I am asking my favourite developer community for some pointers.

    More specifically:

    • What is a recommended, straightforward list of useful skills/programs/software that one should learn and gain experience with for software development (and ideally, explain why are they useful)?
    • Where should I begin learning? What should I start with?

    And for anyone with experience:

    • Where and how did you cultivate your software development skills, and where did you gain your expertise in the field?
    submitted by /u/Stunning-Cloud-8773
    [link] [comments]

    what is controller in practice?

    Posted: 28 Apr 2021 11:30 AM PDT

    I am reading a lot about clean architecture and all these terms I can't understand and when I google it's all some technical explanation.

    First one I need to know is what is Controller?

    Is is this: when I enter command in command line then it activates the function which gathers all the other classes and functions in order for the command line to be executed?

    For example: I run import data and then function import_data() calls the necessary functions from API, UseCase and DataBase in order so that the import data command executes from start to finish.

    Is that what Controller does?

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

    Lost in this team environment , looking for self improvement or just call it a quit ?

    Posted: 28 Apr 2021 03:32 AM PDT

    I will start of saying i have less than 2 years of experience in web development , i picked up Flask in september less than 2 years ago.I dont know how good i was at it but just last year i finished my first freelancing project for a online scheduling and payment app where i earned 5 stars and i had good experience working for that client.

    I have worked on four projects so far, and this is the first one i am having real troubles with. Ever since i was coding alone mostly, i didnt have a team leader.

    Prior the start of project, i was hired to work on back-end and CLI app for easier resource management, and i was asked to i know any another language/framework beside i said yeah i am working with Vue.js. Before we started to work i told him i dont have team experience and that he should keep that in mind he was fine with it.

    To make things little bit shorter , i worked on User and Company management based on micro service architecture. I think i had very good skelet somewhat after 80 hours of work on it the CLI app was also 70 % ready and it was usable for basic initialization of things that where required app to work.

    All of the sudden my client told me , he needs front-end app working "ASAP". Naive as i am i said yeah ok i can get onto that. After that comes a long period of ghosting ( almost 1 month ) , i had zero input on how does he see his app , and how does he want certain components to work . I didnt search for hand holding i literally had no answer on how some things should work , i tried to report daily , then i stopped ever since i saw it makes no difference.

    After he got back from ghosting , i saw him hiring another back-end developer and he moved me to work on front-end.Since experience has been pure horror , i guess for both of us. He uses issue based git work flow. And i will admit i had some mistakes in begging , and i took the note right away and improved those areas.

    I will point out few things , Team Leader doesn't know JS very well and has zero experience with Vue.js , QA ( wich is back-end developer he hired after he moved me to FE) is on same boat.

    Yesterday after 10 days of not answering my work flow suggestions he wrote "why we cant launch this app , i am spending my money why is it taking so long". I still tried to be polite as possible , once again i explained that his issue work flow will either cause missing some pieces of features or create merge conflicts.

    He said that he is frustrated with my issues being opened that is correct but i pointed out to him that i requested one merge 6 days ago , while other 6 branches are waiting and that we need to merge them one by one. Again no answer.

    I spoke to back-end developer that said to me between lines how my client is not happy with issues being in due ( branches are pushed 6 days before due ). So i just wrote a message to client that i will be available for another 10 - 12 days and ill fix the things that pop up mean while pro bono until he finds a new web developer.

    I truly dont see other way out , on the very end of this post i will say that i am far away from being a good leave apart great programmer , iv noticed my flaws from inconsistent variable naming , being too quick on some solutions , lack of git - team experience. Perhaps i didnt explain the issues with the branching in correct manner. I truly dont know but i guess the lack of trust comes from the fact i am not producing good or quality code for him. So ill just leave the project behind .

    What is the best thing to do in this kind of situation , i really want to grow as developer i never ever took someones criticism in a bad way i just try to learn from it. It really bums me out that despite the best efforts i failed to produce the things that where expected from me...

    Sorry if this turned out to be some sort of rant full of grammar mistakes i hope someone will try to read it and give me some sort of advice.

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

    Feedback / code review for my React portfolio project?

    Posted: 28 Apr 2021 01:33 PM PDT

    Hello everybody.

    I made an app which takes the data from the API and shows you the condition of stocks from the American stock market - prices in the last week and monthly prices during the last 2 years. The code is in my GitHub account and the live preview can be accessed through the link in the readme. I would like to ask for criticism as I'm a beginning React developer (been learning since the beginning of the year). Is the app looking good (as in 'not bad')? Is the code simple enough with good clarification in the comments? Should I be ashamed to show such a project to some potential employer?

    https://github.com/jakubbokwa/stockinfohelper

    Thank you all in advance for any help.

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

    XAMPP?

    Posted: 28 Apr 2021 12:58 PM PDT

    I am currently studying PHP for an A level (British high school diploma) . We use xampp to code, but it seems kinda sketchy to me. Can anyone justify if it is dangerous (A classmate's laptop recently was corrupted, so I feel a litle bit apprehensive about using it)

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

    SEO for singe page web application?

    Posted: 28 Apr 2021 10:25 AM PDT

    I'm making a simple calculator that calculates something, let's say interest rate. Now, I was thinking got build it fully using Javascript and use client-side rendering for the whole calculator. I won't make money or put apps on this website, so I need to make it run on a budget. But someone said it won't be SEO friendly and you should use server-side rendering.

    Let's assume I have e small server, and can't afford a crazy amount of load to the server, here is my questions:
    1- If the calculator is fully used client-side rendering, I won't need a larger server even if the traffic is high? is that correct? Now, I use a shared account with Bluehost.

    2- If I do client-side rendering, roughly what am I saving on exactly? load on the server?

    3- for client-side rendering, that means the user will send one request to the server, once he/she get the website, no matter how they use the web app it won't put a load on the server, is that correct?

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

    I am writing a Java method to populate an ArrayList and then sort it. IntelliJ suggested some crazy lambda instead of an anonymous inner class; I like it but I do not understand it. Could anyone help explain what is going on here?

    Posted: 28 Apr 2021 10:23 AM PDT

    keyValuePairs.sort((pair1, pair2) -> pair2.getValue().compareTo(pair1.getValue())); 

    I get that the lambda is telling sort() how to compare the Pair objects based on the value field of each pair but how does this satisfy the input parameter of sort() which is supposed to be of type Comparator<? super E>

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

    A collaborator on my github repo is unable to merge his changes to the main branch.

    Posted: 28 Apr 2021 06:03 AM PDT

    Hi, fellow programmer here, I am able to do everything without fault but my friend is experiencing the complete opposite.

    Here is what he is experiencing in his own words:

    Me and one of my friends are working on a project in Github. We have a single branch we're working on together, and I'm trying to merge the changes I've made from the file I've downloaded onto the main file stored on Github. However, when I execute the "git pull/push/merge origin main(the name of the branch)", it flips me a variety of errors,

    git pull tells me "fatal: refusing to merge unrelated histories", git push tells me to perform a git pull beforehand, and git merge gives me "origin, not something we can merge"

    Screenshots and other data available on request.

    Thanks.

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

    How do I leverage my mechanical engineering experience to transition into big data engineering?

    Posted: 28 Apr 2021 09:39 AM PDT

    I'm a mechanical engineer with a big aerospace company. In every role I've had including this one I've been a part of a team that initiated big data within the manufacturing environment in order to improve output. All my work has been on the bottom end. Working with inspection, programming tracking variables in Place, etc. I like the work to be fair, it's given me a great idea of how data can be physically captured at the base level.

    But I think I want to move towards higher level development. Working with Hadoop or Big query to integrate a system at the top level that makes that data useful for engineers or management.

    What should I get into to build here? Should I quit and get a second bachelor's. Should I learn and get certifications on the side? Which ones? Lmk if you have similar experience.

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

    What language to use for timeline program

    Posted: 28 Apr 2021 06:50 AM PDT

    I want to write a program for a user-friendly timeline generation. As in, you put in an event, description, start and end date, etc, and it add the event to the timeline (possibly with different branches based on predefined categories) and gives a visual representation of the data.

    I'm currently learning Python and PyQt5, but would a different programming language or module be better for this type of project?

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

    In dynamic array of capacity 10(here I am talking about capacity and not size),if all the 10 blocks are filled, and we need to add another element,what happens?

    Posted: 28 Apr 2021 04:55 AM PDT

    Does it create a new array of capacity 20,copy the prev elements and then add the new element?

    If this☝is what happens,then how is it any different from static array?

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

    No comments:

    Post a Comment