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 - "syntax"
-
I changed my Wi-Fi name to Syntax Error and made some changes to the configuration. I wanted to disable the admin page at the 2.4Ghz connection, but I got kicked out at 5Ghz as well. So I couldn't log in anymore and resetting the router didn't helped.
So I called the ISP if they can restore it to factory settings, but the guy on the phone didn't understand a thing I said. He said to me: "Sir I don't exactly understand what u say, but I can see an Syntax Error. Do you want me to fix it." And I laughed and I laughed.. I told him that's the Wi-Fi name but ofcourse he didn't got the joke. I called again and got someone else on the phone. He's resetting the router in a one minute call.
Had some fun this morning.11 -
1. I'm a programmer, that does not mean I know every possible programming language. Yes, I can build Android apps, standalone softwares, serverside frameworks. No, I do not know how to build frigging websites!
2. "You can build a website in 2 days, you're a programmer". Tell a single mechanic to build an entire car in 2 days or tell a civil engineer to build an entire building in 2 days and I'll build your website in 2 days.
AAAAAAARRRRRGGGGGHHHHH!
Why does your family think that being a programmer means being a magician who can just pull any kind of software, hardware, app, website out of their hat?17 -
Fucking useless languages that compile into other languages but provide no real benefit other than some trendy syntax crap.14
-
INTRODUCING:
---
SYNTAX HIGHLIGHT BOT
---
I have lots of ideas.
This was one of them.
Last week I was playing around with https://carbon.now.sh and found it quite cool!
Then I thought: https://carbon.now.sh supports Twitter. Cool. But what about devRant?
So yeah, then I got the idea: A devRant Bot that generates https://carbon.now.sh images!
Now, 4 days and 800 lines of code later, the bot is ready!
I even had to rewrite the notification checking code 4 times, because none of them worked perfectly...
But on the other hand, the final solution is so good that I want to keep it a secret for now ;D
---
HOW TO USE:
All you need to do is to mention the bot!
Example:
<rant>
@highlight
console.log('Hello World!');
</rant>
The bot then generates your syntax highlighted code (as an image) and posts it as comment a few seconds later.
Everything before the "@highlight" will be ignored!
Example:
<rant>
Look at this code:
@highlight
function add(a) {
return a + 1;
}
</rant>
Here, "Look at this code:" will not be included in the syntax highlighted code.
If the comment text ends right after the "@highlight", the bot wont reply, btw.
---
THEME SELECTION:
That's not all!
You can even select the theme for your syntax highlighted code!
Just go to my other rant and read the instructions!
The theme will be used for every image the bot generates for you!
Link:
https://devrant.com/rants/2178551
---
Feel free to ask any questions in the comments!
My creator (and father thanks to @rutee07), @Skayo, will try to answer all of them!
P.S.: Speaking of @rutee07: I'm a girl. (Also thanks to him)167 -
Does anyone else experience the excess knowledge crisis? Wherein you realise that there is so much knowledge out there that you don't know where to start, and the moment you start, you realise there is something new to learn and you instantly get distracted.8
-
Seeing how people dislike idea pitches like "It's like Uber but for ...".
I can't help but imagine how the idea of devRant might have been pitched -
"It's like Twitter but for frustrated developers" 😋7 -
I love python, its the language I never really struggled a lot with yet also progressing so fast with it as a programmer!19
-
I sent and email of some code to someone, and when I coppied from VScode into the Email Cliant it saved the Background Color + Syntax Highlighting 😆27
-
I fucking hate python and myself even more. Python is easy they say, Python has nice syntax but fuck you . Fuck you seriously I cringe if I see non-c-like syntax. Every time I leave my comfort zone I get fucked over by damn semicolons. Fuck this imports i don't know your damn library. But god damn In far too advanced for hello world. There are two versions and the lib I want to use is incompatible? Well fuck me? That kind of shit never hit me on PHP. Damn me! Fuck you python. I want to know you but you fuck me harder than life. GEHÖRT? DU FICKST MICH HÄRTE ALS DAS LEBEN DU HURENSOHN!!!!
What is even your problem? Indentation? Well thank you for not having braces! I mean come on I try, I really do. I know you are different but every thing I want to learn about you is either for uber beginners or so advanced I don't even know what's going on. Do magical shit in a few lines? What the fuck is in those packages? A wizard full filling whishes like "plz make this work"?
But don't worry you cum snorting unicorn as much as I hate you I'm more mad about me for not being a descendant of fucking slytherin!16 -
For the Germans among us. Found it at the Dortmund train station today. At least the syntax is right.17
-
Damn you, Sublime! I love you, but for fuck's sake, why don't you provide syntax highlighting for x86 assembly? :(15
-
I never make the same mistake twice, I make it eight or nine times just to be sure.
String name;
String number
String dob;5 -
I have reached that point of my life where I feel a laptop with an internet connection is all I need to live the rest of my life.5
-
<meta-rant>
Am I the only dev who gets bugged when I see the common "a semi-colon just cost me 45 minutes!" joke, or similar?
Any modern IDE or text editor will show you syntax errors immediately, and even if they didn't you can usually resolve them in under a minute.6 -
Apple really is redefining the entire industry...
On terms of how expensive can a product be and how poor you are.4 -
The facial hair devRant provides in it's profile builder are either well maintained thick growth of beard or a neatly trimmed uniform beard.
And here I am with my abomination of a beard that looks like a herd of cattle trampled over a sparse field of grass.
The struggle is real.7 -
TAKE A LOOK AT MY OTHER RANT FIRST!
---
SYNTAX THEME SELECTION
---
In this rant you can set your theme for the syntax highlighter!
Just ++ the comment with your preferred theme.
The bot checks for the "<user> ++'d your comment!" notification and stores your selection!
(When you ++ multiple themes, your theme will be the one you ++'d the last)
Then, next time you request a syntax highlighting (see other rant on how to do that), that theme will be used!
Please don't post any comments here if possible!!!
(You can post comments and ask questions in the other rant)
Feel free to ++ this rant tho ;D
---
Have fun and thank you for using this bot!28 -
devRant needs some form of syntax highlighting, so 𝐂𝐨𝐝𝐞 snippets can be posted as oppose to screenshots.12
-
The world has moved to json, webservices, lightweight frameworks. And here I am writing IDLs for my company's CORBA based product.
P.S. Corba is so obsolete, devRant doesn't even provide an autocomplete for the tag7 -
New proposal: Addition of "!fuckingimportant" syntax to CSS to override any preceding !important modifiers. :P3
-
I'm truly and deeply bothered by
import {Object} form "module"
instead of
import { Object } from "module"
What's worse is that I'm bothered by the fact that I'm bothered about this as I'm normally able to laugh away discussions about syntax A being better than syntax B.6 -
>Barely ever written python before
>Gets added to a python group project
>Codes the part I'm associated with
>Runs fine after about 19 tries
>Puts it together with other people's code
>Syntax error
>Searches for the error for 2 and a half hours
>tfw other people use 4 spaces instead of a tab like I do and pythong can't handle it :(3 -
Wanted to deploy my local files to remote server using rsync.
Used wrong syntax, replaced my local files with remote instead :(5 -
Ugh, ansible and yml formats. I thought to fix a small issue fast and commit it directly.. but noooo2
-
Always use an editor with color syntax highlighting. About 20 years ago I spent 3 days and nights debugging something that was a simple typo error. Since then I always use an editor with color syntax highlighting.7
-
```
Greetings @dfox @trogus, et al,
Here is some feedback with aspirations for the backlog.
I think it would be a good addition in the devRant UI if we could paste in code snippets and have that code display with proper fonts and syntax formatting, and even ideally with highlighting by language.
Currently, if we paste in any code or text for that matter it is translated into a sans-serif font (14px Helvetica Regular on webapp) which is fine for the poetic prose from our fine and noble devRant colleagues, but not ideal for shared monospace snippets of lesser and grand design.
Here are two websites that provide conversion of code snippets into formatted syntax, and HTML. http://hilite.me/ and http://markup.su/highlighter/
Both of these sites provide an API so highlighters can be used as a service.
Mockup attached.
Thank you @jaaku for your post, and welcome.
Cheers
devRant for the win
```13 -
Pro-tip to self: Getting syntax errors on your If-Than statements? Try using If-Then instead!
*facepalms at own stupidity* -
The more I play with C, the more I realize why many people hate C++.
I like the amount of control and the simplicity. No unnecessary syntax sugar, and the code is very straightforward to read.11 -
Helping a random junior out with an ML project on an online tutor site.
Her: So what is the syntax for implementing xyz function
Me: *opens Google* *opens pandas docs* *searches the function* *tell her the syntax*
She: Woah thanks a lot!
I collected my tutor fees feeling good about myself.10 -
Recieved my stickers today. Found it aptly ironic to put one right next to one of the most "hated" languages on devRant 😗😋5
-
Since the past 7 months I was working on a project coded in C++ and shell script.
Today I was shifted to a project where I'm required to code in JavaScript and SQL.
I can't differentiate between my head and a scrambled egg.6 -
While getting a pro in Kotlin, I started using
when(condition) {
true -> doOneThing()
false -> {
xyz = whatEver()
blaBla()
}
}
instead of simple if-else.
It looks nice but also distracting.
What is your opinion on that?
I guess most will be like:6 -
When you name your function list and it works on your local server but causes syntax error on the dev server8
-
When you switch back to Javascript after a while of using SQL and dont see the error in this line..
Thanks for syntax highlighting that, firefox! I spent almost 10mins checking the parentheses and trying different combos...1 -
The cleaning lady saga continues...
(previous: https://devrant.com/rants/1850777)
Had an appointment with their manager, stuff gets discussed and coordinated at a 3x slower pace than if I'd done it myself (as usual because fuck efficiency when there's muggles involved -_-), yada yada.
*mail addresses for contact start getting discussed*
Incompetent fuck of a manager: And you $realName, your email address is $company@nixmagic.com, then changed to $nickname@nixmagic.com? Mind explaining this?
Me: Oh yeah that's just because I give out different email addresses to each contact person when it involves public forms or registrations, helps with spam prevention and putting the company name of the correspondent in there helps with easy recognition when some company's database leaks and I start getting a lot of spam on that mailbox.
IFOM: Really.. we actually weren't sure whether we should reply to something with our company name in it.. you know, not sure whether it's legit etc. Why would anyone want to use one of our email addresses as theirs?
… Let that sink in for a moment. They think that $company@nixmagic.com is theirs? Just because it's their domain (minus TLD) in front of MY FUCKING DOMAIN? How about you start by learning how email addresses work first, because clearly you have no fucking clue about it. Are you the kind of brainless fucks that get lured in by http://totallylegitbank.com.freehost.com/... scams? Fucking stupid piece of fucking shit.
Oh, and when you're using MS Exchange, of course you can't know that when you're having your own domain, you actually also own every fucking mailbox on it, because Microshaft doesn't allow you to have more than n amount of mailboxes, unless you gobble up money for them. But you know what, in my case it's a fucking catch-all domain running Linux on its servers, so yeah I can use whatever the fuck I want in front of it, including your stupid fucking cleaning company.
IFOM: And then there's your current designated email address. $nickname@nixmagic.com..
Oh you're going to criticise that as well?! Yeah condor is my fucking nickname all over the internet, and my username on all my systems. That's why I use it. But you know what else is an email address that you might come across, because people are shallow idiots like that? ILoveBigTits69@gmail.com or something like that. You know what, how about I address you next time from ILoveBigTits69_OhAndYoursAreAWashboard@nixmagic.com, because you know what? I CAN FUCKING DO THAT. But you know, I at least am halfway fucking professional about my business-related stuff, so I won't because I really don't want to be associated with such an email address. So don't you fucking dare to criticize me for using my fucking nickname instead of my real name.
Long story short, people are fucking idiots.6 -
What do you look for in a programming language
People: features, syntax, runtime blah blah
Me: Active meme base -
Today on "How the Fuck is Python a Real Language?": Lambda functions and other dumb Python syntax.
Lambda functions are generally passed as callbacks, e.g. "myFunc(a, b, lambda c, d: c + d)". Note that the comma between c and d is somehow on a completely different level than the comma between a and b, even though they're both within the same brackets, because instead of using something like, say, universally agreed-upon grouping symbols to visually group the lambda function arguments together, Python groups them using a reserved keyword on one end, and two little dots on the other end. Like yeah, that's easy to notice among 10 other variable and argument names. But Python couldn't really do any better, because "myFunc(a, b, (c, d): c + d)" would be even less readable and prone to typos given how fucked up Python's use of brackets already is.
And while I'm on the topic of dumb Python syntax, let's look at the switch, um, match statements. For a long time, people behind Python argued that a bunch of elif statements with the same fucking conditions (e.g. x == 1, x == 2, x == 3, ...) are more readable than a standard switch statement, but then in Python 3.10 (released only 1 year ago), they finally came to their senses and added match and case keywords to implement pattern matching. Except they managed to fuck up yet again; instead of a normal "default:" statement, the default statement is denoted by "case _:". Because somehow, everywhere else in the code _ behaves as a normal variable name, but in match statement it instead means "ignore the value in this place". For example, "match myVar:" and "case [first, *rest]:" will behave exactly like "[first, *rest] = myVar" as long as myVar is a list with one or more elements, but "case [_, *rest]:" won't assign the first element from the list to anything, even though "[_, *rest] = myVar" will assign it to _. Because fuck consistency, that's why.
And why the fuck is there no fallthrough? Wouldn't it make perfect sense to write
case ('rgb', r, g, b):
case ('argb', _, r, g, b):
case ('rgba', r, g, b, _):
case ('bgr', b, g, r):
case ('abgr', _, b, g, r):
case ('bgra', b, g, r, _):
and then, you know, handle r, g, and b values in the same fucking block of code? Pretty sure that would be more readable than having to write "handeRGB(r, g, b)" 6 fucking times depending on the input format. Oh, and never mind that Python already has a "break" keyword.
Speaking of the "break" keyword, if you try to use it outside of a loop, you get an error "'break' outside loop". However, there's also the "continue" keyword, and if you try to use it outside of a loop, you get an error "'continue' not properly in loop". Why the fuck are there two completely different error messages for that? Does it mean there exists some weird improper syntax to use "continue" inside of a loop? Or is it just another inconsistent Python bullshit where until Python 3.8 you couldn't use "continue" inside the "finally:" block (but you could always use "break", even though it does essentially the same thing, just branching to a different point).19 -
I received this from a recruiter. I can't handle the number of syntax errors. Who is it a appealing to :/4
-
Hired a new BI developer. She tested reasonably ok in SQL, and certainly showed good strengths in visualising data, plus had a good attitude in the interview. We hired her. She broke her laptop the first day. We got her another then she complained the camera didn't work but didn't realise the lever in front of the camera was to move the privacy shutter off and on.
Assigned her some work of taking queries that are used in a BI tool that targets the transactional database directly, and re-jigging them for Snowflake which we're using as a data warehouse now, aggregating all our data into one place. Yet, she's struggling to understand why the SQL query she's pasted in doesn't work as-is.
I go over it again; the source schemas and tables are this, but in Snowflake we've named them this. She then bemoans how much work that is to change them all - I say use find and replace. She then struggles with Snowflake syntax errors and asks for a guide on T-SQL to Snowflake. I show her Google and say "this is what I did when I hit these problems - search for 'Snowflake equivalent to T-SQL getdate()' or 'how to get current date in Snowflake' but she still doesn't understand. I ask if she's every had to work between T-SQL and MySQL or MySQL and PostgreSQL or Oracle and so on and she says yes. I say the syntax isn't the same, is it? And she goes oh, now I understand.
She scored reasonably in her SQL test but I'm now concerned there's something fundamental missing in her grasp of SQL. I gave her a detailed demo of the tools, I explained in the interview and on her start about our move to a data warehouse for all our apps, and put her through some training plus gave her time to work through our Confluence pages - not expecting she'll remember everything, but more to ensure she recalls they exist and what the general contents are.
Anyhow, that's my rant.6 -
Also, Oh My ZSH with autocomplete and syntax-highlighting. Terminal won't be the same without it. 😎4
-
@dfox Can we get syntax highlighting? I know someone already requested that so this is just an echo.11
-
Why do people mix JS vanilla with framework syntax? That's horrible.
Why do people use jQuery anyways? There's no need at all anymore. It is just dumb JS for dumb devs.
Did that trigger you? - well....7 -
When I had to submit an enhancement to the customer and so I pulled an all nighter in my office. I knew before hand that the office would be empty post 11 pm, so I sneaked in 4 cans of beer and coded the night away while downing chilled beer.
That was a good night. :) -
Started learning PHP bcuz @dfox loves it. Why not me?
(instantly)
WHY IS THERE SO MANY -> SIGNS???????
IT DOESN'T LOOK LIKE AN ARROW AT ALL!!!!!!!!
IT SHOULD BE AT LEAST --> TO LOOK BETTER!!!!!
UUUURRRRGGGHHHHHHHHHHHHHHH!!!!!
(stops learning a few hours ago, got a refund)
(curses david)6 -
Management: List your most significant achievement during this cycle.
Me: Developed and implemented a full stack of database micro containers that allow scalability and reusability. -
Coding something in C# and getting errors after attempting to compile.
Turns out I was using Python Syntax quite a bit -_-1 -
To any newbie, I highly recommend using iTerm2 with zsh (with plugins like syntax-highlighting and autosuggestions).
IT IS FUCKING AMAZING.6 -
My intern was trained on 1 semester of Java, followed by 2 of Python, so there’s been several conversations at the office that boil down to:
“What’s *not* to love about Python? It’s easy to pick up, and forgiving as hell!”
“What’s *to* love about Python? I like being able to understand how my code is structured!”
As a WordPress shop, the discussion is moot, of course...4 -
Create a new, fast, strictly typed programming language with organized project structure, normal package manager, dynamic syntax extensions (that means you can change the syntax of the language if you like!) and (most importantly) if statements which are written like this:
(bananas == 0) -> print 'No bananas!';3 -
Cheers to those Java developers who think they will be richer than PHP developers because Java has a more complex syntax.11
-
Python syntax is almost like KARMA! 😒😓
Karma is "what you do is what you get" while
Python syntax is "what you see is what you get"1 -
Fuck these super social media instagram influencer developers telling everyone watching their story that "everyone can be a programmer.". You can't. It's not only about syntax and a run button.16
-
!Rant
Having been working with JavaScript so intensively, I have a newfound appreciation for Python. It really is an elegant language.
I'm looking forward to returning to Python one day in the near future.3 -
Please, please for the sake of your born/unborn child, check whether the names of the entity attributes are not valid sql keywords.4
-
When you're mentally debugging a module and you have an intuition about the point of failure.
So you start mentally tracking variables, going down functions calls, moving from one class to another until finally you reach that one line of code that you feel is getting the wrong parameters.
You substitute in the 10 different variables you have been mentally tracking and find out that...
THE LINE OF CODE IS GETTING THE CORRECT PARAMETERS, AND IS FUNCTIONING AS IT SHOULD.
fuck.1 -
Those much extension functions in Kotlin...
Just tries a lot combinations and got reminded of the "Let it go"-Song4 -
I do not understand people who critique Python for using indentation to mark code blcoks. I've seen multiple posts being like "Uhh in Python a missing space breaks everything and it's so hard to find it". Yeah so hard when the interpreter throws a parse error and tells you exactly which line it's on. Let me go back to a bracefest language, misplace a brace halfway through the file, and get told there's a syntax error at the end, and spend a whole two minutes finding it.11
-
These guys who only know Python and fuck you up, because you are used to write "true" instead of "True", or "else if" instead of "elif". Finally they laugh about you, because you are not able to "remember this simple syntax"!!!2
-
Why do people complain about python's syntax without semicolons but no one complains about golang?9
-
Not sure if I love or hate haskell... It's awesome, but then again the syntax is so fucking confusing...5
-
I thought I at least was OK at JavaScript, but today I looked at a tictactoe implementation, and with all the fancy new syntax I have no clue what most of it is doing.2
-
Holy fuck... Ruby has the best fucking syntax ever!
Ruby is so awesome!!!! (But Lua is a bit better)9 -
Complaining about people not understanding basic python syntax but I also don't know even know how to use fucking scratch.2
-
Wish you all a Happy New Year! Being a part of this community has made me feel a sense of belonging and that I'm a part of something bigger! Seeing all your fuck ups made me feel better that in not the only one, seeing all your accomplishments motivated me to achieve more in life! I would like to take this moment to thank you all and to make me feel proud of being a dev! I wish you all an amazing new year and may you all get whatever you wish this new year!
-
Why can't every programming language have the same syntax? Imagine how many fewer mistakes you would make...7
-
I HATE javascript syntax like this: `${this.props.app.listingObj.property.id}` What idiot thought this crappy syntax would make things run smoother?
Keep in mind I've been hired as a tester, hence the rants. Were this my own app I'd burn it to the ground and rewrite it.4 -
The more you learn languages like Javascript and Python, the more you realise that while every syntax differs, they're all essentially themes of the same if, else or and, type statements... This leads me to believe that with enough practice, it's possible to shortcut or pick up a new language progressively faster. Or am I just a melon?7
-
Just looking at the basic syntax of Kotlin gives me half a chubby. hahaha
It is just so damn simple and sexy!
https://kotlinlang.org/docs/...2 -
WHY ISNT MY FILE HIGHLIGHT SYNTAX WORKING?!!!
*realizes I forgot to add the opening tags*
Oh wait I'm dumb1 -
01000110 01110101 01100011 01101011 00100000 01011001 01101111 01110101 00100000 01000001 01101100 011011007
-
After 2 weeks of ranting I have honestly ran out of rants.
Either my life as a dev is too good or I'm clearly not coding enough.
The later seems more plausible. -
!rant
We've got a small army of foreign contractors working with us both in the office and overseas. Syntax has become the thing that stands out to me the most. We can all speak the same language, but our partners don't quite have the syntax down, resulting in some rather amusing email exchanges. I can't fault them, if the shoe was on the other foot, I guarantee I'd be butchering any other language's conversational syntax. Overall, the experience has been a bit of an eye opener for me. -
I hate it when someone says 'syntactic sugar' and on the other hand wants code to be readable. For me it seems that this are wheels which chain together.1
-
has anyone ever had this happen?
ide- syntax error: missing ";" on line 7 (1 error)
me- *adds the missing ; *
ide- syntax error: missing ";" on line 7 (57 errors)1 -
rant, but !really.
Trying out this new Kotlin language. Pretty cool, except for...
val str: String = "what the fuck is this syntax?"6 -
Whoever made the Crystal Reports language, screw you and your silent syntax errors. Sincerely, guy stuck maintaining reports.5
-
Attempting a huge undertaking. I'm trying to convert a large JavaScript library, written in standard ES5 syntax, to Typescript with ES6 syntax. Turns out it's extremely difficult, but if I can finish this it will be 100% worth it3
-
Ok Rust help you write robust safe code and is very fast.
But at what cost ?
But why on earth the syntax is very disgusting. It takes time to familiarize with the horrible syntax.
And I feel like the sadistic rust cult members actually enjoy making it hard to read so that they can jump on any occasion to shout at you : you still lacking rustlang skills
Fuck that shit I'd rather write in golang or just deal with C++ . At least their syntax doesn't make me wanna puck11 -
This is just a sweet little harmless block of code, why should I unit test it?
3 months later...
Bug in production : This is why. -
stop teaching language syntax and start explaining the ideas and the concepts in computer science.1
-
> be me
> change theme in vscode
> syntax highlighter stops working for php
> panic mode
> removed personal settings for php
> removed all settings
> back on default
> ohshitno.xml
> find a github issue, marked as closed
> sleep
> wake up
> start working
> cannot work without syntax highlight
> find another github issue, saying the theme I want doesn't supports syntax highlighting
> fml.xml
> back on default2 -
any of you guys listen to programming-related podcasts? 🎧
I recently came across "Syntax", a podcast on web development. They cover pretty basic stuff but I still find it interesting.
Would love to know if there are any other podcasts on programmin 🙂5 -
Starts search and replace.
Trys to replace a type in the whole Project.
Syntax Check: lol no, apparently everything is broken now, good job
(literally my whole project was marked red)
Reverts changes
(project still marked red)
Syntax Check: lol what? Your code already looked like shit before, won't let you compile this.
It was a bug which breaks the syntax check after big replace requests. Had to start a new project and copy my code step for step, so it didn't break again. However I've forgotten to replace the type before I copy...
Another story regarding this shit:
Renames Variable
IDE: oh, let me help you by replacing all old var names with the new one
Agrees
IDE: oh shoot, didn't know it could break things
Wants to revert
IDE: did you think I would go through this mess again?! Do it yourself!3 -
Orchid syntax highlighting
I gotta say, I really like the text image of my new language ^_^ This is something I was worried about, although that's part of the reason why the entire syntax is defined natively and can be modified on a whim16 -
Making a function pointer in C and typedef-ing it.
Done wrong. Every single time.
Look up in the internet.
Copy a typdef-d function pointer.
It works.
Check it's syntax.
THE SAME FCKIN SYNTAX AS DONE FIRST!
And that's why I hate function pointers.2 -
Not a rant, but may prevent millions of rants later. Also not spam.
Just found out someone built a "syntax database" so you can search for the proper syntax. Currently supports nine languages plus api support for additional integration.
https://syntaxdb.com/2 -
If you feel you're not confused enough in life, try writing JS for a Rhino engine interface implemented on a Java codebase.
I have to deal with stringified JSON, native JSON, java JSON objects (org.json.JSONObject) and all the different attributes and functions specific to each of these objects.
Even "Why are the Kardashians so famous?" doesn't confuse me as much as this shit does.2 -
>zig
how does one manage to make a language with syntax that is uglier than both C++ and Rust combined11 -
Have grown wierdly fond of devRant in a very short time.
Reading about devs around the world getting as frustrated and magnetically fucked as me, gives me some sort of sadistic calmness.1 -
I have a weird love/hate relationship with JavaScript.
I'm not at all a webDev, but I like to use it occasionally because it's fun and I really like its syntax... but it's an absolute pile of shit.
If you put racing stripes and a spoiler on a golf cart, it's still a fucking golf cart.2 -
TFW you see ruby syntax and claim it's not even a programming language, then someone shows you a working example...
-
So for the past one month I'm working on an enhancement in a product coded in C++ and shell script, running on RHEL. After toiling away for almost 10 hours/day for a month, the enhacement is ready. Coded, tested, documented. Ready to ship.
The client is supposed to recieve the update as a drop. 1 day before the drop is scheduled to be released to Quality Control, I fire an overnight build on the build machine, update the change request ticket, update other related tickets, inform QC of the drop to be released tomorrow. On the D-day, I package the drop using the company's painfully arduous method. Everything is ready by the evening, and the drop is good to go.
At 7pm (one hour before the drop is to be released), Jack fucking Jack-o-lantern (one of the top most exec in the company) tells me that the default value of the parameter introduced in the enhancement, needs to be changed from 86400 to 1500. HALF AN HOUR BEFORE THE DROP IS TO BE RELAEASED!
Now here I am, changing the value in over 25 files, followed by firing an overnight build, followed by sanity testing, change specific testing, followed by drop packaging, followed by inform QC that the drop will be delayed.
All because fucking jack-o-lantern wanted to change the fucking default value.
GOOD FOR YOU FUCKING JACK.2 -
Reading documentation for 3rd party software... come across a code snippet which references a class. The class is spelt correctly in the comment but wrong in the code!
What??? Surely if you're going to get it wrong it would be the other way round :/ -
Hey management,
Please assign me that Node.js project that I'll get to code from scratch and I'm stoked about.
Regards,
Frustrated developer. -
That moment when you realize that normal people dont use increment and decrement in normal speech syntax...
-
Code got submitted for review... Syntax error.
Like wtf, your IDE even tells you about syntax errors... not to mention the failing build 😤 -
The unix shell syntax is weird looking.
Gonna learn it next. Using Arch without knowing how some scripts work isn't optimal.1 -
Searching for a good PHP, webdev IDE... Suggestions?
Ideally free software with debugging and code syntax checks.11 -
"we have all had that code which you read over and over again till you realise your mistake.';
read it again. #syntaxHell -
When I wrote count++ in Python and got syntax error. Darn!!! I just applied Java and C syntax again!2
-
[LANGUAGE DESIGN]
What are some interesting / unique approaches you've seen to representing generics in syntax? The only one I know is the Java/C#/Typescript way of using a separate set of parentheses and either specifying all of them or none, and I've already experimented a bit with passing them as regular arguments which works great with autocurry but every syntax option for inference adds visual noise.9 -
When instead of propperly coding one ends up adding syntax highlighting to emacs for specific terms and just other fancy functions...
I mean hey, it is somewhat more readable now I guess. 🤷♀️
...
Guess I'm just distracted and aoiding the issue ^^' -
Don’t fall for the “language A is better than language B” -it’s all just syntax (within the same paradigm). Learn higher concepts such as: data structures, abstraction, loops, variables, conditionals, functions.
Only then can you decide that your favourite language is better than anyone else’s...5 -
I'm just going to come out and say it.
I have enough CPU/RAM to spare that any benefit I could get over using Rust instead of a higher level language is far outweighed by how ugly the syntax is.6 -
Grails 2.x all groovy syntax for code and configuration. Simple and elegant.
Grails 3.x all groovy syntax except for the main configuration file. Let's make that a YAML file. F#%king genius!1 -
I really want to dive deeper in other languages. But everytime I see something with a not c-like syntax i can't muster the resolve to dive in.
Any advice to overcome that?3 -
Fucking gdb with your stupid commands, showing me the memory allocation, shos me the data you stupid piece of shit, what is the value pointed by the pointer.
*Segmentation fault**core dumped*
Oh gdb! How much I missed you. Please don't ever leave me okay? -
Should linting and syntax highlighting be separate options in editors? It seems to me that anytime i just want a nice syntax highlighting extension in vscode i end up with a shitton of linter errors that i didn't ask for... I just wanted to see my keywords, dammit!7
-
Bloody cunts at Twitter could provide the fucking grammar for their filtering rules...
Now I have to write the grammar for the lexer and the parser from scratch (in fucking JavaScript to boot 😡).
Mind you, I know my lex and bison, but I haven't done this shit in fucking ages, and the combo of JavaScript debauchery and being rusty, is making me want to send angry tweets to Elon musk, see if they can provide decent tools for their shit API.3 -
I saw a video on tiktok a couple days ago that had a pretty interesting opinion. The guy said that we should stop creating programming languages and stick to only a couple.
His main point was because with all these different programming languages, there is different syntaxes the programmer has to learn. Even some of the universal syntaxes are different in some languages. For example, in Rust, to print something you use “println!(...);”
He said this is counter productive because in a majority of other programming languages, the ! Means negation. He also said something about Golang also having some of those syntax problems but I can’t remember exactly.
His point was that if we stuck to a single syntax, then we could spend more time doing productive stuff and less time relearning how to do stuff with different syntax. For example, in mathematics all symbols have pretty much the same meaning across the field. An equals sign will always mean the same thing.
What do u guys think? I thought it was an interesting opinion and I think I agree to some degree . I’ll post the link to the video if I find it again23 -
Looking into Kotlin, and it seems pretty cool, but I just can't get over how unnatural and annoying the mapOf syntax is.
In JavaScript: const obj = { a: 1, b: { c: 3, d: 4 } }
In Kotlin: val obj = mapOf("a" to 1, "b" to mapOf("c" to 3, "d" to 4))5 -
Is there anything like a reverse search engine, that let's you enter e.g. some js code and it tells you what language feature has been used? Imagine you see syntax you've never used before and don't know what it's called or what it does but would like to know more about it.7
-
Programmer: Type type(2);
C++ Compiler: // Okay, I'll use the constructor that takes 1 argument
Programmer: Type type();
C++ Compiler: // I see there is a constructor that takes no arguments, but surely you don't want that. Everybody loves functions, a function shall be declared!
Who, in their right mind, thought this syntax is a good idea?! Syntax inconsistencies drive me crazy...11 -
To know the most efficient datatypes, functions, etc, and syntax for whichever language and framework I'm currently using.
-
Seiously though , Javascript Developer community are toxic shit! All I did was asked a question regarding the syntax.
They started to curse me and call me names , like what the fuck? I just want to know some syntax. Dont have to be an arse.
At least Elixir community is polite.16 -
The Uniparser: a single, self-describing general parser capable of parsing/syntax highlighting/linting every language ever made.
-
Rant!!!!!
When you realise CHROME and FIREFOX needs different JQuery syntax to work with AJAX...
#respectForAllWebDevs #newbieWebDev5 -
to everyone who judges programming languages based on syntax, it's appeal and familiarity: fuck you!5
-
I just found out that most developers make their first million by age 30.
...syntax errors that is.😉1 -
Why is the syntax of SQL INSERT so completely different to the syntax of UPDATE?
...proceeds to rewrite multiple 60 column inserts into updates...2 -
This might be a highly specific mistake but, never ever uninstall the ms-office package installed on your work pc, linked to your corporate ms account. And then try to install another version from an installer you have lying around. Internal Support Team wasn't happy. 😅
-
Asking for a friend. Anyone here know how to get code syntax highlighting in Photoshop?
Screenshot and removing the background doesn’t help. It screws up the font of the code.
🙏🏻4 -
Learning about the basic syntax, then making a simple project with help from stack overflow and the documentation.
-
Built the most generic file importer.
So a customer had his SAP system giving us some 5 million barcodes in a csv which we needed to parse. But as there could be different file types and I thought the handling would always include the same steps I made them configurable through function pointers. - Did not want to make it as spooky as the rest of the code base where the function pointers were buried deep in some shared memory configs, which might even change at run time, but rather I statically used the member functions of my class. Just to poke fun on the ugly C++ syntax of member function pointers. I still shudder at the thought some poor soul now has to maintain that code.
(For the actual parsing I actually used a one liner in awk which was churning through the records in one minute which was faster than the SAP guys seemed to be accustomed to.) -
Its a real kick in the balls when you’re coding crazy for hours and the on the first test you get a fuckin Syntax Error2
-
It's the small things. Chronos task run syntax:
- P10M = 10 months
- PT10M = 10 minutes
And for some reason, lots of our task are defined to only run every 10 months, should be run every 10 minutes though.
Even weirder: Why do most of our tasks run daily? Either we have some cron job task firing curl requests at chronos rest api, or some poor content managers clicks a button daily. -
Did someone already thought about how color highlight can be better? It's been 4-5 years now that I'm coding on a virtual console that run on iPad with a monochrome code editor. Despite the fact that's remind me the old days when I was 8 years old, that doesn't stop me for coding with it.
I mean, is it really important to know that strings are red and numbers are yellow? How does that help me? They are both literal and behave to the user-content categories.
I was talking with my friend, and he says he likes to know if something is a keyword or an identifier. In C++, a lot of common keywords to define stuff and control the flow are often the first word and easy to spot.
A couple of months ago, I tried Flutter, and the editor can highlight ident blocks and give them different colors, but with Flutter, it's easy to get 10 or more ident levels, Does the color help? Splitting the code does.
I think, there is so much stuff that is more important than coloring the grammar of a language. For instance: knowing if an identifier belongs to which Rust Crate because, It's easy to stack 10 or more dependencies in one file that as better chances of names collisions.
Knowing if an identifier was recognized, if it used, if it's a local, a member, a global, a compiled value or a macro seems more important.
I would like to color block of code that is important or sensible. That will help my coworker about the severity of a particular place in the code.
What do you think?1 -
Those of you working with .NET, do you prefer C# casting syntax:
(Type)variable;
Or VB casting syntax:
variable as Type;3 -
I've always was curious why people debating about mostly two code formatting types
for(;;)
{
//somestuff
}
or
for(;;){
//somestuff
}
while almost no one uses pretty decent IMO type like
for(;;){
//somestuff
//somemorestuff} (with tabs ofc)
It might be easier to forget some }s, but other than that it seems pretty nice to me13 -
GitHub Command Syntax
Do you also think GitHub should highlight
commands as you would expect them to?
Check out this related issue and give it a
thumbs up or something, maybe at some
point they will finally do something about it ..
https://github.com/github/linguist/... -
So as part of my news years resolution, I thought id build an app and I thought I would build it in vue.js and native script with a shared codebase, I've started with a fresh project and already I have an error, one that I've not caused, this is in router.js. see if you can spot it.
module.exports = (api, options) => {
require('@vue/cli-plugin-router/generator')(api, {
historyMode: options.routerHistoryMode
};
export default new Router(options);
}
When I've fixed the syntax error, I then get, the error:
/src/router.js: 'import' and 'export' may only appear at the top level (5:0)
This is when I run "npm run serve:ios"
if anyone has encountered this, please let me know how you fixed this.2 -
Read the documents for syntax and general practices, then find a tutorial(youtube) and dive right into the mud.
-
Which syntax is "correct" TypeScript syntax ?. I prefer the first one. But what's about guidelines ?
Note for UpperCase variables: yes I know. We use that syntax to differentiate public and private variables. (Yes I know that doesn’t exist in JavaScript)8 -
I do not like the Zig programming language. It looks like Javascript for unnecessary reasons and has some weird syntax.15
-
Nextjs 14 just came out and they added a new server actions syntax which is the same bullshit syntax like php where you insert server side code in the middle of html div! And not only is that ridiculous enough but also vulnerable to sql injection 😂😂😂2
-
IntelliJ themes suck shit. I can't tell errors from warnings, comment errors from syntax errors, where the syntax errors are, ...
I've been trying to configure something sensible for hours now and no luck.
Go fuck yourself JetShitForBrains. I just need to code a simple method. Did I mention that JetBrains can go fuck themselves?6 -
I'm trying to get started in making language syntax packages for Atom, mostly for two languages that are not so used as of yet though (Lisaac and S-SIZE), but I wonder: does one really have to upload the package to npm in order to be able to use it in Atom yourself?
-
Having a build check line for line, item by item what my Javascript syntax has to follow is fucking driving me nuts. A goddammn in place Javascript syntax machine nazi.
-
Getting used to C++.... Jesus those syntaxes.... you can write it so or so or this way... also this way.... did i mentioned this?!1
-
<Dream type="pipe">
GitHub-flavoured Markdown in devRant... maybe even with syntax highlighting...
</Dream>4