Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "axios"
-
People are fucking idiots. Had agreed to a meeting on Monday morning at 9 with some generic startup. Agreed to listen to their pitch after they had bugged me with hundred phonecalls and emails. It happened that my kid got sick during the previous night and this being the only meeting I decided to work from home and stay with the kid. I sent an email at 2am as apologizing, canceling the meeting and proposing a new time for another day this week.
Well at 9am I get a call from reception that my guests have arrived. I call the contact and she's angry at me that I didn't show. When I asked about the email she snaps at me: I don't have time to read emails on Monday mornings.
Well I don't give a flying fuck about your shitty pitch. Go fucking peddle your shit somewhere else if you can't handle your affairs and start snapping at me. FUCK.9 -
Just an observation. Researched this a bit and found out that usually people only thank dfox when posting swag thanks posts.
Just wanted to demand some justice for mr trogus who is the designer of said swag and give due appreciation!
Lets @trogus some to deliver the appreciation.47 -
I keep forgetting people's birthdays and thereby I forget to wish people, and wishing people everyday can become a chore. As somebody once said, if you do something more than once, automate it.
Spent two hours and ended up building a bot that consists of four functions: login, checkIfAuthenticated, postToProfile and getBirthdaysToday using mostly axios and cheerio.
Currently works perfectly and I've been thinking of writing a blog post about it for my 'Automating Your Life' series.
I'll post the link in the comments soon when I'm done with the blog post.40 -
Faaaaaaaaaaaak. Elevator door closed on me and friggin cracked my favorite GitHub coffee mug.. RIP10
-
Since everybody is posting a picture of their hardware and DE here's mine!
Xiaomi notebook air 13 with Elementary OS
i5-6200U @2.8 GHz
NVIDIA GeForce 940MX
8 GB DDR4 Ram
256 PCIe SSD
1.28kg31 -
You know side projects? Well I took on one. An old customer asked to come and take over his latest startups companys tech. Why not, I tought. Idea is sound. Customer base is ripe and ready to pay.
I start digging and the Hardware part is awesome. The guys doing the soldering and imbedded are geniuses. I was impressed AF.
I commit and meet up with CEO. A guy with a vision and sales orientation/contacts. Nice! This shit is gonna sell. Production lines are also set.
Website? WTF is this shit. Owner made it. Gotta give him the credit. Dude doesn't do computers and still managed to online something. He is still better at sales so we agree that he's gonna stick with those and I'll handle the tech.
I bootstrap a new one in my own simplistic style and online it. I like it. The owner likes it. He made me to stick to a tacky logo. I love CSS and bootstrap. You can make shit look good quick.
But I still don't have access to the soul of the product. DBs millions rows of data and source for the app I still behind the guy that has been doing this for over a year.
He has been working on a new version for quite some time. He granted access to the new versions source, but back end and DB is still out of reach. Now for over month has passed and it's still no new version or access to data.
Source has no documentation and made in a flavor of JS frame I'm not familiar with. Weekend later of crazy cramming I get up to speed and it's clear I can't get further without the friggin data.
The V2 is a scramble of bleeding edge of Alpha tech that isn't ready for production and is clearly just a paid training period for the dev. And clearly it isn't going so well because release is a month late. I try to contact, but no reaction. The owner is clueless.
Disheartening. A good idea is going to waste because of some "dev" dropping a ball and stonewalling the backup.
I fucking give him till the end of the next week until I make the hardware team a new api to push the data and refactor the whole thing in proper technologies and cut him off.
Please. If you are a dev and don't have the time to concentrate on the solution don't take it on and kill off the idea. You guys are the key to making things happening and working. Demand your cut but also deserve it by delivering or at least have the balls to tell you are not up for it. -
That feeling when the company looses a 120k account and it is blamed on your expert opinion and poor handling off the situation when It's really the fuckwits in sales who in their greed for provisions make shitty pitches.
I got a call to attend a meeting with a customer. Present was also the "developer" from the customers side who was to oversee the projects. The pitch was made earlier, but no information was provided beforehand so I was going in blind, covering for a suddenly absent lead. The point was to roughly present how the project was to be executed and I was told to voice my opinion on development time estimate that the clients expert had given. They were outsourcing and had already fired their whole team.
I gave a number based on the provided information and all hell breaks loose. Suddenly it's a total circle jerk. Shit goes down. The "dev" tells that he can do it himself in half the time and starts showing some shitExcelsOfTotalAbsurdness that prove it. I calculate his claim and end up with a result that he has 60+ hours in his day, so I ask why doesn't he do it then? Why the outsourcing if they could just give him a raise and save a ton of cash.. sudden silence and you just can hear the rusty gears turn while they try to make a new excuse.
Well it went south. Today I found out that the client was our sales guys buddy. so TL;DR of it was that our sales guy was trying to make a quick buck and give a break to his buddy and hang the shitbucket on our team. I pointed out that this was a shitty business deal that would go into the red, but the sales guy turned it around and now "I cost company 120k/month account on a long project" and because I acted unprofessionally customer is unhappy.
I FUCKING HATE THIS SHIT
secretly hoping to get fired over this10 -
I kinda wish they called programming lanuages programming dialects
I feel like im still writing in English, the message I am trying to convey to the computer is the same. To me they all just have different accents and ways about doing things4 -
BE FUCKING PRODUCTIVE! A simple project to keep you from using social media and other timewasters while you should be working on something10
-
Somebody just donated to me through Venmo for one of my FOSS projects, but I dont have a donate button on my project page, and I didn't have a Venmo account. How did the service enamble do this? Im impressed lol5
-
Tools don't matter. Use what is comfortable and don't listen to all the brand, OS, editor and tabs/spaces crap. They all do the job and you will find the right ones once you really understand what you are doing. "Tools can be just a way to procrastinate". If you become tool agnostic you can do the job no matter the environment.1
-
Yay! I got my head wrapped around Vue3 parent / child components and fed the whole thing JSON data loaded via Axios. A small feat perhaps, but it just feels great to still "get" stuff when learning becomes harder as I get older.4
-
I just woke up from a nap. This may seem weird but I had a dream about organizing a devRant meetup at my location. dfox was in town for some reason it involved alot of beer.7
-
So I had this internship in highschool for some marketing company creating simple databases for them to help out with their business.
When I came back from college for I think winter break they had asked if I would come in to help with a task that was going to take all day so they wanted me to come early. I agree and show up the next morning.
They had an Excel spreadsheet with about 5000 records in it and one of the fields was the name of the customer. They told me that the records came in as lastName, firstName or as lastName,firstName.
They wanted the field to look like firstName lastName. For a minute or two they had someone show me how they have been doing this which was just by hand. I don't really work with Excel so im not too keen with the macros. But it took me about 1 Google and 30 seconds to find someone with a similar macro to achieve this, I altered it a bit and let it go through all the records.
It was an awesome feeling when I went to the boss to let them know I was done (it had only been 10 mins), they almost didnt believe me.
Funny how one line of code can turn a day's work into a matter of minutes.2 -
NO, YOU ABSOLUTE DISGUSTING GREMLIN OF A JS HTTP CLIENT, I DON'T WANT YOU TO "JsOn.StRiNgiFy" MY PAYLOAD OR DOING ANY WEIRD SHIT
I NEED TO SEND THIS THING EXACTLY AS IT'S WRITTEN, STOP TRYING TO GUESS WHAT I'M TRYING TO DO I'M A DEV WITH SOME 7 YEARS OF EXPERIENCE WRITING CODE, I'M SENDING A STRING CUZ I NEED TO SEND A STRING2 -
Observation
Usually happens when hitting some heavy development after waking up to an idea at 5am and rushing in to the office to make it happen. Then you write for hours straight refilling some coffee once in a while.
At some point you start finding other people at the coffee station and the smalltalk starts. For some reason I can't turn my brain into social mode. Someone asks me stuff like "How was your weekend?" And the answer can be anything between "I like turtles" and some totally uninhibited and unintended truth in the TIM category.
Flow is strong but it totally fucks up my social capabilities. It also makes me happy =D4 -
Quitting nicotine starting tomorrow.
Anyone have any tips or advice to expedite the withdrawal process?
I have already decided I'm going to start going for morning runs and take probably 3 hot showers a day.
My biggest fear is that I'll get insomnia and I will not be able to keep up with my school work due to fatigue17 -
Just spent an entire night eaning up my codebase...
I optimized some of the functions got rid of unnecessary global variables and changed up the whole file hirearchy so it would be easier to read. After spending all night doing this I went to run the program and for once it seemed everything worked right the first time! However a portion of my application that is supposed to happen at a certain date and time never would run. After spending all night comparing each and every line for what I changed versus my last commit I couldn't find the fallacy in my logic. Everything should still work like it did before. After spending more time looking for bugs I finally realized I didn't break anything when I switched over to this new structure it was the old code that was broken. I went through the old code and after some debugging eventually found the culprit an extra continue statement that prevented my loop from fully executing. Lesson learned sometimes the biggest bugs can spawn from one line of code.4 -
I was asked to check something today that was handed over on a USB stick. "Could you check that the file structure is correct". Of course I said. Then I prepared my camera, changed the insides of the stick to my rubber ducky, wrote a little script and uploaded it. Oh yea and corrected the structure.
The face of the colleague was priceless when I brought back the stick and he sticked it right into his computer.
The script was roughly:
- open browser
- open history
- search "porn"
- select second row
- enter
=D office pranks <32 -
I find it hilarious the total misconception of hacking that the general public has. I tell people I know cyber security (Not as much as a lot of people around here) but it is a hobby of mine and I find it very useful/interesting.
But I can't stop but laugh when someone is like, can you get all the text messages my bf receives?
Can you hack this for me can you back that?
C'mon even if I knew how to do that without being caught you think I would even admit that to you. Do hackers just walk around with an index card pasted to their forehead of their skill? It's not even slightly reasonable to think this lol even for someone who doesn't know about the field -
@dfox Would you make it possible to cluster push notifications that occur on the same post? When I receive a lot of notifs at once it clogs up my notification center.
Additionally would it be possible so that I can completely turn off seeing certain types of notifs even in the app not just for push notifications (from what I gather that is the only thing I have control over)2 -
Finally learning vim after a few years of absolute refusal.
echo export EDITOR="vim" >> ~/.bashrc18 -
!rant
Oh yea. Got an interview on the first try to the best devshop in town. Exited! Let's hope our interests meet. Applying for the first time in 10 years. Feels like going on a first date. =D5 -
Fuck you. Fuck them. Fuck everyone. Fuuuuck. I hope and dream of the day people become programmable cyborgs or stupidity is spliced out genetically. Or someone invents an implant that disables the vocal cords when stupid'O'meter goes to the red. Or a system that paralyzes the body temporarily as a fine for stupidity. Or an AI that takes over once shit is approaching unacceptable levels. SOMETHING! Some kind of an incentive for the fucking sheep to develop their little raisins. FUCK!!!?!?!!5
-
So, I've had a personal project going for a couple of years now. It's one of those "I think this could be the billion-dollar idea" things. But I suffer from the typical "it's not PERFECT, so let's start again!" mentality, and the "hmm, I'm not sure I like that technology choice, so let's start again!" mentality.
Or, at least, I DID until 3-4 months ago.
I made the decision that I was going to charge ahead with it even if I started having second thoughts along the way. But, at the same time, I made the decision that I was going to rely on as little external technology as possible. Simplicity was going to be the key guiding light and if I couldn't truly justify bringing a given technology into the mix, it'd stay out.
That means that when I built the front end, I would go with plain HTML/CSS/JS... you know, just like I did 20+ years ago... and when I built the back end, I'd minimize the libraries I used as much as possible (though I allowed myself a bit more flexibility on the back end because that seems to be where there's less issues generally). Similarly, any choice I made I wanted to have little to no additional tooling required.
So, given this is a webapp with a Node back-end, I had some decisions to make.
On the back end, I decided to go with Express. Previously, I had written all the server code myself from "first principles", so I effectively built my own version of Express in other words. And you know what? It worked fine! It wasn't particularly hard, the code wasn't especially bad, and it worked. So, I considered re-using that code from the previous iteration, but I ultimately decided that Express brings enough value - more specifically all the middleware available for it - to justify going with it. I also stuck with NeDB for my data storage needs since that was aces all along (though I did switch to nedb-promises instead of writing my own async/await wrapper around it as I had previously done).
What I DIDN'T do though is go with TypeScript. In previous versions, I had. And, hey, it worked fine. TS of course brings some value, but having to have a compile step in it goes against my "as little additional tooling as possible" mantra, and the value it brings I find to be dubious when there's just one developer. As it stands, my "tooling" amounts to a few very simple JS scripts run with NPM. It's very simple, and that was my big goal: simplicity.
On the front end, I of course had to choose a framework first. React is fine, Angular is horrid, Vue, Svelte, others are okay. But I didn't want to bother with any of that because I dislike the level of abstraction they bring. But I also didn't want to be building my own widget library. I've done that before and it takes a lot of time and effort to do it well. So, after looking at many different options, I settled on Webix. I'm a fan of that library because it has a JS-centric approach. There's no JSX-like intermediate format, no build step involved, it's just straight, simple JS, and it's powerful and looks pretty good. Perfect for my needs. For one specific capability I did allow myself to bring in AnimeJS and ThreeJS. That's it though, no other dependencies (well, at first, I was using Axios because it was comfortable, but I've since migrated to plain old fetch). And no Webpack, no bundling at all, in fact. I dynamically load resources, which effectively is code-splitting, and I have some NPM scripts to do minification for a production build, but otherwise the code that runs in the browser is what I actually wrote, unlike using a framework.
So, what's the point of this whole rant?
The point is that I've made more progress in these last few months than I did the previous several years, and the experience has been SO much better!
All the tools and dependencies we tend to use these days, by and large, I think get in the way. Oh, to be sure, they have their own benefits, I'm not denying that... but I'm not at all convinced those benefits outweighs the time lost configuring this tool or that, fixing breakages caused by dependency updates, dealing with obtuse errors spit out by code I didn't write, going from the code in the browser to the actual source code to get anywhere when debugging, parsing crappy documentation, and just generally having the project be so much more complex and difficult to reason about. It's cognitive overload.
I've been doing this professionaly for a LONG time, I've seen so many fads come and go. The one thing I think we've lost along the way is the idea that simplicity leads to the best outcomes, and simplicity doesn't automatically mean you write less code, doesn't mean you cede responsibility for various things to third parties. Those things aren't automatically bad, but they CAN be, and I think more than we realize. We get wrapped up in "what everyone else is doing", we don't stop to question the "best practices", we just blindly follow.
I'm done with that, and my project is better for it! -
It seems like I'm going on an assignment to a company working with Angular. Reading through the documentation I just want to ask all Java developers to get their greasy hands out of JavaScript. It feels like GWT all over again with Google reinventing core JS technologies just so that it looks like Java. Dependency injections? Observable wrappers? RxJS in general? WHAT IS THE POINT? Why can't I do this in a way adhering to web standards? Why can't I simply use fetch() or axios or whatever? Why can't you support reactivity without forcing me to write more boilerplate than I had on my central heating boiler? I just want to code and not be forced to discover what Google developers think web should be like.
Please, let me out of this hell.
Fortunately, it's not gonna be a long assignment.3 -
I have a pretty successful project on github
Which I don't think is necessarily my best achievement but all the stuff I do at work is not open
I used the project as a way to learn bash scripting and it kinda caught on.
Sadly I'm not a sys admin or anything I'm more of hardware/embedded engineer but it's still cool to have one of my projects being so used. And I got to learn a little of bash along the way 😁 I now feel super comfortable in a terminal and reading man pages to figure things our which was a skill i lacked previously. I definitely learn better by doing and fixing mistakes along the way -
Setupwars. Show off your epic coding zone setup.
Your biggest oh fuck moment as developer. "I dropped the prod DB"1 -
My GitHub repo has a little over 1,000 downloads but only 433 stars does that seem off to anyone? For an employer does GitHub stars on a project even matter?7
-
My friend always tell me that I can't do code and didn't understand what is programming... Because what I do is system admin2
-
Just had a class where we had to write a heap adding algorithm in Java to reduce rounding error for x amount of floats being added together
After an hour of writing code with no testing anything I finished. Ran the JUnit tests provided by the teacher and it passed all the tests!
Who says it can't work the first time?2 -
I'm still using .then().catch() instead of the async await.
So, first of all, Fuck you for calling it a STANDARD now. its nowhere near to be called standard. You wanna get some data from an API? Wanna call it using axios or fetch? What if the server is down? what if there's an error that you don't even know existed? Where do I get that kinda error in async await? try-catch? no thanks :| I'm good -_-8 -
GoLive for this big feature is set for Thursday. So the customer approaches me and asks can our team do it. Sure it can be done if everything goes perfectly, but... This means that the feature won't be tested, everything won't probably go perfectly (which it didn't because of customer selected third party api surprise nondocumented features (bugs)) and Thursday release is almost as dumb fucking idea as Friday release. I said it more nicely and I got:
"I don't agree with you"
from a person who has 0 understanding of what is going on and whose boss pays me to tell them what it needs in order to work and prosper.
And we had this fucking conversation three times. So basically he interrupted my coding that directly impacts the schedule in order to debate how fast things can be done. Don't these people understand that everytime you interrupt a software engineer the deadline is pushed by the same amount of time you waste of mine + 30minutes of refocus time to get back into the thing you were doing.
Best part was that the deadline was this magic date the guy pulled out of his ass without consulting the developer team and nobody really cared about the deadline =D
FUCK1 -
My teacher joked in class about trying to get #octothorpe trending. Two days later he's wearing a t-shirt that says it, turns out someone already thought of it and it's on a t-shirt on Amazon with prime shipping lol 2018 is crazy
-
Calling in all Vue devs here! (Possibly any SPA dev actually)
We're building these fancy live-edit fields for our app. It syncs with the database with every keypress (with a debounce, ofc). Now, we're having a global Vuex module to keep track of the applications sync state. Using this module, we can prevent the user from leaving the page if there is data that hasn't been synced. Though, I think I'm doing something wrong here, and not strictly adhering to the "single source of truth"-principle.
When a user has finished typing, a request is made through Axios. When the response arrives, the field issuing the request updates it's display accoring to the response. However, there is also an Axios interceptor which updates the global state to reflect the latest response. Is this wrong? Should the fields themselves emit the mutation to the store? Or is it okay to use an interceptor since they're running down the same call stack?
I think my biggest worry here is that the interceptor and the field will interpret the response differently...
Help is appreciated :D (and thanks for taking the time)18 -
So there I am sitting in front of my laptop, and trying to npm i and I am getting all sorts of sha mismatch errors.
After lot of debug I conclude it is coming from the proxy as it refuses to download and supplies the error page.
It says it's because I'm using the old proxy so they give me the new URL which I set up and it works.
All good until my password expires. I use our bash script to change it. NPM is buggered again throwing the same errors.
Go to IT, tell them the saga begins.
After a countless hours of looking at the log files we notice that the npm registry is set to http instead of the standard https (thanks bash script). so our firewall blocks the download.
Sorted, finally.
Almost. NPM now works fine, but when I go and I play around with node and axios, I get my requests time out. My instinct says its the bloody proxy again.
So I hit up my trusted WIN Support guy and he confirms that the url is not blocked. So he starts monitoring whats going on and turns out, every time I run the node app, node casually ignores the system-wide proxy settings and tries to send the request as the PC rather then my username.
Since the pc's don't have rights on the proxy it is being refused...
Thank fuck for the corporate proxies, without them, I could just develop things not ever learning these quirks of node...3 -
Installing COSU devices. Need to setup 200 Androids. I boot up number 43 and it's set to Chinese language. I switch to English. It registers with the network.. WTF there is a sim card inside. =D And it was in a sealed package.
Now I am a proud owner of some poor bastards China Unicom WO sim card. =D -
Couldn't figure out for the life of me why axios wouldn't ping to the server. Turns out the CORS policy didn't like this. Two fucking hours, man.
-
What a fucking idiot I am... When I was rewriting the names of variables I changed them form "phone_number" to phoneNumber. I didn't realised I changed the variable in post request too and who could quess it'll fuck up the whole request. So here I am, 3 hours later with only half of my hair... but at least with working request2
-
Most actual GraphQL explanation:
1. Still uses your xhr/fetch/axios on FE
2. Just sends all the requests to single endpoint
3. On BE uses its own resolution schema to call proper controller to handle the request, rather than relying on router for that
That's all!
Just another useless layer of abstraction with its learning curve, tricks and bugs as ORMs are9 -
Does anybody have an good video chat alternatives to Skype? Preferably open source but doesn't have to be8
-
Those feels when you are waiting for a call or an email about a job you really really want and it's friday and you know it isn't gonna happen untill monday. Weekend suddenly feels too long.
-
Back in the day my dad had this Fortran book he was studying at the time. I had just learned reading but and remember looking at the funny book and wondering why I can't understand anything. Still have that book as a fond reminder =D
My dad noticed me trying to read it and got me this funny BASIC for kids. At the same time we got our first computer. At that you couldn't buy games. Usually the books had the source that you had to type in and compile.
So this funny BASIC book with funny pictures had the source for moonlander... And man was I hooked. Next came the "monkeys throwing bananas" =D
Back in the day everyone was also on the dark side. Prompt was always white on black ;)1 -
Should i use Axios in my Mean stack or just the node or angular's native http calls?
What are the pros and cons of each?
Am I just complicating myself? 🤪10 -
I'm thinking of designing a programming language.
I want it to have easy to read syntax like python. Inheritance and interfaces like java. More advanced concepts like pointers and memory management like c++.
I was originally going to write my own compiler but I figured it's not worth reinventing the wheel. So the current plan is to basically just create a parser that turns a source file into c++ code and then that is compiled with g++. The only problem I can think of with that is catching runtime errors.
How does this language sound?
My purpose is to have a language that is as easy to read as python but with the speed of a compiled program and the ability to use it for embedded projects. I feel like reading larger C++ projects can be quite time consuming. So I figure the trade off of taking a little longer to write the code to make it more obvious what is going on is better than having a lot of syntax that can be tough to walk though the logic of (I find this often with c and c++, not like I don't figure it out but It definitely takes longer than it does to read and understand python)4 -
There is a Facebook group I’m a part of called “ReactJS Expert Community” and I can tell you it’s filled with anything but experts. Someone just posted on it asking what the difference between Axios and async/ await is. The only reason I’m part of this group is so I can feel good about myself when I screw up while coding xP
-
Been consulting a friendly acquaintance on technical issues for some time now. An interesting side project in a field that I am not familiar. Well after some time you begin to be well versed and understand what it's all about.
Wrote some code. Made a website. Did some soldering and prototyping. Now I find myself in a position where most of the IP is a) written by me b) designed by me.
An official agreement has been a topic couple of times. The owner wants to hire me, but I don't see myself working there. He offered shares. I said yes. But nothing has been formalized.
Now the the CEO sends me an NDA that practically tries to make me sign over all the IP to the company. First correspondence I get from him since the beginning. Legislation is quite clear. Without written agreement IP is owned by the creator.
I lolled. They must think I am dumb because I try to help. I feel a hefty invoice for services provided generating in my accounting.. -
Not so much a rant or a dev thing. What is the quote that drives you?
For me it is: "Those who don't have discipline, don't deserve to dream" -unknown3 -
Im trying to land my first internship for Software Engineering anybody have some useful tips or places to look?1
-
Front-end web development is like a fucking cancer to me right now
I need the following behavior from my development environment if I don't want the webdev experience to destroy my sanity and tempt me into suicide by making me waste my valuable lifetime configuring shit that is ultimately meaningless to the software I'm trying to create:
- I should be able to open the webpage in the browser at localhost:<some-port>
- the page should refresh immediately as I save my files
- I should be able to import node modules installed with npm without using a script tag linking to some CDN (for instance, I want to do a get request with axios instead of the fetch API)
- I should be able to do this without spending more than two minutes reading the documentation for a tool that would enable me to do it, ideally without ever coming even close to touching a configuration file
Right now I know about browser-sync and webpack, or webpack-dev-server or some such fucking shit fuck fucking fuck.
browser-sync seems to fulfill most of these needs, except that I can't seem to bring npm modules into my application and import them. Webpack seems to be able to do this, but at the cost of slowly throwing my life away reading documentation for over-complicated configuration files that do not aid me in actual software creation and therefore do not interest me and never will, all in the hope that I *may* at some point dig out enough shit to find how to do such a use case (i.e. seamless, smooth web development) that to me feels reasonably common and expected.
Is there some tool that enables me to do *seamless*, pleasurable web development without the hassles of over-complication and over-engineering? Is there some hidden command for webpack that allows me to run such simple shit without ever needing to edit some pointless configuration file?
Please, I beg of you, let me know.8 -
Learning golang to replace Java in my arsenal, I just wish they had a nice framework for creating guis similar to JavaFX
I know bindings exist to things like qt and GTK but why cant they have a nice native ui library.1 -
I need advice!
I have a project idea that involves creating a cross platform gui but I cannot decide on a framework.
I have been toying with the idea of electron(ugh please no), c++ with either gtk+ or qt, Java with JavaFx.
I really want to be be able to create binaries for Mac windows and Linux while keeping bundlesize low and efficiency high. With this in mind I am leaning towards a c++ implementation but qt (which seems to be the best option for this route) has an insane learning curve. Is there something I am not thinking of that would satisfy these requirements?10 -
Most satisfying bug, it was something with good old $.ajax, way back when Axios wasn't a thing and SPAs weren't so widely used.
I was somehow able to fix the call params for a file that would not load with any other setup. Maybe it was just setting async to sync or something like that, however the thing is I was not familiar with AJAX at all, but I managed to get it run.
Then I googled, why its working and figured out all the answers on SO and other pages were the exact thing i set up for my call. I was so proud
some context: I was struggling with this bug for days and asked more experienced web devs, everybody answered, your code should just work fine.
Maybe thats why I have a positive relation with SO, because the first thing i searched there was something that I figured out myself, haha -
Why has to be axios sooo fucking bad? I just want to load one fuckin JSON. Server returns 200 but axios is trying to tell me it is fucking error.... Whyyyyy1
-
Damn CORS! Spent 4hrs googling! Alas! I can move forward. Because of that I can say I understand what cors for.
-
!rant Just an observation. There is a lot of discussion about syntax. Should it be tabs or spaces or should the opening bracket be on the same line as the method/function. There is 101 languages and standards. Syntax varies and you just can't learn it all.
What is more important? Result or the aesthetics? If you come into a project you adapt. You use the syntax everyone else is using. If you are a part of starting a project you agree on rules of engagement and stick to them so the team works at maximum efficiency. If you lead a project you define the rules by adapting to your teams habits. Because in the end it's the working product we are after.
Golden mean.1 -
In the beginning I was a retard, but then found out about React Query, learned it, made some abstractions around Axios and my JWTs, and now I have 200+ IQ.
God bless Tanner Linsley, you mormon crazy bastard, you did it, you made my life easier.8 -
Silence so I can hear myself think and then just write the first line. It's hard to start, but once I get going it is even harder to stop.
Sometimes I'm afraid of starting because the codingzone switches my brain into an Asperger patient. I just can't socialize afterwards. So if there is a evening meeting morning coding is a no-no. -
What is your favorite coding/development related blog/news/digest/man/other resource you visit at your leisure?3
-
Somehow mocking xhr requests (?) for Axios is really hard to make it work. I use React Cosmos as I'm re-doing the frontend of this already running in production and works great, but when my component communicates with the backend it breaks and I'm unable to test the full behavior.
Then, it occurred to me that trying to mock Axios may not be the best. So I came with this scheme where I would have a configuration variable with a default value and change that when I need to work with React Cosmos, which in turn changes the behavior of `/auth` to return a valid JWT in response to a GET, put an Axios interceptor in my outermost Cosmos decorator and BAM! suddenly was able to develop and test my React components closer to how they would work in production.
It surprises me how simple this endeavor was, and because everything runs orchestrated by docker compose things run smoother.
(this is not an excuse to not to learn how to deal with the mocking issues of Axios, after all I wont have a working backend every time I work in some frontend application)5 -
This week I started developing my first serious backend for a customer using node and graph ql, and I'm here as a Frontend Developer. But I have to say I like it. Using Vue.js with axios on Frontend side. Everything feels so intuitiv during coding.1
-
Hi react developers. Noob question, I am making a new (my first) react+redux toolkit+axios website…
So umm, what folder structure is best, and where does the user authentication part , the web services go?
Currently I have
-src
-pages
-index.js
-app.js
-about
-index.js
-stores
-common8 -
How to get extra project if I have a full time?
I am in a trouble which like can't focus when coding....… It makes me feel bad when actually touch on the code.. I use laravel as back end, but turns out I still have quite problem, not like easy job when I was using the 5.0 version of laravel
It sucks when didn't get anything solved... -
!rant
Does anyone know of any open source personal assistants that aren't storing data? Im looking for a replacement for Googles pa on Android but am also curious if one exists for desktop. If one of those don't exist let's get on thaat2 -
first of all fuck this stupid website and deleting your rant if you aren't signed up
second of all fuck fetch
curl gives me a readable json object
axios gives me a readable json object
fetch gives me what should be a readable json object, but looks more like a set in python instead
[{"id":"1"},{"id":"2"}] curl and axios reply with this
meanwhile fetch
{
[
{"id":"1"},
{"id":"2"}
],
{various symbol objects}
}
how am I supposed to get my data out of a fetch? I see people call response[0] or using some strange amalgamation of
fetch().then().then((data) => {}) but data in this results in an unresolved promise for some inexplicable reason. (nextjs)
also fuck nextjs I want to go back to hardcoding everything in html
also fuck modern web development and businesses in general, they ruined the internet.4 -
It basically gave a deep meaning of professional life. In coding I found my life's pursuit for mastery. The only regret is that I found it quite late and now I have a small regret of not diving into it sooner.
-
That feeling when you get a call about your Android COSU app release being shit, because the positioning does not work at all.
- are the Sim cards activated? -> ofcourse I did, do you think I'm stupid?!?
- did you enabled data? -> what? gps doesn't need data!
-RTFM -
Installing dotnet:
Setting up dotnet-dev-1.0.0-preview2-003131 (1.0.0-preview2-003131-1) ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Atleast they are frank about it..5 -
Sometimes you spend x amount of time preparing an offer for a larger project to a respectable client. Then you might have lunch with your friend who works for the competition and do some shop talk while you are at it. You discuss in general ongoing interesting projects without disclosing details.
Suddenly you realize that you both are working on the same project by the same client and the competition is already hired for the job. Then you realize that you are used for benchmarking. =D -
I started this trainee job as web developer and they want me to learn JavaScript, Node.Js, React, PostgreSQL, Axios, Bootstrap and some other stuff all from scratch in less than month... I know is crazy, but I kinda love it lol2
-
Axios docs recommend me to use catch() callback for server error
- Not working
Then in git issue someone told to provide error callback as second parameter in then()
- Not working
And I just sit here wondering why it return undefined result when the server return 400 :s6 -
FUCKING SHIT, I HATE THIS
Does anyone have problems with axios?
I've been trying to make this work for at least 1 hour. If I use Postman, it works alright, but using axios messes it up.
Practically what happens it's that Django does not picks the foreign keys, it loads all the fields except those two.
I've been like fucking crazy trying to understand what's going on but to no avail... I want to die, it's friday and this stupid thing is delaying me more than it should3 -
What do you use to make a http request ? ,
This is the comparison about axios vs ky vs superagent.4 -
Looking to get a good understanding of the fundamental ideology and math behind neural networks and support vector machines. I am well versed with math so I can deal with heavier stuff if needed, I would like to see formulas but an explanation to their conception would be nice. Does anyone have any resources like this? Practical hands on practice exercises would be a plus2
-
I know I sound stupid but I need help, I create a repo on GitHub using gh-api ```js
export async function createARepo({name,description,token}) {
const headers = {
"Authorization": `token ${token}`,
"Accept": "application/vnd.github.v3+json",
}
const {data} = await axios(
{
method: "POST",
url: "https://api.github.com/user/repos",
data: {name,description,auto_init: true},
headers
}
)
return data
// console.log(res)
}```
when I run this code it only creates an empty project with a readme but I also want to create a file with a .html extension of the project can anybody help me with how I do this?7 -
So this happens way too often;
you make some changes in your code and open your testing environment and expect to see results, but you don't. You wonder why, did I mess something up? everything seems to be correct?
aaand then you glimpse for a second at the url and realise you have the staging environment page up..