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 - "try"
-
When you don't have money to pay a designer so you decide to do it by yourself.
It's my first try...37 -
Try => fail
Try => fail
Try => fail
Try => fail
Try => little success
Try => fail
Try => fail
Try => I think I've got it
Try => almost there
Try => fail
Try => fail
Try => oh, is that the problem?
Try => fail
.
.
.
=> SUCCESS12 -
*Working on Friend1's laptop*
*Friend1 leaves and his laptop gets locked unattended*
Friend2: Now what? We need to finish that thing on his laptop..
Me: Let me try..
*thinks*
*Enters Friend1's name*
*Laptop unlocks!*6 -
Light vs dark IDE themes
I personally prefer dark and all my coworkers use light. When they ask me to look at something, it hurts my eyes just scrolling for 5 minutes on their computer.19 -
My try at the fractal tree :) This sort of simple graphical code is very quickly satisfying, gonna try to add some wind next21
-
When you try to explain someone how to set up their router over the phone and you try to keep it as simple as possible...1
-
Fuckin hell!!
Code works everywhere except at one client. Ok, I check logs & see something missing.. I go check the code that handles excel files.. try catch and do nothing.. great.. :/ ok let's log this shit to see what is not ok...
Insert logs, build, update, run.. now it freakin works o.O11 -
Last week I almost lost my belief in everything..
A friend of minde, he's currently learning programming (Delphi 😂) in some kind of university, just told me:
"Hey, why do you spend so much time caring about error handling? I just surround all my programs with one try catch block and I never have to think about errors!"
Ehm. No statement needed, right?2 -
Void foo() {
try {
//Try something
} catch(exception e) {
foo();
}
}
When I saw this in production I cried a little...9 -
We should totally be able to use try/ catch irl, especially in social situations
try{
riskyText();
} catch (InappropriateTextError e) {
abort();
}6 -
People who try to justify not writing unit tests are the same as those who try to justify not using a condom.
You'll be sorry later.4 -
import java.util.Exception;
try {
public class A {
public static void main(String args[]) {
new Exception();
}
}
}
catch(Exception e) {
System.out.println("Got you BITCH");
}9 -
You write code.
A strange issue prevents you to proceed further.
Try one fix. Fails.
Try another Fix. Fails.
...
Try fix #28. Fails.
You decide to ask for help in the support forum.
You start writing your post, mentioning everything you've tried so far. You feel your social anxiety and fear the humiliation of being told "because you didn't try X, you idiot". Then you come up with an idea for fix #29.
(fix #29 normally involves Wireshark or similar low-level inspection tool)
Try fix #29. It succeeds :)5 -
+++ Microsoft switches to the open-source Chromium engine for the Edge browser +++
On December 6th, Microsoft announced that they will dump their own Edge engine and replace it with Chromium, an open-source browser engine developed by Google.
This way they are promising the ~2% of global internet users who prefer Edge over other browsers to experience a better web experience.
The about 2% of market share is one of the reasons Microsoft decided to stop developing their own engine. It's just not worth it.
Joe Belfiore, corporate veep of Windows, said they also want to bring Edge to other platforms, like macOS, to target more audiences.
Web-Developers, like myself, will most likely have the most to gain. Less browsers to target means less incompatibility issues.
There are a lot of HTML5 features that the Edge engine doesn't support...
The new Edge won't be a UWP app, in order to make it usable outside of Windows 10. Instead, it will be build in accordance with the Win32 API, so we can even expect support for older Windows versions, like Windows 7 and 8. A preview release is planned for early 2019.
Because they are switching to Chromium and the Win32 API, Microsoft is hiring new developers! So if you always wanted to work at Microsoft, now is your chance!
That's it!
Thanks for reading!
Source: https://theregister.co.uk/2018/12/...11 -
bool success = false
if !success {
success = try()
}
if !success {
success = try()
}
if !success {
throw new GiveUpException()
}8 -
imagine the new try/catch block
try
..
catch
...
finally
....
please
...
how dare you?! (Application.Exit())4 -
In response to the picture I posted of my boss's wiring, we got a new switch today and he cleaned it up a bit.27
-
try {
// code that will someday
// throw an exception. Today is
// not that day.
}
catch(Exception ex) {
// The big day has arrived! BUT...
// I'm a heartless bastard who
// does not log errors.
// Good luck finding me!
}2 -
found this in our codebase today
try {
//do something
} catch () {
try {
//do something else
} catch () {
try {
//do something else else... this goes on 4-5 levels deep
} catch () {
//log... couldn't do
}
}
}9 -
Best way to handle any exception...
try{
something
} catch(e) {
window.location.href =
"http://stackoverflow.com/search/...]+"
+ e.message;
}joke/meme coding c++ tip of the day tricks stack overflow random rant try catch joke but will be useful 😂😂😂 programmer hacks8 -
Telling an Arch beginner to try Gentoo is same as telling someone who switched from Java to C to try assembly.3
-
Today,I found this gem:
static function getConfig(){
$cacheKey = 'foobar';
try {
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){
try{
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){}
}
}
I don't want to live on this planet anymore...!7 -
That sinking feeling when you use ES6/Webpack/Vue on personal projects and have to work with ES5/jQuery/Angular (and no task runner) at your regular job...8
-
Positive compliments : You really should try other jobs man
Negative compliments : You should also try other jobs man3 -
Actual production code:
try{
[code]
try{
[code]
}catch(Exception ex){
[code]
}
}catch(Exception ex){
[code]
}
Double blasphemy!2 -
God damnit!
i recently inspected the c# sourcecode of a webservice, our webservice develop references to.
As i discovered a particular function in it, my face went instantly pale.
This golden-hammer function consists of ~2000 lines of code.
In the first line there is "try {".
On the last lines is "catch (Exception e) { throw new SomethingWentWrongException ("special function"); }"
At least, he "tried" xD
I don't want to develop on that planet anymore...7 -
Finally we release November release in December. All developers united against sneaky bugs.
God bless (drawing by me)2 -
Common Lisp code has (imo) one of the cleanest syntax possible in programming language. I really would like for Lisp dialects other than Clojure to make a heavy comeback. And we now hace Quicklisp which is a package repo for CL code.
I really want to see more people into Lisp, it really is a great language man you just need to get past the (()) and it makes sense I promise.
Guys please try CL. If you already have awesome code skills and have some free time try going throughe the gigamonkeys book. Completely free online and setting up an Emacs environment with SBCL or CLISP is a breeze. I use Lisp to experiment and it gives a lot of room for exploring new concepts.
Another cool language that is emerging is Smalltalk in the form of Pharo. If you have been casting asside OOP because of the way many mainstream languages do it then maybe you will like Smalltalk as a pure OOP form.
I just want more people in this shit and this community sure has some awesome programmers, so why not?
one of the leading dudes in CL is currently Eitaro Fukamachi, one dude...doing amazing things. My aim is to give him a hand.8 -
Mac: If you try to shoot yourself in the foot, you find out the OS has removed the firing pin from the gun.
Windows: If you try to shoot yourself in the foot, the OS will wrestle you to the ground. You may shoot yourself in the foot, you may shoot yourself in the gut, you may not shoot yourself at all, but they do try.
Linux: If you try and shoot your self in the foot, the OS would like to politely remind you we have *much* bigger guns available - try one if these!4 -
I really really really don't like Windows. The amount of awful updates that I have to do all of the time, the fact that my mother just had Windows updates try and run, fail, try and run again, fail again, and then try a third time. But I'm stuck with it, because if I try and run a Linux live CD, my computer has a fit. Because Ryzen. Fantastic21
-
When your boss is too cheap to upgrade the server your data warehouse is on. 8GB of RAM is not enough when you're regularly querying for 1m+ rows.1
-
So I was just watching a show with subs and see this line:
"So just try and catch me!"
The first thought that came to mind was:
try {}
catch {}6 -
There needs to be a class in schools before college called: "how to use a search engine" (HTUASE)
This alone would save countless frustration with people who won't have an f-ing clue and post on professional forums dumbshit questions. I often take the time to even provide the search engine keywords I use in an effort to get these people to think for themselves. I fully expect someone to respond back some day and say: "How you google dog?"2 -
!rant
Small refactor. Which resulted in the confident removal of a comment that said:
// will this fail?
Ah. Like a breath of fresh air. -
Error? Hmm, I better try to re-run it a couple hundred more times before I try to fix it.. Just in case it magically works again.
-
backstory: i was bored and decided to recreate basic hardware modules/ICs in JS
today, i just made a 555 in JS on the first try
am i god? :O4 -
Ok soooo boss asks me: "When is the website going to be ready?"
me: today i'll be through
----------------------------------------
4 hours later:
Site 90% done
- messed up theme
- try reinstalling theme
- 2 try
- 3rd try
- 4th try
- 5th try: success , time 6:00pm
-----------------------------------------
SENDING DAILY REPORT:
Site is 90% complete and waiting for content from client
- projects
- logo
- images3 -
Just tried to get the oneplus vr... First try:404 at the end of the placed order. Second try: bug on site, just before the previous 404. Third try: out of stock. XD1
-
Why the fuck do i need to propose try-catch to an contractor, so he can fix his application, because its crashing if the input is non-conform to the specs?
Oh and before you ask. The application is a application that processes and sanitizes invoices.8 -
!rant
I am a xamarin developer , would like to try "native" android dev.
What's the best IDE for android development? Should I give Kotlin a try ?6 -
the person who wrote the code I'm maintaining had just learned try {}catch {} seriously, the guy preferred using try catch over ifs...11
-
Me: This software is so expensive!! I don’t have that kind of money!
Friend: Yeah I know, and it’s pretty much impossible to pirate! *awkward laugh* Not that I would know...
😂1 -
My boss has been working in web development for roughly 10 years now.
Today he learned about the existence of try/catch in JavaScript and asked me in which browsers it's
supported in 😢 -
"I don't know what I'm doing. Let's try stack overflow."
*check stack overflow*
"I know what someone else did. Let's try that." -
I was working with my embedded systems friend a few days ago on a website, and since we work with electronics, it was something new.
I then went home and started learning web development.
Holy shit I love it
I will continue to until it’s time to know about JavaScript1 -
I'm a bit tired. Flushed an ISO to sda. My laptop now asks if I want to use try or uninstall xubuntu on boot. Before slowly seeing my complete gui disappearing and had by luck still a terminal open - I could save ssh keys. Dammit. Was switching laptop anyway.
Dammit! I can't believe I did that.4 -
This is how you become dead to me:
Person: OMG X,Y,Z are happening!?!?! Notify everyone, freak out everybody!!!!!!!!
Me: Uh... have you seen that happen?
Person: No but another person said they did.
Me: ヽ(ಠ_ಠ)ノ1 -
Anyone able to recommend a good distro to try out?
Stuck with arch and Ubuntu so looking to try something newish.
Currently messing with fedora and elementary...6 -
Working with one team takes the better part of a day...
try {
WorkWithUXTeam();
}
catch {
try {
WorkWithPlatformTeams();
}
catch {
try {
WorkWithArchitecture ();
}
catch {
Delay():
}
}
}
Man, that was annoying on a phone.3 -
What's the most number of lines you have written for a project without testing and then had it run the first time? Also for context, what language did you use?
Feeling pretty good with my 200+ in C#.5 -
Real devs try to have knowledge in all three major lines of OS so they don't have much trouble using a different OS at times, even if they absolutely don't like it.
You can still like your favourite OS and use it the most, of course. :)9 -
Me: "I think I'd like to try out the new Ubuntu version. I really liked Gnome before, maybe the OS is better now?"
A couple days later...
"Man, it's really nice not having to emulate bash. I'm so much more productive now with Linux tooling! Wait, why did everything freeze?"
A week after install...
"What do you mean 'I need to recompile wireless adapter drivers'? Why isn't that included or updated through 'apt'!? Who's the person sitting at their desk saying 'yup, that's a reasonable solution?'"
Two weeks after install...
Me: "Oh, so it's not Chrome eating up system resources, there's a memory leak in gnome-shell.... WHAT!? WHY!? How do I switch back to Unity?"
One month after install...
Me: "Yeah, so I tried it out, but then I threw my computer in a river and I'm *so much* better off now."3 -
So I noticed quite a lot of South Africans on DevRant and I thought to myself that it might be great to meet a couple of you! If you're keen, join the Unofficial "DevRant Meets" server on Discord. If you think your country can also benefit from a channel, just pop me a message on Discord, then I'll just add a channel for your country :) https://discord.gg/P6kafcj3
-
More network/hardware than dev but anyway: I use OPNsense as a firewall at home on an embedded system. Had everything set up nicely and appearing to be working fine, quite a lot of things set up (static leases, VLANs with various firewall rules etc. - a fair bit of stuff involved). I noticed my remote system was failing to back up to my local one. Turned out port forwarding wasn't fully working (initial packet got through but nothing else). I noticed this at midnight.
Ran an update to see if that helped - nope. Reboot time then! It made its shutdown noises and I waited 15 minutes before giving up (no noises, no ping response). Took SD card out. Copied a fresh install onto it, thus wiping all settings. Booted up fine, set up my internet connection, all good. Proceeded to configure it. Noticed I couldn't access the internet from my PC, but could from the firewall itself. Rebooted the firewall. It didn't come back up. Argh!
Reinstalled AGAIN. Attached a serial cable and it was complaining about something which sounded like it couldn't read the SD card. Tried another. Nope. Looked online (using phone): known issue to do with boot delays.
Gave up and went to bed at this point (4am).
Next day: Installed it in a VM instead. Still no internet from my PC! Another known issue to do with default gateway not being the PPPoE interface. Got into shell, manually changed the default route. Was then able to update to the latest version which fixes the gateway issue. Rebooted the VM. All good.
Put all my settings back in, this time taking a backup afterward.
Only to discover....
....port forwarding wasn't working properly. Back to square 1.
Poked around with some NAT settings (outbound ones), made no difference, undid those changes and suddenly it started working.
WTF? /waves arms in the air
OPNsense folk were very helpful, producing a new build for me to try within a couple of hours of me asking about the problem.
But days like that, I start to question whether I really enjoy technology as much as I thought I did... -
What's the point of the "finally" block? Isn't it functionally equivalent to everything after the try { } clause?5
-
while (true) {
try {
writeCode()
} catch (UndefinedIsNotAFunction) {
try {
drinkCoffee()
} catch (OutOfCoffeeException) {
die(-1)
}
}
} -
I feel like crying because I couldn't configure ERPNext on windows (Virtual Box). Damn thing showed this error "Already Registered, There were problems" and redirect me to homepage.
Hate this when there are no error codes or no proper documentation.
Tried every possible solution in past 4~5 hours. I'll sleep3 -
Client: "We have reviewed the search results today for 'not very relevant keyword' and continue to be amazed at our low ranking, even X sits above us.
I am unsure why this is proving so difficult to correct"
Me: "It's been 3 days..."1 -
Try uncheking the voice recognition option for google assistant, the try saying "OK Google" after its switched OFF....
-
A few years ago:
Installing Visualstudio 2008 on Xp.
Pc is laggy as f.
Start browsing nsfw to kill time and boss comes over. Try to close browser and not working. Start to panic a bit. Boss comes over looking at black boxes.
Pictures didnt render. I was so lucky1 -
Colleague: "Let me just try that on a decent phone".
Hes an Android user.
Me: "Yeah. Try one of these"1 -
You make edits to your code, then you deploy.
But the behavior remains the same.
You try to figure out why your new code doesn't get executed.
Try other cases.
Try changing this.
Try changing that.
Still no changes.
Then you realize you deployed to a minimized emulator* the whole time.
* replace emulator with device/server/whatevs -
When you see a try/catch block where the catch simply throws the caught exception:
try { /*stuff*/ } catch (Exception e) { throw e }
*headdesk*4 -
Rant to myself: Don't try to be too smart, you dipshit!
3 weeks ago I packed 2 small changes in one commit, because I was sure (and obviuosly lazy) that no one will ever need these special changes separate.
Guess what happened today? Right, I had to make a change on an old version and needed the one half of this commit.
Cherry-picking ended up in changes I don't need and furthermore some nice collisions.
Thank you very much, past me, for saving 2 minutes 3 weeks ago, which now wastes half an hour. -
First try with BF
+++++
[
> +++++ +++++ ++
> +++++ +++++ ++
> +++++ +++++ +++++ +
> +++++ +++++ +++++ +
> +++++ +++++ ++
> +++++ +++++ ++++
> +++++ +++++ +++++ +
> +++++ +
> +++++ +++++
> +++++ +++
<<<<<<<<<< -
]
> +++++ +++ .
> +++++ ++++ .
> +++++ + .
> ++ .
> +++++ .
> +++++ +++ .
> ++++ .
> ++ .
> +++++ +++ .
> +++++ ++ .
<<<<<<<<<<8 -
I made a small program with visual studio and try and error without any programming knowledge, then read a whole c# book, then try and error again
-
Fuck Facebook!
Disabling apps without warnings or anything which means no customer login. This is a huge pain since the solution doesn't have any way to login to the same account with another credential.
"Oh did you use that? Now you can't. And the only way to do anything is to submit a form to 'appeal' the case which we'll just reject without any notifications or emails"
Normally I won't rant like this or use that much swearing.. but in this case:
Fuck you, Facebook. Fuck. You.7 -
I bought a MacBook Pro Retina wanting to upgrade the memory, then realized the Retina models have it soldered onto the motherboard.
I need to run Visual Studio for ASP.NET development but can't fathom paying $80 for a Parallels license at the moment. I've tried VirtualBox, but the RAM usage is really high for the 4GB I'm limited to.
FML.7 -
For all the Go-Devs that complain about not having try-catches.
That function here. emulates one....More or less.
https://gist.github.com/thosebeans/...3 -
New authentication system for a new type of login, I try to log in
Error everytime I try.
So I wait a little, like 10 min (the server is quite picky, thought it was it).
And then I try with another co-worker.
Login blocked.
Motherf-- -
!Rant but a question :)
So, I'm in college learning software engineering and kind of don't see the point of try-harding. I have always been very good at learning so I only started studying late high-school because grades were important for collage entrance. But now that I'm here and my grades have all been very good (15/20 in the worst cases), I'm not motivated to go the mile further, specially because I don't have friends to compete with (or enemies for that matter :P).
How do you developers motivate yourselves?4 -
There is normal to have an unexpected exception in a life.
If you learn to code, you know thats why there is try/catch exist, so when you try something and there is an exception you know how to pass it.
Why? So whenever something goes unexpected from your expectation you already have an exception for it and just pass it rather than making your entire mind crashing!24 -
Lesson learned when I started working: never try to proove yourself customers will just try to abuse it.1
-
Why do my parents instantly forget anything they "learn" related to computers?! Like how my mom keeps forgetting how to do stuff in PowerPoint. And especially how she keeps forgetting that "I'm not a PowerPoint expert, I don't use it, and I would have to read and try some buttons just like she should do."1
-
You try and try and try. Its just get frustating sometimes. Not seeing some real growth in your competitive programming skills.1
-
This poster is shite quality but I've transcribed the gold found on it:
The Technical Support Specialist:
- SEND US AN URGENT EMAIL IN UPPERCASE. We'll flag it as a rush job. Really.
- Loves it when a user calls screaming "the internet is broken".
- Gonna snap the next time a user asks why they don't have permission to install a George Michael screensaver.
- Last vacation: catching the first rays of sun from the back booth in Tim Hortons. Sweeeeeet!
- Most dreaded words: "I don't know what happened, I only opened the attachment".
- Has memorized over 100 access codes, but can't remember what day it is.
- Is amazed a user can have five chatrooms and three celebrity sites opened at once - but reading an I.T. support e-mail sent with high importance - now that's a complicated request.
- When you call with a tech support problem and say you'll be back in 5 - I'll say "Great!" And try not to snicker.
- System crashed last Thursday. Haven't seen my wife and kids since.2 -
where there's desire there's gonna be a flame, where there's a flame someone's bound to get burnt, but just because it burns doesn't mean you're gonna die you gotta get up and try try tryyyyyyy tryyyy try tryyyy { toForget(); } catch (Exception e) { new cupOfWine(); throw ComputerOutOfWindowException(); }
-
when you got an exception on store and you've tried it like a million times and it didn't happen, and you just give up and "try catch" that motherfucker!
-
When I was young I tried to catch all the pokemons but "finally" now I "try" to "catch" all errors...
-
Following this rant : https://devrant.com/rants/1276494/...
So my coworker has a displaying issue, and the support ticket took time to give answers that does not work. (To tell you, the answer started with "I think that..." You tried what you said or you just think?)
So we tried everything they proposed (initialize the lists used properly, reduces the amount of data, etc.), nothing works. Then I added my two-cents and tried something.
I deleted a CSS class on a div.
Voilà. Issue resolved, it works perfectly. Nice. -
Just one day please. I just want to sleep in once without that dreaded phone call or alert.
I know one of my favorite things I. The world is donating my pdo back to my company but my wife isn't so happy about it. -
A tale as old as time:
Customer: "This is wrong in all these X places!?!?!?"
-screenshots, panic, etc.-
Many emails and clarifications later we find out it is wrong ... in just ONE place ... and it wasn't even one of their initial examples.
Customer: "Why does this take so long to fix???"
Bro.... -
There are so many frameworks out there that already have their ways to connect the client application with the server one and then from the former to a Database, that I'm wondering how someone can build such server applications(for example in C++), then connect them to a Database (for example SQLite) and setup all the network configuration for a server running from home without getting mad2
-
Some people try to talk by changing their accent to look cool.
And my mind every time is like - man stop that and try to change your mindset first.1 -
Question to the freelancers here.
How long did it take you to make a living with freelancing and did you start freelancing fulltime right away or 20-40% besides another job?
I'm thinking about freelancing for a while now, but I guess in the beginning the money coming in will be really unpredictable, right?
About me, I'd call myself a senior level developer (Java, JS, SQL and stuff like that). -
Fustration? Every time, I'm not good at design, from choosing colors to aligment.
I always end with the try and error method to get something works. -
If you are slow that doesn't mean you are dead. I take my time to learn things but once I finished something, the joy I have cannot be expressed in words. 😇
-
Teacher: always try of doing a dry run for minimising the error in your code
Me:ok let's try 10 cities for the travelling salesman problem -
Contemplating of giving tailwind css a try. Did you already try using tailwind in your projects at work?7
-
People who delete their entire password from the inputfield when they make a typo suck.
People who mumble their password while typing it, like someone who came to the helpdesk today, are braindead and should not ever use a computer.8 -
"I try and be as stupid as possible regarding my profession, which means I try to look at as few design magazines as possible." - Ettore Sottsass
-
I just compiled a code.
no any compile error at first compile !
I tested all inputs and outputs, everything is correct !
Am I sleeping ? -
I try to do some C# on VSCode and i dont understand why my nuget package won't working ... I just try to install sqlite . 😔1