Why a lot of software engineers say "javascript is garbage" Ask Programming |
- Why a lot of software engineers say "javascript is garbage"
- What is your team's practice for new coding standards?
- How to read high profile programming books?
- Scrape subreddit by flair?
- Looking for Advice for building a Website with content generated from scraping another Website.
- I am forgetting all the Data Structures I learned the last semester
- Restore (x, y) coordinates from 1d index
- Turning HTML code into a hyperlink
- Java devs, are swing or Javafx used commonly in your profession?
- Where does the phrase "Hello World" come from??
- [Processing]How do I save a 2D array of chars into a .txt/.json file? (And vice versa)
- What knowledge would I need to make this potential project work?
- Are there any solid standalone templating systems?
- How does downsampling work and why does it look better than a monitor’s native resolution?
- Im having a really hard time finding a solution for my geoLocation needs, can you help?
- Any CoreAudio courses offered in Universities?
- To add a set of radio buttons to a specified element or multiple elements
- what is the html equivalent to fragments in Android?
- How to get the Webpage Title from the list of https urls stored in a txt file in bulk from CLI?
- quick code help
- What's it called when you put print statements in different branches to see which ones get printed?
- Creating a program to submit redundant data to a webpage
- „Translating“ G-code to SVG
- How do I trace a variable back to its source?
Why a lot of software engineers say "javascript is garbage" Posted: 02 Mar 2021 12:46 PM PST aside from not having a type system, why do you think js is an ugly language, be as detailed as possible, I genuinely want to know Edit: I'm so glad that I posted here, since Javascript/ts is the language i use on daily basis it's so valuable to hear other people who are familiar with many programming languages share their opinions, so thanks everyone! [link] [comments] |
What is your team's practice for new coding standards? Posted: 02 Mar 2021 11:00 AM PST I'm on a small team that has been struggling with communication and formal processes for the last few months while we grow and get more pressure from a growing startup. We need a formal code standard process to be able to 1) introduce code standard proposals, 2) decide on whether to implement, 3) make sure the team knows what the code standards are. My thinking is to have just that: a form of some kind where people can propose them, and every period of time we get together as a team and discuss them (maybe every week or before we start the next sprint). But I was curious if there are any other processes out there that people have liked on their teams. Edit: for clarity I'm not really asking for "use linting" - we already do that, we also already test builds for PRs and all code goes through code review. I'm asking for if your team has a process or there's a process you've used in the past for code standards that aren't linting rules. E.g. "Single responsibility functions", UI layout, when to put an index on a table, naming conventions, etc. We also do use best practices for the stack when they're available, ie our naming conventions for Postgres come from Postgres best practices -- however, just because I know something is a Postgres best practice doesn't mean everyone on the team does, and we need to put that information somewhere. Currently we don't have a process to literally say "Hey this is the best practice for this, let's commit to it as a team" and agree on that and put it in a place everyone can easily find it. [link] [comments] |
How to read high profile programming books? Posted: 02 Mar 2021 11:29 AM PST In my life, I tried to read many great programming books written by great scientists, such as Structure and Interpretation of Computer Programs, Introduction to Algorithms, The Algorithm design manual, A tour of C++, Effective Java. The issue I am facing is, after reading some pages, I don't understand things and lose my motivation. I am not able to try any mathematical books because of this issue. About myself I am not an academic person, a regular developer working in startups. My intention is to understand computer science in-depth. Please, someone, help me; how can I read and understand computer science books with enthusiasm? [link] [comments] |
Posted: 02 Mar 2021 07:28 PM PST Got referred here for this question. Is there a program or system I can use or have someone build that will display the top 10 used terms under a certain flair? [link] [comments] |
Looking for Advice for building a Website with content generated from scraping another Website. Posted: 02 Mar 2021 09:41 PM PST I am looking to build a website/web app that scrapes job postings from another site that fit a certain criteria. I then want to display these selected job postings on my own website, and ideally allow a user to mark a posting as read/applied to/rejected etc. Can anyone give me advice as to their recommend tech stack for this project? I am thinking I will need a data-base backed solution. So would I need to use something like AWS to create a website, and use a lambda function to update the website content every 24 hrs with new postings? And also use a database to store job postings to see which ones are new and store user notes? Any idea on what the ongoing cost of this would be? Or - am I overcomplicating things and could instead use a free option such as GitHub pages or Heroku? Using python would be my preference. Thanks for your help and patience in advance. [link] [comments] |
I am forgetting all the Data Structures I learned the last semester Posted: 02 Mar 2021 09:31 PM PST I learned many Data Structures and currently learning Algorithm now. I usually learn about a new DS or Algo through Youtube videos or blogs. I regularly participate in online contests and try to solve at least one problem daily. But I seem to forget the all the new DSA I learn even though I understood the concepts and implemented them while learning. Well,I am not really implementing them while I solve problems but I know I need them later on and so, I need the knowledge to stay with me. Should I change my learning approach? Or Should I study harder, give up my social life? What can I do? [link] [comments] |
Restore (x, y) coordinates from 1d index Posted: 02 Mar 2021 07:04 PM PST You are given 1d index j for a matrix M of size mxn and your goal is to restore 2d coordinate of the form (row, column). Is it correct procedure? row = j mod n column = j - ((row-1) * m) + 1 [link] [comments] |
Turning HTML code into a hyperlink Posted: 02 Mar 2021 06:11 PM PST This is probably a very dumb question but I have no idea how to code and I have run out of other options. I want to create a mailto link that when people click it, it will open up their email and have an email all typed out with a subject line and have the recipients autopopulated. I have found lots of sites where I can fill in my info and they generate the HTML code for this mailto link. When I copy the huge block of code and paste it into my search bar it pulls up the email perfectly, even when I do it on my phone. But I want to be able to have a link to send people that when they click it, even on their phones, it will open up the email. I cannot for the life of me figure out how to convert this big block of HTML code into a simple hyperlink. Please help I have been working on this for days. [link] [comments] |
Java devs, are swing or Javafx used commonly in your profession? Posted: 02 Mar 2021 02:55 AM PST As part of my CompSci degree at university we've been learning to use Swing (which I'm pretty sure is very outdated) and javafx which is supposed to be more common, but I haven't seen any jobs, both grad or experienced asking for javafx experience. Is this something that should be taught or is it not worth anything in the workplace? Thanks! [link] [comments] |
Where does the phrase "Hello World" come from?? Posted: 02 Mar 2021 04:36 PM PST I'm willing to bet that most of us here have written a "Hello World" program at some point in our programming career (usually the very beginning). It's a unanimous string of text, known to almost every (at least English-speaking) programmer in the world, and has been such a popular string of choice that it has made its way into popular media!! Which begs the question, where exactly does this string come from, and why is it specifically the one used so widely?? [link] [comments] |
[Processing]How do I save a 2D array of chars into a .txt/.json file? (And vice versa) Posted: 02 Mar 2021 04:23 PM PST So, i'm looking for an script for saving a 2D char array to a JSON or txt file. I also need to load that data in another array in the code, so, if someone knows how to do that, please leave a code example it'll be very helpful. (I'm kinda new to programming). Thanks! [link] [comments] |
What knowledge would I need to make this potential project work? Posted: 02 Mar 2021 02:59 PM PST Hello, I am out of my depth when it comes to certain types of programming. I just make simple programs and macros from Visual Basic. I also have a bit of experience with writing in Python but nothing else. I have a large programming project idea though. One that I want to see become reality one way or another if possible. My company designs and builds metal stamping dies. We start by designing the metal strip that will run through the die and then design the lower and upper halves of the die around it. Here is what the lower and upper halves look like with the strip. I am pretty sure that some of the design process can be automated which will save a lot of time and money. Quite a bit of the design process is either based directly off of the metal strip or uses 3rd party components that we keep in a model library. We use a CAD program called VISI to do our design work and it does contain API's for both Python and Visual Basic and I am pretty sure the base code for the program is a mix of Python and C. I have used the Visual Basic library already but the Python set of commands is far smaller and less effective. So any project would likely have to build new functions to match those already present in the Visual Basic library. What type of programming skills/languages would someone need to create new Python functions? Should I attempt to learn these skills myself or convince my boss to hire help? If I am learning this what would be some good resources for learning this type of programming? If I am convincing my boss to hire help what should I look for in potential applicants? Any answers to these questions would be most appreciated! [link] [comments] |
Are there any solid standalone templating systems? Posted: 02 Mar 2021 02:45 PM PST Are there any standalone templating systems? My requirements are variable replacement (both defines and from env are acceptable), conditions. Loops would be nice but are not required. Small installed size. Availability in ubuntu repositories. What I know of:
So, is there anything (ideally mature) that would fit my needs? [link] [comments] |
How does downsampling work and why does it look better than a monitor’s native resolution? Posted: 02 Mar 2021 01:59 AM PST I was looking into explanations of downsampling (in terms of video games) but I couldn't find a technical answer for my question. Why does downsampling (such as 4K to 1080p) look better? I understand every 4 pixels is combined into one but how is this handled/determined? Is it coded into GPU software? Also, are there any exceptions to this? Thanks y'all. [link] [comments] |
Im having a really hard time finding a solution for my geoLocation needs, can you help? Posted: 02 Mar 2021 02:24 PM PST Alright so the gist of it is, I'm building a service based app, and the user gets to type in an address and set the location of where the service takes place. Then on the servicer app side, the servicer retrieves the location, then pulls up a navigation to get there. I have a couple of questions along with this issue, I'm using Expo, and was wondering if there was a way to achieve this without ejecting, and without using google maps (an alternative instead). Here's the gist of my questions? I'm struggling to find solutions so any help would be greatly appreciated!
[link] [comments] |
Any CoreAudio courses offered in Universities? Posted: 02 Mar 2021 01:58 PM PST I was wondering if there's a course of CoreAudio on the net. I tried Coursera and Udemy and was not able to find one. [link] [comments] |
To add a set of radio buttons to a specified element or multiple elements Posted: 02 Mar 2021 12:28 PM PST Here is a function that adds a set of radio buttons to a specified element: And here is a second version. It adds a set of radio buttons to each element. Is there a way to "merge" these two functions so that it will work for both a single element and an array of them? [link] [comments] |
what is the html equivalent to fragments in Android? Posted: 02 Mar 2021 12:26 PM PST I am currently in the process of learning HTML and am trying to replicate the list / details fragment from Android. In trying to search for this on the web, all I find are instructions on working with fragments in Android. A bit of direction would be greatly appreciated. [link] [comments] |
How to get the Webpage Title from the list of https urls stored in a txt file in bulk from CLI? Posted: 02 Mar 2021 12:43 AM PST Is there a python or any language command line to get the Webpage Title from the list of https urls stored in a txt file in bulk? Ideally: On command line, I do something like: The tool should extract the webpage title from the list of URLs. EDIT: Complete working code: ```python from urllib.request import urlopen import argparse from bs4 import BeautifulSoup parser = argparse.ArgumentParser() parser.add_argument('-i', help='path of input json') parser.add_argument('-o', help='path of output json') def main(i, o): with open(i) as f: for website in f.readlines(): soup = BeautifulSoup(urlopen(website)) print(soup.title.string) if name == 'main': args = parser.parse_args() main(args.i, args.o) ``` [link] [comments] |
Posted: 02 Mar 2021 01:20 PM PST hey guys i have tis code that i paste into f12 console for steam that comments on the selected friends profiles every 6 seconds. However it only does 1 comment then moves to the next profile. could someone code in so it comments a total of 6 times with 6 seconds inbetween each comment on eachh profile before it moves to the next. ty ToggleManageFriends(); jQuery("#manage_friends").after('<div class="commentthread\_entry"><div class="commentthread\_entry\_quotebox"><textarea rows="1" class="commentthread\_textarea" id="comment\_textarea" placeholder="Add a comment" style="overflow: hidden; height: 20px;"></textarea></div><div class="commentthread\_entry\_submitlink" style=""><a class="btn\_grey\_black btn\_small\_thin" href="javascript:CCommentThread.FormattingHelpPopup( \\'Profile\\' );"><span>Formatting help</span></a> <span class="emoticon\_container"><span class="emoticon\_button small" id="emoticonbtn"></span></span><span class="btn\_green\_white\_innerfade btn\_small" id="comment\_submit"><span>Post Comments to Selected Friends</span></span></div></div><div id="log"><span id="log\_head"></span><span id="log\_body"></span></div>'); new CEmoticonPopup( $J('#emoticonbtn'), $J('#commentthread_Profile_0_textarea') ); jQuery("#comment_submit").click(function() { const total = jQuery(".selected").length; const msg = jQuery("#comment_textarea").val(); if (total > 0 && msg.length > 0) { jQuery("#log_head, #log_body").html(""); jQuery(".selected").each(function(i) { let profileID = this.getAttribute("data-steamid"); (function(i, profileID) { setTimeout(function() { jQuery.post("//steamcommunity.com/comment/Profile/post/" + profileID + "/-1/", { comment: msg, count: 6, sessionid: g_sessionID }, function(response) { if (response.success === false) { jQuery("#log_body")[0].innerHTML += "<br>" + response.error; } else { jQuery("#log_body")[0].innerHTML += "<br>Successfully posted comment on <a href=http://steamcommunity.com/profiles/" + profileID + ">" + profileID + "</a>"; } }).fail(function() { jQuery("#log_body")[0].innerHTML += "<br>Failed to post comment on <a href=http://steamcommunity.com/profiles/" + profileID + ">" + profileID + "</a>"; }).always(function() { jQuery("#log_head").html("<br><b>Processed " + (i+1) + " out of " + total + " friends.<b>"); }); }, i * 6000); })(i, profileID); }); } else { alert("Please make sure you entered a message and selected 1 or more friends."); } }); [link] [comments] |
What's it called when you put print statements in different branches to see which ones get printed? Posted: 02 Mar 2021 05:47 AM PST I'm writing my CS dissertation at the moment and I forget what this is called. I can't find it anywhere on Google. It sounds something like "indentation". It's for debugging [link] [comments] |
Creating a program to submit redundant data to a webpage Posted: 02 Mar 2021 08:25 AM PST Hey All, Is there a way for me to write a program that could do this automatically for me? I'm thinking I give the program an Excel file with course numbers and it somehow locates those course numbers on the web page and enters/selects the information. If it is possible could anyone point me in the direction of some sources? Or at least what I should search for on the internet to make this possible. [link] [comments] |
Posted: 02 Mar 2021 08:15 AM PST Hello all, so I recently tried to turn a G-code (CNC machining instructions) into a shape in an SVG as part of an idea for a small coding project. I used Python, since that's what I am learning at the moment. Every line in Gcode is an instruction to move either in a straight line or an arc. I managed to extract all necessary information (points to be connected with lines and arc radii) from the gcode and stored them as values in Python. However, putting this information into a „blank" SVG file was very challenging and it didn't quite work the way I had planned. It also didn't feel elegant to simply paste something into an existing file. So my question is: how would an experienced programmer tackle such a task? Thank you for any advice or help! [link] [comments] |
How do I trace a variable back to its source? Posted: 02 Mar 2021 07:42 AM PST disclaimer: i'm an infrastructure guy - not a developer. did not write the application. my inherited node application uses php scripts to talk to Stripe at certain points for eCommerce purposes. at the very end of the checkout process is a stubborn variable that should be populated with the payment method id of the customer. the problem is that it isnt being populated despite the fact I see it all the way up until the final charges are to be processed using developer tools network trace in my browser. bolded the variable in question for context. 'payment_method' => $json_obj->payment_method_id as a learning exercise, how do i walk this backward to determine where the break is? thanks for any/all help. this development stuff is frustrating! [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment