Daily Vim Tip: From any bracket, brace, or parenthesis, % teleports you to its matching partner. In files with the matchit plugin loaded, it also hops between if/else/end blocks and HTML tags. Learn more: run `vimtutor` in your terminal, or use `:help %` inside Vim. #vim #vimtip #coding #ostechnix
Vim Tip: Navigate to Matching Brackets with %
More Relevant Posts
-
For quite some time, I used to support more than one rust async runtime in a single crate. After spend several hours troubleshooting which project has enabled two conflicting feature flags in my crate, I came up with few conclusions: 1. If you need support tokio, smol, monoio, compio or glomio as async runtimes, isolate parts which has calls to their APIs into separate crates, at debugging time you won’t have code paths being mistakenly activated 2. Type aliases are useful, but don’t use them to simple give another name to a struct, like File or RwLock, that will cause compilation errors if feature flags aren’t additive, but exclusive. In short, take a wide picture of your solution, if you codebase has parts which are clearly exclusive to one or another runtime, please save time and do not use a feature flag to support both of them, it will not only add code bloat, but verbose, hard to maintain and debug. #rust #programming #async #bestpratices #softwaredesign #featureflags
To view or add a comment, sign in
-
Solved Add Two Numbers using linked lists. At first, the pointer-based structure was confusing, but breaking it down into simple steps made it manageable. Approach: Traverse both linked lists Add digits one by one Maintain carry (just like normal addition) Build a new linked list for the result #DSA #LinkedList #CPP #Coding
To view or add a comment, sign in
-
-
🚀 Packet Coders Tools 2.0 is live. Now includes: ✅ Redesigned layout ✅ Code colourisation ✅ New XPath tool ✅ NetBox mode for Jinja2 ✅ first(), last(), filter(), all() support ✅ NetBox quick reference ➜ https://lnkd.in/ey8nAUaF
To view or add a comment, sign in
-
-
Brute force works… But it’s not always smart ❌ This problem is a perfect example 👇 👉 Find maximum sum of subarray of size K Naive approach: Check all windows → O(n × k) Optimized approach: Use Sliding Window → O(n) 💡 What changes? You stop repeating work. Instead of recalculating sum every time: → Subtract old element → Add new element That’s it. 👉 Less loops = More efficiency #ProblemSolving #DSA #Coding #Developers
To view or add a comment, sign in
-
-
LeetCode POTD | Day 8 Maximum Non-Negative Product in a Matrix Today’s problem was a good reminder that signs matter… a lot. At first, it felt like a normal DP path problem. But negative numbers completely change the game. What worked: • Track both max and min product at each cell • Because a negative × negative can suddenly become max • Classic DP, but with a twist What I learned today: Whenever negatives are involved, don’t just track the best… track the worst too. Because sometimes, the “worst” turns into the best. Pattern I’m noticing: DP problems are less about memorizing solutions and more about understanding what state to carry forward. Day 8 of solving LeetCode POTD consistently. Slowly getting better at spotting these patterns early. If you solved this, did you also maintain both min and max DP states? #LeetCode #DSA #DynamicProgramming #CodingJourney #SoftwareEngineering #POTD
To view or add a comment, sign in
-
-
Practiced problem-solving by implementing an optimized solution for Valid Palindrome. 🔹 Approach: Two-Pointers 🔹 Time Complexity: O(n) 🔹 Space Complexity: O(1) Also designed a structured PPT to explain the intuition clearly. #SoftwareEngineering #DSA #Coding #GitHubProjects
To view or add a comment, sign in
-
Here’s this month’s recap of the VS Code and InterSystems-related updates that are relevant to IRIS developers. This month includes: • Highlights from VS Code 1.110 • Updates to the InterSystems ObjectScript and Server Manager Extensions • Our Marketplace pick for February Everything is summarised in the PDF carousel → swipe through for each section. Let us know in the comments if you try any of these features or VS Code extensions, and what you think. If you’re moving from Studio to VS Code, or want to strengthen your team’s development workflow, we also run practical, hands-on VS Code training. Happy coding! #VSCode #InterSystemsIRIS #InterSystems #VSCodeExtensions #Coding
To view or add a comment, sign in
-
Also, the VS Code team just announced they're changing from monthly iterations to weekly ones. Watch those version numbers grow!
Here’s this month’s recap of the VS Code and InterSystems-related updates that are relevant to IRIS developers. This month includes: • Highlights from VS Code 1.110 • Updates to the InterSystems ObjectScript and Server Manager Extensions • Our Marketplace pick for February Everything is summarised in the PDF carousel → swipe through for each section. Let us know in the comments if you try any of these features or VS Code extensions, and what you think. If you’re moving from Studio to VS Code, or want to strengthen your team’s development workflow, we also run practical, hands-on VS Code training. Happy coding! #VSCode #InterSystemsIRIS #InterSystems #VSCodeExtensions #Coding
To view or add a comment, sign in
-
A React component logs a surprise string even though a default prop is defined. The component uses destructuring with a fallback value and also sets defaultProps. It gets invoked directly as a regular function, not via JSX. In production this can mask missing props, leading to silent bugs. Logs may mislead you during debugging sessions. Automated tests that call the component as a function could pass falsely. Comment A, B, C, or D with the string you think will be logged and defend your choice. #tsx #React #Programming #Backend #CodingInterview
To view or add a comment, sign in
-
-
In the world of technology, a "quick fix" usually means three hours of debugging and one line of code #DeveloperLife #TechHumor #CodingLife
To view or add a comment, sign in
More from this author
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development