How do developers get their UI to look exactly the same on mobile and inside the browser? Ask Programming |
- How do developers get their UI to look exactly the same on mobile and inside the browser?
- Is there any hard evidence that functional programming is better?
- How good/productive is it to learn three programming languages at the same time?
- is it possible to get a programming job without a CS degree
- Can I put projects in progress on my resume?
- I have $150 what are some cool programming/tinkering related things I can spend it on?
- C# bootcamp with Mac or switch to Java?
- HELP - How to make Ticket/Seat Reservation, Purchase, QR Code, and Ticket Validation
- Learning OpenMP Right Now. Our class has code written for parallelization and runs the same script twice, but with two different runtimes. Any reason why?
- Polling vs hosting a temporary webserver?
- Brute force a multiple choice test
- Using an array in a loop help?
- What's great about working in telecommunications?
- Trying to figure out how to pull the 14-day forecast from Weather.com with Python, and I can't quite figure it out. I think it boils down to me being clueless when it comes to APIs?
- where can I promote my website
- What are areas in which "one man teams" can still make contributions?
- WP Plugin giving 404 error. What can I do about it?
- Dump a JSON list to a file in Python?
- Developers, which programming path should I take to start freelancing?
- Not sure where to start on a project
- Can I use an else statement in a while loop in C#
- Need some advice on screenshotting elements
- Help with netbeans
- What's the VSCode equivalent of IntelliJ "Live Templates"?
How do developers get their UI to look exactly the same on mobile and inside the browser? Posted: 05 Apr 2021 07:45 PM PDT Forgive me for my beginner question, I don't know a lot about mobile development but I would like to learn. I've always wondered how developers are able to make an app that has the exact same UI on a mobile device, and in the browser or even a desktop app (for example, Discord). In addition, it's interesting that the mobile apps can be look the exact same on an iPhone and an Android. I am aware that you can use flutter for this, but then, how do they build the web application that runs in the browser and looks so similar to the mobile app? How do they go further to build a desktop app that looks similar as well? I would appreciate if someone could explain to me how this works. Do developers use different technologies or are they able to use the same frameworks and languages when developing for web and mobile. Thanks EDIT: I am not asking about the mobile-first approach (building a web app and testing it in the mobile browser) but I am instead asking how developers build web apps (browser) versus mobile apps (App store or Google Play) versus desktop apps (electron apps, QT, etc) that look exactly the same. [link] [comments] | ||||||||||||||
Is there any hard evidence that functional programming is better? Posted: 05 Apr 2021 10:46 AM PDT I have a belief that pure, functional, higher order, explicit recursion free, and so on, code is better — easier to write and understand, less faulty, more performant, and so on. But do I have any evidence for that? Nah. My experience confirms this belief, but I am fluent in several functional languages and have never been comparatively proficient in any imperative language to begin with. I also live in the echo chamber of the functional programming community. I might be wrong! A cursory search reveals a study that claims strongly statically typed functional languages with garbage collection to be surely a little better than average. It has been reproduced and, although many claims were not confirmed, this one claim was. The effect size is not too big but not tiny either. Is this one item long literature review in any sense complete? Are there any pieces of research that claim the opposite? What should a rational person believe about the efficacy of functional languages? [link] [comments] | ||||||||||||||
How good/productive is it to learn three programming languages at the same time? Posted: 05 Apr 2021 07:43 PM PDT What's up guys! Hoping you are safe at home, I need some help and guidance. I'm currently in my third year of computer engineering, and I've only been passed so far Java and R (for applied statistics) and in fact everything that follows in my college career is with Java. However I'm in my internship I and working with database I'm working with PHP (due to the little time I have I'm working with Laravel). These would be only the programming languages of the university career. The big "but" is that the sector in which I am interested and where they offer me more work is using Python (although I do not pass it in the university career) and I have a little free time during the weeks. Would it be good to start learning Python? apart from dedicating myself to the other programming languages of the career? I really hope you can help me. Regards! PS: If you think it's a good idea, could you give me some tips to avoid stress/anxiety? [link] [comments] | ||||||||||||||
is it possible to get a programming job without a CS degree Posted: 05 Apr 2021 08:33 PM PDT | ||||||||||||||
Can I put projects in progress on my resume? Posted: 05 Apr 2021 07:21 PM PDT Hi, I am currently a student on his last semester of school, and my school is having an internship fair next week, and I don't have any completed projects on my resume yet of any notability, so this semester I choose classes where all of them have semester long projects and I could add to my resume, would it be wise to put the projects I am currently working on in my resume or should I wait until they are all completed. I still plan to put all the fields I have studied at school and all the programming languages in there to, and any advice would be helpful. [link] [comments] | ||||||||||||||
I have $150 what are some cool programming/tinkering related things I can spend it on? Posted: 05 Apr 2021 04:11 PM PDT | ||||||||||||||
C# bootcamp with Mac or switch to Java? Posted: 05 Apr 2021 04:57 PM PDT I have veterans benefits, so I'm going to a bootcamp. I have the choice between C# and Java. And I only have my MacBook M1. The admissions guy at the boot camp said "there's sometimes issues with C# and Mac, but I'm not a programmer so I can't say definitively." So I'm waiting for a course instructor to get back to me eventually. In the meantime. Is C# useable on OS X for a bootcamp or should I just switch to Java? I read universities use .net frameworks instead of .net core and this may cause issue with OS X. If I even have my terms correct. It's my first language anyways so I guess it's not a huge deal but I kind of had my heart set on C#. I don't know what kind of remote Java jobs there are based on my googling, it seems JS has taken over everything. [link] [comments] | ||||||||||||||
HELP - How to make Ticket/Seat Reservation, Purchase, QR Code, and Ticket Validation Posted: 05 Apr 2021 09:02 PM PDT Hi all, I'm currently trying to build a full-stack ticket reservation app (like fandango) that handles all the functions mentioned above but I cant seem to find any notes whatsoever on how something like this can be made. You'd think something like this would be common knowledge but I cant find anything. Has anyone here made something like this or knows how these large venues made their ticketing systems? I'm looking for a solid starting point so I can start right away. [link] [comments] | ||||||||||||||
Posted: 05 Apr 2021 08:37 PM PDT As stated, I have a project where we are asked to write a program that makes a fractal image. One of the questions we have to answer is this:
Like it says, the code is compiled, and a submission script runs the same code in this order : 48, 1, 12, 24, 36, 48, and 60 threads. This is done an a supercomputer with hyperthreading enabled. OpenMP compilation with -O3 flag turned on I got the following runtimes:
I'm not sure how to answer this question though. My first two assumptions is because hyperthreading is enabled, and the runtimes are not guaranteed to be the same depending on system needs, or that or because we're running these submissions back to back that the cash is now loaded up from the previous computations. The code, executable, and submission script is the exact same, except for the number of threads that are being passed in. So is one of my two assumptions right? Is it either that hyperthreading is enabled or that when we rain the first submission that it was dealing with a cold cache and had more memory to fetch? [link] [comments] | ||||||||||||||
Polling vs hosting a temporary webserver? Posted: 05 Apr 2021 02:36 PM PDT Scenario: I'm writing a VS Code extension that launches another process that will eventually launch a python script that will host a webserver, all on
No. 2 is a completely asynchronous operation. Basically we are launching an app and passing the path to a script, and once the app is done doing other processing, it runs the script. This could take less than a second, or it could take minutes, depending on what we tell it to do. But again, for simplicity's sake, let's assume it will launch completely within 1 second 99 times out of 100. Here is the strategy proposed by my coworker:
I personally don't like the idea of making the same request in a loop. I would rather do something that wouldn't cause a college professor to give me an F:
I feel like I understand the pros and cons of each approach pretty well, but I want your thoughts on this. Both approaches will work, but his idea seems more fragile in my opinion, and requires doing a polling request in a loop. On the other hand, my approach requires an intermediate webserver, which is not great. But it will likely feel snappier to the user, and won't require superfluous requests. What would you do? Am I over-thinking this? Does it even matter? Open to other suggestions as well! [link] [comments] | ||||||||||||||
Brute force a multiple choice test Posted: 05 Apr 2021 05:17 PM PDT I have to pass an online test with unlimited tries. 10 questions, 4 possible answers each. At the end of the test it tells me the number of correct answers, bot not which ones are correct. Is there a way to brute force the probability of an answer being correct after so many tries? [link] [comments] | ||||||||||||||
Using an array in a loop help? Posted: 05 Apr 2021 04:15 PM PDT } ----------------------------------------------------------- I'm having trouble with this problem. Basically every loop I want to allow the user to place a pixel every time on a button press, using an index counter, that way it will treat every loop as a new variable as opposed to just moving a single point around the screen. But every time I try to place a pixel it vanishes very soon after pressing the button. Any suggestions? [link] [comments] | ||||||||||||||
What's great about working in telecommunications? Posted: 05 Apr 2021 03:27 PM PDT I have an interview for a job tomorrow and I know "why do you wanna work in telecommunications?". Honestly an honest answer from me is "I'm graduated college in a pandemic and Ill take any job I can get" wouldn't go down so well. So I'm wondering if anybody would have a good answer. Im not saying its boring at all, I just dont know enough about it to think of good answer. Is there any cool reasons? [link] [comments] | ||||||||||||||
Posted: 05 Apr 2021 02:58 PM PDT I fully realize that this is probably too specific and minor of an issue for anybody here to help, but I figured I'd try anyway. I'll try Stack Overflow too. Worst case scenario is that I can tailor my Stack Overflow post to avoid the angry repliers. Brief description of my goal: Pull weather forecasts for multiple cities every day and then compare their accuracy to the actual weather. For example, how close are the highs/lows and how accurate are the "XX% chance of rain", and how does the accuracy change as we get closer to that day? Weather.com has a 10-day forecast which is actually a 15-day forecast (today plus the next 14 days). For example, this is Washington, DC. I tried a webscraper last year, but literally two weeks after I finished my code, weather.com changed their site formatting and screwed it all up, and I gave up. Now I'm back at it. I found a package, weathercom, that does almost exactly what I want. It uses an API and pulls the 10-but-actually-15-day forecast into a JSON or something. Big important thing here: I have no idea how to work with APIs, even the most basic thing. The "almost" bit is because it pulls day-weather and night-weather separately in the 10-day forecast. For example, it might say "20% chance of rain in the day; 40% chance of rain at night (which includes after midnight until around sunrise)". The historical pull from weather.com, however, only says how much rain fell in the 24-hour period of that day. Because the time steps don't match, I can't clearly analyze how accurate it is. I found this API that seems to do exactly what I want: "For any given forecast day we offer day, night, and a 24-hour forecast (daily summary)." I want that "24-hour forecast". My problem is that I have no clue how to actually use that API to get it at all, much less using Python. I'm 100% clueless. Is there a simple way for me to grab the 10-but-actually-15-day forecast, but measured in the 24-hour chunks of that API rather than the clunky day-weather and night-weather that the "weathercom" Python package uses? [link] [comments] | ||||||||||||||
where can I promote my website Posted: 05 Apr 2021 02:57 PM PDT | ||||||||||||||
What are areas in which "one man teams" can still make contributions? Posted: 05 Apr 2021 02:46 PM PDT Ok, I get that this question is kinda vague, and there's probably not a definitive answer, but I'm more so looking for inspiration. I'm curious what are areas where 1 man effort in programming can still create an interesting product. I guess examples of answers 10 years ago might have been:
But right now the low hanging fruit seems to have passed. There was obviously a mythical past where 1 teenager could build a kernel good enough to spark the interest of the best coders of the time and become Linux, but that time is long past. However, I'm certain there's low hanging fruit right now based on the fact that new platforms are always coming along. And I'm curious what you guys think that is? My main issue right now is not that I'm looking for a profitable area, I'm quite alright in that regard, but I kind of missing coding alone, not having to manage and communicate. I love teams, don't get me wrong, but there's something special in being alone with your thoughts for months on a project. When I was younger I was kinda fine with the idea of just building an open-source project that nobody would use and that would be sup-bar. But I guess right now I'm kind of saddened by the idea that whatever I build, there will be a much better version with 20 amazing people working on it. To the extent, I've half stopped coding as a hobby. But maybe I'm just missing obvious avenues with loads of potential fun to be had. [link] [comments] | ||||||||||||||
WP Plugin giving 404 error. What can I do about it? Posted: 05 Apr 2021 02:42 PM PDT Hey my portfolio site is throwing out a 404 error because of a plugin no longer being support https://farbodjahan.com/. It looks like the frontend plugin is broken so I replaced it with this (think its the same) but my content is still broken on the frontpage and resume page. Any ideas? [link] [comments] | ||||||||||||||
Dump a JSON list to a file in Python? Posted: 05 Apr 2021 02:29 PM PDT I am learning the basics of JSON. If I construct a list of dictionaries in python, can I write it to a file with the json.dump() command? Thanks very much. [link] [comments] | ||||||||||||||
Developers, which programming path should I take to start freelancing? Posted: 05 Apr 2021 05:34 AM PDT I am not a CS student but a programmer by passion. I am good at core Java. I have good knowledge about data structures and algorithms. I can also code in C++. I am a very good problem solver too. But I know these qualities are not enough to be hired for development jobs avalaible in the freelance job market. Now my question is, which development path should I take to make a decent amount of money by doing freelancing? I see there are jobs related to full stack web development (there are several paths in full web stack web development too), python jobs (building backend others), java gui framework, java backend, android development, databases, other programming languages and so on. I am ready to learn anything but confused which path to take. I really need some suggestions from other freelance developers. [link] [comments] | ||||||||||||||
Not sure where to start on a project Posted: 05 Apr 2021 12:38 PM PDT Let me preface this by saying that I'm decently experienced in programming, however upto this point all that experience has been on the offline and software sides of things. I'm struggling with trying to make something as a gift for my parents. Currently they use an alexa to listen to easily listen to music while cooking, which would be fine if alexa didn't completely suck. So, I had an idea to make something to replace it. My idea was to use a raspberry pi or something similar to detect a voice input, search it on youtube, and play the audio of the top result. I figured I could probably do this with some kind of web server or something, maybe use autohotkey if youtube doesn't want to play nice. Problem is... I have no idea where to start with this. I've never done any kind of web integration or anything involving hardware. I literally just know the words "web server", "API", and "Arduino", with no clue really what any of them are, how they work, or where to even begin to learn. So I suppose any help on how I should approach this and where I can find information would be greatly appreciated. [link] [comments] | ||||||||||||||
Can I use an else statement in a while loop in C# Posted: 05 Apr 2021 12:27 PM PDT Hey, can you use an else statement in a while loop in C#. And if you can how ? [link] [comments] | ||||||||||||||
Need some advice on screenshotting elements Posted: 05 Apr 2021 12:16 PM PDT Okay, so basically the goal of the program I'm writing is to go to a Wikipedia article, select each element, in order, in the body (From first header to Citations) and take a cropped screenshot of that specific element. I have a couple of ideas that I'm kicking around. Originally, I wrote a script in Selenium Python that opens the web page, goes from element to element, screenshots the whole page, and then trims the image according to the size of the web element. However, this is ineffective as the cropping is unreliable, and just seems overly complicated. I could use HTML2Canvas, but it is also unreliable. Then, I found an awesome chrome extension called HTML element screenshot, which takes a well-cropped image of an element you click on. So now my idea is to write a Selenium script that opens the webpage and then the extension, click the element, download image, and move to the next element. This is the most effective solution I could think of, but I know there has to be a better, less confusing way. Should I stick with this solution? Should I find another way? I'd love some help brainstorming. [link] [comments] | ||||||||||||||
Posted: 05 Apr 2021 10:46 AM PDT I need to use Netbeans c++ for school and whenever i go to file>new project > C++ the "Projects" Side is empty, but there should be a package here. does anyone know where to find it? Screenshot of missing section https://puu.sh/HvClT.png [link] [comments] | ||||||||||||||
What's the VSCode equivalent of IntelliJ "Live Templates"? Posted: 05 Apr 2021 08:56 AM PDT |
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